Skip to Content
Docs
Orders

List orders

GET/orders

Headers

AuthorizationstringRequired
HTTP Basic auth: your API key as the password, with an empty username. See Authentication.

Query parameters

limitinteger

Objects per page. Defaults to 10.

Default: 10

starting_afterstring

A cursor. Returns objects created after the object with this ID. Mutually exclusive with ending_before.

ending_beforestring

A cursor. Returns objects created before the object with this ID.

created.greater_than_or_equalsstring
created.less_thanstring
statusstring

One of paid, partially_refunded or refunded.

shippingstring

not_shipped for orders with items that ship and no shipped_at yet, or shipped for orders marked shipped. Orders with nothing that ships match neither.

One of not_shipped or shipped.

customer_reference_idstring

Your ID for the customer.

checkout_sessionstring

Returns

A page of orders.

resourcestring
dataarray of objects
Show 31 child attributesHide child attributes
idstring
resourcestring
numberstring

The order number customers see, in your series, for example CL-10478.

statusstring

One of paid, partially_refunded or refunded.

disputedboolean

Whether a dispute is open on its charge.

currencystring

Three-letter ISO currency code, in lowercase.

amount_subtotalinteger
amount_shippinginteger
amount_taxinteger
amount_totalinteger
amount_refundedinteger
line_itemsarray of objects
Show 12 child attributesHide child attributes
idstring

The line item (oli_ on orders, csli_ on sessions).

productstring or null

null for the line made from amount and description.

pricestring or null
price_versioninteger or null
namestring
quantityinteger
unit_amountinteger
amount_subtotalinteger
amount_taxinteger
amount_totalinteger
shippableboolean
quantity_refundedinteger
shipping_detailsobject or null
Show 2 child attributesHide child attributes
Option 1object
Show 4 child attributesHide child attributes
namestring
phonestring or null
addressobject
Show 6 child attributesHide child attributes
line1string
line2string or null
citystring
statestring or null
postal_codestring
countrystring

Two-letter country code (ISO 3166-1 alpha-2).

rateobject
Show 4 child attributesHide child attributes
idstring or null

The rate (shr_), or null for one sent inline.

display_namestring
amountinteger
delivery_estimateobject
Show 2 child attributesHide child attributes
minimumobject
Show 2 child attributesHide child attributes
unitstring

One of business_day, day or week.

valueinteger
maximumobject
Show 2 child attributesHide child attributes
unitstring

One of business_day, day or week.

valueinteger
Option 2null
shipped_atstring or null

When you marked the order shipped, from the Commerce tab or with PATCH /v1/orders/{order_id}. null until then, and for an order with nothing that ships.

customer_detailsobject
Show 5 child attributesHide child attributes
emailstring or null
namestring or null
phonestring or null
addressobject or null

The billing address, at the level collected.

Show 2 child attributesHide child attributes
Option 1object
Show 6 child attributesHide child attributes
line1string
line2string or null
citystring
statestring or null
postal_codestring
countrystring

Two-letter country code (ISO 3166-1 alpha-2).

Option 2null
tax_idsarray of objects
Show 3 child attributesHide child attributes
typestring
valuestring
verificationstring

One of valid, invalid or unavailable.

taxobject
Show 5 child attributesHide child attributes
sourcestring

merchant for your own figures, pay_com for Pay.com's calculation (on your tax setup when you sell, and Pay.com's own when it sells), or none.

One of merchant, pay_com or none.

amountinteger
breakdownarray of objects

By jurisdiction, in the shape tax quotes return.

merchant_amountinteger or null

When Pay.com sells and you sent your own figures with this order or invoice: what they came to. Kept beside Pay.com's figures and never charged. Otherwise null.

merchant_breakdownarray of objects or null

The breakdown you sent, kept beside Pay.com's. Set with merchant_amount.

seller_of_recordobject

Who sells: you, or Pay.com as merchant of record. Fixed when the customer pays, and never changed on renewal.

Show 2 child attributesHide child attributes
typestring

pay_com comes with merchant of record.

One of merchant or pay_com.

entitystring

The selling legal entity (ent_).

customerstring
customer_reference_idstring
chargestring
payment_method_detailsobject

How the order was paid, from its charge.

Show 3 child attributesHide child attributes
typestring

The payment method type, as on the main API's charge.

cardobject or null

For a card, including one in a wallet.

Show 4 child attributesHide child attributes
brandstring
last4string
exp_monthinteger
exp_yearinteger
walletstring or null

The wallet the card was in, or null.

checkout_sessionstring or null
invoicestring or null
subscriptionstring or null

The subscription the order started.

refundsarray of strings

The refunds (rfnd_), oldest first.

receipt_urlstring or null

The order's receipt page on the hosted checkout: its checkout session's url, which shows the order as paid once the session is complete. The receipt email's View receipt opens it. null for an order without a checkout session.

referencestring or null
metadataobject

Your key-value pairs. Up to 50 keys of 40 characters, with string values of up to 500 characters.

createdstring

When the order was paid.

test_modeboolean
has_moreboolean

Errors

400
The request is invalid.
401
The API key is missing or wrong.
403
The key's permissions don't allow this route.
Was this page helpful?