DISCOUNTS
Update a discount
Update an existing discount with the specified details.
PATCH
/
v1
/
discounts
/
{discountId}
/
update
Authorizations
Public-Key
string
headerrequiredSecret-Key
string
headerrequiredPath Parameters
discountId
string
requiredPATCH /v1/discounts/:discountId/update Parameter
Body
application/json
id
string
requiredtype
Allowed value:
"code"
name
string
amount
amountType
enum<string>
Available options:
fixed
, percentage
discountCode
string
validFrom
integer
Required range:
0 < x < 9007199254740991
validUntil
integer
Required range:
0 < x < 9007199254740991
purchaseLimit
Minimum length:
1
excludedOffers
string[]
includedOffers
string[]
currency
enum<string>
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>
Available options:
active
, inactive
includesAllOffers
boolean
timezone
string
Response
200 - application/json
status
string
requiredAllowed value:
"success"
data
object
required