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
![Example of a workflow that creates a fulfillment when a fulfillment order changes location](https://cdn.shopify.com/shopifycloud/help/assets/manual/apps/flow/flowv2/mark-as-fulfilled-76730c2a18422e9434603c8357cac944c99dda5d6168f3efce5c6d6dd39af62f.png)
In this example workflow, when a fulfillment order is moved to a new location, then a fulfillment is created for the fulfillment order.
![Example of a workflow that marks all fulfillment orders in an order as fulfilled when an order is created](https://cdn.shopify.com/shopifycloud/help/assets/manual/apps/flow/flowv2/for-each-mark-as-fulfilled-76a350ea3082fcae6a3338a039621ad3d718f8035d5c275c9858e9b4be6ebc9c.png)
API details
To learn more, review the fulfillmentCreateV2 mutation.