Return closed
The Return closed trigger starts a workflow when a previously open return is closed.
On this page
Data provided
The following data is provided to workflows that start with the Return closed trigger.
Data | Description |
---|---|
Return | The return resource related to the trigger. Allows accessing data on the GraphQL Admin API Return object |
Testing the trigger
Steps in Shopify admin:
- Create a draft order
- Fulfill the order
- Create a return
- Select the "Close return" option in the "Return in progress" section or choose to refund and restock all items.
You can also test the trigger by setting up self-serve returns. This will allow you to place an order as a test customer. Once the return request is made through the customer account, you will be able to approve and close the return from the Shopify admin.
Actions
This trigger provides a return object, so it lets you use any action that requires a return. In addition, because the return object includes an order, the trigger can be used with any order actions, including:
- Add order line item
- Add order tags
- Archive order
- Cancel order
- Capture payment
- Hold fulfillment order
- Mark order as paid
Orders allow you to access other data such as the customer, so it can be used with customer actions. These include:
- 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 a 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.