November 9, 2026
Each request must have a header with the user’s authentication key.
X-Api-Key: #Your key#
You can find and manage X-Api-Key in your account settings.Your X-Api-Key - has to be saved in secure storage (e.g. database, environment variables). Basic concepts Postback API endpoints accept both GET and POST requests.
When creating a request with the GET method, you need to pass all the necessary parameters in the request URL:
1.
external id A unique id for this conversion. It can be anything that is meaningful to you, like an order number, user id, email address etc. This id has to be unique for every conversion.2. You have to also send one of the parameters:
•
referral code An affiliate’s referral code. This corresponds to the value of ref= in their referral link•
coupon The affiliate’s coupon code.•
click id The click id. Used to add additional reporting information.•
asset id and source id A source id or an asset id.If more than one of them is sent, then one will be used, according to priority (from highest to lowest): coupon, click_id, referral_code, asset_id and source_id. If necessary, you can add additional parameters to the request:
•
amount The conversion amount (number).•
currency The three letter ISO currency code.If not passed, the default program currency will be used.•
customer id The id for this customer in your system. The customer id should be unique for each customer. Depending on your program settings, this can be used for recurring / lifetime commissions. You can read more about this here.•
meta data Additional data for the conversion (object).•
user agent The client’s user agent string. Used for statistics and fraud detection.•
ip The client’s IP. Used for fraud detection.
Implementation for PHP
Implementation for WordPress and WooCommerce:
If you use WooCommerce, we recommend the official Tapfiliate plugin instead: it tracks orders without custom code.The following code has to be added to the functions.php file of the active theme.