Shopify order attribution checker

Paste an order webhook payload to see which affiliate ref it carries, which field that came from, and the amount commission would accrue on. Runs in your browser, nothing is uploaded.

Attribution

Ref JORDAN10, taken from the discount code.

Discount code
JORDAN10
ref note attribute
JORDAN10
External id
gid://shopify/Order/5432167890

Commissionable amount

Currency
USD (2 decimals)
Post-discount subtotal
49.90 USD
Minor units
4990

Excludes tax and shipping. The scale is the currency's real ISO exponent, not a fixed two decimals, so zero-decimal currencies like JPY are not multiplied by 100.

How Shopify attribution works

  1. A creator sends a shopper to your store with a tracking link, which preserves a ref value, or with their own discount code.
  2. On checkout, the order webhook carries the discount code and, when preserved, a ref note attribute.
  3. The validated discount code wins. A note attribute is client-settable, so it is only used when there is no discount code.
  4. If both are present and resolve to different affiliates, attribution fails closed and neither is credited.
  5. Commission accrues on the post-discount merchandise subtotal, before tax.

The full setup is in the Shopify guide, and attributing Shopify sales without cookies covers why this works without tracking pixels.

Questions

Which wins, the discount code or the ref note attribute?
The discount code. It is validated by Shopify at checkout, while a note attribute is arbitrary data that a client can set. Attribloom uses the discount code when both are present.
What happens when the discount code and the ref note belong to different affiliates?
Attribution fails closed. The server resolves both to affiliate ids and, if they differ, credits neither rather than guessing. This page cannot resolve affiliate ids, so it only tells you when the server will run that check.
Why is the amount shown in minor units?
Money is stored and computed as integer minor units to avoid floating point drift. The scale is the currency's real ISO exponent, so USD 49.90 is 4990 while JPY 4990 is 4990, not 499000. Assuming two decimals everywhere is a hundredfold error on zero-decimal currencies.
Does this include tax and shipping?
No. The figure shown is the order's post-discount merchandise subtotal, which is what commission accrues on. Tax and shipping are excluded.
Is my order data sent anywhere?
No. The payload is parsed and analysed in your browser. There is no network request and nothing is stored. You can confirm this in your browser's network tab.

More utilities on the free tools page.