commercetools icon

commercetools

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

Actions671

Discount-group → Check if DiscountGroup exists by ID

AI-generated

Summary

Check the existence of a Discount-group by its ID using a HEAD request to the commercetools API.

Inputs

  • Discount-group ID (required) — The unique identifier of the Discount-group 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 used).

Returns { exists: true, statusCode: 200 } if the Discount-group exists, or { exists: false, statusCode: 404 } if not found. May throw an error for other HTTP issues.

Examples

Example 1: Check existence of Discount-group with ID "abc123"

Set 'Discount-group ID' to 'abc123'. The node returns { exists: true, statusCode: 200 } if found.

Links

Discussion