Convert to order
Convert the current user's cart to an order.
Response
Cart was converted successfully.
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 8 of the 41 revisions of this API.5634
- ●
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 status400response-body-type-changed
- ▲
the response's body type/format changed from
/toobject/for status401response-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 status400response-body-all-of-removed
- ○
removed
ErrorResponsefrom the response bodyallOflist for the response status401response-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 the400statusresponse-optional-property-added
- ○
added the optional property
detailsto the response with the401statusresponse-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 the400statusresponse-optional-property-added
- ○
added the optional property
paramto the response with the401statusresponse-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 the400statusresponse-required-property-added
- ○
added the required property
codeto the response with the401statusresponse-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 the400statusresponse-required-property-added
- ○
added the required property
messageto the response with the401statusresponse-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 the400statusresponse-required-property-added
- ○
added the required property
typeto the response with the401statusresponse-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
- ▲
- ▲
removed the request body
request-body-removed
- ▲
- ○
added optional request body
request-body-added-optional
- ○
- ○
added the non-success response with the status
400response-non-success-status-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
- ○