Connecting Saleor to Awin
Saleor is headless and GraphQL-first, which means the storefront and the commerce engine are separate applications and the identifier has to survive a boundary that traditional platforms do not have. Awin is a traditional last-click affiliate network, and last-click is the whole problem: whoever touched the customer most recently takes the commission, which is a structural invitation for voucher-code sites to intercept sales you had already won. The join between them succeeds or fails on one thing: whether the Awin click reference, awc reaches the Saleor order before the conversion happens, because Awin can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Saleor to Awin: pass the voucher code with the sale
Write Awin's click reference into Saleor checkout metadata through the API before checkout completes, then post server-to-server from the paid-order webhook with the click reference, Saleor order number, commission group and amount net of shipping and tax. Send the applied voucher code to expose voucher-site interception, and decline cancelled or refunded orders before approval.
Awin's click reference arrives on the landing URL of your headless storefront and has to be written into checkout metadata through Saleor's API before checkout completes, so it is on the order when the paid-order webhook fires. Post the conversion server-to-server from that webhook with the click reference, the Saleor order number as the order reference, the commission group and the amount. Awin programmes usually commission on the net sale, so subtract shipping and tax from Saleor's order total rather than sending the gross figure.
Saleor records the voucher code applied to an order. Send it to Awin with the sale, using Awin's voucher field; check the exact name in Awin's documentation. That gives Awin, and you, the evidence needed to see when a voucher site took the commission on a code it never distributed, and makes the dedup flag usable for sales a paid channel had already won.
Validation is where Saleor's own data closes the loop. Before approving pending transactions, pull orders cancelled or refunded in Saleor for the same period and decline or amend them in Awin. A Saleor return processed after the approval period ends is commission already paid, so set the approval period to cover your real return window.
Saleor → Awin · what breaks
Why this join usually fails — Saleor → Awin
- 01
The Awin click reference, awc never reaches Saleor
The storefront holds the browser session; the commerce API holds the order. Nothing carries between them unless the storefront puts it there.
- 02
A storefront that knows the click and an API that holds the money
Headless architectures split exactly the two things attribution needs to join. If the storefront does not deliberately write the identifier into order metadata, the connection does not exist anywhere.
- 03
Voucher-code publishers intercepting sales at the checkout
A customer arrives from a paid ad, reaches the basket, opens a new tab to search for a discount code, clicks a voucher site's link and returns to complete the order. Under last-click the voucher site earns the commission on a sale your advertising produced. This is not a fringe case; on many programmes it is the largest single publisher category.
- 04
Nothing reconciles afterwards
Awin's reporting shows the sale, the publisher and the commission group. Read the publisher type and the time between click and sale — a click seconds before the order tells you what happened.
Saleor → Awin · the fix
What working looks like — Saleor → Awin
The Awin click reference, awc on every order
Conversions arriving in Awin
The sale appears as pending, publishers see it in their reporting, and it validates after your approval period.
Reconciled against the source
Saleor → Awin · architecture
How Saleor and Awin actually connect
- 1
Saleor holds the truth
In a headless setup the storefront is one of several possible clients. Attributing from it means measuring one channel of a system designed to have many.
- 2
Awin needs a click to match
Awin needs the click reference, a unique order reference, the order value and the commission group. Missing the click reference means the sale is untracked and the publisher will query it.
- 3
The identifier is the bridge
The Awin click reference, awc, captured at the visit and carried into the Saleor order.
- 4
The event source decides reliability
Send fully paid orders at their net total, sourced from the API.
- 5
Deduplication at the destination
Awin deduplicates on your order reference. It also supports a dedup flag so you can decline to commission sales that another channel already claimed — which is the feature most advertisers do not know exists and should be using.
Saleor → Awin · normal or broken
Working vs. broken, side by side — Saleor → Awin
Normal, not a fault
The Awin click reference, awc present on the order
Sent from the Saleor order webhook
Deduplicated correctly
Awin deduplicates on your order reference. It also supports a dedup flag so you can decline to commission sales that another channel already claimed — which is the feature most advertisers do not know exists and should be using.
Reconciles with the source
Actually broken
The Awin click reference, awc missing on most records
The storefront holds the browser session; the commerce API holds the order. Nothing carries between them unless the storefront puts it there.
Sent from the browser
Headless architectures split exactly the two things attribution needs to join. If the storefront does not deliberately write the identifier into order metadata, the connection does not exist anywhere.
Counted twice, or not at all
A customer arrives from a paid ad, reaches the basket, opens a new tab to search for a discount code, clicks a voucher site's link and returns to complete the order. Under last-click the voucher site earns the commission on a sale your advertising produced. This is not a fringe case; on many programmes it is the largest single publisher category.
Nobody has reconciled it
Saleor → Awin · diagnose
Diagnostic order — Saleor → Awin
- 01
Count orders carrying the Awin click reference, awc
- 02
Follow one real conversion end to end
- 03
Inspect order metadata on a live order for the identifier
Either it is on the order or the attribution is guesswork. There is no middle state.
- 04
Segment publishers by type and check where the click happened in the journey
Voucher and cashback clicks that occur within seconds of an order are interception, not acquisition. Use the deduplication flag rather than paying for both.
- 05
Read the match rate, not the success message
Awin's reporting shows the sale, the publisher and the commission group. Read the publisher type and the time between click and sale — a click seconds before the order tells you what happened.
Saleor → Awin · prove
How it gets proven — Saleor → Awin
Source of truth
Saleor orders by payment status, read from the API rather than inferred from the storefront.
- The Awin click reference, awc confirmed present on a live order.
- Validated sales reconciled per order reference against your own records, with voucher-sourced sales identified and the paid-media overlap stated.
- Paid orders reconciled from the API against imported conversions.
Saleor → Awin · free audit
What we check in the free audit
- Count orders carrying the Awin click reference, awc
- Follow one real conversion end to end
- Inspect order metadata on a live order for the identifier
- Segment publishers by type and check where the click happened in the journey
- Read the match rate, not the success message
Checked against
Saleor orders by payment status, read from the API rather than inferred from the storefront.
Free30 minutesNo obligation
Saleor → Awin · when not to buy
When you don't need this — Saleor → Awin
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the Awin click reference, awc.
- If you run a single storefront and no other clients, the added complexity of headless attribution buys you nothing over a standard integration.
- If you run no affiliate programme this is irrelevant. If you do, the commission structure by publisher type will change your economics more than the tracking accuracy will.
Saleor → Awin · what we deliver
What gets built — Saleor → Awin
Identifier capture into Saleor
Capture in the storefront and write the identifier into order metadata through the API at checkout, so it lives on the order rather than in a session.
Event source: the Saleor order webhook
Send fully paid orders at their net total, sourced from the API.
Dispatch to Awin
Server-to-server conversion posting from your order system, or the tracking pixel where server posting is not available.
Reversals where they exist
Refunds and cancellations reverse.
Written guarantee
95%+ tracking accuracy
Measured against Saleor orders by payment status, read from the API rather than inferred from the storefront.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Saleor → Awin questions, answered
Usually the net sale: the order total minus shipping and tax, after vouchers. Confirm what your commission terms specify and use the same definition every time.
Decline or amend the transaction before it validates, using Saleor's refunded and cancelled orders for the period. Make the approval period longer than your return window.
Almost always because the Awin click reference, awc never reached the Saleor order. The storefront holds the browser session; the commerce API holds the order. Nothing carries between them unless the storefront puts it there. Measure coverage before debugging the dispatch.
Awin sets the awc parameter on the landing URL and stores it in a cookie for the attribution window. Because attribution is last-click, that cookie being overwritten late in the journey transfers the commission — which is exactly what a voucher-code extension does at the checkout page.
The Saleor order webhook. Send fully paid orders at their net total, sourced from the API.
Awin's reporting shows the sale, the publisher and the commission group. Read the publisher type and the time between click and sale — a click seconds before the order tells you what happened.
More on Saleor → Awin
- Stripe → AwinConnecting Stripe to Awin
- PayPal → AwinConnecting PayPal to Awin
- Shopify → AwinConnecting Shopify to Awin
RELATED GUIDES
Where Saleor → Awin fits in the rest of your tracking
- Medusa → AwinConnecting Medusa to Awin
- WooCommerce → AwinConnecting WooCommerce to Awin
- Shopify POS → AwinConnecting Shopify POS to Awin
- Saleor → ImpactConnecting Saleor to Impact.com
- Saleor → PartnerStackConnecting Saleor to PartnerStack
- FashionConversion tracking for fashion brands, reported net of returns
- Gumroad → AwinConnecting Gumroad to Awin
- OpenCart → AwinConnecting OpenCart to Awin
Free · 30 min
Get Saleor and Awin joined properly
Free30 minutesNo obligation
