Retrieving a cart's details by criteria
GET {{api_url}}/cart/{{tenant}}/carts?type=shopping&siteCode=main&create=false&saasToken={{customer_token}}
Retrieves a cart's details based on the store's site code and criteria such as session ID or customer ID.
Required scopes
cart.cart_manage
Note: Only required if the
access_token
used to authorize the request and thecustomerId
passed in the query parameter belong to different customers.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
type | string | ||
siteCode | string | ||
create | boolean | ||
saasToken | string | ||
sessionId | number |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
saas-token | string |
RESPONSES
status: OK
{"id":"612c9ae63cff1d66f699b691","yrn":"{cartYrn}","customerId":"87413250","currency":"EUR","siteCode":"main","sessionId":"YxXRjn9zSFM7gMq5dtNKarX7xYkIMV","metadata":{"createdAt":"2021-08-30T08:46:30.780Z","modifiedAt":"2021-08-30T08:46:30.786Z","version":1},"leadTime":0}