commercetools icon

commercetools

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

Actions671

Recurrence-policy → Check if RecurrencePolicy exists by ID

AI-generated

Summary

Check whether a Recurrence-policy exists by its unique ID in the commercetools project via an HTTP HEAD request.

Inputs

  • Recurrence-policy ID (required) — The unique identifier of the Recurrence-policy to check for existence.

Output shape

a JSON object with fields 'exists' (boolean), 'statusCode' (number), and 'url' (string).

Returns { exists: true, statusCode: 200 } if the Recurrence-policy exists, or { exists: false, statusCode: 404 } if it does not. Throws an error for other HTTP statuses.

Examples

Example 1: Check if a Recurrence-policy with ID 'abc123' exists.

Set Resource to 'Recurrence-policy', Operation to 'Check if RecurrencePolicy exists by ID', and enter 'abc123' as the Recurrence-policy ID.

Links

Discussion