Get mapped hotel Ids
This API allows you to retrieve newly added, deleted, or updated hotel IDs for your supplier credentials. You can send only one type of ID at a time to fetch hotel IDs. If you want to retrieve all mapped hotel IDs from the beginning, set the last sync date to 01-01-2001 and the ID type to New. Otherwise, you will need to fetch all removed hotel IDs first, then new IDs, and finally modified IDs, using the last sync date in the same sequence. At a time, you will only get only 1000 ids in the response. If there are more than 1000 ids available, you will have to fetch those using nextKey received in the current response body.
Fresh Sync Call:
HTTP: GET
Endpoint:{baseEndpoint}/api/v1/hotelcontent/ids?lastSyncDate=2001-01-01&idType=New
Sync From Particular Date::
HTTP: GET
Endpoints:
{baseEndpoint}/api/v1/hotelcontent/ids?lastSyncDate={date}&idType=Removed
{baseEndpoint}/api/v1/hotelcontent/ids?lastSyncDate={date}&idType=Modified
{baseEndpoint}/api/v1/hotelcontent/ids?lastSyncDate={date}&idType=New
Fetch Results using NextKey:
HTTP: GET
Endpoint:{baseEndpoint}/api/v1/hotelcontent/ids?lastSyncDate=2001-01-01&idType={idType}&nextKey={nextKey}
Error Codes
Error Code | Error Message |
---|---|
401 | '{{Field}}' must not be empty. |
500 | Your request failed due to an unknown system error. Please contact support team with the correlationId. |
Updated 5 months ago