POST
/
v1
/
discounts
/
create

Authorizations

Public-Key
string
headerrequired
Secret-Key
string
headerrequired

Body

application/json
type
required
Allowed value: "code"
name
string
amount
required
amountType
enum<string>
required
Available options:
fixed,
percentage
discountCode
string
validFrom
integer
required
validUntil
integer
purchaseLimit
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
includesAllOffers
boolean
timezone
string
required

Response

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