GET /backend/open-api/v1/affiliates/offers
Get a list of all offers and their attributes. The response may include custom offer fields. See Custom Offer Fields below.
Headers
| Name | Value |
|---|---|
| Authorization | Bearer <token> |
Query parameters
| Name | Type | Description | Required |
|---|---|---|---|
offer_id |
Integer | ID of an Offer. |
{
"data": [
{
"id": 1,
"img": null,
"traffic_source": "second source",
"category": "test",
"description": null,
"name": "test offer",
"privacy_status": "Public",
"is_accessed": true,
"request_status": null,
"advertiser": {
"id": 1,
"name": "PlayWin"
},
"brand": {
"id": 1,
"name": "test adv"
},
"traffic_sources_allowed": ["SMS", "Telegram"],
"min_deposit": 20
},
{
"id": 3,
"img": null,
"traffic_source": null,
"category": null,
"description": "<h1>Lorem ipsum dolor sit amet<\h1>",
"name": "Test Offer",
"privacy_status": "Public",
"is_accessed": true,
"request_status": "approved",
"advertiser": {
"id": 1,
"name": "PlayWinCash"
},
"brand": {
"id": 1,
"name": "test adv"
}
]},
"total": 232,
"per_page": 200,
"page": 1,
"pages": 2
}
GET /backend/open-api/v1/affiliates/offers/{offer_id}/link
Get the offer link of a specific offer.
Headers
| Name | Value |
|---|---|
| Authorization | Bearer <token> |
Path parameters
| Name | Type | Description | Required |
|---|---|---|---|
offer_id |
Integer | ID of an Offer. | ☑️ |
Query parameters
| Name | Type | Description | Checkbox | Restrictions |
|---|---|---|---|---|
offer_url_id |
Integer | ID of the URL that is taken as the link. | ☑️ | Must be related to the offer_id. |
Response
{
"link": "https://example.com/backend/api/v3/offer/472/?url_id=415&affiliate_id=227"
}