Orders handle the purchases of end customers. You can create, retrieve, update, and list all orders.
Returns a list of orders
get
Get all orders.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
endingBeforestringOptional
A cursor for use in pagination. The endingBefore parameter is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with xyz your subsequent calls can include endingBefore=xyz in order to fetch the previous page of the list.
startingAfterstringOptional
A cursor for use in pagination. The startingAfter parameter is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with xyz, your subsequent calls can include startingAfter=xyz in order to fetch the next page of the list.
limitinteger · min: 1 · max: 100Optional
A limit on the number of objects returned. Limit can range between 1 and 100, and the default is 10.
idsstring[]Optional
Only return objects with these IDs.
upstreamIdsstring[]Optional
Only return objects with these upstreamIds.
statestringOptional
Only return objects in the given state
customerIdstringOptional
Only return orders for the given customer
checkoutIdstringOptional
Only return orders for the given checkout
applicationIdstringOptional
Only return orders for the given application
emailstringOptional
Only return orders with the given email
currencystringOptional
Only return orders in the given currency
skuIdstringOptional
Only return orders containing this sku
fraudStatestringOptional
Only return orders in the given fraudState
browserIpstringOptional
Only return checkouts with this browser IP
chargeTypestringOptional
Only return orders with this charge type
subscriptionIdstringOptional
Only return orders with this subscription identifier
refundedAmountstringOptional
Only return orders with this refunded amount
localestringOptional
Only return checkouts with this locale
customerTypestringOptional
Only return checkouts with this customer type
Responses
200
200 OK
application/json
400
400 Bad Request
application/json
401
401 Unauthorized
application/json
403
403 Forbidden
application/json
405
405 Method Not Allowed
application/json
406
406 Not Acceptable
application/json
408
408 Request Timeout
application/json
429
429 Too Many Requests
application/json
500
500 Internal Server Error
application/json
502
502 Bad Gateway Error
application/json
503
503 Service Unavailable Error
application/json
504
504 Gateway Timeout Error
application/json
get
/orders
Creates a new order
post
Creates a new order.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
checkoutIdstringOptional
The unique identifier of a Checkout.
Example: 5823594809
customerIdstringOptional
The identifier of the Customer associated with the Checkout.