WhoCPA API documentation
GET https://whocpa.asia/api/goal
List of goals for offer(s)
Request parameters
Parameter | Type | Description |
---|---|---|
offer_id | int or array_int | Offer id |
is_active | bool | Show only active goals |
Note: the highlighted parameters are required.
Request example
GET https://whocpa.asia/api/goal/?
offer_id=6397,6498,6142,6390,6332,6260,6151,6292,6182,6400,6287,6012
&per_page=10
Response description
The response field objects
Contains a list of goals that match the specified filter. It is necessary to use pagination.
Field | Description |
---|---|
id | Goal ID |
offer_id | ID of the offer this goal belongs to |
description | Goal description |
is_active | Is the target active |
is_auto_approve | Are targeted actions approved automatically |
category | Goal category. Decoding codes:
|
currency_id | Currency ID. A complete list of used currencies is given by the method currency / list |
date_created | Goal creation date |
is_otol | Flag at which for one "tid" there can be only one action (one tid one lead) |
hold_period | 22 |
money_type | Payment type.
|
payment | The field value should be interpreted differently, depending on the value If If If
|