Error handling
HTTP Status Code
| Http Status Code | Description |
|---|---|
| 200 - OK | The request is successfully completed |
| 400 - Bad Request | The request is not accepted, usually due to incorrect or missing required parameters |
| 401 - Unauthorized | Unable to authenticate the account (API Keys do not exist, partnerCode does not exist, JWT Token expired or authentication failed). |
| 403 - Forbidden | No access rights to perform the request or the accessing IP is not whitelisted |
| 404 - Not Found | The accessed resource does not exist |
| 500 - Server Errors | Error from the AppotaPay system |
Here are some common error codes on APIs
| Error code | Description |
|---|---|
| 1 | The request is missing required information or is invalid |
| 11 | The partner does not exist |
| 13 | The partner has been locked |
| 14 | The API Key does not exist |
| 15 | The API Key has not been activated or has been locked |
| 91 | The system is busy, please try again later |
| 92 | The IP address is not allowed to access |
| 94 | The system is undergoing maintenance, please try again later |
| 99 | Undefined error, please check the transaction again later |
| 500 | The system encountered an error, please try again later |