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
INVALID_API_KEY401Client ID or/and Client secret are invalid.
INVALID_SIGNATURE401Signature is invalid or not found.
API_VALIDATION_ERROR400The request failed because it contained an invalid parameter or parameter value.
INTERNAL_SERVER_ERROR500Monit server is failed to process the request.
METHOD_NOT_ALLOWED405The HTTP method associated with the request is not supported.
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.
INVALID_INQUIRY400Inquiry request invalid because the request data is not valid.
INVALID_PAYMENT400Payment request invalid because the request data is not valid.
DUPLICATE_TRANSACTION409Transaction cannot be processed because duplicate with existing reference.
INSUFFICIENT_BALANCE400Request failed because balance is not enough.
API_IS_DISABLED403Specific API is disable, please contact Monit support for the details.