Skip to content
GET or POST/api/postback/{program}/{token} You call us

You call DataFlair. You write a client for this API. DataFlair does not call your server.

Postback request builder ​

Fill in the fields to build the curl command for one postback. The builder does not send anything. You copy the command and run it from your own server.

Build the request

curl -X POST "https://{stats-host}/api/postback/12/YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "affiliate_id": "AFF-00042",
    "conversion_type": "ftd",
    "postback_id": "pb_001",
    "amount": 25.00,
    "status": "approved"
  }'

This builds the command. It does not send it. A postback counts in reports. To send a test, use Fire test postback on the program's Integrations page in the Stats app. See Testing postbacks.

Before you send it ​

  • A real token records a real conversion. A postback defaults to approved and counts in reports. The contract has no test flag on the request. To send a test, use the tools in the Stats app. See Testing postbacks.
  • Send it from your server. Do not put the token in client-side code. See Authentication.
  • The host is a placeholder until you enter one. Copy the real URL from the Postback endpoint card on the program's Integrations page.
  • The example values are the ones in the Postback contract. Replace them with your own.

Docs version 1.0.1