supplyApproveOrders
Approve multiple supply orders asynchronously. This mutation initiates the approval process for the specified supply orders and returns immediately with a process ID for tracking.
Authentication Requirements
Requires authentication and the supply:approve_order permission for each
brand that owns the supply orders being approved.
Business Rules
- Only supply orders in
PENDINGstatus can be approved - Each supply order must exist and belong to the authenticated user's brands
Error Conditions
Order not found: One or more order IDs don't exist or don't belong to accessible brandsCurrent order status is not valid: Order has an invalid statusTransition not allowed: Order is not in PENDING status and cannot be moved to APPROVED
supplyApproveOrders(
input: ApproveSupplyOrdersInput!
): AsynchronousActionResponse!
Arguments
supplyApproveOrders.input ● ApproveSupplyOrdersInput! non-null input
Parameters for ApproveSupplyOrders
Type
AsynchronousActionResponse object
Asynchronous action response type