Responses
Every API request is expected to yield a response. The HTTP status code of the response is 200
. This is true regardless of whether the API request processing is successful, or if it fails, e.g. due to errors during reservation processing or validation of an inventory update message. In the event of a failure, the response body contains details about the error.
Important: In the event of errors involving rate codes or category codes, details of the affected codes must be returned in the response body. These codes will also be unsynchronized as a result of the error, i.e. disabled.
Synchronous simple response
This response object represents the default response, in case of success.
Synchronous error response
In case of error, the response object will extend the simple response object with details about the error or errors. In case of any errors with rate codes or category codes, details of the affected codes must also be returned. See the Error codes table below for further details about specific errors, including guidance on system behaviour.
Example #1
Example #2
Example #3
Example #4
Property | Type | Contract | Description |
---|---|---|---|
|
| required | Determinines the result of the operation. |
|
| optional | Determinines if there will be following asynchronous response. |
|
|
| |
| array of | optional | In case of |
Error
Property | Type | Contract | Description |
---|---|---|---|
|
| required | Determines the type of error (see Error codes). |
|
| required | Error message with more details about the error. |
|
| optional* | Category code which caused the error. This is required for category errors and rate category errors. The category will be automatically unsynchronized in Mews. |
|
| optional* | Rate code which caused the error. This is required for rate errors and rate category errors. The rate will be automatically unsynchronized in Mews. |
*Important: If the error is a category error (code 10) or rate category error (code 11), then
categoryCode
must be specified. If the error is a rate error (code 9) or rate category error (code 11), thenrateCode
must be specified.
Error codes
Code | Description |
---|---|
| System error Unspecified system error. Message may be re-sent after an interval of time. |
| Reservation not found The specified reservation could not be found in the system. When this error code is returned, it should be acknowledged and the reservation should not be re-tried. |
| Connection not found The specified connection, i.e. property integration, could not be found in the system. |
|
|
|
|
| Validation error The message is incorrectly formed or contains an invalid field, or a field contains an invalid value. |
| Processing error
Business logic error occurred when processing the message, for example the message contains a negative amount that must be positive, or a reservation contains a start date that is later than its end date. The |
| Invalid authentication The request has failed authentication, e.g. an authentication token is invalid or has expired. |
| Rate error OR Disabled operation
This error code has a different meaning, depending on which side is sending the error.
Rate error (CHM side): The specified rate code is invalid, or the rate cannot be accepted. The affected rate code must be supplied in the |
| Category error
Space category error, e.g. space category XX availability updates cannot be accepted due to the settings in the Channel Manager. The affected category code must be supplied in the |
| Rate category error Rate category error, e.g. the specified space category was removed from the specified rate plan in the Channel Manager. The affected rate code and category code must be supplied. The category will be deleted from the rate. |
| Availability error Availability configuration error, e.g. availability updates are blocked by the Channel Manager. This error automatically disables availability updates. |
| Prices error Prices configuration error, e.g. price updates are blocked by the Channel Manager. This error automatically disables price updates. |
| Restrictions error Restrictions configuration error, e.g. restriction updates are blocked by the Channel Manager. This error automatically disables restrictions updates. |
Last updated