Skip to Content
TrackCrest Docs

Get offer

One offer with its events (your payout per event) and creatives.

GET
/api/v1/affiliate/offers/{publicId}

Requires scope offers:read.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key: pk_company_… (network), pk_aff_… (affiliate) or pk_adv_… (advertiser). X-Api-Key works too.

Path Parameters

publicId*integer
Formatint32

Response Body

OK

application/json
  1. response
data?
Example Request
curl -X GET 'https://trakcrt.com/api/v1/affiliate/offers/0'
Example Response
{  "data": {    "publicId": 0,    "name": "string",    "status": "string",    "visibility": "string",    "payoutModel": "string",    "payout": 0.1,    "payoutPercent": 0,    "currency": "string",    "categories": [      "string"    ],    "targeting": {      "countries": [        "string"      ],      "devices": [        "string"      ],      "operatingSystems": [        "string"      ]    },    "caps": {      "daily": 0,      "monthly": 0,      "global": 0    },    "previewUrl": "string",    "startsAt": "2019-08-24T14:15:22Z",    "expiresAt": "2019-08-24T14:15:22Z",    "approved": true,    "application": {      "publicId": 0,      "status": "string",      "appliedAt": "2019-08-24T14:15:22Z",      "reviewedAt": "2019-08-24T14:15:22Z"    },    "description": "string",    "kpi": "string",    "events": [      {        "eventKey": "string",        "name": "string",        "payout": 0.1      }    ],    "creatives": [      {        "type": "string",        "title": "string",        "fileName": "string",        "fileSize": 0,        "dimensions": "string",        "trackingUrl": "string",        "downloadUrl": "string",        "createdAt": "2019-08-24T14:15:22Z"      }    ],    "payoutsByCountry": [      {        "countries": [          "string"        ],        "allExcept": true,        "events": [          "string"        ],        "eventsExcept": true,        "payoutModel": "string",        "payout": 0.1,        "payoutPercent": 0,        "currency": "string"      }    ]  }}