ErrorResponse
messagestringobligatoire
Exemple :
Promo code already existserrorCodestringobligatoire
Exemple :
400:PROMO_CODE_ALREADY_EXISTSpathstringobligatoire
Exemple :
/couponsdatestring<date-time>obligatoire
details object
property name*any
validationErrors object[]
Array [
fieldstring
Exemple :
emailmessagestring
Exemple :
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"
}
]
}