Monit API using default and conventional HTTP status code for success and failed request.
Status Code | Description |
---|---|
200 | Success |
400 | Bad Request |
401 | Unauthorized |
404 | API or resource not found |
405 | Method not allowed |
409 | Conflict or duplicate request |
500 | Monit Server Error |
We also provide extra information on body response, some endpoint will provide extra field, please see request example.
Parameter | Type | Value |
---|---|---|
error_code | String (Required) | Error code |
message | String (Required) | Description |
detail | Hashmap (Only if system detect validation error) | {"field": "description"} |
Error code for general API
error_code | Descrption |
---|---|
INVALID_API_KEY | Client ID or/and Client secret are invalid. |
INVALID_SIGNATURE | Signature is invalid or not found. |
API_VALIDATION_ERROR | The request failed because it contained an invalid parameter or parameter value. |
INTERNAL_SERVER_ERROR | Monit server is failed to process the request. |
METHOD_NOT_ALLOWED | The HTTP method associated with the request is not supported. |
API_NOT_FOUND | The requested operation failed because a resource associated with the request could not be found. |
ACCOUNT_IS_NOT_FOUND | Request failed because the specific account is not found. |
INVALID_INQUIRY | Inquiry request invalid because the request data is not valid. |
INVALID_PAYMENT | Payment request invalid because the request data is not valid. |
DUPLICATE_TRANSACTION | Transaction cannot be processed because duplicate with existing reference. |
CARD_IS_NOT_FOUND | Request failed because the specific card is not found. |
INSUFFICIENT_BALANCE | Request failed because balance is not enough. |
API_IS_DISABLED | Specific API is disable, please contact Monit support for the details. |