In case of an error return through our API call, we will structure the data in the following way:
| Attribute | Mandatory | Description |
|---|
| type | True | the type of error, can be one of FATAL, VALIDATION_FIELD,VALIDATION_GLOBAL |
| errorCode | True | the technical error code |
| message | True | a friendly message explaining the error |
| formObjectName | False | The object within the response |
| Field | False | The field in error |
The error codes for a FATAL PAB API are defined below:
| Error code | Message |
|---|
| ACCESS_DENIED | Invalid Authorization |
| BLACKLISTED | Blocked |
| BAD_ACCOUNT_NUMBER | Invalid Account Number |
| DUPLICATED_TRANSACTION_ID | Duplicate trace id submitted |
| INSUFFICIENT_FUNDS | Insufficient Funds in Merchant E-wallet |
| OPERATION_NOT_POSSIBLE | Operation not possible due to invalid fields |
| TRANSACTION_AMOUNT_LIMIT_ERROR | Transaction amount outside permitted limits |
| OTHER | Other |
| ErrorCode | Message |
|---|
| VALIDATION | Validation error under Field Attribute |
| ErrorCode | Message |
|---|
| DAILY_VELOCITY_EXCEEDED | Daily velocity exceeded |
| WEEKLY_VELOCITY_EXCEEDED | Weekly velocity exceeded |
| MONTHLY_VELOCITY_EXCEEDED | Monthly velocity exceeded |
| OPERATION_NOT_POSSIBLE | Velocities: Zero amount |