Skip to main content
PATCH
Update affiliate program

Авторизации

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

API token from the Zenedu dashboard

Параметры пути

bot
integer
обязательно

Bot ID

Тело

application/json
title
string
Maximum string length: 255
active
boolean
description
string
reward_type
enum<string>
Доступные опции:
percent,
fixed
reward_amount
number

Reward amount (percent value, or fixed amount in the account currency)

Требуемый диапазон: x >= 0.01
offer_ids
integer[] | null

Offer IDs the program applies to

conversion_window
integer | null

Attribution window in days

Требуемый диапазон: x >= 0
min_payout
number | null

Minimum payout amount

Требуемый диапазон: x >= 0
duration_type
enum<string> | null
Доступные опции:
months,
years
duration_amount
integer | null
Требуемый диапазон: x >= 1

Ответ

Affiliate program updated

data
object