commercetools icon

commercetools

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

Actions671

Cart → Get Cart by ID

AI-generated

Summary

Retrieve a specific cart from the commercetools platform by its Cart ID, optionally expanding referenced objects.

Inputs

  • Cart ID (required) — The unique identifier of the cart to retrieve.
  • Expand — Optional query parameter to expand referenced objects within the cart response (e.g., customer details).

Output shape

a single cart object in JSON format containing the cart data as returned by the commercetools API

If the cart with the specified ID exists, the node returns its full data. The optional 'Expand' filter modifies the returned data by expanding referenced fields. Errors thrown if the cart does not exist or request fails, unless 'Continue On Fail' is enabled in the node configuration.

Examples

Example 1: Retrieve cart with ID 'abc123' including expanded customer information

Set 'Cart ID' to 'abc123' and 'Expand' to 'customer' in Filters.

Links

Discussion