Shopify affiliates: connect your store to RastroAff with no app or code
Step by step to record in RastroAff the Shopify sales that came from affiliates, with coupons, cancellations and refunds, using only Shopify's webhooks.
Updated on 9 Nov 2026
Shopify can already notify external systems about every order through webhooks. RastroAff uses that: there's no app to install and no code to write.
1. The click ID in the offer's destination
In RastroAff, the offer's destination URL must carry the click ID:
https://yourstore.com/?click_id={click_id}
Shopify stores the page the customer landed on; that's where RastroAff reads the click ID when the order arrives.
2. Copy the integration URL
In the advertiser dashboard (your brand), under Integration → Shopify or WooCommerce store, copy the Shopify URL. It has your token and the offer:
https://TRACKING/integrations/shopify?token=TOKEN&campaign_id=OFFER
If you have more than one offer, change campaign_id.
3. Create the webhooks in Shopify
In the Shopify admin, under Settings → Notifications → Webhooks, create two webhooks, in JSON format, with that URL:
- Order payment: records the sale when it's paid.
- Order update: handles cancellations and refunds.
4. Test
Click an affiliate link, place a test order and pay for it. On the same Integration page, under Latest requests received, the Shopify request shows up with its result; the sale shows up in Conversions.
How each order is handled
- Paid: conversion recorded, with the subtotal after discounts, without shipping or taxes.
- Cancelled: the conversion is rejected.
- Refunded: the conversion is reversed and the amount comes off the affiliate's balance.
- No click ID and no affiliate coupon: ignored (it didn't come from an affiliate).
Coupons
The order's discount codes count too: if the code belongs to an affiliate, the sale is theirs, even without a click. See affiliate coupons.