Orders
Orders record a completed sale for compliance purposes. You can create an order
from a previously calculated cart, or create one directly from a full
order payload, then retrieve or update it later. All four operations act on a
single connected merchant identified by merchantId.
All endpoints use POST and the X-API-KEY header. See
Merchant Transactions for the shared conventions, error shapes,
and usage rules. The Address, Line item, and Discounts object schemas are
shared with Cart Tax Calculation.
Create an order from a cart
Turn a cart you calculated with Cart Tax Calculation into a recorded order.
Returns the recorded order.
Create an order
Record an order directly, without a prior cart calculation. The tax amounts on each line item are the amounts your checkout collected.
Returns the recorded order.
Get an order
Retrieve a recorded order.
This is a read and is safe to retry. Returns the order.
Update an order
Modify a recorded order. Currently the completedDate can be set, which marks
the order shipped and creates the tax liability.
Updates overwrite the fields you send. Because a retried update can clobber a concurrent change, updates are not retried automatically. See Retries and idempotency.
Returns the updated order.
Order response
All four operations return the order record: