{"info":{"_postman_id":"e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","name":"StructurrAI Hotel Mapping","description":"<html><head></head><body><p>StructurrAI Hotel Mapping gives travel companies, OTAs and hotel aggregators one deduplicated hotel catalog built from many supplier feeds. AI-driven matching groups every supplier listing of the same physical property into a single <strong>StructurrAI hotel</strong>, identified by a stable <code>standardized_hotel_id</code>.</p>\n<h3 id=\"api-structure\">API Structure</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Module</th>\n<th>Endpoint</th>\n<th>Purpose</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>Country Master</strong></td>\n<td><code>GET /api/v2/countries</code></td>\n<td>Standardized list of countries with StructurrAI country codes (e.g. <code>SI-IN</code>).</td>\n</tr>\n<tr>\n<td><strong>City Master</strong></td>\n<td><code>GET /api/v2/cities</code></td>\n<td>Standardized cities and StructurrAI city codes for a country, with synonyms and parent (satellite) city links.</td>\n</tr>\n<tr>\n<td><strong>CDC: Added Hotels</strong></td>\n<td><code>GET /api/v2/addedhotels</code></td>\n<td>Ids of hotel clusters added since a given date. Paged by <code>token</code> / <code>next_token</code>.</td>\n</tr>\n<tr>\n<td><strong>CDC: Updated Hotels</strong></td>\n<td><code>GET /api/v2/updatedhotels</code></td>\n<td>Ids of hotel clusters whose details or mappings changed since a given date. Paged by <code>token</code> / <code>next_token</code>.</td>\n</tr>\n<tr>\n<td><strong>CDC: Deleted Hotels</strong></td>\n<td><code>GET /api/v2/deletedhotels</code></td>\n<td>Ids of hotel clusters removed since a given date. Paged by <code>token</code> / <code>next_token</code>.</td>\n</tr>\n<tr>\n<td><strong>Paginated Search</strong></td>\n<td><code>POST /api/v2/hotel/search</code></td>\n<td>Hotel ids in one city, one page at a time (up to 50 per page). 1 city per call. Paged by <code>token</code> / <code>next_token</code> (recommended) or <code>page</code>.</td>\n</tr>\n<tr>\n<td><strong>Static Hotel Data</strong></td>\n<td><code>POST /api/v2/hotel/data/static</code></td>\n<td>Static content for up to 50 hotel ids per call.</td>\n</tr>\n<tr>\n<td><strong>Static Data Provider</strong></td>\n<td><code>POST /api/v2/hotel/data/provider</code></td>\n<td>Canonical record plus supplier mappings for up to 50 hotel ids per call.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"authentication\">Authentication</h3>\n<p>Send your API key in the <code>api-key</code> header on every request.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>api-key: &lt;your_api_key&gt;\n\n</code></pre><p>A missing or invalid key returns <code>401 {\"detail\": \"Invalid or missing API key\"}</code>.</p>\n<h3 id=\"base-url\">Base URL</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Environment</th>\n<th>URL</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Test</td>\n<td><code>https://test.structurrai.com</code></td>\n</tr>\n<tr>\n<td>Production</td>\n<td><code>https://api.structurrai.com</code></td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response-envelope\">Response envelope</h3>\n<p>Every successful response uses the same envelope:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"success\": true,\n  \"message\": \"Human-readable status\",\n  \"data\": { },\n  \"errors\": null\n}\n\n</code></pre>\n<h3 id=\"errors\">Errors</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Status</th>\n<th>When</th>\n<th>Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>400</code></td>\n<td>Invalid <code>token</code> (send back the <code>next_token</code> you received, unchanged)</td>\n<td><code>{\"detail\": \"...\"}</code></td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Missing or invalid <code>api-key</code></td>\n<td><code>{\"detail\": \"Invalid or missing API key\"}</code></td>\n</tr>\n<tr>\n<td><code>404</code></td>\n<td>Unknown resource (e.g. unknown <code>country_id</code>)</td>\n<td><code>{\"detail\": {\"success\": false, \"message\": \"...\", \"data\": null, \"errors\": [\"...\"]}}</code></td>\n</tr>\n<tr>\n<td><code>422</code></td>\n<td>Request validation failed (missing field, empty list, over the limit, bad date)</td>\n<td><code>{\"detail\": [{\"type\": \"...\", \"loc\": [\"body\", \"\"], \"msg\": \"...\"}]}</code></td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"which-endpoints-to-use\">Which endpoints to use</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Goal</th>\n<th>Endpoints</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Discover codes</td>\n<td><a href=\"https://documenter.getpostman.com/view/46998739/2sBXihpXmG#d433eec2-96f7-4903-bf33-395ce0588a41\">Country Master</a> → <a href=\"https://documenter.getpostman.com/view/46998739/2sBXihpXmG#c639ea5d-54a8-40b6-81a0-23072293992e\">City Master</a></td>\n</tr>\n<tr>\n<td>All hotels in a city, page by page</td>\n<td><a href=\"https://documenter.getpostman.com/view/46998739/2sBXihpXmG#6c6e782d-25d7-4b9f-9be6-1f62081e71a4\">Paginated Search</a> → <a href=\"https://documenter.getpostman.com/view/46998739/2sBXihpXmG#c6ba445e-9197-4052-b77b-4e94cd5d709c\">Static Hotel Data</a> / <a href=\"https://documenter.getpostman.com/view/46998739/2sBXihpXmG#02b27752-00b6-418d-9797-82928918e7cc\">Static Data Provider</a></td>\n</tr>\n<tr>\n<td>Keep a local copy in sync</td>\n<td><a href=\"https://documenter.getpostman.com/view/46998739/2sBXihpXmG#91270405-0be3-4681-a528-ca404d503723\">CDC</a> (added / updated / deleted) → <a href=\"https://documenter.getpostman.com/view/46998739/2sBXihpXmG#c6ba445e-9197-4052-b77b-4e94cd5d709c\">Static Hotel Data</a> / <a href=\"https://documenter.getpostman.com/view/46998739/2sBXihpXmG#02b27752-00b6-418d-9797-82928918e7cc\">Static Data Provider</a></td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"limits\">Limits</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Input</th>\n<th>Limit</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>standardized_city_codes</code></td>\n<td>1 city per call, on every endpoint that takes it</td>\n</tr>\n<tr>\n<td><code>standardized_hotel_ids</code></td>\n<td>1–50 per request</td>\n</tr>\n<tr>\n<td><code>page_size</code></td>\n<td>1–50, default 50 (paginated search and CDC)</td>\n</tr>\n<tr>\n<td><code>token</code></td>\n<td>the previous response's <code>next_token</code>, sent back unchanged; leave it out on the first call (paginated search and CDC)</td>\n</tr>\n</tbody>\n</table>\n</div></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"46998739","collectionId":"e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","publishedId":"2sBXihpXmG","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-09-11T08:26:54.000Z"},"item":[{"name":"country master","item":[{"name":"country codes","id":"d433eec2-96f7-4903-bf33-395ce0588a41","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"api-key","value":"<api-key>"}],"url":"https://test.structurrai.com/api/v2/countries","description":"<p>Returns the list of supported countries. Call this once on first integration to discover the available regions.</p>\n<p><strong>Parameters:</strong> none.</p>\n<p><strong>Field notes</strong></p>\n<ul>\n<li><code>country_code</code> is the value to pass as <code>country_id</code> to <a href=\"https://documenter.getpostman.com/view/46998739/2sBXihpXmG#c639ea5d-54a8-40b6-81a0-23072293992e\">City Master</a>.</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","id":"e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","name":"StructurrAI Hotel Mapping","type":"collection"}},"urlObject":{"path":["api","v2","countries"],"host":["https://test.structurrai.com"],"query":[],"variable":[]}},"response":[{"id":"2f2fd16a-41e3-4c87-be69-3c3de69b3245","name":"200 OK","originalRequest":{"method":"GET","header":[],"url":"https://test.structurrai.com/api/v2/countries"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"value":"application/json","key":"Content-Type"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"success\": true,\n  \"message\": \"Countries fetched successfully\",\n  \"data\": [\n    { \"country_code\": \"SI-AF\", \"country_name\": \"Afghanistan\" },\n    { \"country_code\": \"SI-IN\", \"country_name\": \"India\" },\n    { \"country_code\": \"SI-AE\", \"country_name\": \"United Arab Emirates\" }\n  ],\n  \"errors\": null\n}"}],"_postman_id":"d433eec2-96f7-4903-bf33-395ce0588a41"}],"id":"515eb220-53f5-49e6-b3a2-3733dfa89fa0","description":"<p>The <strong>Country Master API</strong> returns every country StructurrAI supports, each with a standardized <strong>StructurrAI country code</strong> (e.g. <code>SI-IN</code> for India, <code>SI-AE</code> for the UAE).</p>\n<p>Use these codes to fetch the cities of a country from <a href=\"https://documenter.getpostman.com/view/46998739/2sBXihpXmG#c639ea5d-54a8-40b6-81a0-23072293992e\">City Master</a>.</p>\n","_postman_id":"515eb220-53f5-49e6-b3a2-3733dfa89fa0","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","id":"e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","name":"StructurrAI Hotel Mapping","type":"collection"}}},{"name":"city master","item":[{"name":"city master","id":"c639ea5d-54a8-40b6-81a0-23072293992e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"api-key","value":"<api-key>"}],"url":"https://test.structurrai.com/api/v2/cities?country_id=SI-IN","description":"<p>Returns the cities for the given country.</p>\n<p><strong>Query parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>country_id</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>StructurrAI country code from country master, e.g. <code>SI-IN</code>. <code>country_code</code> is accepted as an alias.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Field notes</strong></p>\n<ul>\n<li><code>parent_city_code</code> is set only for satellite cities; otherwise <code>null</code>.</li>\n<li><code>synonyms</code> can be an empty list.</li>\n</ul>\n<p><strong>Errors:</strong> <code>404 Country not found</code> when <code>country_id</code> is missing or unknown.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","id":"e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","name":"StructurrAI Hotel Mapping","type":"collection"}},"urlObject":{"path":["api","v2","cities"],"host":["https://test.structurrai.com"],"query":[{"description":{"content":"<p>Standardized country identifier used to retrieve cities associated with the specified country.</p>\n","type":"text/plain"},"key":"country_id","value":"SI-IN"}],"variable":[]}},"response":[{"id":"d39e2799-3463-4a8b-81ae-32bf8daa6d69","name":"200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://test.structurrai.com/api/v2/cities?country_id=SI-IN","protocol":"https","host":["test","structurrai","com"],"path":["api","v2","cities"],"query":[{"key":"country_id","value":"SI-IN","description":"Standardized country code from country master api"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"message\": \"Cities fetched successfully\",\n  \"data\": {\n    \"cities\": [\n      { \"city_code\": \"STR-IN-0607\", \"city\": \"Mumbai\", \"parent_city_code\": null, \"synonyms\": [\"Bombay\", \"Mumbai Bombay\"] },\n      { \"city_code\": \"STR-IN-2939\", \"city\": \"Ghaziabad\", \"parent_city_code\": \"STR-IN-0661\", \"synonyms\": [] }\n    ],\n    \"country_id\": \"SI-IN\",\n    \"country_name\": \"India\"\n  },\n  \"errors\": null\n}"}],"_postman_id":"c639ea5d-54a8-40b6-81a0-23072293992e"}],"id":"9fa2a532-7fcf-4e70-9598-27c4d9f532e2","description":"<p>The <strong>City Master API</strong> returns every city StructurrAI maps within a country. Each city has a standardized <strong>city code</strong> (e.g. <code>STR-IN-0607</code> for Mumbai), which every hotel endpoint accepts.</p>\n<p>Cities also carry:</p>\n<ul>\n<li><strong><code>synonyms</code></strong>: other names the city is known by (e.g. Mumbai → <code>Bombay</code>).</li>\n<li><strong><code>parent_city_code</code></strong>: for satellite cities, the parent city (e.g. Ghaziabad → New Delhi). Whether a search on the parent city includes its satellites is up to your implementation.</li>\n</ul>\n","_postman_id":"9fa2a532-7fcf-4e70-9598-27c4d9f532e2","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","id":"e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","name":"StructurrAI Hotel Mapping","type":"collection"}}},{"name":"cdc","item":[{"name":"addedhotels","item":[{"name":"Get newly added hotels","id":"030d9c29-ca34-4680-ab2f-c6b648693f07","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://test.structurrai.com/api/v2/addedhotels?last_updated_date=2025-09-24&page_size=50&token=djE6MTk0OQ","description":"<p><code>GET /api/v2/addedhotels?last_updated_date=2025-09-24&amp;page_size=50&amp;token=djE6MTk0OQ</code></p>\n<p>Insert the returned hotels into your inventory.</p>\n<p>Leave <code>token</code> out on the first call; then pass each response's <code>next_token</code> as <code>token</code> until it is <code>null</code>.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","id":"e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","name":"StructurrAI Hotel Mapping","type":"collection"}},"urlObject":{"path":["api","v2","addedhotels"],"host":["https://test.structurrai.com"],"query":[{"key":"last_updated_date","value":"2025-09-24"},{"key":"page_size","value":"50"},{"key":"token","value":"djE6MTk0OQ"}],"variable":[]}},"response":[{"id":"65bf7de3-632e-467f-bbfd-5cf31dcdadcb","name":"200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://test.structurrai.com/api/v2/addedhotels?last_updated_date=2025-09-24&page_size=50&token=djE6MTk0OQ","host":["https://test.structurrai.com"],"path":["api","v2","addedhotels"],"query":[{"key":"last_updated_date","value":"2025-09-24"},{"key":"page_size","value":"50"},{"key":"token","value":"djE6MTk0OQ"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"message\": \"Added hotels fetched successfully\",\n  \"data\": {\n    \"last_updated_date\": \"2025-09-24\",\n    \"hotel_ids\": [\"1850\", \"1851\"],\n    \"page\": 0,\n    \"page_size\": 50,\n    \"next_token\": \"djE6MTk0OQ\"    \n  },\n  \"errors\": null\n}"}],"_postman_id":"030d9c29-ca34-4680-ab2f-c6b648693f07"}],"id":"da375dce-03c9-4bf7-bc07-afb45d93c78a","description":"<p>Returns the ids of hotels <strong>newly added</strong> to the StructurrAI catalog since <code>last_updated_date</code>.</p>\n","_postman_id":"da375dce-03c9-4bf7-bc07-afb45d93c78a","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","id":"e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","name":"StructurrAI Hotel Mapping","type":"collection"}}},{"name":"deletedhotels","item":[{"name":"Get deleted hotels","id":"d954612b-2314-4f5f-ba12-5e568fc456b0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://test.structurrai.com/api/v2/deletedhotels?last_updated_date=2025-09-24&page_size=50&token=djE6MTk0OQ","description":"<p><code>GET /api/v2/deletedhotels?last_updated_date=2025-09-24&amp;page_size=50&amp;token=djE6MTk0OQ</code></p>\n<p>Remove the returned ids from your inventory before serving search results.</p>\n<p>Leave <code>token</code> out on the first call; then pass each response's <code>next_token</code> as <code>token</code> until it is <code>null</code>.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","id":"e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","name":"StructurrAI Hotel Mapping","type":"collection"}},"urlObject":{"path":["api","v2","deletedhotels"],"host":["https://test.structurrai.com"],"query":[{"key":"last_updated_date","value":"2025-09-24"},{"key":"page_size","value":"50"},{"key":"token","value":"djE6MTk0OQ"}],"variable":[]}},"response":[{"id":"499e4af7-38df-4cfd-9e3f-fe857fca5d76","name":"200 OK","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"api-key","value":"<API Key>","description":"Added as a part of security scheme: apikey"}],"url":{"raw":"https://test.structurrai.com/api/v2/deletedhotels?last_updated_date=YYYY-MM-DD","protocol":"https","host":["test","structurrai","com"],"path":["api","v2","deletedhotels"],"query":[{"key":"last_updated_date","value":"YYYY-MM-DD"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"message\": \"Deleted hotels fetched successfully\",\n  \"data\": {\n    \"last_updated_date\": \"2025-09-24\",\n    \"hotel_ids\": [\"2294\", \"2355\"],\n    \"page\": 0,\n    \"page_size\": 50,\n    \"next_token\": \"djE6MTU3ODEwOA\"\n  },\n  \"errors\": null\n}"}],"_postman_id":"d954612b-2314-4f5f-ba12-5e568fc456b0"}],"id":"293a243f-d642-46c1-828a-1e924f3aca3f","description":"<p>Returns the ids of hotels <strong>removed</strong> from the StructurrAI catalog since <code>last_updated_date</code>.</p>\n","_postman_id":"293a243f-d642-46c1-828a-1e924f3aca3f","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","id":"e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","name":"StructurrAI Hotel Mapping","type":"collection"}}},{"name":"updatedhotels","item":[{"name":"Get updated hotels","id":"ae68face-75b8-4e1d-8b89-a707e0a25227","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://test.structurrai.com/api/v2/updatedhotels?last_updated_date=2025-09-24&page_size=50&token=djE6MTU3ODEwOA","description":"<p><code>GET /api/v2/updatedhotels?last_updated_date=2025-09-24&amp;page_size=50&amp;token=djE6MTU3ODEwOA</code></p>\n<p>Re-fetch the returned hotels and overwrite your local records.</p>\n<p>Leave <code>token</code> out on the first call; then pass each response's <code>next_token</code> as <code>token</code> until it is <code>null</code>.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","id":"e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","name":"StructurrAI Hotel Mapping","type":"collection"}},"urlObject":{"path":["api","v2","updatedhotels"],"host":["https://test.structurrai.com"],"query":[{"description":{"content":"<p>Return changes since this date (YYYY-MM-DD).</p>\n","type":"text/plain"},"key":"last_updated_date","value":"2025-09-24"},{"key":"page_size","value":"50"},{"key":"token","value":"djE6MTU3ODEwOA"}],"variable":[]}},"response":[{"id":"54a6067a-eb12-4ad1-8c6b-0310a9fd4c5e","name":"200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://test.structurrai.com/api/v2/updatedhotels?last_updated_date=2025-09-24&page_size=50&token=djE6MTU3ODEwOA","host":["https://test.structurrai.com"],"path":["api","v2","updatedhotels"],"query":[{"key":"last_updated_date","value":"2025-09-24"},{"key":"page_size","value":"50"},{"key":"token","value":"djE6MTU3ODEwOA"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"message\": \"Updated hotels fetched successfully\",\n  \"data\": {\n    \"last_updated_date\": \"2025-09-24\",\n    \"hotel_ids\": [\"1574746\", \"1575020\"],\n    \"page\": 0,\n    \"page_size\": 50,\n    \"next_token\": \"djE6MTU3ODEwOA\"\n  },\n  \"errors\": null\n}"}],"_postman_id":"ae68face-75b8-4e1d-8b89-a707e0a25227"}],"id":"ef2f18a4-dfd5-4c2b-98a2-b56ddee7f80a","description":"<p>Returns the ids of hotels whose canonical data (name, address, coordinates, supplier mappings) <strong>changed</strong> since <code>last_updated_date</code>.</p>\n","_postman_id":"ef2f18a4-dfd5-4c2b-98a2-b56ddee7f80a","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","id":"e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","name":"StructurrAI Hotel Mapping","type":"collection"}}}],"id":"91270405-0be3-4681-a528-ca404d503723","description":"<p><strong>Change Data Capture (CDC)</strong> keeps your local copy of the StructurrAI catalog in sync without re-downloading it.</p>\n<p>Each CDC endpoint returns only the <strong>ids</strong> of hotels that were added, updated or deleted since a given date. Fetch the details of added and updated ids through <a href=\"https://documenter.getpostman.com/view/46998739/2sBXihpXmG#c6ba445e-9197-4052-b77b-4e94cd5d709c\">Static Hotel Data</a> and <a href=\"https://documenter.getpostman.com/view/46998739/2sBXihpXmG#02b27752-00b6-418d-9797-82928918e7cc\">Static Data Provider</a>, and remove deleted ids from your inventory.</p>\n<p><strong>Recommended sync job</strong></p>\n<ol>\n<li><p>Store the date of your last successful sync.</p>\n</li>\n<li><p>Call <code>addedhotels</code>, <code>updatedhotels</code> and <code>deletedhotels</code> with <code>last_updated_date</code> set to that date, paging until a page returns fewer ids than <code>page_size</code>.</p>\n</li>\n<li><p>Hydrate added and updated ids in batches of up to 1000; delete removed ids.</p>\n</li>\n<li><p>Save today's date as the new sync date.</p>\n</li>\n</ol>\n<p><strong>Shared query parameters</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>last_updated_date</code></td>\n<td>string (<code>YYYY-MM-DD</code>)</td>\n<td>Yes</td>\n<td>Return changes since this date.</td>\n</tr>\n<tr>\n<td><code>token</code></td>\n<td>alphanumeric</td>\n<td>Optional</td>\n<td>Counter used for pagination</td>\n</tr>\n<tr>\n<td><code>page_size</code></td>\n<td>integer</td>\n<td>No</td>\n<td>Ids per page, 1–50. Default <code>50</code>. Values outside that range return <code>422</code>.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Field notes</strong></p>\n<ul>\n<li><p><code>hotel_ids</code> holds the ids on this page. Keep paging until a page returns fewer ids than <code>page_size</code>.</p>\n</li>\n<li><p><code>last_updated_date</code> echoes the date you sent.</p>\n</li>\n</ul>\n<p><strong>Errors:</strong> <code>422</code> when <code>last_updated_date</code> is missing or not a valid date, <code>page</code> is negative, or <code>page_size</code> is outside 1–50.</p>\n<blockquote>\n<p><strong>Note:</strong> CDC is enabled once your account is in production and integrated for periodic updates.</p>\n</blockquote>\n","_postman_id":"91270405-0be3-4681-a528-ca404d503723","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","id":"e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","name":"StructurrAI Hotel Mapping","type":"collection"}}},{"name":"paginated queries","item":[{"name":"static data provider","item":[{"name":"data-provider","id":"02b27752-00b6-418d-9797-82928918e7cc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"standardized_hotel_ids\": [\"2288999\"]\n}","options":{"raw":{"language":"json"}}},"url":"https://test.structurrai.com/api/v2/hotel/data/provider","description":"<p>Returns the canonical record and every mapped <strong>supplier hotel</strong> for specific hotels. Use it to join your supplier feeds to StructurrAI hotel ids.</p>\n<p><strong>Body</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>standardized_hotel_ids</code></td>\n<td>string[]</td>\n<td>Yes</td>\n<td>1–50 StructurrAI hotel ids (from <a href=\"https://documenter.getpostman.com/view/46998739/2sBXihpXmG#6c6e782d-25d7-4b9f-9be6-1f62081e71a4\">Paginated Search</a> or <a href=\"https://documenter.getpostman.com/view/46998739/2sBXihpXmG#91270405-0be3-4681-a528-ca404d503723\">CDC</a>).</td>\n</tr>\n</tbody>\n</table>\n</div><pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"standardized_hotel_ids\": [\"2127320\"]\n}\n\n</code></pre>\n<p>Unknown ids are skipped, so <code>data</code> may contain fewer entries than you sent.</p>\n<p><strong>Field notes</strong></p>\n<ul>\n<li><p><code>standardized_hotel_id</code> is the stable key for a hotel. Use it with every other endpoint.</p>\n</li>\n<li><p><code>latitude</code> / <code>longitude</code> are returned as decimal strings, and can be <code>null</code> if the hotel isn't geocoded yet.</p>\n</li>\n<li><p><code>provider_details</code> lists every supplier hotel mapped into this hotel. <code>supplier_hotel_id</code> is the hotel's id in that supplier's system.</p>\n</li>\n<li><p><code>supplier_city_code</code> and <code>supplier_city</code> can be <code>null</code> when the supplier doesn't send them.</p>\n</li>\n</ul>\n<p><strong>Errors:</strong> <code>422</code> when the list is empty or has more than 50 ids.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","id":"e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","name":"StructurrAI Hotel Mapping","type":"collection"}},"urlObject":{"path":["api","v2","hotel","data","provider"],"host":["https://test.structurrai.com"],"query":[],"variable":[]}},"response":[{"id":"ad54a383-70bb-dfa3-949d-74516a614309","name":"200 OK","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"standardized_hotel_ids\": [\"2288999\"]\n}","options":{"raw":{"language":"json"}}},"url":"https://test.structurrai.com/api/v2/hotel/data/provider","description":"Returns the canonical record and every mapped **supplier hotel** for specific hotels. Use it to join your supplier feeds to StructurrAI hotel ids.\n\n**Body**\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| `standardized_hotel_ids` | string\\[\\] | Yes | 1–50 StructurrAI hotel ids (from [Paginated Search](https://documenter.getpostman.com/view/46998739/2sBXihpXmG#6c6e782d-25d7-4b9f-9be6-1f62081e71a4) or [CDC](https://documenter.getpostman.com/view/46998739/2sBXihpXmG#91270405-0be3-4681-a528-ca404d503723)). |\n\n``` json\n{\n  \"standardized_hotel_ids\": [\"2127320\"]\n}\n\n ```\n\nUnknown ids are skipped, so `data` may contain fewer entries than you sent.\n\n**Field notes**\n\n- `standardized_hotel_id` is the stable key for a hotel. Use it with every other endpoint.\n    \n- `latitude` / `longitude` are returned as decimal strings, and can be `null` if the hotel isn't geocoded yet.\n    \n- `provider_details` lists every supplier hotel mapped into this hotel. `supplier_hotel_id` is the hotel's id in that supplier's system.\n    \n- `supplier_city_code` and `supplier_city` can be `null` when the supplier doesn't send them.\n    \n\n**Errors:** `422` when the list is empty or has more than 50 ids."},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"value":"application/json","key":"Content-Type"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"message\": \"Hotels provider data fetched successfully\",\n  \"data\": [\n    {\n      \"standardized_hotel_id\": \"2127320\",\n      \"standardized_hotel_name\": \"Maidens Hotel\",\n      \"standardized_address\": \"Zubovskaya Ulitsa, 3 строение 1,Moscow,Russia,119021\",\n      \"standardized_city\": \"Moscow\",\n      \"latitude\": \"55.73802\",\n      \"longitude\": \"37.58557\",\n      \"last_updated\": \"2025-10-29T10:45:44.388076+00:00\",\n      \"standardized_city_code\": \"STR-RU-0583\",\n      \"provider_details\": [\n        {\n          \"supplier_name\": \"supplier1\",\n          \"supplier_hotel_id\": \"5037942\",\n          \"hotel_name\": \"Maidens Hotel Moscow\",\n          \"address\": \"Zubovskaya Square  3 v.1, Downtown Moscow\",\n          \"supplier_city_code\": \"146743\",\n          \"supplier_city\": \"Moscow\",\n          \"supplier_country_code\": \"RU\"\n        },\n        {\n          \"supplier_name\": \"supplier2\",\n          \"supplier_hotel_id\": \"100001718113\",\n          \"hotel_name\": \"Maidens Hotel Moscow\",\n          \"address\": \"Zubovskaya ulitsa, 3 stroenie 1, Moscow, Russia, 119021\",\n          \"supplier_city_code\": null,\n          \"supplier_city\": \"Moscow\",\n          \"supplier_country_code\": \"RU\"\n        }\n      ]\n    }\n  ],\n  \"errors\": null\n}"}],"_postman_id":"02b27752-00b6-418d-9797-82928918e7cc"}],"id":"fb3f59df-764e-4b8f-b7cd-04bdf1fc3982","_postman_id":"fb3f59df-764e-4b8f-b7cd-04bdf1fc3982","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","id":"e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","name":"StructurrAI Hotel Mapping","type":"collection"}}},{"name":"static hotel data","item":[{"name":"data-static","id":"c6ba445e-9197-4052-b77b-4e94cd5d709c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"standardized_hotel_ids\": [  \"1581258\", \"1581257\"]\n}\n","options":{"raw":{"language":"json"}}},"url":"https://test.structurrai.com/api/v2/hotel/data/static","description":"<p>Returns static content for specific hotels: canonical name and address, coordinates, description, images, star and review ratings, nearby attractions, amenities, and check-in/check-out times.</p>\n<p><strong>Body</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>standardized_hotel_ids</code></td>\n<td>string[]</td>\n<td>Yes</td>\n<td>1–50 StructurrAI hotel ids (from <a href=\"https://documenter.getpostman.com/view/46998739/2sBXihpXmG#6c6e782d-25d7-4b9f-9be6-1f62081e71a4\">Paginated Search</a> or <a href=\"https://documenter.getpostman.com/view/46998739/2sBXihpXmG#91270405-0be3-4681-a528-ca404d503723\">CDC</a>).</td>\n</tr>\n</tbody>\n</table>\n</div><pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"standardized_hotel_ids\": [\"2127320\", \"2127744\", \"2129299\"]\n}\n\n</code></pre>\n<p>Unknown ids are skipped, so <code>data</code> may contain fewer entries than you sent.</p>\n<p><strong>Field notes</strong></p>\n<ul>\n<li><p><code>latitude</code> / <code>longitude</code> are returned as decimal strings, and can be <code>null</code> if the hotel isn't geocoded yet.</p>\n</li>\n<li><p>Content fields (<code>description</code>, images, ratings, times, lists) can be <code>null</code> or empty when the content isn't available.</p>\n</li>\n<li><p><code>star_rating</code> is 1–5; <code>review_rating</code> is a guest score on a 0–5 scale.</p>\n</li>\n<li><p><code>nearby_attractions</code> and <code>amenities_facilities</code> are <code>;</code>-separated strings. Split on <code>;</code> to get individual entries.</p>\n</li>\n<li><p><code>check_in_time</code> / <code>check_out_time</code> use 24-hour <code>HH:mm</code>.</p>\n</li>\n</ul>\n<p><strong>Errors:</strong> <code>422</code> when the list is empty or has more than 50 ids.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","id":"e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","name":"StructurrAI Hotel Mapping","type":"collection"}},"urlObject":{"path":["api","v2","hotel","data","static"],"host":["https://test.structurrai.com"],"query":[],"variable":[]}},"response":[{"id":"4fbb3b15-0b70-42de-05da-a8cd5e6b5aaf","name":"200 OK","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"standardized_hotel_ids\": [  \"1581258\", \"1581257\"]\n}\n","options":{"raw":{"language":"json"}}},"url":"https://test.structurrai.com/api/v2/hotel/data/static","description":"Returns static content for specific hotels: canonical name and address, coordinates, description, images, star and review ratings, nearby attractions, amenities, and check-in/check-out times.\n\n**Body**\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| `standardized_hotel_ids` | string\\[\\] | Yes | 1–50 StructurrAI hotel ids (from [Paginated Search](https://documenter.getpostman.com/view/46998739/2sBXihpXmG#6c6e782d-25d7-4b9f-9be6-1f62081e71a4) or [CDC](https://documenter.getpostman.com/view/46998739/2sBXihpXmG#91270405-0be3-4681-a528-ca404d503723)). |\n\n``` json\n{\n  \"standardized_hotel_ids\": [\"2127320\", \"2127744\", \"2129299\"]\n}\n\n ```\n\nUnknown ids are skipped, so `data` may contain fewer entries than you sent.\n\n**Field notes**\n\n- `latitude` / `longitude` are returned as decimal strings, and can be `null` if the hotel isn't geocoded yet.\n    \n- Content fields (`description`, images, ratings, times, lists) can be `null` or empty when the content isn't available.\n    \n- `star_rating` is 1–5; `review_rating` is a guest score on a 0–5 scale.\n    \n- `nearby_attractions` and `amenities_facilities` are `;`\\-separated strings. Split on `;` to get individual entries.\n    \n- `check_in_time` / `check_out_time` use 24-hour `HH:mm`.\n    \n\n**Errors:** `422` when the list is empty or has more than 50 ids."},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"message\": \"Hotels static data fetched successfully\",\n  \"data\": [\n    {\n      \"standardized_hotel_id\": \"2127320\",\n      \"standardized_name\": \"Maidens Hotel\",\n      \"standardized_address\": \"Zubovskaya Ulitsa, 3 строение 1,Moscow,Russia,119021\",\n      \"latitude\": \"55.73802\",\n      \"longitude\": \"37.58557\",\n      \"standardized_city\": \"Moscow\",\n      \"description\": \"\",\n      \"hero_image_url\": \"https://images.example.com/hotels/2127320/hero.jpg\",\n      \"image_urls\": [\n        \"https://images.example.com/hotels/2127320/1.jpg\",\n        \"https://images.example.com/hotels/2127320/2.jpg\"\n      ],\n      \"star_rating\": null,\n      \"review_rating\": 4.8,\n      \"nearby_attractions\": null,\n      \"amenities_facilities\": \"Air Conditioner;Laundry Facilities;Tv;Wifi;Parking;Concierge;Safe Deposit Box\",\n      \"check_in_time\": \"14:00\",\n      \"check_out_time\": \"10:00\"\n    }\n  ],\n  \"errors\": null\n}"}],"_postman_id":"c6ba445e-9197-4052-b77b-4e94cd5d709c"}],"id":"c6498546-80e3-4d50-9ac1-e92dbf73c847","_postman_id":"c6498546-80e3-4d50-9ac1-e92dbf73c847","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","id":"e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","name":"StructurrAI Hotel Mapping","type":"collection"}}},{"name":"paginated search","item":[{"name":"paginated search","id":"6c6e782d-25d7-4b9f-9be6-1f62081e71a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"standardized_city_codes\": [\"STR-IN-0607\"],\n  \"page_size\": 50,\n  \"token\": \"djE6MTU5MDMyNg\"\n\n}","options":{"raw":{"language":"json"}}},"url":"https://test.structurrai.com/api/v2/hotel/search","description":"<p>Returns the StructurrAI hotel ids in the requested city, one page at a time. Send <strong>1 city per call</strong>.</p>\n<p><strong>Body</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>standardized_city_codes</code></td>\n<td>string[]</td>\n<td>Yes</td>\n<td>Exactly 1 StructurrAI city code. Send one city per call.</td>\n</tr>\n<tr>\n<td><code>page_size</code></td>\n<td>integer</td>\n<td>No</td>\n<td>Ids per page, 1–50. Default <code>50</code>. Values outside that range return <code>422</code>.</td>\n</tr>\n<tr>\n<td><code>token</code></td>\n<td>string</td>\n<td>No</td>\n<td><strong>Recommended.</strong> The <code>next_token</code> from the previous response. Leave it out on the first call; keep calling with the latest <code>next_token</code>, the same city and the same <code>page_size</code> until <code>next_token</code> is <code>null</code>.</td>\n</tr>\n</tbody>\n</table>\n</div><p>First call:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"standardized_city_codes\": [\"STR-IN-0607\"],\n  \"page_size\": 50\n}\n\n</code></pre>\n<p>Next call (send back the <code>next_token</code> you received):</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"standardized_city_codes\": [\"STR-IN-0607\"],\n  \"page_size\": 50,\n  \"token\": \"djE6MTU3NTE2MQ\"\n}\n\n</code></pre>\n<p><strong>Field notes</strong></p>\n<ul>\n<li><p><code>structurrai_hotels</code> holds the hotel ids on this page, in ascending order.</p>\n</li>\n<li><p><code>next_token</code> fetches the next page. It is <code>null</code> on the last page (when the last page is exactly full, one more call returns an empty page with <code>next_token</code> null).</p>\n</li>\n<li><p>Paging by token: every page is equally fast, and no id is skipped or repeated even if the city changes while you page. The token is opaque: send it back unchanged.</p>\n</li>\n<li><p><code>page_size</code> is the page size applied; <code>total_count</code> is the total number of hotels in the city.</p>\n</li>\n</ul>\n<p><strong>Errors:</strong> <code>422</code> when the city list is empty or <code>page_size</code> is outside 1–50; <code>400</code> for an invalid <code>token</code>.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","id":"e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","name":"StructurrAI Hotel Mapping","type":"collection"}},"urlObject":{"path":["api","v2","hotel","search"],"host":["https://test.structurrai.com"],"query":[],"variable":[]}},"response":[{"id":"d482c93d-03ce-5d00-a2a0-b9cc6d63edb7","name":"200 OK","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"standardized_city_codes\": [\"STR-IN-0607\"],\n  \"page_size\": 50,\n  \"token\": \"djE6MTU5MDMyNg\"\n\n}","options":{"raw":{"language":"json"}}},"url":"https://test.structurrai.com/api/v2/hotel/search","description":"Returns the StructurrAI hotel ids in the requested city, one page at a time. Send **1 city per call**.\n\n**Body**\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| `standardized_city_codes` | string\\[\\] | Yes | Exactly 1 StructurrAI city code. Send one city per call. |\n| `page_size` | integer | No | Ids per page, 1–50. Default `50`. Values outside that range return `422`. |\n| `token` | string | No | **Recommended.** The `next_token` from the previous response. Leave it out on the first call; keep calling with the latest `next_token`, the same city and the same `page_size` until `next_token` is `null`. |\n\nFirst call:\n\n``` json\n{\n  \"standardized_city_codes\": [\"STR-IN-0607\"],\n  \"page_size\": 50\n}\n\n ```\n\nNext call (send back the `next_token` you received):\n\n``` json\n{\n  \"standardized_city_codes\": [\"STR-IN-0607\"],\n  \"page_size\": 50,\n  \"token\": \"djE6MTU3NTE2MQ\"\n}\n\n ```\n\n**Field notes**\n\n- `structurrai_hotels` holds the hotel ids on this page, in ascending order.\n    \n- `next_token` fetches the next page. It is `null` on the last page (when the last page is exactly full, one more call returns an empty page with `next_token` null).\n    \n- Paging by token: every page is equally fast, and no id is skipped or repeated even if the city changes while you page. The token is opaque: send it back unchanged.\n    \n- `page_size` is the page size applied; `total_count` is the total number of hotels in the city.\n    \n\n**Errors:** `422` when the city list is empty or `page_size` is outside 1–50; `400` for an invalid `token`."},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"message\": \"Hotels fetched successfully\",\n  \"data\": {\n    \"structurrai_hotels\": [\"1574998\", \"1575020\", \"1575112\", \"1575121\", \"1575161\"],\n    \"page\": 0,\n    \"page_size\": 5,\n    \"total_count\": 3614,\n    \"next_token\": \"djE6MTU3NTE2MQ\"\n  },\n  \"errors\": null\n}"}],"_postman_id":"6c6e782d-25d7-4b9f-9be6-1f62081e71a4"}],"id":"08f59bbd-cf22-43f2-bf53-16e557d3edb2","_postman_id":"08f59bbd-cf22-43f2-bf53-16e557d3edb2","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","id":"e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","name":"StructurrAI Hotel Mapping","type":"collection"}}}],"id":"27ce6c5b-66bf-40db-84ea-5014e6f25810","description":"<p><strong>Paginated queries</strong> load hotels page by page in two steps:</p>\n<ol>\n<li><p><a href=\"https://documenter.getpostman.com/view/46998739/2sBXihpXmG#6c6e782d-25d7-4b9f-9be6-1f62081e71a4\">Paginated Search</a>: page through the hotel <strong>ids</strong> in your city.</p>\n</li>\n<li><p><a href=\"https://documenter.getpostman.com/view/46998739/2sBXihpXmG#c6ba445e-9197-4052-b77b-4e94cd5d709c\">Static Hotel Data</a> / <a href=\"https://documenter.getpostman.com/view/46998739/2sBXihpXmG#02b27752-00b6-418d-9797-82928918e7cc\">Static Data Provider</a>: fetch content or supplier mappings for up to 5<strong>0 ids</strong> per call.</p>\n</li>\n</ol>\n","_postman_id":"27ce6c5b-66bf-40db-84ea-5014e6f25810","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","id":"e0ab0ed9-e77f-4a65-a7b9-e225f71d07a6","name":"StructurrAI Hotel Mapping","type":"collection"}}}],"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-key"},{"key":"value","value":"<your_api_key>"}]}},"event":[{"listen":"prerequest","script":{"id":"bbb4116d-d733-44b8-88f8-5d30c51bf811","type":"text/javascript","packages":{},"requests":{},"exec":[""]}},{"listen":"test","script":{"id":"bfa1d3d7-3bc9-4d36-9618-c8fd09b875e8","type":"text/javascript","packages":{},"requests":{},"exec":[""]}}],"variable":[{"key":"api-key","value":"<your_api_key>"},{"key":"baseUrl","value":"https://test.structurrai.com"}]}