commercetools icon

commercetools

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

Actions671

Order → Check if OrderEdit exists by Key

AI-generated

Summary

Check if an OrderEdit exists in commercetools by its unique Order Key, returning existence status without retrieving the full resource.

Inputs

  • Order Key (required) — The unique key of the OrderEdit to check for existence.

Output shape

a single JSON object indicating existence with the keys 'exists' (boolean), 'statusCode' (HTTP status code), and 'url' (the API endpoint queried).

Uses an HTTP HEAD request to determine existence: returns exists=true if found (status 200), or exists=false if not found (status 404). Throws an error for other HTTP error responses.

Examples

Example 1: Check if a specific OrderEdit identified by its key exists before attempting update or deletion.

Set resource to 'Order', operation to 'Check if OrderEdit exists by Key', and provide the 'Order Key' string parameter.

Links

Discussion