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