commercetools icon

commercetools

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

Actions671

Customer → Check if Customer exists by Query Predicate

AI-generated

Summary

Check the existence of a commercetools Customer by issuing a HEAD request using a custom query predicate filter.

Inputs

  • Filters — Optional collection of filter parameters to specify the query predicate to narrow down the customer search; currently supports the 'Where' string predicate.

Output shape

a JSON object indicating whether the customer exists, including fields 'exists' (boolean), 'statusCode' (HTTP status code), and 'url' (the endpoint called).

The operation performs a HEAD HTTP request to determine existence based on the provided query predicate; if the response is 404, it returns exists=false; any other HTTP errors are thrown as node API errors.

Links

Discussion