commercetools icon

commercetools

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

Actions671

Subscription → Check if Subscription exists by ID

AI-generated

Summary

Check if a commercetools subscription exists by its subscription ID using a HEAD request.

Inputs

  • Subscription ID (required) — The unique ID of the subscription to check for existence.

Output shape

a single JSON object

Returns an object with 'exists' (boolean), 'statusCode' (HTTP status code), and 'url' fields indicating the existence status of the subscription. If the subscription does not exist, 'exists' will be false with a 404 status code. On other HTTP errors, the node will throw an error unless 'Continue On Fail' is enabled.

Examples

Example 1: Check subscription existence

Set resource to 'Subscription', operation to 'Check if Subscription exists by ID', and provide the Subscription ID input.

Links

Discussion