Status codes
What each status from the conversion endpoint means – and what to do about it.
Every sale reported to Affilyflow gets a status. You see it in the response from the conversion endpoint ({ "status": "…" }) and in the live test under Setup in the store dashboard. Many statuses are perfectly normal – only some mean the setup needs fixing.
Recorded
| Status | Meaning | What to do |
|---|---|---|
ok | The sale is recorded and attributed to an affiliate – through a click, a personal discount code or the store's test link, if it was a test purchase. It now awaits the store's approval. | Nothing. |
confirmed | Only the store API with a key: the browser had already reported the order, and now it is confirmed by your server. | Nothing. |
Normal – not counted
| Status | Meaning | What to do |
|---|---|---|
duplicate | The same order number came again in the same program and wasn't counted twice – e.g. a reloaded receipt. | Nothing. If it happens on every sale, check that the order number isn't the same every time. |
click_after_order | Only with order_time: the click happened after the order, so it cannot have led to it. | Nothing – or check that order_time is the order's time in UTC or with a time zone. |
expired | The click is older than the program's cookie window. The window is locked on the click. | Nothing. When testing: open the test link again and buy right after. |
unknown | The click ID doesn't exist – deleted, wrong or never recorded. HTTP 404. | Check that you send the click ID unchanged (c_…). When testing: open the test link again and buy in the same browser. |
blocked | The store has blocked the affiliate, so the sale earned no commission. | Nothing. |
suspended | The affiliate is suspended, so the sale earned no commission. | Nothing. |
store_inactive | The store is set to inactive, so the sale earned no commission. | Write to info@affilyflow.com if it is a mistake. |
no_coupon | The sale came without a valid click but with discount codes – and none of them is a personal code. Nothing is recorded. A general code earns no commission on its own. | Nothing. If the code should have been personal, assign it to the affiliate under Program → Discount codes. |
other_network_last_click | Tracking script only: the customer's most recent affiliate click came from another network, so we stepped back (Last click wins). No sale, no commission and no fee. The response is HTTP 200, so the script doesn't send the purchase again. The order appears under Sales we could not record in the dashboard. | Nothing – this way you don't pay two networks for the same sale. The rule can be turned off with data-last-click-wins="off". |
Fix the setup
| Status | Meaning | What to do |
|---|---|---|
store_mismatch | The click belongs to a different store than the one the sale was reported for. | Check that data-store (or store) is your own store ID from Setup. |
invalid_value | The amount was negative. | Send the goods amount after discount, excluding VAT and shipping, as a positive number. |
zero_value | The program pays a fixed amount per sale, but the order was 0. | Check that the amount comes through. On the receipt: check the amount field. |
value_too_high | No longer used. Since December 2026 a sale above the program's amount cap (50,000 in the settlement currency by default) is recorded as pending and held for review by Affilyflow – the response is ok with held: "over_value_cap". | Nothing – Affilyflow checks the amount. If it was sent in cents, fix the integration. |
unsupported_currency | The currency couldn't be converted: the code isn't three letters, or there is no rate from the last 10 days. | Send an ISO 4217 code such as DKK or EUR. If the code is right, write to info@affilyflow.com. |
stale_lead_trigger | A lead (an order number starting with lead_) was reported to a program that pays per sale. | Remove the lead code or data-lead-url, and use the sale code. |
program_inactive | The program was paused when the sale came in. | Turn the program back on if the pause wasn't intended. |
not_joined | Only for legacy links without a click ID: the affiliate hasn't joined the program. | Nothing – the affiliate needs to use a link from their dashboard. |
invalid_order_time | Only with order_time: the time is in the future. | Send the order's time in ISO 8601 with a time zone, e.g. 2026-10-21T14:03:00Z. |
order_time_too_old | Only with order_time: the order is more than 180 days old. The limit only guards against integration errors – whether a sale earns commission is decided by the program's cookie period, measured from the click to order_time. | Check that order_time is the time the order was placed, in UTC or with a time zone. An order more than 180 days old cannot be reported. |
missing_attribution | Only the store API with a key: no click ID, no discount codes and no test: true. | Send afid and/or the customer's discount codes – or skip the call when the order didn't come from an affiliate. |
Rejected under the rules
These sales are recorded but shown as rejected with the reason – without commission, fee or notifications.
| Status | Meaning | What to do |
|---|---|---|
self_referral | The buyer's email is the same as the affiliate's (terms §7), and the affiliate is a company. Requires the integration to send buyer_hash (and preferably buyer_hash_n, which also catches Gmail dots and +tag). If the affiliate is a private individual, the answer is ok and the sale waits as Needs review until someone has decided it. | Nothing. |
rule_breach | The click broke the program's rules – a coupon site, forbidden paid search or a channel the program doesn't allow. Only when Affilyflow enforces program rules. | Nothing. The store sees the breach under Rule breaches. |
Leads and subscriptions
From the store API with a key and from the WooCommerce plugin's renewals. None of these is recorded.
| Status | Meaning | What to do |
|---|---|---|
lead_per_click | The click already has a lead, and the program only allows one lead per click. A rejected lead doesn't count. HTTP 422. | Nothing – or turn on Several leads per click under Program if the same visitor can become several leads. If the first lead was invalid, reject it. |
not_lead_program | A lead was reported to a program that pays per sale. HTTP 422. | Send sales to /conversions – or switch the program to leads under Program. |
lead_not_found | A sale with lead_id, but no lead with that ID in your program. A test lead only matches with "test": true. HTTP 422. | Report the lead to /leads first, and send the same lead_id. |
lead_rejected | The lead the sale followed is rejected, so the sale earns no commission. HTTP 422. | Nothing. |
lead_only_program | A sale with lead_id, but the program pays per lead only. HTTP 422. | Choose Lead and sale or Sale only under Program → Price → Leads and sales if the sale should earn commission. |
unknown_subscription | A renewal, but no first payment with that subscription_id in your store. HTTP 422. | Report the first payment with subscription_id and the click first. In WooCommerce: only subscriptions whose first payment was reported to Affilyflow give renewals. |
duplicate_period | The subscription already has a renewal for the same period with another order number. HTTP 422. | Nothing – or check that period is the period the payment covers. |
subscription_exists | A first payment with a subscription_id that already has a first payment. HTTP 422. | Send the next payments with "renewal": true. |
renewal_needs_key | Open endpoint only: a renewal from WooCommerce without the plugin's valid key. Nothing is recorded. HTTP 403. | Check that the plugin is connected under Setup. |
not_recurring, cap_reached and first_rejected can come from your server too – see From the integrations. The same lead_id twice gives duplicate and isn't counted twice.
Endpoint errors
| Status | HTTP | Meaning | What to do |
|---|---|---|---|
error | 400 | Neither a click ID, aff + store nor a discount code + store was included. | Send afid – or store and the customer's discount codes. |
error | 500 | Recording failed. The sale may not be saved. | Try again with the same order number – a duplicate isn't counted twice. |
rate_limited | 429 | Too many calls from the same IP address. | Wait a moment and try again. |
too_large | 413 | The body was over 64 KB. | Send fewer item lines. |
From the integrations
The Stripe webhook, the WooCommerce plugin and the Shopify app report sales too, and these statuses can appear in their events. The renewal statuses (not_recurring, first_rejected, cap_reached) can also come from your own server and from the WooCommerce plugin from version 1.14.0:
| Status | Meaning |
|---|---|
no_affiliate | The sale came without a click or affiliate – a normal sale. |
not_recurring | A subscription renewal where the click didn't qualify for subscription commission. |
first_rejected | A renewal of a subscription whose first sale was rejected – no commission. |
cap_reached | The subscription has reached the number of payments that earn commission. |
test_mode | Stripe in test mode isn't booked – except a Checkout purchase after the store's test link, which is recorded as a test sale. |
trial_pending | Stripe: the subscription started with a trial or a 100 % discount (0). The click is kept, and the sale is created on the first paid invoice. |
zero_amount | Stripe: a renewal of 0 – no sale. |
payment_ref | Stripe: the payment reference of a subscription payment was stored (invoice_payment.paid), so a refund or dispute finds the sale again. Not a sale. |
unpaid | The payment wasn't completed. |
unattributed | Shopify: a purchase without a click ID while the store is testing. Only the time is stored, and it is never credited. |
Disputes in Stripe
When a dispute is closed (charge.dispute.closed), the outcome appears in the event:
| Status | Meaning |
|---|---|
dispute_restored | You won the dispute, so the sale is restored exactly as it was before – same status and approval date. |
dispute_kept_rejected | You lost the dispute, so the rejection stands. |
dispute_rejected_on_close | You lost a dispute on a sale that wasn't rejected – for example because charge.dispute.created never reached us. The sale is rejected now. |
dispute_refunded_since | You won, but the payment was refunded after the dispute. The sale stays rejected. |
dispute_changed_since | You won, but the sale has been changed since – by you or by Affilyflow. It isn't changed again. |
dispute_nothing_to_restore | You won, but the sale wasn't rejected because of the dispute. Nothing to restore. |
dispute_needs_review | You won, but the sale can't be restored automatically. Open a support case if it should be restored. |
dispute_not_found | The dispute didn't belong to a sale from an affiliate. |
dispute_already_closed | Stripe sent the same closing again. Nothing changed. |
dispute_closed_unhandled | The dispute was closed before the feature was switched on. The rejection stands. |
ambiguous | Affilyflow's shared Stripe account only: the payment could belong to more than one store, so nothing was touched. |
For Stripe, unknown and expired are common: a checkout without an affiliate has no click.
Sources
Every event also has a source – where the purchase was reported from:
| Source | Meaning |
|---|---|
site-script | The tracking script in the customer's browser (the sale line, Google Analytics or affilyflow.conversion()). |
shopify | The Shopify app's pixel. |
shopify-webhook | The order from Shopify's server (the Shopify app from version 11-27, with access to orders): confirms the pixel's sale, records it when the pixel didn't get through, and reports cancellations and refunds. |
woocommerce | The WooCommerce plugin, from your own server. From version 1.9.0 it sends the store's plugin key, so the sale shows as Confirmed by server. |
stripe | The Stripe webhook. |
server | Your own server with the store's API key. Only this proves that the server route works, and the sale shows as Confirmed by server. |
server-open | The call said "source": "server" but had no valid API key for the same store. The sale is recorded as usual but doesn't count as proof that your server reports the sales. See Conversion API. |
Tracking state
Besides the status of each purchase, the dashboard shows how tracking is doing:
| State | Meaning |
|---|---|
| Tracking is running | We have seen the proof of your setup: a purchase reported by the sale code, an active Shopify pixel, a sign of life from the plugin or Stripe, or a purchase with a click from your server. |
| Tracking is waiting for the first event | The integration is connected, but we haven't seen the proof yet. Make a test purchase. |
| Tracking has stopped | The script has disappeared from your front page. |
| No tracking signal for 7 days | The plugin, the Stripe webhook or your server hasn't checked in for about a week, although affiliates are sending visitors. The program is hidden from new affiliates until tracking checks in again. See When tracking stops reporting in. |
| Tracking is not set up | No integration yet. Start under Program → Setup. |
The program is only visible to new affiliates when tracking is running and your website is saved.
See Testing and troubleshooting to find the cause step by step.
Missing something?
Write to us – we answer quickly, and the page gets fixed.