commercetools icon

commercetools

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

Actions671

Associate Business Unit → Check if BusinessUnit exists by Query Predicate

AI-generated

Summary

Check whether an Associate Business Unit exists by querying commercetools with a specified predicate filter.

Inputs

  • Filters — Optional filters to refine the query, specifically the 'where' predicate string to specify conditions for the business unit search.

Output shape

a single JSON object

Returns the JSON response from the commercetools API which indicates whether the business unit exists based on the query predicate. If the operation is a HEAD request internally, it returns a simplified response with an 'exists' boolean, HTTP status code, and the URL queried. Errors are surfaced unless 'continueOnFail' is enabled.

Examples

Example 1: Check if an Associate Business Unit exists with a specific attribute

Set the 'where' filter property to a valid commercetools query predicate string identifying the business unit criteria.

Links

Discussion