POST /api/partner-network/postbacks/<public-tracking-key>/conversions
Report a paid one-time order that carries a Refermate click or a referrer's code. With a click, a code on the same order wins when it names another referrer. Without a click, the code alone attributes the order (codes only). An order with neither is rejected with 422 missing_referral_click, and a code that names no referrer of your program with 422 unknown_referral_code. A free order, whose eligible_amount_cents is 0, earns nobody anything: it answers 200 zero_amount, records nothing, and uses up no click or code.
| Field | Description |
|---|---|
order_idRequired | Your stable order ID, up to 500 characters. It is the idempotency key: resending the same order is safe. |
click_idOptional | The rm_click value the capture script stored for this shopper. Send it, discount_code, or both. |
soft_click_idOptional | The rm_soft_click value, when the capture script also stored one (the Refermate extension activating at your store). checkoutMetadata() returns both. Refermate credits it only when the click_id click's attribution window has ended; sent alone, it is the order's click. |
currencyRequired | Three-letter currency code. Only USD is accepted. |
order_subtotal_centsRequired | Paid merchandise subtotal after discounts, excluding tax and shipping, in cents as a whole number of 0 or more. Use the same basis for cumulative refunds. |
occurred_atRequired | When it happened, in ISO 8601 with an explicit offset (Z or ±HH:MM), for example 2026-09-28T17:05:00.000Z. Any number of fractional digits is accepted; Refermate keeps milliseconds and drops the rest. JavaScript toISOString(), .NET "o", Java Instant.toString(), and Python isoformat() on a timezone-aware datetime all qualify. A time without an offset is rejected. |
eligible_amount_centsOptional | The commissionable part of the subtotal, after discounts and without shipping or tax. Defaults to the subtotal and cannot exceed it. When it is 0 the order is not commissionable (zero_amount). |
line_itemsOptional | [{ product_id, amount_minor_units, quantity, line_id }], summing to the eligible amount. Each amount covers the whole line, not one unit. Required when the program pays per product. A stable line_id on every line opts the conversion into item-refund support; otherwise omit it from every line. Line IDs are immutable on retries. |
line_items[].line_idOptional | An order-line ID, not a product ID. When supplied, it must be 1 to 255 characters after trimming, present on every line and unique within the order, including repeated products. Empty or oversized IDs, mixed presence or duplicate IDs return 400 invalid_payload. Use these same IDs in refund_lines for item refunds. |
order_nameOptional | A customer-facing order number. |
customer_idOptional | Your stable customer ID. New conversions fingerprint the trimmed customer ID and discount_code. The first accepted values, including omitted values, stand: adding, changing or removing either on the same order returns 409 duplicate_order_conflict and never changes the original payee. |
discount_codeOptional | The referral code used on the order: a referrer's creator code, or the token of their referral link (/r/<token>). Refermate looks for a creator code first, then a link token. Any other discount code is ignored for attribution when the order has a click. New conversions still include the submitted, trimmed code in the retry fingerprint, even if it did not select the payee. Keep the first accepted value on retries, including its absence. Adding, changing or removing the normalized code, including a change in case, returns 409 duplicate_order_conflict. |
metadataOptional | An object of your own data, up to 4 KiB. |
testOptional | true only for a verification order: with the rmv_ click of your test link, or, for codes only, with your integration's test code (RMTEST-…) as discount_code. |
A paid order
{
"click_id": "a1B2c3D4e5F6g7H8",
"currency": "USD",
"eligible_amount_cents": 10000,
"line_items": [
{
"product_id": "SKU-1001",
"line_id": "order-line-1",
"amount_minor_units": 3000,
"quantity": 2
},
{
"product_id": "SKU-1002",
"line_id": "order-line-2",
"amount_minor_units": 7000,
"quantity": 1
}
],
"occurred_at": "2026-09-28T17:05:00.000Z",
"order_id": "ORDER-1001",
"order_name": "#1001",
"order_subtotal_cents": 10000
}A paid order with a referral code and no click
{
"currency": "USD",
"discount_code": "JANE10",
"occurred_at": "2026-09-28T17:05:00.000Z",
"order_id": "ORDER-1002",
"order_subtotal_cents": 10000
}