commercetools icon

commercetools

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

Actions671

Customer Group → Check if CustomerGroup exists by Key

AI-generated

Summary

Check if a Customer Group exists in commercetools by its unique key using an HTTP HEAD request.

Inputs

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

Output shape

a single object indicating existence status

Returns an object with 'exists' boolean, HTTP status code, and the checked URL. If the Customer Group exists, 'exists' is true with status code 200; if not found, 'exists' is false with status code 404. Other errors throw an exception.

Examples

Example 1: Checking if a Customer Group with key 'vip-group' exists

Set resource to Customer Group, operation to Check if CustomerGroup exists by Key, and provide 'vip-group' as the Customer Group Key.

Links

Discussion