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 OrderNumber as Associate

AI-generated

Summary

Check whether an order with a specific order number exists within a business unit as a given associate in commercetools.

Inputs

  • Associate Order Key (required) — The unique key identifying the associate order to check.
  • Associate ID (required) — The ID of the associate within the business unit for whom the order existence should be verified.

Output shape

a JSON object indicating existence status and HTTP response details

Returns an object with an 'exists' boolean, HTTP statusCode, and the requested URL. If the order is not found, 'exists' is false with statusCode 404; if found, 'exists' is true with statusCode 200; other HTTP errors throw exceptions.

Examples

Example 1: Check if an order exists by order number as an associate

Set 'Associate Order Key' to the order number to check and 'Associate ID' to the associate's ID in the business unit.

Links

Discussion