List orders
/ordersHeaders
AuthorizationstringRequiredQuery parameters
limitintegerObjects per page. Defaults to 10.
starting_afterstringA cursor. Returns objects created after the object with this ID. Mutually exclusive with ending_before.
ending_beforestringA cursor. Returns objects created before the object with this ID.
created.greater_than_or_equalsstringcreated.less_thanstringstatusstringshippingstringnot_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.
customer_reference_idstringYour ID for the customer.
checkout_sessionstringpayment_linkstringReturns
A page of orders.
resourcestringdataarray of objectsShow 31 child attributesHide child attributes
idstringresourcestringnumberstringThe order number customers see, in your series, for example CL-10478.
statusstringdisputedbooleanWhether a dispute is open on its charge.
currencystringThree-letter ISO currency code, in lowercase.
amount_subtotalintegeramount_shippingintegeramount_taxintegeramount_totalintegeramount_refundedintegerline_itemsarray of objectsShow 12 child attributesHide child attributes
idstringThe line item (oli_ on orders, csli_ on sessions).
productstring or nullnull for the line made from amount and description.
pricestring or nullprice_versioninteger or nullnamestringquantityintegerunit_amountintegeramount_subtotalintegeramount_taxintegeramount_totalintegershippablebooleanquantity_refundedintegershipping_detailsobject or nullShow 2 child attributesHide child attributes
Option 1objectShow 4 child attributesHide child attributes
namestringphonestring or nulladdressobjectShow 6 child attributesHide child attributes
line1stringline2string or nullcitystringstatestring or nullpostal_codestringcountrystringTwo-letter country code (ISO 3166-1 alpha-2).
rateobjectShow 4 child attributesHide child attributes
idstring or nullThe rate (shr_), or null for one sent inline.
display_namestringamountintegerdelivery_estimateobjectShow 2 child attributesHide child attributes
minimumobjectShow 2 child attributesHide child attributes
unitstringvalueintegermaximumobjectShow 2 child attributesHide child attributes
unitstringvalueintegerOption 2nullshipped_atstring or nullWhen 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_detailsobjectShow 5 child attributesHide child attributes
emailstring or nullnamestring or nullphonestring or nulladdressobject or nullThe billing address, at the level collected.
Show 2 child attributesHide child attributes
Option 1objectShow 6 child attributesHide child attributes
line1stringline2string or nullcitystringstatestring or nullpostal_codestringcountrystringTwo-letter country code (ISO 3166-1 alpha-2).
Option 2nulltax_idsarray of objectsShow 3 child attributesHide child attributes
typestringvaluestringverificationstringtaxobjectShow 5 child attributesHide child attributes
sourcestringmerchant 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.
amountintegerbreakdownarray of objectsBy jurisdiction, in the shape tax quotes return.
merchant_amountinteger or nullWhen 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 nullThe breakdown you sent, kept beside Pay.com's. Set with merchant_amount.
seller_of_recordobjectWho 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
typestringpay_com comes with merchant of record.
entitystringThe selling legal entity (ent_).
customerstringcustomer_reference_idstringchargestringpayment_method_detailsobjectHow the order was paid, from its charge.
Show 3 child attributesHide child attributes
typestringThe payment method type, as on the main API's charge.
cardobject or nullFor a card, including one in a wallet.
Show 4 child attributesHide child attributes
brandstringlast4stringexp_monthintegerexp_yearintegerwalletstring or nullThe wallet the card was in, or null.
checkout_sessionstring or nullpayment_linkstring or nullinvoicestring or nullsubscriptionstring or nullThe subscription the order started.
refundsarray of stringsThe refunds (rfnd_), oldest first.
receipt_urlstring or nullThe 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 nullmetadataobjectYour key-value pairs. Up to 50 keys of 40 characters, with string values of up to 500 characters.
createdstringWhen the order was paid.
test_modebooleanhas_morebooleanErrors
400401403