Skip to main content
POST
Create 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 created

data
object