GET or POST request. Authenticate it with your API key in the X-Api-Key header, as described in Authentication.
Who referred the visitor
To attribute a conversion or customer, send one of these. If you send several, the first one in this list wins:coupon— the affiliate’s coupon code.click_id— the click ID, if you stored it when the visitor arrived.referral_code— the affiliate’s referral code, the value ofref=in their link.asset_idandsource_id— from the affiliate’s link.
Create a conversion
A successful request returns
200 with the created conversion:
Update a conversion
Approve or disapprove a conversion, or correct its amount, by itsexternal_id. Commission amounts are recalculated.
Create a customer
Track a sign-up before the first payment. Later conversions with the samecustomer_id are attributed to the same affiliate.
Update a customer
Passing affiliate data through
Affiliates can addtm_ parameters to their links, for example ?tm_foo=bar&tm_baz=qux. To keep this data, read the parameters from the landing URL and send them as meta_data, here { "foo": "bar", "baz": "qux" }.
Track a test conversion before you launch your program to check the whole flow.