Getting started
Open Shopify Flow
Navigate to Shopify Flow in your Shopify admin and click Create workflow.
Choose a trigger
Search for Supercycle to see available triggers:
- Return created
- Return updated
- Dunning payment failed
Add conditions and actions
Build your workflow logic using conditions, loops, and actions to respond to the trigger event.
Example workflows
Pause subscription on return
Automatically pause a customer’s subscription when they start a return.Add a loop
Add a For each loop and set it to
This processes each rental in the return individually.
returnOrder.rentals.This processes each rental in the return individually.
Add the action
In the Then branch, add Update subscription:
- Subscription ID:
{{rentals.foreachitem.subscriptionId}} - Status:
paused
Send notification on failed payment
Notify your team when subscription payments fail multiple times.Add notification action
In the Then branch, add Send internal email:
- To: Your support team email
- Subject:
Urgent: Customer payment failed 3+ times - Body: Include customer details and dunning information
Optional: Cancel subscription
Add another action to Update subscription:
- Subscription ID: Extract from
dunning.subscriptionContractId - Status:
cancelled
FAQs
Can a single return include more than one rental?
Can a single return include more than one rental?
Yes. Returns can contain multiple rentals, so always use a
For each loop when processing returnOrder.rentals to ensure each rental is handled individually.Do all rentals have a subscription attached?
Do all rentals have a subscription attached?
No. Some rentals won’t have subscriptions, so you should always check whether subscriptionId exists before using it in any actions.
How should I validate my workflow before turning it on?
How should I validate my workflow before turning it on?
Use Shopify Flow’s test feature with sample data to confirm your logic works as expected before enabling it in production.
What’s the best way to name my workflows?
What’s the best way to name my workflows?
Use clear, descriptive names (for example, “Pause subscription on return”) so workflows are easy to find and manage later.
How do I make sure my workflows are running correctly over time?
How do I make sure my workflows are running correctly over time?
Regularly monitor the Flow dashboard to confirm successful runs and catch or debug any errors early.