Error Code

Monit API using default and conventional HTTP status code for success and failed request.

Status CodeDescription
200Success
400Bad Request
401Unauthorized
404API or resource not found
405Method not allowed
409Conflict or duplicate request
500Monit Server Error

We also provide extra information on body response, some endpoint will provide extra field, please see request example.

ParameterTypeValue
error_codeString (Required)Error code
messageString (Required)Description
detailHashmap (Only if system detect validation error){"field": "description"}

Error code for general API

error_codestatus_codeDescrption
API_VALIDATION_ERROR400The request failed because it contained an invalid parameter or parameter value.
INVALID_REQUEST400General validation error.
IDENTITY_MISMATCH400There is a mismatch in the data between identity image and identity field.
INSUFFICIENT_BALANCE400Request failed because balance is not enough.
INVALID_INQUIRY400Inquiry request invalid because the request data is not valid.
INVALID_PAYMENT400Payment request invalid because the request data is not valid.
REJECTED_BY_BANK400The request was rejected by the bank for various reasons, such as suspected fraud, non-compliance with internal policies or other concerns.
INVALID_API_KEY401Client ID or/and Client secret are invalid.
INVALID_SIGNATURE401Signature is invalid or not found.
API_IS_DISABLED403Specific API is disable, please contact Monit support for the details.
API_NOT_FOUND404The requested operation failed because a resource associated with the request could not be found.
RESOURCE_IS_NOT_FOUND404Request failed because the specific resource is not found.
METHOD_NOT_ALLOWED405The HTTP method associated with the request is not supported.
DUPLICATE_TRANSACTION409Transaction cannot be processed because duplicate with existing reference.
DUPLICATE_USER409User already exists. Please check username, mobile phone or identity number.
INTERNAL_SERVER_ERROR500Monit server is failed to process the request.