Skip to main content
PATCH
Update offer

Авторизации

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

API token from the Zenedu dashboard

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

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

Bot ID

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

Offer ID

Тело

application/json
name
string

Offer name

Maximum string length: 250
price
number

Price in main currency units

Требуемый диапазон: 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 updated

data
object