Return processed
The Return processed trigger starts a workflow when a return is processed.
On this page
Data provided
The following data is provided to workflows that start with the Return processed trigger.
| Data | Description |
|---|---|
Return | The return resource related to the trigger. Allows accessing data on the GraphQL Admin API Return object |
Testing the trigger
To test the trigger, you need to create a draft order and process a return.
Steps:
- From your Shopify admin, create a draft order.
- Fulfill the order.
- Create a return.
- In the Shopify admin, process the return.
Actions
The Return processed trigger provides a return object and lets you use any action that requires a return. You can also use this trigger with the following order actions:
- Add order line item
- Add order tags
- Archive order
- Cancel order
- Capture payment
- Hold fulfillment order
- Mark order as paid
You can also access other data such as customer data, and use with the following customer actions:
- Add customer tags
- Remove customer metafield
- Remove customer tags
- Update customer metafield
- Update customer note
Orders also contain lists of data such as line items. Using the For each action, you can loop through these lists and perform actions on each item. For example, you can loop through the line items and add a tag to each product.