Skip to main content
POST
Accept a CPL campaign
То же, что Accept на странице CPL Campaigns. order_id — публичный id вида cplo_… из /api/marketer/cpl/campaigns; кампания должна быть в статусе waiting.

Условные поля

Два поля обязательны только для некоторых кампаний, в точности как в модальном окне Accept: Остальные кампании игнорируют оба поля. comment необязателен и показывается клиенту.

Ошибки

Авторизации

Authorization
string
header
обязательно

API key from the partner cabinet, Tools -> API (https://partners.onlytraffic.com/tools/api): up to 5 named keys per account, each Full or Read-only, ot_partners_ prefix, shown once at creation. Raw value or Bearer form. Read-only keys cannot call the POST endpoints (403 This API key is read-only); expired or revoked keys get 403 Error! Access denied.

Тело

application/json
order_id
string
обязательно

CPL campaign public id (cplo_…). Numeric internal ids are rejected with 404.

trial_days
integer

Trial length in days. Required for trial campaigns only; must be one of the campaign's allowed values.

fallback_url
string

Required for OT tracking-link campaigns without a predefined link. Must start with https://onlyfans.com/.

Maximum string length: 255
comment
string

Message to the client, shown on the campaign.

Ответ

200 - application/json

Success (check status; errors are also HTTP 200)

status
enum<string>
Доступные опции:
success
message
string

Confirmation text from the platform, when present.

data
object