Mark fulfillment order as fulfilled
The Mark a fulfillment order as fulfilled action creates a fulfillment for all line items on a fulfillment order.
If a fulfillment order is in a state where it can't be fulfilled, such as ON_HOLD
, then the Flow workflow will fail. The fulfillment order must be in a state where it can be fulfilled. This can be determined by setting a condition to evaluate if the FulfillmentOrder.supportedActions.action
includes CREATE_FULFILLMENT
.
Fields
The Mark a fulfillment order as fulfilled action contains the following fields.
Field | Description |
---|---|
Message | An additional message to be sent with the fulfillment. |
Notify customer | Notify customer that the fulfillment has been created. |
Triggers
The Mark a fulfillment order as fulfilled action operates on fulfillment orders. The action uses a Fulfillment order ID to identify the fulfillment order and create a fulfillment for it. The Mark a fulfillment order as fulfilled action can be used in workflows that start with the following triggers:
- Order ready to fulfill
- Fulfillment order moved
- Fulfillment order hold released
- Fulfillment order fulfillment cancellation request rejected
- Fulfillment order fulfillment request accepted
- Fulfillment order fulfillment service failed to complete fulfillment
The Mark a fulfillment order as fulfilled action can also be used in any workflow that iterates through fulfillment orders using the For each loop (iterate) action.
Examples
In this example workflow, when a fulfillment order is moved to a new location, then a fulfillment is created for the fulfillment order.
In this example workflow, when an order is created, then a fulfillment is created for all fulfillment orders.API details
To learn more, review the fulfillmentCreateV2 mutation.