Skip to main content
PATCH
Update Promocode Endpoint

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

promocode_id
integer
required

Body

application/json
code
string | null
Required string length: 1 - 50
type
enum<string> | null
Available options:
balance,
subscription_days,
trial_subscription,
promo_group,
discount
balance_bonus_kopeks
integer | null
subscription_days
integer | null
max_uses
integer | null
Required range: x >= 0
valid_from
string<date-time> | null
valid_until
string<date-time> | null
is_active
boolean | null
first_purchase_only
boolean | null
promo_group_id
integer | null

Response

Successful Response

id
integer
required
code
string
required
type
enum<string>
required
Available options:
balance,
subscription_days,
trial_subscription,
promo_group,
discount
balance_bonus_kopeks
integer
required
balance_bonus_rubles
number
required
subscription_days
integer
required
max_uses
integer
required
current_uses
integer
required
uses_left
integer
required
is_active
boolean
required
is_valid
boolean
required
first_purchase_only
boolean
required
valid_from
string<date-time>
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
valid_until
string<date-time> | null
promo_group_id
integer | null
created_by
integer | null