commercetools icon

commercetools

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

Actions671

Customer → Check if Customer exists by Key

AI-generated

Summary

Check the existence of a commercetools customer by their unique customer key using a HEAD request.

Inputs

  • Customer Key (required) — The unique key identifier of the customer to check for existence.

Output shape

a single JSON object indicating existence, HTTP status code, and the URL queried

Returns an object with 'exists' (true if customer exists, false otherwise), 'statusCode' (HTTP response code), and 'url' (the API endpoint called). Throws an error for unexpected failures.

Examples

Example 1: Check if a customer exists with key 'customer123'

Set resource to 'Customer', operation to 'Check if Customer exists by Key', and provide 'customer123' as the Customer Key.

Links

Discussion