Skip to main content
November 9, 2026
Each request has to have a header with the user’s authentication key. X-Api-Key: #Your key# You can find and manage the X-Api-Key on your Profile page.
Your X-Api-Key - has to be saved in secure storage (e.g. database, environment variables).
Basic concepts Defining constants for further usability.
For parsing data from global arrays when going to the site, the desired transition parameters need to be stored in the user’s cookies.
When a target action happens a customer needs to be created and a conversion tracked. Create a customer
To create a customer, an array with data in it needs to be passed.
Required parameters:
• customer id The unique identifier of the customer in your system.
You have to also send one of the parameters:
• referral code An affiliate’s referral code.
• coupon An affiliate’s coupon code.
• asset id and source id Both of them together: one without the other is not enough.
Those parameters that come in the link will be taken from it and saved in cookies, the rest must be entered manually.
Сreate a conversion
To create a conversion an array with data in it needs to be passed.
Required parameters:
• external id A unique id for this conversion.
You have to also send one of the parameters:
• referral code An affiliate’s referral code.
• coupon An affiliate’s coupon code.
• asset id and source id Both of them together: one without the other is not enough.
A customer id on its own is enough only for a customer that already exists in Tapfiliate, has an affiliate and is in a program with lifetime/recurring commissions; for a new customer, or without these commissions, also send one of these parameters, or the conversion is rejected.
Those parameters that are included in the link will be taken from it and saved in cookies, the rest must be entered manually.
After that, a customer with a conversion attached to it should appear in your Tapfiliate interface. Example function for sending POSTBACK.
To create customers/conversions, an array with data in it needs to be passed.
Note: S2S/Postback tracking is an advanced feature. As such, set up of this feature falls outside the scope of our support. You may need a developer to assist in setting this up.