commercetools icon

commercetools

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

Actions671

Associate Cart → Check if Cart exists in BusinessUnit by Query Predicate as Associate

AI-generated

Summary

Check if a cart exists within a commercetools business unit as a specified associate by providing a query predicate filter.

Inputs

  • Associate Cart Key (required) — The unique key identifying the associate cart within the business unit.
  • Associate ID (required) — The unique identifier of the associate acting within the business unit context.
  • Filters — Optional query predicate string to filter carts matching specific conditions.

Output shape

An object indicating whether the cart exists, including fields such as 'exists' (boolean), 'statusCode' (numeric HTTP status), and the requested URL string.

The operation performs a HEAD request to check for existence, returning 'exists: true' if found (HTTP 200) or 'exists: false' if not found (HTTP 404). Other errors result in exceptions.

Links

Discussion