commercetools icon

commercetools

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

Actions671

Order → Check if OrderEdit exists by ID

AI-generated

Summary

Check the existence of an OrderEdit by its ID using a HEAD request to the commercetools API.

Inputs

  • Order ID (required) — The unique identifier of the Order for which to check if the OrderEdit exists.

Output shape

A single JSON object containing the existence status as a boolean under 'exists', the HTTP status code under 'statusCode', and the checked URL under 'url'.

The operation sends a HEAD request and returns 'exists: true' if the OrderEdit exists (status code 200), or 'exists: false' if not found (status code 404). For other errors, it throws an error. It returns no full OrderEdit data, only existence information.

Examples

Example 1: Check if an OrderEdit exists for a given Order ID

Provide the Order ID to verify its related OrderEdit existence.

Links

Discussion