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