> ## Documentation Index
> Fetch the complete documentation index at: https://apidoc.ovrsea.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Accept a quote

> Preview: Accepts a customer-visible quote on a quote request and returns the resulting shipment.



## OpenAPI

````yaml /openapi.json post /v1/quote-requests/{id}/quotes/{quote_id}/accept
openapi: 3.1.0
info:
  description: >-
    Response objects may gain new fields and enum fields may gain new values
    over time without a breaking change. Clients should ignore unknown fields
    and handle unknown enum values gracefully rather than rejecting them.
  title: OVRSEA API
  version: 1.3.2
servers:
  - url: https://api.cf.ovrsea.com
security: []
paths:
  /v1/quote-requests/{id}/quotes/{quote_id}/accept:
    post:
      tags:
        - Quote requests
      summary: Accept a quote
      description: >-
        Preview: Accepts a customer-visible quote on a quote request and returns
        the resulting shipment.
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
          description: 'Preview: Customer-facing id of the quote request.'
        - schema:
            type: string
          in: path
          name: quote_id
          required: true
          description: 'Preview: Public identifier of the quote to accept.'
      responses:
        '200':
          description: >-
            Preview: The shipment created or already confirmed from the accepted
            quote.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Shipment'
        '400':
          description: 'Preview: The request is malformed. The code is `invalid_request`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: 'Preview: The Bearer token is missing or invalid (`unauthorized`).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: >-
            Preview: The caller is not allowed to perform this action. The code
            is `forbidden`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: >-
            Preview: The quote request or quote is absent or not visible to the
            caller. The code is `quote_request_not_found` or `quote_not_found`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '409':
          description: >-
            Preview: The quote cannot be accepted in its current state
            (`quote_cannot_be_accepted`) or the quote request is already a
            shipment (`quote_request_already_shipment`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: 'Preview: An unexpected server error occurred (`internal_error`).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
components:
  schemas:
    Shipment:
      type: object
      modelName: Shipment
      tag:
        - Shipments
      properties:
        name:
          type: string
          example: June Air Export USA
        ovrsea_shipment_id:
          description: >-
            Four-letter code for orders opened before 2026-12-01 00:00 UTC. Full
            file reference for orders opened from that instant, including orders
            opened as quote requests.
          example: BB-BATD-5
          type: string
        status:
          description: >-
            `booking_request`: The customer has requested the transport and it
            is waiting to be assigned. Acceptance moves it to
            `awaiting_booking`, and cancellation moves it to `cancelled`.

            `awaiting_booking`: The transport is ready and waiting for carrier
            booking. Booking confirmation moves it to `booked`, and cancellation
            moves it to `cancelled`.

            `booked`: The transport booking is confirmed. Pickup or departure
            moves it to `in_progress`, booking cancellation returns it to
            `awaiting_booking`, and cancellation moves it to `cancelled`.

            `draft`: Compatibility value for an unfinished record; this value is
            never returned.

            `in_progress`: The transport is underway. Arrival moves it to
            `arrived`, completion moves it to `finished`, and cancellation moves
            it to `cancelled`.

            `arrived`: The transport has arrived at its destination. Completion
            moves it to `finished`, and cancellation moves it to `cancelled`.

            `finished`: The transport has finished.

            `cancelled`: The transport was cancelled. Uncancelling restores its
            previous lifecycle status.

            Further values may be added. Clients should handle an unknown value
            as an unrecognized shipment status.
          type: string
          enum:
            - booking_request
            - awaiting_booking
            - booked
            - draft
            - in_progress
            - arrived
            - finished
            - cancelled
        created_at:
          $ref: '#/components/schemas/DateWithTime'
        incoterm:
          type: string
          enum:
            - exw
            - fca
            - fas
            - fob
            - cpt
            - cfr
            - cif
            - cip
            - dap
            - ddp
            - dpu
            - dat
          example: fob
        freight_mode:
          type: string
          enum:
            - air
            - ocean
            - rail
            - truck
        load_type:
          description: >-
            `fcl`: Full container load.

            `lcl`: Less than container load.

            `both`: Compatibility value; this value is never returned.

            Further values may be added. Clients should handle an unknown value
            as an unrecognized load type.
          type: string
          enum:
            - fcl
            - lcl
            - both
        service:
          description: >-
            Preview: Customer-facing service. `chartering` is a chartered air
            transport. `courier` is parcel transport. Further values may be
            added. Clients should handle an unknown value as an unrecognized
            service.
          enum:
            - chartering
            - courier
          type: string
        truck_service:
          description: >-
            Preview: Truck service. `ftl` is a dedicated full truck. `ltl` is
            groupage. `haulage` is pre- or post-carriage of containers. Further
            values may be added. Clients should handle an unknown value as an
            unrecognized truck service.
          enum:
            - ftl
            - ltl
            - haulage
          type: string
        truck_details:
          description: >-
            Preview: Truck equipment and vehicle details. Present only for truck
            shipments when at least one detail is known.
          type: object
          properties:
            body_type:
              description: >-
                Preview: Truck body type. Further values may be added. Clients
                should handle an unknown value as an unrecognized body type.
              type: string
              enum:
                - box
                - chassis
                - flatbed
                - reefer
                - tautliner
                - tautliner_side_and_top
            capacity:
              description: >-
                Preview: Truck capacity. Further values may be added. Clients
                should handle an unknown value as an unrecognized capacity.
              type: string
              enum:
                - mega
                - volume_12_cbm
                - volume_20_cbm
                - volume_30_cbm
                - volume_35_cbm
                - volume_50_cbm
            category:
              description: >-
                Preview: Truck category. Further values may be added. Clients
                should handle an unknown value as an unrecognized category.
              type: string
              enum:
                - crane_truck
                - full_trailer
                - open_box
                - rigid_truck
                - road_train
                - semi
                - van
                - vehicle_carrier
            special_equipments:
              description: >-
                Preview: Special equipment required for the truck. Further
                values may be added. Clients should handle an unknown value as
                an unrecognized special equipment.
              type: array
              items:
                type: string
                enum:
                  - crane
                  - double_deck
                  - multi_temperature
                  - onboard_cart
                  - pallet_truck
                  - poles
                  - straps
                  - taillift
                  - tarpaulin
        freight_type:
          type: string
          enum:
            - port_to_door
            - door_to_port
            - door_to_door
            - port_to_port
        route:
          type: object
          properties:
            pickup_location_id:
              type: string
              example: '23'
            origin_port_id:
              description: 'Preview: Origin port id.'
              type: string
              example: '123'
            origin_port_unlocode:
              type: string
              example: FR/FOS
            destination_port_id:
              description: 'Preview: Destination port id.'
              type: string
              example: '456'
            destination_port_unlocode:
              type: string
              example: US/NYC
            delivery_location_id:
              type: string
              example: '45'
        cargo_ready_date:
          $ref: '#/components/schemas/SimpleDate'
        desired_delivery_date:
          $ref: '#/components/schemas/SimpleDate'
        specific_instructions:
          type: string
          description: Optional field containing specific instruction given by the client
        cargo:
          type: object
          properties:
            total_weight:
              $ref: '#/components/schemas/Weight'
            total_volume:
              $ref: '#/components/schemas/Volume'
            total_teus:
              type: integer
              description: Shipment total of Twenty-Equivalent Units
              example: 5
            containers:
              type: array
              items:
                $ref: '#/components/schemas/Container'
            loads:
              type: array
              items:
                $ref: '#/components/schemas/Load'
        goods_description:
          description: 'Preview: Description of the goods being transported.'
          type: string
          example: Description of the shipped goods
        transported_goods:
          type: object
          properties:
            is_stackable:
              type: boolean
              default: true
            is_hazardous:
              type: boolean
              default: false
            hazardous_description:
              type: string
              example: UN1993
            contains_lithium:
              type: boolean
              default: false
            lithium_packaging_type:
              type: string
              enum:
                - alone
                - contained
                - packed
            contains_magnets:
              type: boolean
              default: false
            needs_controlled_temperature:
              type: boolean
              default: false
            temperature_range_description:
              type: string
              example: 5-25°C
        commercial_value:
          $ref: '#/components/schemas/Price'
        cargo_value:
          allOf:
            - $ref: '#/components/schemas/Price'
          description: 'Preview: Declared cargo value in the currency major unit.'
        insurance_type:
          description: 'Preview: Insurance selection applied to the shipment.'
          type: string
          enum:
            - not_insured
            - ad_valorem_ordinary_risk
            - ad_valorem_war_risk
        purchase_order_references:
          type: array
          items:
            type: string
            example: 4500346155
        main_tracking_dates:
          type: object
          properties:
            pickup_date:
              $ref: '#/components/schemas/TrackingDate'
            departure_date:
              $ref: '#/components/schemas/TrackingDate'
            arrival_date:
              $ref: '#/components/schemas/TrackingDate'
            delivery_date:
              $ref: '#/components/schemas/TrackingDate'
        booking_information:
          type: object
          properties:
            carrier:
              type: string
              example: CMA CGM
            master_bill:
              type: string
              example: LHV1190703558
            house_bill:
              type: string
              example: HOUSEREF12357
            ocean_booking:
              type: object
              properties:
                booking_number:
                  type: string
                  example: TWLEH2106004
                voyage:
                  type: string
                  example: 033E
                vessel:
                  type: string
                  example: CMA CGM Jacques Saadé
                lcl_container_number:
                  description: >-
                    Preview: Consolidation container number for an LCL ocean
                    shipment.
                  type: string
                  example: MSCU1234567
                cutoff:
                  allOf:
                    - $ref: '#/components/schemas/DateWithTime'
                  description: 'Preview: Cargo cut-off date and time for an ocean shipment.'
                cfs_enclosure:
                  allOf:
                    - $ref: '#/components/schemas/DateWithTime'
                  description: >-
                    Preview: Container freight station closing date and time for
                    an LCL ocean shipment.
            air_booking:
              type: object
              properties:
                flight_number:
                  type: string
                  example: AF256
                chargeable_weight:
                  $ref: '#/components/schemas/Weight'
                master_airway_bill:
                  description: 'Preview: Master air waybill number.'
                  type: string
                house_airway_bill:
                  description: 'Preview: House air waybill number.'
                  type: string
                hle:
                  allOf:
                    - $ref: '#/components/schemas/DateWithTime'
                  description: >-
                    Preview: Latest acceptance time (HLE) at the origin airport
                    for an air shipment.
                securing:
                  description: >-
                    Preview: Air cargo security screening method.

                    `cyno`: Canine detection.

                    `odorology`: Odorology screening.

                    `x_ray`: X-ray screening.

                    Further values may be added. Clients should handle an
                    unknown value as an unrecognized screening method.
                  type: string
                  enum:
                    - cyno
                    - odorology
                    - x_ray
            rail_booking:
              description: >-
                Preview: Rail booking details. Present only for rail shipments
                when at least one detail is known.
              type: object
              properties:
                train_number:
                  description: 'Preview: Train number.'
                  type: string
                  example: X8020
                lcl_container_number:
                  description: >-
                    Preview: Consolidation container number for an LCL rail
                    shipment.
                  type: string
                  example: MSCU1234567
                cutoff:
                  allOf:
                    - $ref: '#/components/schemas/DateWithTime'
                  description: 'Preview: Cargo cut-off date and time for a rail shipment.'
                cfs_enclosure:
                  allOf:
                    - $ref: '#/components/schemas/DateWithTime'
                  description: >-
                    Preview: Container freight station closing date and time for
                    an LCL rail shipment.
            truck_booking:
              description: >-
                Preview: Road booking details. Present only for truck shipments
                when at least one detail is known.
              type: object
              properties:
                loading_reference:
                  description: 'Preview: Loading reference at pickup.'
                  type: string
                  example: LOAD-2026-001
                unloading_reference:
                  description: 'Preview: Unloading reference at delivery.'
                  type: string
                  example: UNLOAD-2026-001
                license_plate:
                  description: 'Preview: Truck license plate number.'
                  type: string
                  example: AB-123-CD
            courier_booking:
              description: >-
                Preview: Courier booking details. Present only for courier
                shipments when a tracking number is known.
              type: object
              properties:
                tracking_number:
                  description: 'Preview: Carrier parcel tracking number.'
                  type: string
                  example: 1Z999AA10123456784
        invoice_status:
          description: >-
            Summary computed by the platform over invoices attached directly to
            this shipment. It can differ from the preview `invoices` list, which
            contains invoices visible to the caller, including grouped invoices.
            The `invoices` list is the reference for each invoice's status.
          type: string
          enum:
            - available
            - awaiting_invoice
            - due
            - paid
            - partially_paid
        invoices:
          description: >-
            Preview: Invoices visible for this shipment, including grouped
            invoices. Each item gives the invoice number accepted by `GET
            /v1/invoices/{reference}` and that invoice's status.
          items:
            type: object
            properties:
              number:
                description: >-
                  Preview: Invoice number accepted by `GET
                  /v1/invoices/{reference}`.
                type: string
              status:
                description: 'Preview: Current status of this emitted invoice.'
                type: string
                enum:
                  - available
                  - due
                  - litigious
                  - paid
                  - partially_paid
                  - write_off
          type: array
        invoice_references:
          type: array
          items:
            type: string
            example: FAC2022-9567
        accepted_quote:
          type: object
          properties:
            id:
              type: string
              example: '325'
            request_date:
              $ref: '#/components/schemas/DateWithTime'
            accepted_date:
              $ref: '#/components/schemas/DateWithTime'
    ApiError:
      modelName: ApiError
      type: object
      description: 'Preview: Error returned by a preview route.'
      properties:
        code:
          description: 'Preview: Stable code describing what went wrong.'
          type: string
        field:
          description: >-
            Preview: Request input that needs correction. For a query or path
            parameter, this is the parameter name. For one body input, this is
            its root-relative dot-separated path, with array indexes in
            brackets, such as `cargo.loads[0].count`. For a refusal concerning
            several inputs on one body object, this is that object's path. For a
            refusal concerning the request as a whole, this field is omitted.
          type: string
        message:
          description: 'Preview: One-sentence explanation and next step.'
          type: string
        retry_after_seconds:
          description: >-
            Preview: Number of seconds to wait before retrying, when the
            response is rate limited.
          type: integer
      required:
        - code
        - message
    DateWithTime:
      modelName: DateWithTime
      type: string
      example: '2021-09-20T10:02:09+01:00'
    SimpleDate:
      modelName: SimpleDate
      type: string
      example: '2021-10-11'
    Weight:
      modelName: Weight
      type: object
      description: Weight
      properties:
        value:
          type: number
          format: float
          example: 350.25
        unit:
          type: string
          enum:
            - kg
            - lbs
          example: kg
    Volume:
      modelName: Volume
      type: object
      description: Volume in cubic metres.
      properties:
        value:
          type: number
          format: float
          example: 10.25
        unit:
          type: string
          example: m3
    Container:
      type: object
      modelName: Container
      properties:
        container_type:
          type: string
          enum:
            - twenty_foot_standard
            - twenty_foot_reefer
            - twenty_foot_flat_rack
            - twenty_foot_open_top
            - twenty_foot_non_operating_reefer
            - forty_foot_standard
            - forty_foot_reefer
            - forty_foot_flat_rack
            - forty_foot_open_top
            - forty_foot_highcube_standard
            - forty_foot_highcube_reefer
            - forty_foot_highcube_flat_rack
            - forty_foot_highcube_open_top
            - forty_foot_non_operating_reefer
            - forty_foot_high_cube_non_operating_reefer
            - forty_five_foot_highcube_standard
        container_number:
          type: string
          example: TEMU8667058
        seal_number:
          type: string
          example: 1332641
        foodgrade:
          description: 'Preview: Whether this container is food-grade.'
          type: boolean
        is_hazardous:
          description: 'Preview: Whether this container carries dangerous goods.'
          type: boolean
        hazardous_description:
          description: >-
            Preview: Dangerous-goods details held for this container, such as
            the UN number and applicable class.
          example: UN1993
          type: string
        purchase_order_references:
          type: array
          items:
            type: string
            example: 4500346155
    Load:
      type: object
      modelName: Load
      properties:
        count:
          description: Number of packages in the line when known.
          type: number
          example: 3
        is_hazardous:
          description: 'Preview: Whether this package line contains dangerous goods.'
          type: boolean
        hazardous_description:
          description: >-
            Preview: Dangerous-goods details held for this package line, such as
            the UN number and applicable class.
          example: UN1993
          type: string
        type:
          type: string
          enum:
            - pallet
            - package
            - rigid_crate
            - bulk
          format: LoadType
          description: >-
            `package` is a parcel.

            `pallet` is palletized cargo.

            `rigid_crate` is a rigid crate.

            `bulk` is unpackaged cargo.

            Further values may be added. Clients should handle an unknown value
            as an unrecognized load type.
        pallet_size:
          description: >-
            Preview: `120x80` is a pallet 120 cm by 80 cm.

            `120x100` is a pallet 120 cm by 100 cm.

            `specific` is a pallet of another size whose dimensions the line
            gives.

            Further values may be added. Clients should handle an unknown value
            as an unrecognized pallet size.
          enum:
            - 120x80
            - 120x100
            - specific
          type: string
        weight:
          $ref: '#/components/schemas/Weight'
        volume_unit:
          type: string
          example: cm
          description: (deprecated)
        length:
          $ref: '#/components/schemas/Size'
        width:
          $ref: '#/components/schemas/Size'
        height:
          $ref: '#/components/schemas/Size'
        loading_meters:
          description: 'Preview: Linear metres occupied by this package line on a truck.'
          type: number
          example: 2.4
        total_weight:
          allOf:
            - $ref: '#/components/schemas/Weight'
          description: 'Preview: Total weight of this package line when declared.'
        total_volume:
          allOf:
            - $ref: '#/components/schemas/Volume'
          description: >-
            Preview: Total volume of this package line in cubic metres when
            declared.
        is_refrigerated:
          description: 'Preview: Whether this package line requires controlled temperature.'
          type: boolean
        contains_lithium:
          description: 'Preview: Whether this package line contains lithium batteries.'
          type: boolean
        contains_magnets:
          description: 'Preview: Whether this package line contains magnetic goods.'
          type: boolean
        is_stackable:
          description: 'Preview: Whether this package line can be stacked.'
          type: boolean
    Price:
      modelName: Price
      type: object
      properties:
        amount:
          type: number
          format: float
          example: 150357.99
        currency:
          type: string
          enum:
            - AED
            - AUD
            - BHD
            - BRL
            - CAD
            - CHF
            - CNY
            - DKK
            - EUR
            - GBP
            - HKD
            - IDR
            - INR
            - JPY
            - MXN
            - KRW
            - KWD
            - MYR
            - NOK
            - NZD
            - PLN
            - SEK
            - SGD
            - THB
            - TND
            - TWD
            - USD
            - XOF
            - XPF
            - ZAR
          example: USD
    TrackingDate:
      modelName: TrackingDate
      type: object
      properties:
        date:
          $ref: '#/components/schemas/DateWithTime'
        status:
          type: string
          enum:
            - estimated
            - actual
            - planned
            - problem
    Size:
      type: object
      modelName: Size
      description: Size
      properties:
        value:
          type: number
          format: float
          example: 10.25
        unit:
          type: string
          enum:
            - cm
            - in
          example: cm

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.