Skip to main content
PUT
Update orders (PUT)

Authorizations

Authorization
string
header
required

Bearer token authentication

Path Parameters

id
string
required

Body

application/json
order
object
required

The attributes to change. Send at least one of them. A body without the order key is also accepted through Rails' JSON parameter wrapping, but the wrapped form is the contract.

Response

Success

A single order as returned by the company order detail, update and find-by-external-id operations.

price_inclusive_of_tax
boolean | null
required
deprecated

Whether the prices are inclusive of tax (deprecated, use totals.price_inclusive_of_tax — this field is not gated on the tax strategy and can disagree with the served totals)

price_inclusive_tax_name
string | null
required
deprecated

The tax name shown beside an inclusive price (deprecated, use totals.tax_label)

totals
object
required

Display-ready totals breakdown. Decomposes the inclusive-tax figures so clients render the net subtotal, item tax, shipping net and shipping VAT without re-deriving them. Each money component carries a raw boundary-rounded decimal string plus its currency-formatted _in_currency sibling. Deliberately omits a grand total — the authoritative charge stays on the sibling total/amount fields.

id
integer
first_name
string | null
last_name
string | null
email
string | null
order_number
string | null

The order's human-readable number. Null only on legacy orders stored without one.

source
string
amount
string

Decimal string.

amount_in_base
string

Decimal string.

base_to_currency_rate
string | null
note
string | null
currency_code
string | null

The order's ISO currency code. Null only on legacy orders stored without one.

created_at
string<date-time>
updated_at
string<date-time>
metadata
object
token
string
order_status
string
fulfillment_status
string
financial_status
string
warehouse_id
integer | null
points_applied
integer
points_applied_decimal
string

Points applied to this order as a four-decimal string

Pattern: ^-?\d+\.\d{4}$
Example:

"120.0000"

points_applied_amount
number
points_applied_amount_in_currency
string
order_total_after_points_redemption
number
total_points_credited
integer
total_points_credited_decimal
string

Points credited from this order as a four-decimal string

Pattern: ^-?\d+\.\d{4}$
Example:

"120.0000"

free_shipping
boolean
discount_codes
string[]
created_subscriptions
string[]
currency_symbol
string
items_count
integer
quantity_count
integer
external_id
string | null
shipping_in_base
string
tax_in_base
string

Decimal string.

subtotal_in_base
string

Decimal string.

enrollment_fee_in_base
string

Decimal string.

discount_in_base
string

Decimal string.

sale_date
string<date-time> | null
order_on_behalf_of
boolean
total_display_amount
string
total_cv
string<decimal>
total_qv
string<decimal>
customer
object
shipping_address
object | null
billing_address
object | null
items
object[]
ship_to
object | null
bill_to
object | null
subscriptions
object[]
subscription
object | null
current_adjustment_total
string

Decimal string.

current_subtotal
string
current_discount
string
current_tax
string
current_shipping
string
current_amount
string
current_cv
string<decimal> | null
current_qv
string<decimal> | null
adjustments
object[]
company_country_tax_inclusive_pricing
boolean | null

Raw tax_inclusive_pricing override on the company's country record for this order's country, or null when there is none. Not gated on the tax strategy and not a historical record, so it can disagree with the served amounts; read totals.price_inclusive_of_tax for the flag that matches them.

item_refunds_allowed
boolean
subtotal
string
transaction_fee
string
enrollment_fee
string
discount
string
cart_token
string | null
sub_total_in_currency
string
tax_in_currency
string
discount_in_currency
string
payment_method
object | null

Null when the order has no payment method and no recorded cash payment. Cash an admin recorded serves payment_type "cash", payment_title and details with the transaction_id and receipt_number. A stored card serves the flat card keys, id through logo_url. Every other integration (PayPal, Affirm, Bread, Klarna, wallets and the rest) serves payment_type, payment_title and details instead; Apple Pay, Google Pay and a card without a stored card also serve source.

payment_status
string
is_cancellable
boolean
is_refundable
boolean
points_refunded
boolean
cancel_context
enum<string> | null

Which warning to show before offering to cancel the order, or null for none. inflight_capture means a capture is in flight, so the order cannot be cancelled until it settles. Null when the order is cancelled or archived, or cannot be cancelled for any other reason.

Available options:
inflight_capture,
no_payment,
pending_hold,
void_authorization,
null
warehouse_name
string | null
tax_exempt_at_order_time
boolean

Whether the buyer was tax-exempt when the order was placed. Read from the order-time snapshot, so later changes to the buyer's tax_exempt flag do not alter it. False for legacy orders without a snapshot.

sales_tax_id_at_order_time
string | null

The buyer's sales tax ID captured when the order was placed, or null when the buyer had none (or the order pre-dates the snapshot).

digital_only
boolean

Whether the order contains only digital (non-physical) products. True for an order with no line items, which likewise has nothing to ship.

rep
object | null
refunds
object[]
country
object | null

The order's country (its own country, else the ship-to address country, else the company default). Null when none resolves.

metafields
object[]
agreement_acceptances
object[]
status
string | null
tax
string

Decimal string.

shipping
string

Quoted shipping rate, as a decimal string. The stored quote's price when one exists, else the order's shipping amount. Not reduced by free shipping; shipping_cost is what was charged.

shipping_cost
string

Shipping amount actually charged, as a decimal string; "0.0" when the order has free shipping. shipping is the quoted rate when one was stored.