Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Partner postback (S2S) failing: how to find and fix it

TRK-266Medium impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

A postback is a web request your server (or your CRM or store backend) sends to an affiliate or partner network when a sale or lead happens. It runs without the visitor's browser, which is why it is called server-to-server (S2S). The request usually carries a click ID, an order ID and an amount, for example https://network.example/postback?clickid={clickid}&payout={amount}&order={order_id}.

Why it costs you leads or sales

Partners are paid on what the network records. If postbacks fail, affiliates see no conversions for traffic they sent. They stop promoting you, ask for manual corrections or leave. Your own reports also undercount partner revenue, so you may cut a channel that works.

Where a failed postback breaks the chain
  1. Partner clickClick ID stored
  2. PurchaseOrder completed
  3. Postback sentError, empty macro or wrong URL
  4. Network records saleNothing received
  5. Partner paidNo commission

The customer buys normally. The break happens on the server, so nothing looks wrong on the site.

A sale happens but the postback never arrives

The order succeeds, the server call fails, the network sees nothing.

How to check if your site has it

Because the call happens on the server, you will not see it in the browser. Start with the signs, then look at the logs.

Signs your postbacks are failing
  • Partners report missing conversions that you can see in your own orders
  • Network dashboard shows clicks but zero or very few conversions
  • Your order count and the network's conversion count drift apart
  • Your logs show 4xx or 5xx responses from the network's postback URL
  • The logged postback URL still contains raw placeholders such as {clickid}
Find the failure
  1. Find the outgoing request log

    Check your store, CRM, server or automation tool for a webhook or HTTP request log. Look for the postback call around the time of a known order.

  2. Read the status code

    200 means the network accepted it (though it may still reject the content). 400 usually means a missing or malformed parameter, 401 or 403 an auth or IP allow-list problem, 404 a wrong URL, 5xx a network-side error.

  3. Inspect the final URL

    Check that every macro was replaced with a real value. Empty clickid or literal {clickid} text means the click ID was never stored.

  4. Test with a known click

    Generate a test click through the partner link, complete a test conversion and see whether the network shows it. Many networks have a postback test tool or conversion log.

  5. Compare totals

    Compare your partner-attributed orders with the network's conversions over the same period to size the gap.

How to fix it

Fix a failing postback
  1. Capture the click ID on landing

    Read the click ID parameter from the URL on the first page view and save it in a first-party cookie or session. If a redirect strips it, fix that first.

  2. Pass the click ID into the order

    Save it with the order or lead record (a hidden field, order note or custom field) so the server can read it when the sale completes.

  3. Rebuild the postback URL

    Copy the exact URL and macro names from the network. Replace each macro with the real value and URL-encode them.

  4. Trigger it on the right event

    Send it when the order is paid or the lead is confirmed, once per order, with a unique order ID to avoid duplicates.

  5. Fix access and add retries

    Add any required token or IP allow-list entry, and retry on timeouts and 5xx responses.

  6. Replay missed conversions

    Ask the network how to submit past conversions, by re-sending postbacks with the stored click IDs or uploading a conversion file.

Example: send a postback from Node.js with retriesjavascript
async function sendPostback({ clickId, orderId, amount }) {
  const url = new URL('https://network.example/postback');
  url.searchParams.set('clickid', clickId);
  url.searchParams.set('order', orderId);
  url.searchParams.set('payout', amount);

  for (let attempt = 1; attempt <= 3; attempt++) {
    try {
      const res = await fetch(url, { method: 'GET' });
      if (res.ok) return true;
      if (res.status < 500) break; // 4xx: fix the request, do not retry
    } catch (e) {}
    await new Promise(r => setTimeout(r, attempt * 2000));
  }
  console.error('Postback failed', orderId);
  return false;
}
Where to look on each platform
  1. Check the affiliate app

    If a partner app sends the postback, open its settings and activity log for failed calls.

  2. Save the click ID on the order

    Store it as a cart attribute or order note so it is available at order creation.

How to confirm it's fixed

Confirm
  1. Run a test conversion

    Click a partner test link, complete a test order or lead and watch your log for a 200 response.

  2. Check the network dashboard

    The test conversion should appear with the right click ID, order ID and amount, usually within minutes.

  3. Watch real orders

    Over the next few days, compare partner-attributed orders to network conversions. The gap should close.

Postback before and after

Failing

  • URL contains {clickid} as raw text
  • Network returns 400 or 404
  • Partners see clicks but no sales

Working

  • Real click ID and order ID in the URL
  • Network returns 200 and logs the sale
  • Partner and store totals match

How to prevent it happening again

Prevention checklist
  • Log every postback with URL, status code and response
  • Alert yourself on repeated non-200 responses
  • Retry on timeouts and 5xx with a queue
  • Re-test after changing checkout, CRM, domain or hosting
  • Reconcile your partner orders with network totals each week
  • Keep the network's postback documentation and your macro mapping in one place
Partner sales recorded vs actualExample numbers
Partner sales recorded vs actual (example)Actual partner orders: 100 sales; Recorded, postback failing: 35 sales; Recorded, postback fixed: 98 sales038771003598Actual partner ordersRecorded, postback fa…Recorded, postback fi…sales

Example: 100 partner-driven orders, with and without a working postback. Numbers are illustrative.

How FunnelGuard handles this

This issue is outside what FunnelGuard checks. A postback is a server-to-server request, and FunnelGuard works like a visitor in a browser, running your journeys and checking the steps and the browser tracking hits. It cannot see what your server sends to a partner network.

How a failing postback unfolds (example)
  1. Day 0

    A checkout change renames the field holding the click ID

  2. Day 1

    Postbacks go out with an empty click ID and the network rejects them

  3. Day 7

    A partner asks why their sales dropped to zero

  4. Day 8

    You read the logs, fix the mapping and replay missed sales

Questions people ask

Why is my affiliate postback not working?

The most common causes are a missing click ID, macros that were never replaced, a wrong postback URL, or the network blocking the request. Check your outgoing request log for the status code and the final URL. A 400 or 404 usually points to the URL or parameters.

What is an S2S postback?

An S2S (server-to-server) postback is a request your server sends directly to an affiliate network when a sale or lead happens. It does not rely on the visitor's browser, so ad blockers and cookie limits do not affect it. It must carry the click ID to credit the right partner.

Why does my postback return 200 but the conversion does not show?

A 200 only means the network received the request. The conversion may still be rejected for an invalid or expired click ID, a duplicate order ID or a wrong campaign ID. Check the network's conversion or rejection log for the reason.

How do I test a postback URL?

Click a partner test link, complete a test order or lead, and check your log for the request and response. Then look for the conversion in the network dashboard. Many networks also offer a test tool where you can paste a click ID and fire the postback.

Can I resend postbacks for missed conversions?

Often yes, if you stored the click IDs with the orders. Re-send the postback for each missed order, or upload a conversion file if the network supports it. Ask the network about time limits, since old clicks may no longer be accepted.

Why is the click ID empty in my postback?

The click ID was not saved when the visitor landed, or it was lost on a redirect or a cookie issue. Capture the parameter on the first page view and store it with the order so the server can read it later.

Can FunnelGuard monitor my partner postbacks?

No. Postbacks are server-to-server requests, which FunnelGuard does not see. Use server logs, an error or log monitor and the network's own conversion log for that.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.