Flow Automation: Triggering Workflows When a Return Is Declined
You can use the Declined return trigger in Flow Automation to start a workflow when you decline a customer's return request in your SHOPLINE Admin. With this trigger, you can automatically update the tags of orders with declined returns and query the customer's order history. This helps your customer service team follow up quickly, explain the decision clearly, and identify potential complaint risks early.
This guide explains the supported actions for this trigger, how to test the workflow, and how to apply it in real-world scenarios to reduce repeated after-sales communication and lower the risk of customer complaints.
Supported Actions
The following actions are primarily used in workflows initiated by the Declined return trigger:
- [Order] Batch query orders
- [Order] Batch query abandoned orders
- [Order] Update order tags
- [Customer] Batch query customers
Testing the Workflow
To test whether the workflow is successfully triggered when a return request is declined, follow these steps:
- In Flow Automation, set up a workflow using the Declined return trigger, then click Publish to activate the workflow.
-
From your SHOPLINE Admin, open an order with a pending return request and decline the request.
Notes:
- For details on how to decline a return request, please refer to the "Rejecting Customer Return Requests" section in the "Setting Up and Managing Self-Serve Returns" guide.
- After a return request is declined, the customer can still submit a new return request. We recommend clearly explaining the reason in the Message to customer field to reduce repeated communication.
-
After declining the return, 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 Declined return trigger to automatically tag orders and look up a customer's purchase history.
Scenario: When you decline a return request, automatically query the customer's order history and update the order's tag to "Return declined."
- Trigger: Declined return
-
Action 1: Batch query orders (1)
- Query conditions: [Order number]
- How to sort query results: Earliest order created
- The quantity to keep in the query result: 1
-
Action 2: Batch query orders (2)
- Query conditions: [Buyer ID]
- How to sort query results: Earliest order created
- The quantity to keep in the query result: 100
-
Action 3: Update order tags
- Order number: [Order number]
- Order tags: Return declined
- Outcome: Orders with declined returns are tagged automatically, making them easy to filter and track. The workflow also retrieves up to 100 of the customer's past orders, so your customer service team can review their purchase and return history, explain the decision, and spot potential complaint risks early.
| Note: To insert the information shown in square brackets (such as [Order number]), click + Add variables and select the corresponding parameter. |