POST
/
v1
/
discounts
/
create

Authorizations

Public-Key
string
headerrequired
Secret-Key
string
headerrequired

Body

application/json
type
required
Allowed value: "code"
amount
required
amountType
enum<string>
required
Available options:
fixed,
percentage
validFrom
integer
required
Required range: 0 < x < 9007199254740991
excludedOffers
string[]
required
includedOffers
string[]
required
currency
enum<string>
required
Available options:
AFN,
ALL,
DZD,
AOA,
ARS,
AMD,
AWG,
AUD,
AZN,
BSD,
BDT,
BBD,
BZD,
BMD,
BOB,
BAM,
BWP,
BRL,
GBP,
BND,
BGN,
BIF,
BYN,
KHR,
CAD,
CVE,
KYD,
XAF,
XPF,
CLP,
CNY,
COP,
KMF,
CDF,
CRC,
HRK,
CZK,
DKK,
DJF,
DOP,
XCD,
EGP,
ETB,
EUR,
FKP,
FJD,
GMD,
GEL,
GIP,
GTQ,
GNF,
GYD,
HTG,
HNL,
HKD,
HUF,
ISK,
INR,
IDR,
ILS,
JMD,
JPY,
KZT,
KES,
KGS,
LAK,
LBP,
LSL,
LRD,
MOP,
MKD,
MGA,
MWK,
MYR,
MVR,
MRO,
MUR,
MXN,
MDL,
MNT,
MAD,
MZN,
MMK,
NAD,
NPR,
ANG,
TWD,
NZD,
NIO,
NGN,
NOK,
PKR,
PAB,
PGK,
PYG,
PEN,
PHP,
PLN,
QAR,
RON,
RUB,
RWF,
SHP,
SVC,
WST,
STD,
SAR,
RSD,
SCR,
SLL,
SGD,
SBD,
SOS,
ZAR,
KRW,
LKR,
SRD,
SZL,
SEK,
CHF,
TJS,
TZS,
THB,
TOP,
TTD,
TRY,
UGX,
UAH,
AED,
UYU,
USD,
UZS,
VUV,
VEF,
VND,
XOF,
YER,
ZMW,
SLE
status
enum<string>
required
Available options:
active,
inactive
timezone
string
required
name
string
discountCode
string
validUntil
integer
Required range: 0 < x < 9007199254740991
purchaseLimit
Minimum length: 1
includesAllOffers
boolean

Response

200 - application/json
status
string
required
Allowed value: "success"
data
object
required