commercetools icon

commercetools

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

Actions671

Zone → Check if Zone exists by Key

AI-generated

Summary

Check for the existence of a Zone in commercetools by performing a HEAD request using the Zone's unique key.

Inputs

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

Output shape

a single JSON object indicating existence status with properties: 'exists' (boolean), 'statusCode' (HTTP status code), and 'url' (the request URL).

If the Zone exists, 'exists' is true with a 200 status code; if not, 'exists' is false with a 404 status code. Errors other than 404 will throw exceptions.

Links

Discussion