Create Affiliate Caps

HTTP method Endpoint
POST /v1/offers/{offer_id}/affiliate_caps/{affiliate_id}

Path parameters

Parameter Description
offer_id The unique id for the offer.
affiliate_id The unique id for the affiliate.

NOTE :When meet CPS offer,affiliate cap type can be only set as the same type with Offer Cap.

If offer cap type is 1 or 2, affiliate cap type only can be set as 1 or 2(type=1 or 2 means conversion cap).

If offer cap type is 3 (budget cap), then affiliate cap type only can be set as 3 (budget cap).

If offer cap type is set as 0 (no cap), affiliate cap can be set as 1, 2, 3.

Request body parameters

Field Type Description Nullable
cap_budget string
cap_click integer
cap_type integer Cap type:
1 total_count
2 daily_count
3 total_budget
No
cap_conversion integer
category integer The type of code:
1 Shared
2 Private
No

Response body parameters

Field Type Description
id integer
offer_id integer
affiliate_id integer
cap_budget string
cap_click integer
cap_type integer Cap type
cap_conversion integer
category integer The type of code.
create_time integer The Creation time of the code.

Example request

Request POST https://{networkname}.api.offerslook.com/v1/offers/16/affiliate_caps/8


Request POST http://{networkname}.api.offerslook.com/v1/offers/16/affiliate_caps/8



    {
      "cap_budget": "2",
      "category": "2",
      "cap_click": "2",
      "cap_type": "2",
      "cap_conversion": "223"
    }

Example response


    {
      "code": 0,
      "message": "Success",
      "data": {
        "affiliate_cap": [
          {
            "id": 14,
            "affiliate_id": 9,
            "campaign_id": 16,
            "cap_type": 3,
            "cap_click": 0,
            "cap_conversion": 0,
            "cap_budget": "1.23",
            "category": 2,
            "create_time": 1462527832
          },
          {
            "id": 17,
            "affiliate_id": 8,
            "campaign_id": 16,
            "cap_type": 2,
            "cap_click": 2,
            "cap_conversion": 0,
            "cap_budget": "0",
            "category": 2,
            "create_time": 1462591223
          }
        ]
      }
    }

results matching ""

    No results matching ""