Retrieve hotel incremental dump
https://api-sandbox.worldota.net/api/b2b/v3/hotel/info/incremental_dump/https://api.worldota.net/api/b2b/v3/hotel/info/incremental_dump/The call gets the dump with the ETG hotels which content has changed in the previous day.
ℹ️
The dump:
- Is incremental.
- Should be updated every day.
The ETG generates each archive for a single language.
⚠️
- Indexing of any internal content such as photos, descriptions and others isn’t allowed.
- Any public content such as a name, address, amenities and policies can be indexed.
Sandbox limitations
⚠️
Use only field values, IDs, API keys, and any static content from the sandbox environment within the sandbox. Do not use sandbox data in test or production environments, and do not mix data or configuration between different environments.
- The value of the
languagefield is always set toen. - The inventory field supports the following values:
all,direct,preferable, anddirect_fast. - The maximum number of items in the dump is
1000. - For all objects containing the
currency_codefield, its value is alwaysEUR.
Request example
curl --user '<KEY_ID>:<API_KEY>' 'https://api-sandbox.worldota.net/api/b2b/v3/hotel/info/incremental_dump/' \
--header 'Content-Type: application/json' \
--data '{
"language": "en",
"inventory": "all"
}'curl --user '<KEY_ID>:<API_KEY>' 'https://api.worldota.net/api/b2b/v3/hotel/info/incremental_dump/' \
--header 'Content-Type: application/json' \
--data '{
"language": "en",
"inventory": "all"
}'Request body
Response
Response example
{
"data": {
"last_update": "2020-07-01T00:38:13Z",
"url": "https://example.com/feed/dump_en.json.zst"
},
"debug": null,
"error": null,
"status": "ok"
}Errors
The error field has the value specified in the headers below.
dump_not_ready
The dump is in processing. Try to send the request later.