Retrieving a cart's details by criteria

GET {{api_url}}/cart/{{tenant}}/carts?type=shopping&siteCode=main&create=false&saasToken={{customer_token}}&customerId=87413250

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 the customerId passed in the query parameter belong to different customers.

Request Params

KeyDatatypeRequiredDescription
typestring
siteCodestring
createboolean
saasTokenstring
sessionIdnumber
customerIdnumber

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

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}