Create Postback for an offer

HTTP method

Endpoint

POST

/aff/v1/offer_postbacks

Request body parameters

Field

Type

Description

Nullable

offer_id

integer

No

event_id

integer

Event id.

code

string

Must be URL format.

No

type

integer

The type of Postback URL. Allowed values: 1:Image Pixel; 2:Postback URL; 3:HTML Pixel

No

Note:offer_id = 0, representing the choice of offers all.

Response body parameters

Field

Type

Description

id

integer

Affiliate postback id.

offer_id

integer

Offer id.

affiliate_id

integer

Affiliaite id

event_id

integer

Event id.

code

string

Code.

status

string

Status of Postback. Pending; Approved; rejected

type

string

Type of code. 0: Global Postback 1:Image Pixel; 2:Postback URL; 3:HTML Pixel

create_time

integer

Create time.

update_time

integer

Update time.

Tracking Parameters

{click_id}

{offer_id}

{event_id}

{country_id}

{aff_id}

{adv_id}

{adv_sub1}

{adv_sub2}

{adv_sub3}

{aff_sub1}

{aff_sub2}

{aff_sub3}

{aff_sub4}

{aff_sub5}

{source_id}

{agent}

{click_time}

{payout}

{referer}

{accept_lan}

{ip}

{unique_click}

{currency}

{ios_idfa}

{android_id}

{google_aid}

{conversion_ip}

{amount}

Example request

Request POST https://{networkname}.api.offerslook.com/aff/v1/offer_postbacks

Request POST http://{networkname}.api.offerslook.com/aff/v1/offer_postbacks

    {
      "offer_id": 5,
      "event_id": 1,
      "code": "http: //offerslook.com",
      "type": 2
    }

Example response

    {
      "code": 0,
      "message": "Success",
      "data": {
        "affiliate_postback": {
          "id": 51,
          "offer_id": 5,
          "affiliate_id": 7,
          "event_id": 1,
          "type": 2,
          "code": "http://offerslook.com",
          "status": "pending",
          "create_time": 1468315887,
          "update_time": 1468315887
        }
      }
    }

Last updated