Create a voucher
Create a new voucher
Rate Limit: 300 Max attempts within 1 minute.
Path Parameters
Parameter | Details |
---|---|
shopKey
| string Example: ms |
countryCode
| string Example: de |
Request body
requiredParameter | Details |
---|---|
id
| integer |
code
| string |
constraints | object isValidOnCampaigns boolean |
criteria | object key stringEnum: shopCategoryId masterCategoryId customerId emailHash brandId productId customerGroup shopCountryId type stringEnum: include exclude value array |
isApplicableToPromotions | boolean |
name
| string |
status | string Enum: active inactive pending-review archived |
summary | string |
type
| string Enum: absolute relative |
value
| number Example: 0.1 |
Responses
201
Voucher was successfully created.
application/json
Success
id
integer
code
string
object
Array of object
isApplicableToPromotions
boolean
namerequired
string
status
string
summary
string
typerequired
string
valuerequired
number
Example:
0.1
400
Bad Request
application/json
Error
401
Unauthorized
application/json
Error
404
Not Found
application/json
Error
POST
Request samples
Response samples
201Voucher:
Content type: application/json