docs
  1. Admin Api
  2. Resources
  3. Vouchers
  4. Voucher Criteria
  5. Update A Voucher Criterion

Update a voucher criterion

Update an existing voucher criterion

Rate Limit: 300 Max attempts within 1 minute.

Path Parameters

ParameterDetails
shopKey
  • required
string
Example:
ms
countryCode
  • required
string
Example:
de
voucherId
  • required
integer
Example:
1
voucherCriterionId
  • required
integer
Example:
1

Request body

required
ParameterDetails
id
  • readonly
integer
key
  • required
string
Enum:
shopCategoryId
masterCategoryId
customerId
emailHash
brandId
productId
customerGroup
shopCountryId
type
  • required
string
Enum:
include
exclude
value
  • required

Responses

200
Voucher criterion was successfully updated.
application/json
Success
id
integer
keyrequired
string
typerequired
string
valuerequired
Array of undefined
400
Bad Request
application/json
Error
401
Unauthorized
application/json
Error
404
Not Found
application/json
Error
PUT/shops/{shopKey}/countries/{countryCode}/vouchers/{voucherId}/criteria/{voucherCriterionId}

Request samples

Response samples

200
Voucher Criterion:
Content type: application/json
Provide Feedback