Solvimon uses conventional HTTP response codes to indicate the success or failure of an API request.
201 or 200, the former for when a resource is created, the latter when fetching information.Our API responses hold a unique request reference in the header field: X-REQUEST-ID, that holds a value of the following format:reqr_HwDeRw0dFUrJrjCKk31w. It is advised to provide this reference for troubleshooting.
An error response consists of the following fields:
type: possible values are: API_ERROR and INVALID_REQUEST. The latter will indicate a failure on the request submitted being invalid, the former is where processing failed due to internal issues or other non-recoverable problemscode: programmatic value to indicate what failed, e.g. RESOURCE_NOT_FOUND or UNABLE_TO_PROCESS_INSTRUCTIONS. Below is a list provided for all the existing codes.field (optional): indicates which field was deemed invalidmessage: a human-readable explanation of the responseAn example of such a response would be:
A list of the existing error codes that can be within the field code.