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 Key

AI-generated

Summary

Retrieve a specific cart from a particular store in commercetools using the cart's unique key and the store's unique key.

Inputs

  • Store Key (required) — The unique key that identifies the store within commercetools.
  • Cart Key (required) — The unique key identifying the cart within the specified store.
  • Expand — Optional query parameter to expand referenced objects within the returned cart for more detailed data.

Output shape

a single cart object in JSON format representing the cart identified by the specified cart key in the given store.

Returns an error if the cart or store does not exist. Supports optional 'expand' query parameter to retrieve expanded related resources. No pagination is applicable as the operation returns one cart.

Examples

Example 1: Retrieve a cart by key from a store

Provide valid 'Store Key' and 'Cart Key' parameters; optionally set 'Expand' to retrieve related referenced entities for detailed data.

Links

Discussion