commercetools icon

commercetools

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

Actions671

Associate Order → Check if Order exists in BusinessUnit by ID as Associate

AI-generated

Summary

Check if an order identified by its Order ID exists within a specified Business Unit for a given Associate using the commercetools API.

Inputs

  • Associate Order Key (required) — The key identifying the Associate Order resource context.
  • Order ID (required) — The unique identifier of the order to check for existence.
  • Associate ID (required) — The identifier of the Associate performing the check.

Output shape

a JSON object indicating existence, including 'exists' (boolean), 'statusCode' (number), and the request 'url' (string).

Returns 'exists: true' with status code 200 if the order exists, or 'exists: false' with status code 404 if not found. Errors other than 404 yield an exception.

Examples

Example 1: Check if order with ID '12345' exists for Associate with ID 'assoc-987' within the Business Unit identified by order key 'order-key-abc'.

Set 'Associate Order Key' to 'order-key-abc', 'Order ID' to '12345', and 'Associate ID' to 'assoc-987' in the node parameters.

Links

Discussion