Create a new post back of the affiliate

HTTP method

Endpoint

POST

/v1/affiliate_postbacks

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

Adding a new parameter, event_id, in Affiliate Postback module method. It is compatible with last version, and the default value is 1.

Request body parameters

Field

Type

Description

Nullable

offer_id

integer

No

affiliate_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

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}

Response body parameters

Field

Type

Description

id

integer

The unique id for the affiliate postback.

offer_id

integer

Offer id.

affiliate_id

integer

Affiliate id.

event_id

integer

Event id.

code

string

status

string

The status of the postback.

type

integer

The type of code. Possible Values: 1:Image Pixel; 2:Postback URL; 3:HTML Pixel

create_time

integer

Create time.

update_time

integer

Update time.

Example request

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

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

    {
      "affiliate_id": 40,
      "offer_id": 8,
      "event_id": 1,
      "type": 2,
      "code": "https://offerslook.gitbooks.io/api-documentation/content/affiliatepostbacks/affiliatepostbacksmd_md.html"
    }

Example response

    {
      "code": 0,
      "message": "Success",
      "data": {
        "affiliate_postback": {
          "id": 8,
          "offer_id": 8,
          "affiliate_id": 40,
          "event_id": 1,
          "code": "https: //offerslook.gitbooks.io/api-documentation/content/affiliatepostbacks/affiliatepostbacksmd_md.html",
          "status": "approved",
          "type": 2,
          "create_time": 1467857354,
          "update_time": 1467857354
        }
      }
    }

Last updated