commercetools icon

commercetools

Interact with the commercetools API. Operations are auto-generated from the official Postman collection.

Actions671

Store Cart → Get Cart in Store by Customer ID

AI-generated

Summary

Retrieve a cart from a specified commercetools store using the customer's ID and store key.

Inputs

  • Store Cart Key (required) — The unique key identifying the cart in the store.
  • Customer ID (required) — The unique identifier of the customer whose cart you want to retrieve.
  • Store Key (required) — The key identifying the store containing the cart.
  • Filters — Optional filters to expand related resources in the response.

Output shape

a single cart object

Returns the cart matching the specified customer ID and store key. Supports optional 'expand' query parameter to include expanded references. Errors are returned as node errors or JSON error messages if continueOnFail is enabled.

Examples

Example 1: Retrieve a customer's cart in a specific store

Provide the store cart key, customer ID, and store key optionally adding 'expand' filters to fetch related resources in the response.

Links

Discussion