> ## Documentation Index
> Fetch the complete documentation index at: https://docs.capedigital.co.ke/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Booking

> Amend a DRAFT order — notably the order-level negotiated total, which
re-derives the discount, VAT and grand total.

``negotiated_total`` is only applied when present in the payload; to reset it
to the rate-card total, omit it and it is left unchanged. (Use create or a
fresh draft to clear it.)



## OpenAPI

````yaml /openapi/inventory.yaml patch /api/v1/bookings/{order_id}
openapi: 3.1.0
info:
  title: Cape Digi - Inventory Service
  description: >-
    Ad inventory catalog, rate cards, booking orders, campaign tracking, ad
    asset management, and commercial transmission scheduling.
  version: 1.0.0
servers:
  - url: https://api.capedigital.co.ke/inventory
    description: Production
  - url: http://localhost:8000
    description: Local
security: []
paths:
  /api/v1/bookings/{order_id}:
    patch:
      tags:
        - Bookings
      summary: Update Booking
      description: >-
        Amend a DRAFT order — notably the order-level negotiated total, which

        re-derives the discount, VAT and grand total.


        ``negotiated_total`` is only applied when present in the payload; to
        reset it

        to the rate-card total, omit it and it is left unchanged. (Use create or
        a

        fresh draft to clear it.)
      operationId: update_booking_api_v1_bookings__order_id__patch
      parameters:
        - name: order_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Order Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BookingOrderUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    BookingOrderUpdate:
      properties:
        notes:
          anyOf:
            - type: string
            - type: 'null'
          title: Notes
        requires_production:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Requires Production
        negotiated_total:
          anyOf:
            - type: number
              minimum: 0
            - type: string
            - type: 'null'
          title: Negotiated Total
        signed_document_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Signed Document Id
      type: object
      title: BookingOrderUpdate
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````