Getting started
Open Shopify Flow
Choose a trigger
- Return created / Return updated
- Cycle created / Cycle updated / Cycle canceled
- Membership created / Membership updated / Membership canceled
- Charge failed
- Payment collection failed
Add conditions and actions
Test and enable
Example workflows
Pause subscription on return
Automatically pause a customer’s subscription when they start a return.Pausing subscriptions when returns are created
Add trigger
Add a loop
returnOrder.rentals.This processes each rental in the return individually.
Add a condition
Add the action
- Subscription ID:
{{rentals.foreachitem.subscriptionId}} - Status:
paused
Enable the workflow
Send notification on failed payment
Notify your team when subscription payments fail multiple times.Add trigger
Add a condition
Add notification action
- To: Your support team email
- Subject:
Urgent: Customer payment failed 3+ times - Body: Include customer details and
paymentCollector.lastFailedPayment.errorMessage
Optional: Cancel subscription
- Subscription ID: Extract from
paymentCollector.subscriptionContractId - Status:
cancelled
Enable the workflow
Auto-resolve item conflicts on a cycle
When a cycle’s allocated item is unavailable (for example, it’s still out on another cycle), automatically re-allocate a fresh available item.Add trigger
Add a condition
Add the action
- Cycle ID:
{{rental.id}}
Enable the workflow
FAQs
Can a single return include more than one rental?
Can a single return include more than one rental?
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?
How should I validate my workflow before turning it on?
How should I validate my workflow before turning it on?
What’s the best way to name my workflows?
What’s the best way to name my workflows?
How do I make sure my workflows are running correctly over time?
How do I make sure my workflows are running correctly over time?