Skip to content

Postback URL parameters and macros: a complete reference with examples

Every parameter an advertiser can send in a RastroAff postback and every macro an affiliate can receive, with examples for leads, sales, deposits and refunds.

Updated on 19 Nov 2026

This page lists every parameter and macro used in RastroAff postbacks, in one place. There are two directions:

  • Inbound (advertiser → RastroAff): the advertiser reports a conversion.
  • Outbound (RastroAff → affiliate): the affiliate's tracker or ad platform is told about it.

Inbound: parameters the advertiser sends

Parameter Use
token Identifies the advertiser. Required.
click_id The click ID received in the landing URL. Required, unless coupon is used.
txn_id The advertiser's order, lead or transaction ID. Prevents duplicates.
amount Sale value, for percentage commissions.
status approved, pending, rejected or reversed.
goal Code of an extra event on the offer, such as reg or ftd.
coupon Coupon code, to attribute without a click.
customer_id The customer's ID, for subscriptions and renewals.
interval year or quarter for longer subscription periods.
country The customer's 2-letter country code.

Examples

A lead:

https://track.example.com/postback?token=TOKEN&click_id={clickid}&txn_id={lead_id}

A sale with value:

https://track.example.com/postback?token=TOKEN&click_id={clickid}&txn_id={order_id}&amount={total}

A refund of that sale:

https://track.example.com/postback?token=TOKEN&click_id={clickid}&txn_id={order_id}&status=reversed

Registration and first deposit on the same offer:

...&click_id={clickid}&txn_id={player_id}_reg&goal=reg
...&click_id={clickid}&txn_id={player_id}_ftd&goal=ftd&amount={deposit}

The values in braces are the advertiser's placeholders: each platform has its own names.

Outbound: macros the affiliate can receive

Macro Value
{click_id} The click ID
{conversion_id} RastroAff's conversion ID
{txn_id} The advertiser's transaction ID
{goal} Goal code (empty for the main event)
{payout}, {currency} The affiliate's earnings
{status} Conversion status
{campaign_id}, {offer_name} The offer
{affiliate_id} The affiliate's public ID
{sub1}, {sub2}, {sub3} Sub IDs from the click
{payout_model} cpa, cpl, cps…
{country}, {device} Country and device

Example for an external tracker that sent its own click ID in sub1:

https://tracker.example/postback?cid={sub1}&payout={payout}&status={status}

More detail in advertiser postback and affiliate postbacks. If something doesn't arrive, see postback troubleshooting.