Skip to main content
The Shopify Flow integration fires a trigger in Shopify Flow for each Shopjar program event, so you can build workflows in your Shopify admin — tag customers when they become affiliates, post to Slack on big referral sales, add payout rows to a spreadsheet, and more. (Growth plan)

Setup

1

Enable the integration

In Settings → Integrations → Shopify Flow, turn the toggle on.
2

Build a workflow

In Shopify admin → Flow, create a workflow and pick a Shopjar trigger — they’re listed under the app’s name.
3

Test safely

Back in Shopjar, click Send test event — it fires a sample of every trigger with placeholder data (safe to run), so you can watch your workflows execute end to end.

Payload structure

Every trigger delivers two objects you can reference in Flow conditions and actions. shopjar profile — the member the event belongs to: shopjar payload — the event’s own data, listed per trigger below.

Referral triggers (5)

Referral welcome email — shopjar-referral-welcome-email

Fires when a member joins the referral program.

Invitation email — shopjar-invitation-email

Fires when a referrer invites a friend.

Friend reward claim — shopjar-friend-reward-claim

Fires when a referred friend claims their reward.

Referrer reward earned — shopjar-referrer-reward-earned

Fires when a referrer’s reward is issued.

Referral sale (admin) — shopjar-referral-sale-admin

Fires when a referral drives an order.

Affiliate triggers (7)

Affiliate applied (admin) — shopjar-affiliate-applied-admin

Fires when someone applies to the program.

Application approved — shopjar-affiliate-application-approved

Application rejected — shopjar-affiliate-application-rejected

Affiliate reward earned — shopjar-affiliate-reward-earned

Fires when a commission is earned.

Affiliate payout processed — shopjar-affiliate-payout-processed

Commission redeemed as coupon — shopjar-commission-redeemed-coupon

Affiliate sale (admin) — shopjar-affiliate-sale-admin

Fires when an affiliate drives an order.

Workflow ideas

Trigger Application approved → Flow action “Add customer tag”. Now every Shopify surface — and every other app — knows who your affiliates are.
Trigger Referral sale (admin) → condition sj_event_order_value greater than 200 → “Send Slack message” with the referrer’s name and amount.
Trigger Affiliate payout processed → “Add row to spreadsheet” with sj_event_paid_amount, sj_event_payment_method, and the member’s email from the profile object.
Test events use placeholder data (e.g. test@shopjar.example, coupon SHOPJAR-TEST-10) — filter them out of production workflows by excluding that email domain if you test often.

Need help?

Book a call

Schedule a free call with our team for personal setup assistance.

Contact support

Chat with us directly — we’re happy to help with any question.

Install Shopjar

Get Shopjar Referral & Affiliate Marketing from the Shopify App Store.