commercetools icon

commercetools

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

Actions671

Associate Cart → Get Cart in BusinessUnit by ID as Associate

AI-generated

Summary

Retrieve the details of a specific cart by its ID within a given associate's business unit in commercetools.

Inputs

  • Associate Cart Key (required) — The key identifying the business unit associate's cart resource (resourceKey).
  • Cart ID (required) — The unique identifier of the cart to retrieve (secondaryId).
  • Associate ID (required) — The identifier of the associate owning the cart (associateId).
  • Filters — Optional query parameters to customize the response, such as 'expand' to include referenced objects.

Output shape

a single JSON object representing the cart.

Returns the full cart object if found. The operation throws an error if the cart does not exist or access is denied. Optional filters can modify the returned data via query parameters.

Examples

Example 1: Retrieve a cart with ID 'abc123' for associate 'associate789' in the business unit cart resource 'keyUnit456', expanding referenced objects.

Set 'Associate Cart Key' to 'keyUnit456', 'Cart ID' to 'abc123', 'Associate ID' to 'associate789', and add 'expand' filter as needed.

Links

Discussion