Get order
Get the order with the given ID.
Path parameters
ID of the order to get.
Response
Order information.
Example response
{
"data": {
"id": "ord_XXXXXXXXXXXXXXXXXXXXXXXXX",
"index": 0,
"shipping": {
"name": "John Doe",
"street1": "123 Main St",
"street2": "Apt 1",
"city": "Anytown",
"province": "CA",
"zip": "12345",
"country": "US",
"phone": "5555555555"
},
"amount": {
"subtotal": 4400,
"shipping": 800
},
"created": "2024-06-29T19:36:19.000Z",
"tracking": {
"service": "USPS Ground Advantage",
"number": "92346903470167000000000019",
"url": "https://tools.usps.com/go/TrackConfirmAction_input?origTrackNum=92346903470167000000000019",
"status": "DELIVERED",
"statusDetails": "Your shipment has been delivered.",
"statusUpdatedAt": "2025-04-08T12:00:00.000Z"
},
"items": [
{
"id": "itm_XXXXXXXXXXXXXXXXXXXXXXXXX",
"amount": 4400,
"quantity": 2,
"productVariantID": "var_XXXXXXXXXXXXXXXXXXXXXXXXX"
}
]
}
}Changes
Changed in 9 of the 41 revisions of this API.10645
- ●
added the new
DELIVEREDenum value to thedata/allOf[Order]/tracking/statusresponse property for the response status200response-property-enum-value-added
- ●
added the new
FAILUREenum value to thedata/allOf[Order]/tracking/statusresponse property for the response status200response-property-enum-value-added
- ●
added the new
PRE_TRANSITenum value to thedata/allOf[Order]/tracking/statusresponse property for the response status200response-property-enum-value-added
- ●
added the new
RETURNEDenum value to thedata/allOf[Order]/tracking/statusresponse property for the response status200response-property-enum-value-added
- ●
added the new
TRANSITenum value to thedata/allOf[Order]/tracking/statusresponse property for the response status200response-property-enum-value-added
- ●
added the new
UNKNOWNenum value to thedata/allOf[Order]/tracking/statusresponse property for the response status200response-property-enum-value-added
- ●
- ○
added the required property
data/allOf[Order]/createdto the response with the200statusresponse-required-property-added
- ○
- ○
added the optional property
data/allOf[Order]/tracking/statusto the response with the200statusresponse-optional-property-added
- ○
added the optional property
data/allOf[Order]/tracking/statusDetailsto the response with the200statusresponse-optional-property-added
- ○
added the optional property
data/allOf[Order]/tracking/statusUpdatedAtto the response with the200statusresponse-optional-property-added
- ○
- ▲
the response's body type/format changed from
/toobject/for status401response-body-type-changed
- ▲
the response's body type/format changed from
/toobject/for status404response-body-type-changed
- ▲
the response's body type/format changed from
/toobject/for status429response-body-type-changed
- ▲
the response's body type/format changed from
/toobject/for status500response-body-type-changed
- ○
removed
ErrorResponsefrom the response bodyallOflist for the response status401response-body-all-of-removed
- ○
removed
ErrorResponsefrom the response bodyallOflist for the response status404response-body-all-of-removed
- ○
removed
ErrorResponsefrom the response bodyallOflist for the response status429response-body-all-of-removed
- ○
removed
ErrorResponsefrom the response bodyallOflist for the response status500response-body-all-of-removed
- ○
added the optional property
detailsto the response with the401statusresponse-optional-property-added
- ○
added the optional property
detailsto the response with the404statusresponse-optional-property-added
- ○
added the optional property
detailsto the response with the429statusresponse-optional-property-added
- ○
added the optional property
detailsto the response with the500statusresponse-optional-property-added
- ○
added the optional property
paramto the response with the401statusresponse-optional-property-added
- ○
added the optional property
paramto the response with the404statusresponse-optional-property-added
- ○
added the optional property
paramto the response with the429statusresponse-optional-property-added
- ○
added the optional property
paramto the response with the500statusresponse-optional-property-added
- ○
added the required property
codeto the response with the401statusresponse-required-property-added
- ○
added the required property
codeto the response with the404statusresponse-required-property-added
- ○
added the required property
codeto the response with the429statusresponse-required-property-added
- ○
added the required property
codeto the response with the500statusresponse-required-property-added
- ○
added the required property
messageto the response with the401statusresponse-required-property-added
- ○
added the required property
messageto the response with the404statusresponse-required-property-added
- ○
added the required property
messageto the response with the429statusresponse-required-property-added
- ○
added the required property
messageto the response with the500statusresponse-required-property-added
- ○
added the required property
typeto the response with the401statusresponse-required-property-added
- ○
added the required property
typeto the response with the404statusresponse-required-property-added
- ○
added the required property
typeto the response with the429statusresponse-required-property-added
- ○
added the required property
typeto the response with the500statusresponse-required-property-added
- ▲
- ▲
the response's body type/format changed from
object/to/for status404response-body-type-changed
- ▲
removed the required property
errorfrom the response with the404statusresponse-required-property-removed
- ○
added
ErrorResponseto the response bodyallOflist for the response status404response-body-all-of-added
- ○
added the non-success response with the status
401response-non-success-status-added
- ○
added the non-success response with the status
429response-non-success-status-added
- ○
added the non-success response with the status
500response-non-success-status-added
- ▲
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
- ▲
- ▲
the
data/allOf[Order]/shippingresponse's property type/format changed from/toobject/for status200response-property-type-changed
- ○
added the optional property
data/allOf[Order]/shipping/phoneto the response with the200statusresponse-optional-property-added
- ○
added the optional property
data/allOf[Order]/shipping/provinceto the response with the200statusresponse-optional-property-added
- ○
added the optional property
data/allOf[Order]/shipping/street2to the response with the200statusresponse-optional-property-added
- ○
removed
Addressfrom thedata/allOf[Order]/shippingresponse propertyallOflist for the response status200response-property-all-of-removed
- ○
added the required property
data/allOf[Order]/shipping/cityto the response with the200statusresponse-required-property-added
- ○
added the required property
data/allOf[Order]/shipping/countryto the response with the200statusresponse-required-property-added
- ○
added the required property
data/allOf[Order]/shipping/nameto the response with the200statusresponse-required-property-added
- ○
added the required property
data/allOf[Order]/shipping/street1to the response with the200statusresponse-required-property-added
- ○
added the required property
data/allOf[Order]/shipping/zipto the response with the200statusresponse-required-property-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
added the new path request parameter
idnew-request-path-parameter
- ▲
removed the required property
resultfrom the response with the200statusresponse-required-property-removed
- ○
api operation id
getOrderByIdwas addedapi-operation-id-added
- ○
api tag
Ordersaddedapi-tag-added
- ○
added the required property
datato the response with the200statusresponse-required-property-added
This revision also has 4 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲