Affiliate Postback Documentation

Affiliate Postback Documentation

Postbacks are used to notify you when a user signs up or makes a purchase. You can use these postbacks to track your earnings and conversions in your own system.

Parameters

You can use template parameters in postback URLs with the name that matches a parameter from the URL on the first user visit. You can use as many parameters as you want to, all will be passed back with the postback.

Example first visit URL: https://flirtback.com/creators?clickId=campaign-id&tracking_id1=external-id

You can format a postback URL like https://example.com/postback?id={tracking_id1} which will result in the postback being sent to https://example.com/postback?id=external-id

Registration postback

Registration postback will be sent as a POST request after a user registers through one of your campaigns.

Example request payload:

{
  "campaign_id": "campaign-id",
  "user_id": "f58f73f810130db11699045cb58eb6c837a9a1b0",
  "country": "US",
  "created_at": "2023-08-22T13:52:57.000000Z",
  "initial_url_params": {
    "clickId": "campaign-id",
    "tracking_id1": "external-id"
  }
}

Sales postback

Sales postback will be sent as a POST request after a user registered through one of your campaigns makes a purchase or is billed for a recurring payment.

Example request payload:

{
  "campaign_id": "campaign-id",
  "user_id": "f58f73f810130db11699045cb58eb6c837a9a1b0",
  "sale_id": "665f5d7674d75ec6a52ae95d2e72ad9e126be170",
  "sale_amount": 9.17,
  "affiliate_amount": 1.38,
  "currency": "EUR",
  "recurring": false,
  "country": "US",
  "created_at": "2023-08-22T15:05:01.000000Z",
  "initial_url_params": {
    "clickId": "campaign-id",
    "tracking_id1": "external-id"
  }
}