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 Key as Associate

AI-generated

Summary

Check whether a cart exists in a commercetools business unit for a specific associate by using the cart's key.

Inputs

  • Associate Cart Key (required) — The key identifying the associate cart resource (context resource key).
  • Associate ID (required) — The ID of the associate within the business unit to scope the cart check.
  • Cart Key (required) — The key of the cart to check for existence within the associate's business unit.

Output shape

a single JSON object indicating existence status along with HTTP status code and the request URL

Returns an object with a boolean 'exists' property, HTTP 'statusCode', and 'url' used for the check. Does not return the cart data itself, only existence confirmation via HTTP HEAD request. Errors other than 404 result in exceptions.

Links

Discussion