ordersApprove
Approves multiple pending orders in bulk, transitioning them from **PENDING** status to **ORDERED** status.
This mutation is used to manually approve one or more orders that require explicit confirmation before they can proceed through the fulfillment pipeline. Once approved, orders become eligible for allocation, fulfillment, and shipping processes.
The approval process is handled asynchronously. The mutation queues the approval request for background processing and returns immediately with a processing status.
Requirements
- All orders must exist and belong to the authenticated user's brand
- Orders must be in **PENDING** status
- User must have the
orders:approve
permission - At least one order ID must be provided
Behavior
- Orders are processed individually, allowing for partial success scenarios
- Each order's approval status is tracked and logged separately
- If some orders cannot be approved, others may still succeed
Errors
- **ExecutionError**: Thrown when authentication fails or required permissions are missing
ordersApprove(
input: ApproveOrdersInput!
): AsynchronousActionResponse
Arguments
ordersApprove.input
● ApproveOrdersInput!
non-null input
Parameters for ApproveOrders
Type
AsynchronousActionResponse
object
Asynchronous action response type