Skip to main content
POST
Create offer

Авторизации

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

API token from the Zenedu dashboard

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

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

Bot ID

Тело

application/json
name
string
обязательно

Offer name

Maximum string length: 250
price
number
обязательно

Price in main currency units, for example 10.00. 0 creates a free offer

Требуемый диапазон: x >= 0
currency
enum<string>
обязательно

Currency code

Доступные опции:
USD,
EUR,
UAH,
PLN,
KZT,
CNY,
CHF,
CZK,
GBP,
SGD,
ILS,
CAD,
JPY,
HKD,
AUD,
MDL,
BGN,
TRY,
KGS,
MXN,
RON
is_subscription
boolean

Whether this is a recurring subscription

subscription_period
object | null

Billing period of a subscription

public_name
string | null

Name shown on the payment page

Maximum string length: 250
landing_text
string | null

Payment page description

landing_button
string | null

Payment page button text

Maximum string length: 250

Offer description

offerables
object[]

Products and resources included in the offer, in display order. When passed on update, replaces the current list

payment_system_ids
integer[]

Payment system IDs attached to the offer. When passed on update, replaces the current list

settings
object

Offer settings grouped by key: access, timeLimit, usageLimit, paymentNotification, subscriptionNotification, paymentReminder, removeFromProducts, request_contacts, landingRequestContacts, appRequestContacts, subscriptionPaymentAttempts, landingPaymentEmail, subscriptionRenewalReminder, landingPaymentReminder, delete_steps, landingSettings, botMessage, paidTrial, appDisplay

Ответ

Offer created

data
object