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 ID

AI-generated

Summary

Check the existence of a Customer Group by its ID by performing a HEAD request to the commercetools API endpoint for the Customer Group resource.

Inputs

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

Output shape

a single JSON object indicating existence, including properties 'exists' (boolean), 'statusCode' (HTTP status code), and 'url' (the requested endpoint).

Returns { exists: true, statusCode: 200, url } if the Customer Group exists; returns { exists: false, statusCode: 404, url } if not found. Throws an error for other HTTP status codes.

Examples

Example 1: Check if a Customer Group with ID '1234' exists

Set 'Customer Group ID' to '1234'. The node outputs JSON with 'exists' true or false depending on presence in commercetools.

Links

Discussion