commercetools icon

commercetools

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

Actions671

Order → Check if Order exists by ID

AI-generated

Summary

Check the existence of an Order by its ID using a HEAD HTTP request.

Inputs

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

Output shape

a single JSON object indicating existence, HTTP status code, and checked URL

The output indicates whether the Order exists with properties 'exists' (boolean), 'statusCode' (number), and 'url' (string). Returns exists=false with statusCode=404 if not found; throws an error for other failures.

Examples

Example 1: Check if an Order with ID '12345' exists in commercetools.

Set Resource to 'Order', Operation to 'Check if Order exists by ID', and supply the Order ID parameter with '12345'.

Links

Discussion