Skip to main content

Example of automatically pausing a customer’s subscription when they start a return.

1

Create a new workflow in Shopify Flow

Open Shopify Flow and click Create workflow.
2

Add a trigger

Search for Supercycle and select Return created.
This trigger runs whenever a return is created inside Supercycle.
3

Add a loop

Choose For each and set it to returnOrder.rentals.
This allows the workflow to check each rental in the return.
4

Add a condition

Add a Condition that checks if the rental’s subscription ID exists.
Use this expression:
rentals.foreachitem.subscriptionId is not empty and exists
5

Add an action

Choose Update subscription and set:
  • Subscription ID: {{rentals.foreachitem.subscriptionId}}
  • Status: paused
6

Save and enable the workflow

Once enabled, this automation will automatically pause any active subscription linked to a returned rental.