Retrieve a Cart
Use the SDK for application integration. This read-only reference covers Commerce, Customer Auth, Membership and Events.
All HTTP operationsOne canonical transport with credential-specific request and response variants. Server bodies require the admitted server credential; browser/customer bodies retain their capability boundary.
X-Publishable-Key<token>Tenant publishable key for authentication (sent via X-Publishable-Key header)
application/json- body
cartToken*string1 <= length <= 512Retrieve a Cart result
application/json- response
id*string1 <= lengthstatus*string"active""completed""abandoned"revision*integer0 <= value <= 9007199254740991currency*string^[A-Z]{3}$market*subtotalMinor*integer0 <= value <= 9007199254740991discountMinor*integer0 <= value <= 9007199254740991estimatedTotalMinor*integer0 <= value <= 9007199254740991discountCodes*array<>attributes*array<>Attribute keys must be unique. OpenAPI 3.0 cannot express uniqueness by one object property, so servers enforce this rule.
items <= 50items*array<>expiresAt*stringdate-timecreatedAt*stringdate-timeupdatedAt*stringdate-timeExamples may be generated from schemas; they are illustrative, not recorded successful API calls. Example snippets may omit required authentication headers.
curl -X POST 'https://api.01.software/api/carts/retrieve' \ -H 'Content-Type: application/json' \ -d '{ "cartToken": "string"}'{ "id": "string", "status": "active", "revision": 0, "currency": "string", "market": { "id": "string", "handle": "string", "name": "string" }, "subtotalMinor": 0, "discountMinor": 0, "estimatedTotalMinor": 0, "discountCodes": [ { "code": "string", "applicable": true } ], "attributes": [ { "key": "string", "value": "string" } ], "items": [ { "id": "string", "product": { "id": "string", "title": "string", "handle": "string", "image": "string" }, "variant": { "id": "string", "title": "string", "handle": "string", "image": "string" }, "admissions": [ { "eventId": "string", "occurrenceId": "string", "admissionTypeId": "string" } ], "quantity": 1, "unitPriceMinor": 0, "discountMinor": 0, "estimatedLineTotalMinor": 0, "requiresShipping": true } ], "expiresAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}Credential variants
Credential-specific requirements from the public OpenAPI projection: Full response schemas appear in Response Body.
[
{
"security": [
{
"publishableKey": []
},
{
"publishableKey": [],
"customerBearerAuth": []
}
],
"requestSchema": {
"type": "object",
"additionalProperties": false,
"required": [
"cartToken"
],
"properties": {
"cartToken": {
"type": "string",
"minLength": 1,
"maxLength": 512
}
}
},
"responseSchema": "PublicCart"
},
{
"security": [
{
"publishableKey": [],
"serverSecretKey": []
}
],
"requestSchema": {
"type": "object",
"additionalProperties": false,
"required": [
"cartToken"
],
"properties": {
"cartToken": {
"type": "string",
"minLength": 1,
"maxLength": 512
}
}
},
"responseSchema": "PublicCart"
}
]