Use the JeriCommerce Assign coupon action in Shopify Flow to send a coupon after any Shopify trigger. Before you start, create the coupon and its campaign in JeriCommerce.
Assign a Coupon from Shopify Flow¶
Choose a Shopify trigger¶
Create a workflow and choose the Shopify trigger that should send the coupon.

Add the JeriCommerce action¶
Add the JeriCommerce Assign coupon action.
Enter the customer and campaign¶
Set the customer's email address and enter the campaign slug from JeriCommerce.

Turn on the workflow¶
Save and turn on the workflow. When the trigger runs, JeriCommerce assigns an available code and sends the coupon to the customer's loyalty card.
Assignment Requirements¶
The action only assigns a coupon when:
- The campaign is active and has not been deleted or finished.
- The linked coupon is available for assignment.
- The customer has a loyalty card that can receive the coupon.
If a campaign ends or is deleted, later Shopify Flow runs cannot claim coupon codes from it. Deleting a linked campaign also stops automatic code imports for its coupons.