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 Query Predicate

AI-generated

Summary

Check if a RecurrencePolicy exists in commercetools by sending a HEAD request using a query predicate filter.

Inputs

  • Filters — Optional filtering criteria to refine the query using the 'where' predicate string.

Output shape

a single JSON object

Returns an object indicating existence with fields: 'exists' (boolean), 'statusCode' (HTTP response code), and 'url' (the API endpoint queried). If the entity exists, 'exists' is true with status 200; if not found, 'exists' is false with status 404. Throws error on other HTTP failures.

Examples

Example 1: Check existence of RecurrencePolicy with specific criteria

Set the 'where' filter string to specify the conditions for the RecurrencePolicy to test existence against.

Links

Discussion