WooCommerce affiliates: connect your store to RastroAff with no plugin
Step by step to record in RastroAff the WooCommerce sales that came from affiliates, with coupons, cancellations and refunds, using WooCommerce's webhooks.
Updated on 9 Nov 2026
WooCommerce comes with order webhooks. RastroAff uses them: there's no plugin to install and no code to write.
Before you start
You need WooCommerce 8.5 or later, with order attribution turned on (it's on by default). It stores the page the customer landed on, which is where the click ID comes from.
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}
2. Copy the integration URL
In the advertiser dashboard (your brand), under Integration → Shopify or WooCommerce store, copy the WooCommerce URL:
https://TRACKING/integrations/woocommerce?token=TOKEN&campaign_id=OFFER
If you have more than one offer, change campaign_id.
3. Create the webhooks in WooCommerce
In WordPress, under WooCommerce → Settings → Advanced → Webhooks, create two webhooks with that URL as the delivery URL:
- Topic Order created.
- Topic Order updated: handles payments confirmed later, cancellations and refunds.
Leave the webhook status as Active.
4. Test
Click an affiliate link, place a test order and pay for it. On the Integration page, under Latest requests received, the WooCommerce request shows up with its result; the sale shows up in Conversions.
How each order is handled
- Processing or completed: conversion recorded, with the total minus shipping and taxes.
- Cancelled or failed: 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.
Coupons
The order's coupons count too: if the code belongs to an affiliate, the sale is theirs, even without a click. See affiliate coupons.