The hoteliga API

Errors & Troubleshooting

Errors

The API attempts to use codes to indicate any errors that occur while processing requests. These error responses provide information on the underlying fault that can be used for debugging the error.Under the standard HTTP 400 status code the following errors can occur:

Error Code Description
1001 The received request is empty
1002 The date range of the request is not valid
1003 The date range of the request is too large
1004 The received request is partially empty
1005 A mandatory field is missing from the request
1006 The value of a field in the request is not valid
1007 The requested object was not found
1008 The requested object was not deleted
1009 The server cannot be reached
1010 No channels were found
1011 No channels to update were found
1012 No contracts for channels were found
1013 Channel contracts do not share the same price list
1014 There is no reserved room and an associated checked-in reservation for the criteria set
1015 The requested object was not created
9999 Domain was not found

Example

<?xml version="1.0" ?>
<error>
    <code>1001</code>
    <description>Empty request.</description>
</error>
 
{
    "code":"1001",
    "description":"Empty request."
}
        

Troubleshooting

Why do I get error code 1001?

This error code is returned when sending a request with an empty body or a bad formatted body. First make sure that the body of your request is not empty. Also, check that the Content-Type header agrees with the request that you are issuing. For example, trying to send XML request with header Content-Type: application/json will result in error code 1001. If these are not the cases, then the most probable reason for getting this error code, is that your request is invalid. That is, for JSON request a missing comma, or a date value without double quotes would result in error code 1001. For XML request an incorrectly closed tag would have the same result. In both cases, mind also that all properties of request should be using the camelCase notation.

I could use some help

If after reading this FAQ, you still have questions, contuct us to support@hoteliga.com. If you are having issues with a call, have in mind that as many as possible elements of the request and the response will be helpful when emailing us. Windows developers can use Fiddler, which is the preferred tool at hoteliga, to view the HTTP messages that are being sent and received.