DISCOUNTS
Create a new discount
Create a new discount with the specified details.
POST
/
v1
/
discounts
/
create
Authorizations
Public-Key
string
headerrequiredSecret-Key
string
headerrequiredBody
application/json
type
required
Allowed value:
"code"
name
string
amount
required
amountType
enum<string>
requiredAvailable options:
fixed
, percentage
discountCode
string
validFrom
integer
requiredvalidUntil
integer
purchaseLimit
excludedOffers
string[]
requiredincludedOffers
string[]
requiredcurrency
enum<string>
requiredAvailable 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>
requiredAvailable options:
active
, inactive
includesAllOffers
boolean
timezone
string
requiredResponse
200 - application/json
status
string
requiredAllowed value:
"success"
data
object
required