commercetools icon

commercetools

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

Actions671

Order → Check if OrderEdit exists by Query Predicate

AI-generated

Summary

Check if an OrderEdit resource exists in commercetools by querying with a specified predicate using a HEAD request.

Inputs

  • Filters — Optional query filter parameter 'where' as a string predicate to specify conditions for the OrderEdit to check existence.

Output shape

a single JSON object indicating existence, containing 'exists' (boolean), 'statusCode' (HTTP status), and 'url' (the query URL).

The operation uses a HEAD request to determine if an OrderEdit matching the query predicate exists without returning the resource data. If the HTTP status is 404, 'exists' will be false, otherwise true. Errors other than 404 are thrown as exceptions.

Examples

Example 1: Check if any OrderEdit exists with a specific predicate

Set the 'Where' filter to a valid commercetools query predicate string to filter OrderEdits.

Links

Discussion