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 Key

AI-generated

Summary

Check if a RecurrencePolicy with the specified Key exists in the commercetools project.

Inputs

  • Recurrence-policy Key (required) — The unique key identifying the RecurrencePolicy to check for existence.

Output shape

a JSON object indicating existence with properties 'exists' (boolean), 'statusCode' (HTTP status code), and 'url' (the API URL requested).

Returns { exists: true, statusCode: 200, url } if the RecurrencePolicy exists, or { exists: false, statusCode: 404, url } if it does not. May throw an error for other HTTP status codes.

Examples

Example 1: Check for a RecurrencePolicy key 'monthly_plan'

Provide 'monthly_plan' as the Recurrence-policy Key input parameter and execute the node to receive an existence confirmation.

Links

Discussion