Flow Automation: Closing Returns via Action
You can use the Close return action in Flow Automation to automatically close a specified return and end the return process once preset conditions are met. With this action, you don't need to open each order and close returns manually, and return statuses stay up to date—allowing your customer service and finance teams to see which returns have been processed at any time.
This guide explains the field descriptions for this action, the applicable workflows, how to test the workflow, and how to use it in real-world scenarios so that returns don't stay open after a refund.
When to Use the Close Return Action
If your store handles a high volume of returns, or several teams work together on them, you can use the Close return action to close returns consistently. Use it when you want to:
- Close returns automatically after a refund: After an order is refunded, automatically close the corresponding return to show that it has been processed. Your staff don't need to close it manually.
- Keep return statuses accurate: Update return statuses promptly, so your teams can easily see which returns are finished.
- Avoid missed returns: Prevent returns from remaining open due to forgotten manual closures, which can affect your return data and follow-ups.
| Note: Closing a return means the return process has ended. Make sure the returned items have been handled and the refund has been completed before you close the return. |
Field Descriptions
The Close return action lets you choose the return to close and whether to send a notification when it closes.
| Field | Description |
| Return id | The return to close. Click + Add variables and select the [Order ID] provided by the trigger. |
| Sending message notifications | Choose whether to send a message notification when the return is closed. Select TRUE to send a notification, or FALSE to skip it. |
Applicable Workflows
The Close return action is primarily used in workflows initiated by the following trigger:
- [Order] Refund created
| Note: For more details on how to set up the Refund created trigger, please refer to "Flow Automation: Triggering Workflows When an Order Is Refunded." |
Testing the Workflow
To test whether the workflow successfully closes the return, follow these steps:
- In Flow Automation, set up a workflow using the Refund created trigger and the Close return action, then click Publish to activate the workflow.
- From your SHOPLINE Admin, go to the Orders > All Orders section and open a test order that already has a return created.
-
Create a refund for the order, then click Refund.
Note: For more details on order refunds, please refer to "Creating Return and Refund Requests for Orders." -
After the refund is created, go to Flow Automation to check the execution results.
Note: For more information on how to monitor the execution of your workflows, please refer to the "How to View the Running of a Flow" section in the "Introduction to Flow Automation" guide.
Example Use Case
Here is a practical example of using the Close return action to automatically end the return process after an order is refunded.
Scenario: After a refund is created for an order, automatically close the corresponding return and send a message notification.
- Trigger: Refund created
-
Action: Close return
- Send message notifications: TRUE
- Return id: [Order ID]
- Outcome: After a refund is created for an order, the matching return closes automatically. Your staff don't need to close each return manually, and return statuses stay accurate.
| Note: To insert the information shown in square brackets (such as [Order ID]), click + Add variables and select the corresponding parameter. |