Roomtype Audit API

The Roomtype Metadata Audit API ensures the consistency of roomtype metadata pushed from Hotel Trader to the client system. It verifies that the roomtype information stored on the client’s system matches the data sent during the Roomtype Metadata Push.

The audit can be for a single roomtype or all roomtypes of the property.

Appropriate alert messages will be sent to Partner systems after the audit.

Initiator - Hotel Trader

Endpoint

[POST] https://<client-base-url>/roomtype-aud

Request

HTTP Headers

All the HTTP Headers are mandatory. These headers are applicable and remain the same for both end-points of the Roomtype Audit API.


Header Name Type
Content-Type application/JSON
Accept-Encoding gzip
Authorization Basic <token>

Request Description

All the fields in the request are described below.


Field/Object Datatype Required Description
messageId String Yes A string that uniquely identifies this particular message. This should be returned in the response.
propertyCodeStringYesThe unique property code of the hotel for which roomtype metadata is requested.
roomCodesArrayNoIf present, return only the roomtype with these codes in the response.

Example

{
  "messageId": "haa87gds-6c1d-4e12-b374-c76735b49fc9",
  "propertyCode": "NYCMIL",
  "roomCodes": null
}

Response

Success


Error

This API follows the Standard Response model of the Content API for error response.