Skip to main content
Saleor → AwinIntegration guide

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

  1. 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.

  2. 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.

  3. 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.

  4. 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. 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. 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. 3

    The identifier is the bridge

    The Awin click reference, awc, captured at the visit and carried into the Saleor order.

  4. 4

    The event source decides reliability

    Send fully paid orders at their net total, sourced from the API.

  5. 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

  1. 01

    Count orders carrying the Awin click reference, awc

  2. 02

    Follow one real conversion end to end

  3. 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.

  4. 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.

  5. 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.

Get my free conversion tracking audit

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.

Get my free conversion tracking audit

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.

Free · 30 min

Get Saleor and Awin joined properly

Free30 minutesNo obligation