Skip to main content
POST
commerce.order.get

Authorizations

Authorization
string
header
required

API key: sk_live_…

Headers

Idempotency-Key
string

Optional. A retry with the same key returns the stored result.

Maximum string length: 255
Pramaan-Account
string

Optional. One of your account ids (GET /v1/accounts): run on that account, whatever your routing rules say. The response header X-Pramaan-Account names the account that ran.

Pramaan-End-User
string

Optional. Your own tag for your end user: a sticky: end_user rule keeps them on the account that first served them.

Maximum string length: 256
Pramaan-End-User-Group
string

Optional. Your end user's group, matched by rules with endUserGroup.

Maximum string length: 64

Body

application/json
orderId
string
required

Order id from commerce.order.create or commerce.orders.search.

Required string length: 1 - 255
Pattern: ^[A-Za-z0-9_-]+$
includeFulfillment
boolean
default:false

Return fulfillment recipient contact details and shipping address.

Response

The result

orderId
string
required

Order id in your connected commerce account.

locationId
string
required

Location associated with the order.

status
enum<string>
required

Current order state.

Available options:
open,
completed,
canceled,
draft,
unknown
lineItems
object[]
required

Order line items.

customerId
string

Customer associated with the order.

version
integer

Current version for updates.

Required range: -9007199254740991 <= x <= 9007199254740991
createdAt
string

Creation time, ISO 8601.

updatedAt
string

Last update time, ISO 8601.

total
object

Order total, including tax.

tax
object

Total taxes.

discount
object

Total discounts.

serviceCharge
object

Total service charges.

fulfillments
object[]

Selected fulfillment contact details; only returned when requested.