Skip to main content
Skip to main content

AdminPostOrdersOrderSwapsReq

internal.internal.AdminPostOrdersOrderSwapsReq

Schema

AdminPostOrdersOrderSwapsReq type: object required:

  • return_items properties: return_items: description: The Line Items to associate with the swap's return. type: array items: type: object required:
        - item_id
    - quantity
    properties:
    item_id:
    description: The ID of the Line Item that will be returned.
    type: string
    quantity:
    description: The number of items that will be returned
    type: integer
    reason_id:
    description: The ID of the Return Reason to use.
    type: string
    note:
    description: An optional note with information about the Return.
    type: string
    return_shipping: description: The shipping method associated with the swap's return. type: object required:
      - option_id
    properties:
    option_id:
    type: string
    description: The ID of the Shipping Option to create the Shipping Method from.
    price:
    type: integer
    description: The price to charge for the Shipping Method.
    additional_items: description: The new items to send to the Customer. type: array items: type: object required:
        - variant_id
    - quantity
    properties:
    variant_id:
    description: The ID of the Product Variant.
    type: string
    quantity:
    description: The quantity of the Product Variant.
    type: integer
    custom_shipping_options: description: An array of custom shipping options to potentially create a Shipping Method from to send the additional items. type: array items: type: object required:
        - option_id
    - price
    properties:
    option_id:
    description: The ID of the Shipping Option.
    type: string
    price:
    description: The custom price of the Shipping Option.
    type: integer
    no_notification: description: If set to true, no notification will be sent to the customer related to this Swap. type: boolean allow_backorder: description: If set to true, swaps can be completed with items out of stock type: boolean default: true

Properties

additional_itemsAdditionalItem[]
allow_backorderboolean
custom_shipping_optionsCustomShippingOption[]
no_notificationboolean
return_itemsReturnItem[]Required
return_location_idstring
return_shippingReturnShipping
sales_channel_idstring
Was this section helpful?