Skip to main content
POST
Generate offer link

Авторизации

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

API token from the Zenedu dashboard

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

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

Bot ID

Тело

application/json
offer_id
integer
обязательно

ID of the offer

usage_limit
number
по умолчанию:1

Maximum number of times the link can be used

Требуемый диапазон: 1 <= x <= 999999
expire_date
string

Expiration date in Y-m-d H:i:s format (must be in the future)

Пример:

"2026-12-31 23:59:59"

create_order
boolean
по умолчанию:true

Whether to create an order when the link is used

Ответ

Offer link generated, or an error payload when the offer is not found

status
string
Пример:

"success"

data
object