ErrorResponse
messagestringrequired
Example:
Promo code already existserrorCodestringrequired
Example:
400:PROMO_CODE_ALREADY_EXISTSpathstringrequired
Example:
/couponsdatestring<date-time>required
details object
property name*any
validationErrors object[]
Array [
fieldstring
Example:
emailmessagestring
Example:
email must be an email]
ErrorResponse
{
"message": "Promo code already exists",
"errorCode": "400:PROMO_CODE_ALREADY_EXISTS",
"path": "/coupons",
"date": "2024-07-29T15:51:28.071Z",
"details": {},
"validationErrors": [
{
"field": "email",
"message": "email must be an email"
}
]
}