Status codes

What each status from the conversion endpoint means – and what to do about it.

View as Markdown

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

StatusMeaningWhat to do
okThe 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.
confirmedOnly 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

StatusMeaningWhat to do
duplicateThe 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_orderOnly 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.
expiredThe 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.
unknownThe 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.
blockedThe store has blocked the affiliate, so the sale earned no commission.Nothing.
suspendedThe affiliate is suspended, so the sale earned no commission.Nothing.
store_inactiveThe store is set to inactive, so the sale earned no commission.Write to info@affilyflow.com if it is a mistake.
no_couponThe 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_clickTracking 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

StatusMeaningWhat to do
store_mismatchThe 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_valueThe amount was negative.Send the goods amount after discount, excluding VAT and shipping, as a positive number.
zero_valueThe 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_highNo 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_currencyThe 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_triggerA 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_inactiveThe program was paused when the sale came in.Turn the program back on if the pause wasn't intended.
not_joinedOnly 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_timeOnly 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_oldOnly 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_attributionOnly 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.

StatusMeaningWhat to do
self_referralThe 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_breachThe 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.

StatusMeaningWhat to do
lead_per_clickThe 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_programA 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_foundA 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_rejectedThe lead the sale followed is rejected, so the sale earns no commission. HTTP 422.Nothing.
lead_only_programA 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_subscriptionA 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_periodThe 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_existsA first payment with a subscription_id that already has a first payment. HTTP 422.Send the next payments with "renewal": true.
renewal_needs_keyOpen 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

StatusHTTPMeaningWhat to do
error400Neither a click ID, aff + store nor a discount code + store was included.Send afid – or store and the customer's discount codes.
error500Recording failed. The sale may not be saved.Try again with the same order number – a duplicate isn't counted twice.
rate_limited429Too many calls from the same IP address.Wait a moment and try again.
too_large413The 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:

StatusMeaning
no_affiliateThe sale came without a click or affiliate – a normal sale.
not_recurringA subscription renewal where the click didn't qualify for subscription commission.
first_rejectedA renewal of a subscription whose first sale was rejected – no commission.
cap_reachedThe subscription has reached the number of payments that earn commission.
test_modeStripe in test mode isn't booked – except a Checkout purchase after the store's test link, which is recorded as a test sale.
trial_pendingStripe: 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_amountStripe: a renewal of 0 – no sale.
payment_refStripe: the payment reference of a subscription payment was stored (invoice_payment.paid), so a refund or dispute finds the sale again. Not a sale.
unpaidThe payment wasn't completed.
unattributedShopify: 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:

StatusMeaning
dispute_restoredYou won the dispute, so the sale is restored exactly as it was before – same status and approval date.
dispute_kept_rejectedYou lost the dispute, so the rejection stands.
dispute_rejected_on_closeYou 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_sinceYou won, but the payment was refunded after the dispute. The sale stays rejected.
dispute_changed_sinceYou won, but the sale has been changed since – by you or by Affilyflow. It isn't changed again.
dispute_nothing_to_restoreYou won, but the sale wasn't rejected because of the dispute. Nothing to restore.
dispute_needs_reviewYou won, but the sale can't be restored automatically. Open a support case if it should be restored.
dispute_not_foundThe dispute didn't belong to a sale from an affiliate.
dispute_already_closedStripe sent the same closing again. Nothing changed.
dispute_closed_unhandledThe dispute was closed before the feature was switched on. The rejection stands.
ambiguousAffilyflow'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:

SourceMeaning
site-scriptThe tracking script in the customer's browser (the sale line, Google Analytics or affilyflow.conversion()).
shopifyThe Shopify app's pixel.
shopify-webhookThe 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.
woocommerceThe 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.
stripeThe Stripe webhook.
serverYour 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-openThe 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:

StateMeaning
Tracking is runningWe 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 eventThe integration is connected, but we haven't seen the proof yet. Make a test purchase.
Tracking has stoppedThe script has disappeared from your front page.
No tracking signal for 7 daysThe 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 upNo 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.

Contact support