bulkCommitDraftOrders
Commits a batch of draft V2 orders, transitioning each one to the ordered state.
Runs asynchronously: returns a process_id immediately and reports per-order
results through the process_status_updates subscription.
Business Rules
- Each order is committed independently; one failure does not stop the batch
- Duplicate order IDs are processed once
- Orders must belong to the selected company, use the V2 aggregate, and be in draft
- The existing
commitDraftOrdercommand remains authoritative for each transition
Error Scenarios
- Missing, cross-company, V1, and non-draft orders are reported as failed items
- A process with any failed items finishes with a failed process status
- Callers without permission are rejected before a process is created
Permissions Required
- User must have
orders:commit_draft_orderpermission
bulkCommitDraftOrders(
input: BulkCommitDraftOrdersInput!
): AsynchronousActionResponse!
Arguments
bulkCommitDraftOrders.input ● BulkCommitDraftOrdersInput! non-null input common
Parameters for BulkCommitDraftOrders
Type
AsynchronousActionResponse object common
Asynchronous action response type