Skip to main content
POST
Create offer link

Авторизации

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

API token from the Zenedu dashboard

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

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

Bot ID

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

Offer ID

Тело

application/json
create_order
boolean
обязательно

Whether to create an order when the link is used

name
string | null

Link name. Defaults to "Link #N" on create

Maximum string length: 255
usage_limit
integer | null

Maximum number of uses; null for unlimited

Требуемый диапазон: 1 <= x <= 99999
expire_date
string<date-time> | null

Expiration date; null for no expiration

Ответ

Offer link created

data
object