Skip to main content
GET
Preview a CPL campaign.
Выполняет всю матрицу валидации POST /cpl/orders, ничего не создавая. Показывает рассчитанную сервером цену, проверку баланса и список ошибок, мешающих размещению. eligible: true означает, что то же тело запроса успешно пройдёт в POST /cpl/orders.

Авторизации

X-API-Key
string
header
обязательно

Your API key from the Studio Dashboard

Параметры запроса

offer_id
integer
обязательно
Требуемый диапазон: x >= 1
of_account_id
integer
обязательно
Требуемый диапазон: x >= 1
quantity
integer
обязательно
Требуемый диапазон: x >= 1
campaign_type
enum<string>
обязательно
Доступные опции:
free,
paid,
paid_trial
trial_days
enum<integer>

Required when campaign_type=paid_trial.

Доступные опции:
1,
3,
7,
14,
30,
90,
180,
360
content_channels
enum<string>[]

Optional filter. When omitted, every live channel on the model is used. When set, the order uses only the listed channels (intersected with the live ones).

Доступные опции:
lifestyle,
tiktok,
lingerie,
light_nudes,
nudes

Ответ

Quote.

success
boolean
data
object

Pre-flight validation + pricing for a CPL campaign. eligible: true means the same input would succeed against POST /cpl/orders.