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 Query Predicate as Associate

AI-generated

Summary

Check the existence of an order in a business unit as an associate using a query predicate filter.

Inputs

  • Associate Order Key (required) — The unique key identifying the associate order resource.
  • Associate ID (required) — The identifier of the associate performing the check.
  • Filters — Optional query parameters including a 'where' string that specifies the query predicate to filter orders in the business unit.

Output shape

A JSON object indicating whether the order exists with properties 'exists' (boolean), 'statusCode' (number), and 'url' (string).

Performs a HEAD request to the commercetools API using the provided filters. If the resource is found, returns exists=true; if not found, exists=false with status 404. Throws an error for other HTTP errors.

Links

Discussion