Skip to main content
PATCH
Update a sales order

Authorizations

Authorization
string
header
required

Authenticate using a bearer token. To create a token, navigate to /settings/api-tokens and click Create API Token.

Path Parameters

id
integer
required

ID of the sales order to update

Body

application/json

Sales order partial update. All fields are optional — only send fields to change.

order_status
string | null

Order status. Valid values: pending, shipped, fulfilled, cancelled, awaiting_shipment, partially_shipped, on_hold, backorder. Status changes are routed through the canonical sales-order update flow, so transitioning to shipped creates a shipment (and fires the associated downstream events). Provide tracking_number and carrier_code in the same request to stamp them onto that shipment. A status that cannot be applied returns 400.

customer_email
string<email> | null

Customer email address

customer_username
string | null

Customer username

customer_po_number
string | null

Customer purchase order number

bill_to
object | null

Billing address. If provided, name is required.

ship_to
object | null

Shipping address. If provided, name is required.

ship_date
string<date> | null

Ship date

hold_until_date
string<date> | null

Hold until date

ship_by_date
string<date> | null

Ship by date

earliest_ship_date
string<date> | null

Earliest ship date

requested_shipping_service
string | null

Requested shipping service

carrier_code
string | null

Carrier code. When order_status is set to shipped, this carrier is applied to the shipment created by the status change.

tracking_number
string | null

Tracking number. When order_status is set to shipped, this tracking number is applied to the shipment created by the status change.

Maximum string length: 255
service_code
string | null

Service code

customer_notes
string | null

Customer-facing notes

internal_notes
string | null

Internal notes

gift_message
string | null

Gift message

gift
boolean

Whether the order is a gift

international_options
object[] | null

International shipping options

custom_fields
null[] | null

Custom field values

tags
string[] | null

Array of tag strings

Response

Successful response

data
object