In the event that information is passed in incorrectly, the API will assist in the resolution of the error by responding with pertinent information. The information can be used to pinpoint the mistake in the passed request. Here are some of the error responses you may encounter if a payload is incorrect.
Common Validation Errors
{
"errorCode":"ValidationError",
"message":"Validation error happened",
"details":[
"Amount cannot be zero."
],
"responseCode":"eaCnGOfmRopYmcmJmlj8f1A"
}
{
"errorCode":"ValidationError",
"message":"Validation error happened",
"details":[
"Incorrect zipcode format"
],
"responseCode":"emZhnmvZKgvfbhTLTEi1hww"
}
{
"errorCode":"Unauthorized",
"message":"Unauthorized",
"details":[
"Unauthorized"
],
"responseCode":"ej6405i518mG3T7Z6nD60Ew"
}
{
"errorCode":"ValidationError",
"message":"Validation error happened",
"details":[
"Missing expiration month and/or year"
],
"responseCode":"enw3GryBnE8RG75PoEP4q8g"
}