commercetools icon

commercetools

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

Actions671

Cart → Check if Cart exists by ID

AI-generated

Summary

Check if a cart exists in commercetools by sending a HEAD request to the cart's endpoint using the provided Cart ID.

Inputs

  • Cart ID (required) — The unique identifier of the cart to check for existence.

Output shape

a single JSON object

Returns an object indicating existence with properties: 'exists' (boolean), 'statusCode' (HTTP response code), and 'url' (the request URL). If the cart exists, 'exists' is true and 'statusCode' is 200; if not, 'exists' is false and 'statusCode' is 404. Other HTTP errors will cause the node to throw an error.

Links

Discussion