commercetools icon

commercetools

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

Actions671

Approval Rule → Query ApprovalRules in BusinessUnit

AI-generated

Summary

Query approval rules within a specified business unit associate context in a commercetools project.

Inputs

  • Approval Rule Key (required) — The key identifying the approval rule resource within the business unit associate context.
  • Associate ID (required) — The ID of the associate in the business unit to scope the query.
  • Filters — Optional query parameters to filter, sort, paginate, and control the response, including 'expand', 'sort', 'limit', 'offset', 'withTotal', and 'where' conditions.

Output shape

A single JSON object containing a list of approval rules matching the query within the specified business unit associate context, including any applied expansions or pagination metadata if requested.

The output can include pagination (limit, offset) and filtering results based on the provided parameters. Errors are thrown for failed requests unless 'continueOnFail' is enabled, in which case error details are returned per item.

Examples

Example 1: Fetch all approval rules associated with an associate in a business unit, filtered and sorted by specific criteria.

Set the 'Approval Rule Key' and 'Associate ID' to identify the scope, and use the 'Filters' collection to apply query parameters such as 'where' (filter condition), 'sort' (sorting order), 'limit' (max results), and 'offset' (paging offset).

Links

Discussion