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 ID

AI-generated

Summary

Retrieve a specific cart by its ID within a specified store from commercetools.

Inputs

  • Store Key (required) — The unique identifier key of the store in which the cart exists.
  • Cart ID (required) — The unique identifier of the cart to retrieve.
  • Filters — Optional query parameters to customize the returned data, such as 'expand' to include related resources.

Output shape

a single cart record as a JSON object

Returns the full JSON representation of the cart identified by the given Cart ID within the specified store. Supports optional expansion of related data via query parameters. Errors on non-existent cart or store.

Examples

Example 1: Get Cart in Store by ID

Provide 'Store Key' and 'Cart ID' to retrieve the exact cart record from that store.

Links

Discussion