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

# Patch order

> Partially update an order. Same field names as PUT, plus status.
- Omit a field to leave it unchanged.
- Send an empty string to clear most strings, shipment_date, and due_date.
- billing_address, shipping_address, primary_contact: send only the fields to change, or id alone to use an existing record.
- line_items and additional_charges: sending the field replaces the full list; omit to keep it. line_items cannot be empty.

<Info>
  The `PATCH` request is used to partially update an existing entity by the
  given id. This means:

  * Only the fields provided in the request body will be updated.
  * Fields not provided in the request body will remain unchanged.
  * The request is idempotent, meaning multiple identical PATCH requests will
    always result in the same final state.
</Info>

**Order PATCH**

* Same field names as `PUT /v2/orders/{id}`, plus `status`.
* Omit a field to leave it unchanged. Send `""` to clear most strings, `shipment_date`, and `due_date`.
* `billing_address`, `shipping_address`, `primary_contact`: send only fields to change, or `id` alone to use an existing record.
* `line_items` and `additional_charges`: sending the field replaces the full list; omit to keep it. `line_items` cannot be `[]`.
* `status`: for orders, `draft`, `confirmed`, or `cancelled`; for quotes, `draft`, `submitted`, or `cancelled`. Omit to keep.


## OpenAPI

````yaml patch /v2/orders/{id}
openapi: 3.1.0
info:
  description: Open API's for WizCommerce API's
  title: WizCommerce Open API's
  termsOfService: https://wizcommerce.com/terms/
  contact:
    name: Tech Support
    url: https://help.wizcommerce.com/
    email: tech@wizcommerce.com
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
  version: '1.0'
servers:
  - url: https://api.wizcommerce.com
    description: Production BaseURL
  - url: https://api-staging.sourcerer.tech
    description: Staging BaseURL
security: []
paths:
  /v2/orders/{id}:
    patch:
      tags:
        - Orders
      summary: Patch order
      description: >-
        Partially update an order. Same field names as PUT, plus status.

        - Omit a field to leave it unchanged.

        - Send an empty string to clear most strings, shipment_date, and
        due_date.

        - billing_address, shipping_address, primary_contact: send only the
        fields to change, or id alone to use an existing record.

        - line_items and additional_charges: sending the field replaces the full
        list; omit to keep it. line_items cannot be empty.
      parameters:
        - x-order: '1'
          name: id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/dtosv2.OrderPatchRequest'
        description: request
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/dtos.SuccessResponse'
                  - type: object
                    properties:
                      data:
                        $ref: '#/components/schemas/dtosv2.OrderResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errors.HttpError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errors.HttpError'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errors.HttpError'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errors.HttpError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errors.HttpError'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    dtosv2.OrderPatchRequest:
      type: object
      properties:
        reference_id:
          type: string
          maxLength: 255
          x-order: '1'
          example: '1234567890'
        display_id:
          description: Display ID. Omit to keep; "" to clear.
          type: string
          maxLength: 255
          x-order: '2'
          example: '1234567890'
        customer_id:
          type: string
          x-order: '3'
          example: 12345678-90ab-cdef-1234-567890abcdef
        payment_term:
          type: string
          maxLength: 255
          x-order: '5'
          example: Payment Term
        shipping_method:
          type: string
          maxLength: 255
          x-order: '6'
          example: Shipping Method
        freight_term:
          type: string
          maxLength: 255
          x-order: '7'
          example: Freight Term
        amount:
          description: Total before discounts, taxes, and shipping.
          type: number
          x-order: '10'
          example: 100
        amount_paid:
          type: number
          x-order: '11'
          example: 100
        discount_value:
          description: Discount amount, not a percentage. e.g. 10.00 off 100.00.
          type: number
          x-order: '12'
          example: 10
        tax_value:
          description: Tax amount, not a percentage. e.g. 10.00 on 100.00.
          type: number
          x-order: '13'
          example: 10
        shipping_charge:
          description: Shipping amount.
          type: number
          x-order: '14'
          example: 10
        shipment_date:
          description: RFC3339, after created_at. "" clears.
          type: string
          x-order: '15'
          example: '2025-01-01T00:00:00Z'
        due_date:
          description: RFC3339, after created_at. "" clears.
          type: string
          x-order: '16'
          example: '2025-01-01T00:00:00Z'
        payment_status:
          type: string
          enum:
            - PAID
            - PENDING
            - PARTIALLY_PAID
            - REFUNDED
            - OVERPAID
            - VOIDED
          x-order: '17'
          example: PAID
        payment_method:
          type: string
          maxLength: 255
          x-order: '18'
          example: On Account
        payment_method_id:
          type: string
          maxLength: 255
          x-order: '18'
          example: '1234567890'
        fulfillment_status:
          type: string
          enum:
            - PARTIALLY_DELIVERED
            - UNFULFILLED
            - PARTIALLY_FULFILLED
            - FULFILLED
            - IN_PROGRESS
            - DELIVERED
          x-order: '19'
          example: PARTIALLY_DELIVERED
        created_at:
          type: string
          x-order: '20'
          example: '2025-01-01T00:00:00Z'
        customer_note:
          type: string
          x-order: '20'
          example: Customer Notes
        internal_note:
          type: string
          maxLength: 255
          x-order: '21'
          example: Internal Notes
        updated_at:
          description: Must be after created_at. Omit to use server time.
          type: string
          x-order: '21'
          example: '2025-01-01T00:00:00Z'
        status:
          description: >-
            Orders: draft, confirmed, cancelled. Quotes: draft, submitted,
            cancelled. Omit to keep. Cannot be cleared.
          type: string
          enum:
            - draft
            - confirmed
            - cancelled
            - submitted
          x-order: '22'
          example: draft
        source:
          description: Omit to keep; "" sets openapi.
          type: string
          x-order: '23'
          example: high-point
        po_number:
          type: string
          maxLength: 255
          x-order: '24'
        container_info:
          allOf:
            - $ref: '#/components/schemas/dtosv2.ContainerInfoRequest'
          x-order: '26'
        billing_address:
          description: Send fields to merge, or id alone to use an existing address.
          allOf:
            - $ref: '#/components/schemas/dtosv2.OrderAddressPatchRequest'
          x-order: '27'
        shipping_address:
          description: Send fields to merge, or id alone to use an existing address.
          allOf:
            - $ref: '#/components/schemas/dtosv2.OrderAddressPatchRequest'
          x-order: '28'
        primary_contact:
          description: Send fields to merge, or id alone to use an existing contact.
          allOf:
            - $ref: '#/components/schemas/dtosv2.OrderContactPatchRequest'
          x-order: '29'
        line_items:
          description: Complete replacement list. Omit to keep. Cannot be [].
          type: array
          items:
            $ref: '#/components/schemas/dtosv2.OrderLineItemRequest'
          x-order: '30'
        attributes:
          description: Merge by name. Omit to keep all; [] is a no-op.
          type: array
          items:
            $ref: '#/components/schemas/dtos.AttributeRequest'
          x-order: '31'
        additional_charges:
          description: >-
            Extra charges besides tax, discount, and shipping. Complete
            replacement list; omit to keep. [] clears extras.
          type: array
          items:
            $ref: '#/components/schemas/dtosv2.OrderChargesRequest'
          x-order: '32'
    dtos.SuccessResponse:
      type: object
      properties:
        data:
          x-order: '1'
    dtosv2.OrderResponse:
      type: object
      properties:
        id:
          description: UUID
          type: string
          x-order: '1'
          example: 01f5d171-d3e3-4b2b-bd57-0727194b5bed
        reference_id:
          type: string
          x-order: '2'
          example: '1234567890'
        display_id:
          type: string
          x-order: '3'
          example: WC_1234567890
        customer_id:
          type: string
          x-order: '4'
          example: '1234567890'
        customer_reference_id:
          type: string
          x-order: '5'
          example: CUST_1234567890
        customer_name:
          type: string
          x-order: '6'
          example: John Doe
        type:
          type: string
          enum:
            - order
            - quote
          x-order: '7'
          example: order
        status:
          type: string
          x-order: '8'
          example: active
        amount:
          type: number
          x-order: '9'
          example: 100
        amount_paid:
          type: number
          x-order: '10'
          example: 100
        shipment_date:
          type: string
          x-order: '11'
          example: '2021-01-01T00:00:00Z'
        due_date:
          type: string
          x-order: '12'
          example: '2021-01-01T00:00:00Z'
        payment_status:
          type: string
          x-order: '13'
          example: PAID
        fulfillment_status:
          type: string
          x-order: '14'
          example: >-
            PARTIALLY_DELIVERED UNFULFILLED PARTIALLY_FULFILLED FULFILLED
            IN_PROGRESS DELIVERED
        payment_method_id:
          type: string
          x-order: '15'
          example: '1234567890'
        payment_method:
          type: string
          x-order: '16'
          example: payment_method
        payment_term:
          type: string
          x-order: '17'
          example: payment_term
        shipping_method:
          type: string
          x-order: '18'
          example: shipping_method
        freight_term:
          type: string
          x-order: '19'
          example: freight_term
        internal_note:
          type: string
          x-order: '20'
          example: internal_note
        customer_note:
          type: string
          x-order: '21'
          example: customer_note
        source:
          description: Source of the order, such as openapi, or sales_rep.
          type: string
          x-order: '22'
          example: cart
        entity_source:
          description: >-
            Channel the order was created in, e.g. wizorder, wizshop, or
            openapi. Set at creation and not changed by later updates.
          type: string
          x-order: '22.5'
          example: wizorder
        price_list_id:
          type: string
          x-order: '23'
          example: '1234567890'
        price_list:
          allOf:
            - $ref: '#/components/schemas/dtosv2.PriceListResponse'
          x-order: '24'
        line_items:
          type: array
          items:
            $ref: '#/components/schemas/dtosv2.OrderLineItemsResponse'
          x-order: '25'
        billing_address:
          allOf:
            - $ref: '#/components/schemas/dtosv2.OrderAddressDetailResponse'
          x-order: '26'
        shipping_address:
          allOf:
            - $ref: '#/components/schemas/dtosv2.OrderAddressDetailResponse'
          x-order: '27'
        primary_contact:
          allOf:
            - $ref: '#/components/schemas/dtosv2.OrderContactDetailResponse'
          x-order: '28'
        charges:
          type: array
          items:
            $ref: '#/components/schemas/dtosv2.OrderChargesResponse'
          x-order: '29'
        container_info:
          allOf:
            - $ref: '#/components/schemas/dtosv2.ContainerInfoResponse'
          x-order: '30'
        customer_consent:
          allOf:
            - $ref: '#/components/schemas/dtosv2.CustomerConsentResponse'
          x-order: '31'
        attributes:
          type: array
          items:
            $ref: '#/components/schemas/attribute.AttributeValueResponse'
          x-order: '32'
        po_number:
          type: string
          x-order: '33'
        created_by:
          allOf:
            - $ref: '#/components/schemas/dtosv2.UserInfoResponse'
          x-order: '34'
        updated_by:
          allOf:
            - $ref: '#/components/schemas/dtosv2.UserInfoResponse'
          x-order: '35'
        created_at:
          type: string
          x-order: '36'
          example: '2021-01-01T00:00:00Z'
        updated_at:
          type: string
          x-order: '37'
          example: '2021-01-01T00:00:00Z'
        cart_total:
          description: Sum of line item totals; null when unavailable.
          type: number
          x-order: '38'
          example: 100
        card:
          $ref: '#/components/schemas/dtosv2.PaymentCardResponse'
    errors.HttpError:
      type: object
      properties:
        code:
          type: string
          x-order: '1'
        message:
          type: string
          x-order: '2'
        details:
          type: array
          items:
            $ref: '#/components/schemas/errors.HttpErrorDetails'
          x-order: '3'
    dtosv2.ContainerInfoRequest:
      type: object
      required:
        - key
        - unit
        - volume
      properties:
        name:
          type: string
          maxLength: 255
          x-order: '1'
          example: Container Name
        key:
          type: string
          maxLength: 255
          x-order: '2'
          example: 40ft_hig
        unit:
          type: string
          enum:
            - CFT
            - CBM
          x-order: '3'
          example: CFT
        volume:
          type: number
          x-order: '4'
          example: 100
    dtosv2.OrderAddressPatchRequest:
      type: object
      properties:
        id:
          type: string
          x-order: '1'
          example: 12345678-90ab-cdef-1234-567890abcdef
        first_name:
          type: string
          maxLength: 50
          x-order: '2'
          example: John
        last_name:
          type: string
          maxLength: 50
          x-order: '3'
          example: Doe
        phone:
          description: Phone number in E.164 format
          type: string
          x-order: '4'
          example: '+14155552671'
        email:
          type: string
          x-order: '5'
          example: john.doe@example.com
        address_line_1:
          type: string
          maxLength: 255
          x-order: '6'
          example: 123 Main St
        address_line_2:
          type: string
          maxLength: 255
          x-order: '7'
          example: Apt 101
        city:
          type: string
          maxLength: 50
          x-order: '8'
          example: Anytown
        state:
          type: string
          maxLength: 50
          x-order: '9'
          example: CA
        country:
          description: >-
            Country code in ISO 3166-1 alpha-2 or alpha-3 format, e.g. US or
            USA.
          type: string
          x-order: '10'
          example: US
        zip_code:
          type: string
          maxLength: 50
          x-order: '11'
          example: '12345'
        reference_id:
          type: string
          maxLength: 50
          x-order: '12'
          example: REF_1234567890
        attributes:
          type: array
          items:
            $ref: '#/components/schemas/dtos.AttributeRequest'
          x-order: '13'
    dtosv2.OrderContactPatchRequest:
      type: object
      properties:
        id:
          type: string
          x-order: '1'
          example: 12345678-90ab-cdef-1234-567890abcdef
        first_name:
          type: string
          maxLength: 50
          x-order: '2'
          example: John
        last_name:
          type: string
          maxLength: 50
          x-order: '3'
          example: Doe
        email:
          type: string
          x-order: '4'
          example: john.doe@example.com
        phone:
          description: Phone number in E.164 format
          type: string
          x-order: '5'
          example: '+14155552671'
        designation:
          type: string
          maxLength: 50
          x-order: '6'
          example: Sales Manager
        reference_id:
          type: string
          maxLength: 255
          x-order: '7'
          example: 12345678-90ab-cdef-1234-567890abcdef
        attributes:
          type: array
          items:
            $ref: '#/components/schemas/dtos.AttributeRequest'
          x-order: '8'
    dtosv2.OrderLineItemRequest:
      type: object
      required:
        - sku
      properties:
        sku:
          description: >-
            SKU of the product. A SKU that is not in the catalog is accepted as
            an adhoc line item, priced from unit_price and returned with
            is_adhoc true.
          type: string
          maxLength: 255
          x-order: '1'
          example: RUG14754
        quantity:
          type: integer
          x-order: '2'
          example: 10
        shipped_quantity:
          type: integer
          x-order: '3'
          example: 0
        invoiced_quantity:
          type: integer
          x-order: '4'
          example: 0
        cancelled_quantity:
          type: integer
          x-order: '5'
          example: 0
        picked_quantity:
          type: integer
          x-order: '6'
          example: 0
        unit_price:
          description: >-
            Unit price of the product, this is the price of the product before
            any discounts are applied.
          type: number
          x-order: '7'
          example: 100
        discount:
          description: >-
            Discount on the product, this is the discount amount that is applied
            to the product at unit price level.
          type: number
          x-order: '8'
          example: 0
        discount_type:
          description: Discount type can be percentage or value.
          type: string
          enum:
            - percentage
            - value
          x-order: '9'
          example: percentage
        is_adhoc:
          type: boolean
          x-order: '10'
          example: false
        note:
          type: string
          maxLength: 255
          x-order: '11'
          example: Extra packing material
    dtos.AttributeRequest:
      type: object
      required:
        - name
      properties:
        name:
          type: string
          maxLength: 255
          x-order: '1'
          example: '1234567890'
        value:
          description: Omit = no-op; null or "" = unset; non-empty string = set.
          type: string
          x-nullable: 'true'
          x-order: '2'
          example: red
    dtosv2.OrderChargesRequest:
      type: object
      required:
        - name
        - type
      properties:
        name:
          type: string
          maxLength: 255
          x-order: '1'
        type:
          description: >-
            If charge is tax then charge amount will be added to the amount. If
            charge is discount then it will be subtracted from the amount.
          type: string
          enum:
            - tax
            - discount
          x-order: '2'
        value_type:
          description: Omitted defaults to "value" (fixed currency amount).
          type: string
          enum:
            - value
            - percentage
          x-order: '3'
        amount:
          type: number
          x-order: '4'
    dtosv2.PriceListResponse:
      type: object
      properties:
        id:
          type: string
          x-order: '1'
          example: 01f5d171-d3e3-4b2b-bd57-0727194b5bed
        name:
          type: string
          x-order: '2'
          example: Default Price List
        reference_id:
          type: string
          x-order: '3'
          example: PL_1234567890
    dtosv2.OrderLineItemsResponse:
      type: object
      properties:
        id:
          type: string
          x-order: '1'
          example: 01f5d171-d3e3-4b2b-bd57-0727194b5bed
        product_id:
          type: string
          x-order: '2'
          example: '1234567890'
        reference_id:
          type: string
          x-order: '3'
          example: '1234567890'
        sku:
          type: string
          x-order: '4'
          example: '1234567890'
        parent_sku_id:
          description: >-
            SKU of the source product this variant was created from; omitted for
            non-variant items.
          type: string
          x-order: '5'
        quantity:
          type: integer
          x-order: '6'
          example: 10
        unit_price:
          description: >-
            UnitPrice is the per-unit price before any discounts or promotions
            are applied.
          type: number
          x-order: '7'
          example: 100
        final_unit_price:
          description: >-
            FinalUnitPrice is the per-unit price after discounts and promotions
            are applied.
          type: number
          x-order: '8'
          example: 95
        shipped_quantity:
          type: integer
          x-order: '9'
          example: 0
        invoiced_quantity:
          type: integer
          x-order: '10'
          example: 0
        cancelled_quantity:
          type: integer
          x-order: '11'
          example: 0
        picked_quantity:
          type: integer
          x-order: '12'
          example: 0
        discount:
          type: number
          x-order: '13'
          example: 0
        discount_type:
          type: string
          enum:
            - percentage
            - value
          x-order: '14'
          example: percentage
        note:
          type: string
          maxLength: 255
          x-order: '15'
          example: Extra packing material
        is_adhoc:
          type: boolean
          x-order: '16'
          example: false
        applied_promotion:
          allOf:
            - $ref: '#/components/schemas/dtosv2.AppliedPromotionResponse'
          x-order: '17'
        applied_modifiers:
          type: array
          items:
            $ref: '#/components/schemas/dtosv2.OrderLineItemModifierResponse'
          x-order: '18'
    dtosv2.OrderAddressDetailResponse:
      type: object
      properties:
        id:
          type: string
          x-order: '1'
          example: 12345678-90ab-cdef-1234-567890abcdef
        first_name:
          type: string
          x-order: '2'
          example: John
        last_name:
          type: string
          x-order: '3'
          example: Doe
        phone:
          type: string
          x-order: '4'
          example: '+14155552671'
        email:
          type: string
          x-order: '5'
          example: john.doe@example.com
        address_line_1:
          type: string
          x-order: '6'
          example: 123 Main St
        address_line_2:
          type: string
          x-order: '7'
          example: Apt 101
        city:
          type: string
          x-order: '8'
          example: Anytown
        state:
          type: string
          x-order: '9'
          example: CA
        state_info:
          allOf:
            - $ref: '#/components/schemas/dtosv2.StateInfoResponse'
          x-order: '10'
        country:
          type: string
          x-order: '11'
          example: US
        country_info:
          allOf:
            - $ref: '#/components/schemas/dtosv2.CountryInfoResponse'
          x-order: '12'
        zip_code:
          type: string
          x-order: '13'
          example: '12345'
        reference_id:
          type: string
          x-order: '14'
          example: '1234567890'
        attributes:
          type: array
          items:
            $ref: '#/components/schemas/dtosv2.OrderAddressAttributeResponse'
          x-order: '15'
    dtosv2.OrderContactDetailResponse:
      type: object
      properties:
        id:
          type: string
          x-order: '1'
          example: 12345678-90ab-cdef-1234-567890abcdef
        first_name:
          type: string
          x-order: '2'
          example: John
        last_name:
          type: string
          x-order: '3'
          example: Doe
        email:
          type: string
          x-order: '4'
          example: john.doe@example.com
        phone:
          type: string
          x-order: '5'
          example: '+14155552671'
        designation:
          type: string
          x-order: '6'
          example: Sales Manager
        attributes:
          type: array
          items:
            $ref: '#/components/schemas/dtosv2.OrderContactAttributeResponse'
          x-order: '7'
        reference_id:
          type: string
          x-order: '7'
          example: 12345678-90ab-cdef-1234-567890abcdef
    dtosv2.OrderChargesResponse:
      type: object
      properties:
        name:
          type: string
          x-order: '1'
          example: shipping
        type:
          type: string
          x-order: '2'
          example: shipping
        value_type:
          type: string
          enum:
            - percentage
            - value
          x-order: '3'
          example: percentage
        amount:
          type: number
          x-order: '4'
          example: 100
        applied_promotion:
          allOf:
            - $ref: '#/components/schemas/dtosv2.AppliedPromotionResponse'
          x-order: '5'
    dtosv2.ContainerInfoResponse:
      type: object
      required:
        - key
        - unit
        - volume
      properties:
        name:
          type: string
          maxLength: 255
          x-order: '1'
          example: Container Name
        key:
          type: string
          maxLength: 255
          x-order: '2'
          example: 40ft_hig
        unit:
          type: string
          enum:
            - CFT
            - CBM
          x-order: '3'
          example: CFT
        volume:
          type: number
          x-order: '4'
          example: 100
    dtosv2.CustomerConsentResponse:
      type: object
      properties:
        has_consent:
          type: boolean
          x-order: '1'
          example: true
        consent_file_id:
          type: string
          x-order: '2'
          example: '1234567890'
    attribute.AttributeValueResponse:
      type: object
      properties:
        id:
          type: string
          x-order: '1'
          example: 01f5d171-d3e3-4b2b-bd57-0727194b5bed
        name:
          type: string
          x-order: '2'
          example: Color
        value:
          type: string
          x-order: '3'
          example: Red
        created_by:
          type: string
          x-order: '4'
          example: 01f5d171-d3e3-4b2b-bd57-0727194b5bed
        updated_by:
          type: string
          x-order: '5'
          example: 01f5d171-d3e3-4b2b-bd57-0727194b5bed
        created_at:
          type: string
          x-order: '6'
          example: '2021-01-01T00:00:00Z'
        updated_at:
          type: string
          x-order: '7'
          example: '2021-01-01T00:00:00Z'
    dtosv2.UserInfoResponse:
      type: object
      properties:
        id:
          type: string
          x-order: '1'
          example: 01f5d171-d3e3-4b2b-bd57-0727194b5bed
        email:
          type: string
          x-order: '2'
          example: user@example.com
    dtosv2.PaymentCardResponse:
      type: object
      properties:
        id:
          type: string
          x-order: '1'
          example: 01f5d171-d3e3-4b2b-bd57-0727194b5bed
        token:
          type: string
          x-order: '2'
          example: PIuTv1UgBqESZ2KRDixPtDJt
        payment_method_type:
          type: string
          x-order: '3'
          example: card
        brand:
          type: string
          x-order: '4'
          example: visa
        card_type:
          type: string
          x-order: '5'
          example: debit
        last_four_digits:
          type: string
          x-order: '6'
          example: '1111'
        card_exp:
          type: string
          x-order: '7'
          example: 09/25
        external_customer_id:
          type: string
          x-order: '8'
          example: cus_1234567890
    errors.HttpErrorDetails:
      type: object
      properties:
        field:
          type: string
          x-order: '1'
        reason:
          type: string
          x-order: '2'
    dtosv2.AppliedPromotionResponse:
      type: object
      properties:
        id:
          type: string
          x-order: '1'
        name:
          type: string
          x-order: '2'
        reference_id:
          type: string
          x-order: '3'
        promo_code:
          type: string
          x-order: '4'
    dtosv2.OrderLineItemModifierResponse:
      type: object
      properties:
        id:
          type: string
          example: 35ca9dd0-7c73-40b1-b964-051350edb956
        name:
          type: string
          example: Rug Pad
        unique_id:
          type: string
          example: RP
        values:
          type: array
          items:
            $ref: '#/components/schemas/dtosv2.OrderLineItemModifierValueResponse'
    dtosv2.StateInfoResponse:
      type: object
      properties:
        code:
          description: ISO 3166-2 code (country + state), e.g. US-CA
          type: string
          x-order: '1'
          example: US-CA
        short_code:
          description: State/region code within the country, e.g. CA
          type: string
          x-order: '2'
          example: CA
        name:
          description: Display name of the state/region, e.g. California
          type: string
          x-order: '3'
          example: California
    dtosv2.CountryInfoResponse:
      type: object
      properties:
        code:
          description: ISO 3166-1 alpha-3 (3-letter) country code, e.g. USA
          type: string
          x-order: '1'
          example: USA
        short_code:
          description: ISO 3166-1 alpha-2 (2-letter) country code, e.g. US
          type: string
          x-order: '2'
          example: US
        name:
          description: Display name of the country, e.g. United States
          type: string
          x-order: '3'
          example: United States
    dtosv2.OrderAddressAttributeResponse:
      type: object
      properties:
        id:
          type: string
          x-order: '1'
          example: 12345678-90ab-cdef-1234-567890abcdef
        name:
          type: string
          x-order: '2'
          example: Apartment Number
        value:
          type: string
          x-order: '3'
          example: Apt 101
        created_at:
          type: string
          x-order: '4'
          example: '2021-01-01T00:00:00Z'
        updated_at:
          type: string
          x-order: '5'
          example: '2021-01-01T00:00:00Z'
    dtosv2.OrderContactAttributeResponse:
      type: object
      properties:
        id:
          type: string
          x-order: '1'
          example: 12345678-90ab-cdef-1234-567890abcdef
        name:
          type: string
          x-order: '2'
          example: Department
        value:
          type: string
          x-order: '3'
          example: Sales
        created_at:
          type: string
          x-order: '4'
          example: '2021-01-01T00:00:00Z'
        updated_at:
          type: string
          x-order: '5'
          example: '2021-01-01T00:00:00Z'
    dtosv2.OrderLineItemModifierValueResponse:
      type: object
      properties:
        id:
          type: string
          example: 56fd881a-7ea3-44a9-a790-99cfe9c66cc3
        price:
          type: number
          example: 0
        quantity:
          type: integer
          example: 1
        suffix:
          type: string
          example: RP03
        value:
          type: string
          example: RP03 6X9
  securitySchemes:
    ApiKeyAuth:
      description: API Key for authentication
      type: apiKey
      name: X-API-Key
      in: header

````