applyRoutingStrategy
Applies a routing strategy to an order and recreates its fulfillments.
Fulfillment creation runs asynchronously. Use the returned process_id to
track progress (re-applying cancels the order's local draft fulfillments and
rebuilds them; fulfillments already in progress are left untouched).
Business Rules
- The order and the routing strategy must belong to the same company.
- The order must use the V2 aggregate, be confirmed (not draft or pending), and not be canceled.
Error Scenarios
- **
NOT_FOUND**: when the order or the routing strategy does not exist. - **
BAD_REQUEST**: when the order is not a confirmed V2 order.
Permissions Required
orders:apply_routing_strategypermission
applyRoutingStrategy(
input: ApplyRoutingStrategyInput!
): AsynchronousActionResponse!
Arguments
applyRoutingStrategy.input ● ApplyRoutingStrategyInput! non-null input common
Parameters for ApplyRoutingStrategy
Type
AsynchronousActionResponse object common
Asynchronous action response type