Update the settings for an affiliate’s post back

HTTP method

Endpoint

PUT

/v1/affiliate_postbacks/{postback_id}

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

Path parameters

Parameter

Description

postback_id

The unique id for the postback.

Request body parameters

Field

Type

Description

Nullable

code

string

The code of the postback. Must be URL format.

No

status

integer

The status of the postback. Allowed values: approved ; rejected

type

integer

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

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 PUT https://{networkname}.api.offerslook.com/v1/affiliate_postbacks/8

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

    {
      "code": "https://offerslook.gitbooks.io/api-documentation/content/affiliatepostbacks/affiliatepostbacksmd_md.html",
      "status": "approved",
      "type": 2
    }

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": 1467857394
        }
      }
    }

Last updated