commercetools icon

commercetools

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

Actions671

Approval Flow → Get ApprovalFlow in BusinessUnit

AI-generated

Summary

Retrieve a specific approval flow in a business unit by its ID and key, scoped to an associate's context.

Inputs

  • Approval Flow Key (required) — The key identifying the approval flow resource.
  • Approval Flow ID (required) — The unique ID of the approval flow to retrieve.
  • Associate ID (required) — The identifier of the associate within the business unit under whom context the approval flow is accessed.
  • Filters — Optional query filters, such as 'expand' to include additional related data in the response.

Output shape

a single JSON object representing the approval flow resource as returned by the commercetools API.

The output is the approval flow data resolved from the specified IDs and keys; optional 'expand' query parameter can be used to enrich the returned data. Errors in the API request will throw or return error objects if 'continueOnFail' is enabled.

Examples

Example 1: Retrieve an approval flow for a given associate in a business unit to process workflow steps conditionally based on its data.

Specify the business unit's approval flow key, the approval flow ID, and the associate ID. Optionally use the 'expand' filter to fetch related entities inline.

Links

Discussion