{"info":{"name":"ZimmerStack API - One hotel","description":"For the developer of one hotel that uses ZimmerStack.\n\nHow to start:\n1. Click this collection's name. Open the Variables tab. Paste your test key into apiKey, in the column Value (older Postman: Current value).\n2. Open folder 1 and send its two requests, from top to bottom.\n3. Open the folder for what you want to build.\n\nUse a test key first. It starts with zsk_test_. The hotel's owner makes it in Admin, under Developers. A test key works only on the hotel's sandbox (a test copy of the hotel), so nothing here can change the real hotel.\n\nYour key works for one hotel, so no request names the hotel. If a request answers 403 SCOPE_MISSING, ask the owner to add that scope to your key.\n\nEvery request has a short note. Almost every request has a saved example answer: open the request and look for Examples.\n\nWords: availability = how many rooms are free. Rates = the price of each night. Restrictions = stay rules. OTA = a website that sells hotel rooms, like Booking.com or MakeMyTrip. Sandbox = your test hotel. Scope = one thing a key is allowed to do.","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json"},"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{apiKey}}","type":"string"}]},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Example dates: about 30 days from today, so a test never touches tonight.","const day = (n) => { const t = new Date(); t.setUTCDate(t.getUTCDate() + n); return t.toISOString().slice(0, 10); };","if (!pm.collectionVariables.get(\"dateFrom\")) pm.collectionVariables.set(\"dateFrom\", day(30));","if (!pm.collectionVariables.get(\"dateTo\")) pm.collectionVariables.set(\"dateTo\", day(32));","// Your own booking id for Create a booking. A new one each time you open Postman, so a new booking is made.","if (!pm.collectionVariables.get(\"externalReference\")) pm.collectionVariables.set(\"externalReference\", \"POSTMAN-\" + Date.now());"]}}],"variable":[{"key":"baseUrl","value":"https://api.zimmerstack.com","type":"string","description":"The address of the API. Do not change it."},{"key":"apiKey","value":"","type":"string","description":"Paste your key here, in the column Value (older Postman: the column Current value). Start with a test key: it starts with zsk_test_. Postman keeps a value you type on your own computer. Do not press Share on this row."},{"key":"roomTypeId","value":"","type":"string","description":"Filled by the request Get room types and rate plans."},{"key":"ratePlanId","value":"","type":"string","description":"Filled by the request Get room types and rate plans."},{"key":"currency","value":"INR","type":"string","description":"The hotel's currency. Filled by the request Check one hotel."},{"key":"dateFrom","value":"","type":"string","description":"The first night of every example. Filled for you: about 30 days from today, so a test never touches tonight."},{"key":"dateTo","value":"","type":"string","description":"The last night of every example. Filled for you: 2 nights after dateFrom."},{"key":"batchId","value":"","type":"string","description":"The id of your last update. Filled by the update requests."},{"key":"idempotencyKey","value":"postman-replay-demo-0001","type":"string","description":"Filled by a request in this file. You do not need to type it."},{"key":"bookingId","value":"","type":"string","description":"The id of a booking. Filled by Create a booking, or by the first request of the Sandbox folder."},{"key":"externalReference","value":"","type":"string","description":"Your own booking id for Create a booking. Filled for you with a new one each time."},{"key":"channelId","value":"","type":"string","description":"Filled by a request in this file. You do not need to type it."},{"key":"testRoomTypeId","value":"","type":"string","description":"The id of the room type that the folder Create room types and rate plans made. Only the request Delete a room type uses it. It is never your own roomTypeId."},{"key":"testRatePlanId","value":"","type":"string","description":"The id of the rate plan that the same folder made. The request Delete a rate plan is sent only while it is filled, and names that rate plan by its ref. It is never your own ratePlanId."}],"item":[{"name":"1. Start here: check your key","description":"Send these two requests first, from top to bottom. They check that your key works. They also save your hotel's ids, so the other requests can use them.","item":[{"name":"Check your key (and read the hotel)","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/property","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","property"]},"description":"Shows the hotel your key is for: its name, currency and time zone. It also shows the scopes of your key: what the key is allowed to do. If a later request answers 403, the scope it needs is missing here."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));","const p = pm.response.json().data;","pm.collectionVariables.set(\"currency\", p.currency);","pm.test(\"the property is the source of truth\", () => pm.expect(p.ariAuthoritative).to.be.true);","pm.test(\"RateLimit headers present\", () => {","  pm.expect(pm.response.headers.has(\"RateLimit-Policy\")).to.be.true;","  pm.expect(pm.response.headers.has(\"RateLimit\")).to.be.true;","});"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/property","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","property"]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"OK\",\n  \"data\": {\n    \"id\": 61,\n    \"name\": \"The Lantern House\",\n    \"timezone\": \"Asia/Kolkata\",\n    \"currency\": \"INR\",\n    \"inventoryScope\": \"PMS_CM\",\n    \"sandbox\": false,\n    \"horizonDays\": 500,\n    \"ariAuthoritative\": true,\n    \"scopes\": [\n      \"bookings:read\",\n      \"bookings:write\"\n    ],\n    \"products\": {\n      \"channelManager\": true,\n      \"pms\": true\n    },\n    \"limits\": {\n      \"requestsPerMinute\": 120,\n      \"writesPerMinute\": 30,\n      \"maxUpdatesPerRequest\": 1000,\n      \"maxCellsPerRequest\": 5000,\n      \"bookingsPerMinute\": 20,\n      \"cellsPerHour\": 10000,\n      \"cellsPerDay\": 30000,\n      \"maxRoomTypes\": 18,\n      \"maxRatePlans\": 180,\n      \"ratePlansPerRoomType\": null,\n      \"newEntitiesPerMinute\": 20\n    },\n    \"usage\": {\n      \"cellsThisHour\": 43,\n      \"cellsLast24h\": 1138\n    },\n    \"shield\": {\n      \"level\": \"CLEAR\",\n      \"reason\": null,\n      \"until\": null\n    },\n    \"sync\": {\n      \"state\": \"IN_SYNC\",\n      \"pendingCells\": 0\n    }\n  }\n}"}]},{"name":"Get room types and rate plans","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/catalog","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","catalog"]},"description":"Shows the hotel's room types and rate plans, each with its id. Postman saves the first roomTypeId and ratePlanId for the update requests."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));","const c = pm.response.json().data;","if (c.roomTypes[0]) pm.collectionVariables.set(\"roomTypeId\", String(c.roomTypes[0].id));","if (c.ratePlans[0]) pm.collectionVariables.set(\"ratePlanId\", String(c.ratePlans[0].id));"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/catalog","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","catalog"]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"OK\",\n  \"data\": {\n    \"currency\": \"INR\",\n    \"roomTypes\": [\n      {\n        \"id\": 412,\n        \"ref\": \"rt-deluxe\",\n        \"name\": \"Deluxe Garden Room\",\n        \"maxAdults\": 2,\n        \"maxChildren\": 1,\n        \"roomKind\": \"room\",\n        \"sync\": \"IN_SYNC\"\n      },\n      {\n        \"id\": 413,\n        \"ref\": null,\n        \"name\": \"Family Suite\",\n        \"maxAdults\": 4,\n        \"maxChildren\": 2,\n        \"roomKind\": \"room\",\n        \"sync\": \"IN_SYNC\"\n      }\n    ],\n    \"ratePlans\": [\n      {\n        \"id\": 901,\n        \"ref\": \"rp-bb\",\n        \"roomTypeId\": 412,\n        \"name\": \"Bed and breakfast\",\n        \"mealPlan\": \"CP\",\n        \"occupancy\": 2,\n        \"currency\": \"INR\",\n        \"refundable\": true,\n        \"sync\": \"IN_SYNC\"\n      },\n      {\n        \"id\": 902,\n        \"ref\": null,\n        \"roomTypeId\": 413,\n        \"name\": \"Room only, non-refundable\",\n        \"mealPlan\": \"EP\",\n        \"occupancy\": 4,\n        \"currency\": \"INR\",\n        \"refundable\": false,\n        \"sync\": \"PENDING\"\n      },\n      {\n        \"id\": 904,\n        \"ref\": \"rp-ro\",\n        \"roomTypeId\": 412,\n        \"name\": \"Room only\",\n        \"mealPlan\": \"EP\",\n        \"occupancy\": 2,\n        \"currency\": \"INR\",\n        \"refundable\": true,\n        \"sync\": \"IN_SYNC\"\n      }\n    ]\n  }\n}"}]}]},{"name":"2. Get availability, rates and restrictions","description":"Read what ZimmerStack holds now for the hotel. Availability = how many rooms are free. Rates = the price of each night. Restrictions = stay rules, like a minimum stay.","item":[{"name":"Get availability (rooms free on each night)","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/availability?from={{dateFrom}}&to={{dateTo}}","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","availability"],"query":[{"key":"from","value":"{{dateFrom}}","description":"YYYY-MM-DD in the property's timezone; default today"},{"key":"to","value":"{{dateTo}}","description":"YYYY-MM-DD; default from + 30 days, at most 500 days after from"}]},"description":"Shows how many rooms of each room type are free, night by night, for the dates in dateFrom and dateTo."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/availability?from={{dateFrom}}&to={{dateTo}}","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","availability"],"query":[{"key":"from","value":"{{dateFrom}}","description":"YYYY-MM-DD in the property's timezone; default today"},{"key":"to","value":"{{dateTo}}","description":"YYYY-MM-DD; default from + 30 days, at most 500 days after from"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"OK\",\n  \"data\": {\n    \"from\": \"2026-12-24\",\n    \"to\": \"2026-12-26\",\n    \"cells\": [\n      {\n        \"roomTypeId\": 412,\n        \"date\": \"2026-12-24\",\n        \"available\": 2\n      },\n      {\n        \"roomTypeId\": 412,\n        \"date\": \"2026-12-25\",\n        \"available\": 2\n      },\n      {\n        \"roomTypeId\": 412,\n        \"date\": \"2026-12-26\",\n        \"available\": 2\n      },\n      {\n        \"roomTypeId\": 413,\n        \"date\": \"2026-12-24\",\n        \"available\": 1\n      },\n      {\n        \"roomTypeId\": 413,\n        \"date\": \"2026-12-25\",\n        \"available\": 1\n      },\n      {\n        \"roomTypeId\": 413,\n        \"date\": \"2026-12-26\",\n        \"available\": 1\n      }\n    ]\n  }\n}"}]},{"name":"Get rates (the price of each night)","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/rates?from={{dateFrom}}&to={{dateTo}}","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","rates"],"query":[{"key":"from","value":"{{dateFrom}}","description":"YYYY-MM-DD in the property's timezone; default today"},{"key":"to","value":"{{dateTo}}","description":"YYYY-MM-DD; default from + 30 days, at most 500 days after from"}]},"description":"Shows the price of each rate plan, night by night."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/rates?from={{dateFrom}}&to={{dateTo}}","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","rates"],"query":[{"key":"from","value":"{{dateFrom}}","description":"YYYY-MM-DD in the property's timezone; default today"},{"key":"to","value":"{{dateTo}}","description":"YYYY-MM-DD; default from + 30 days, at most 500 days after from"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"OK\",\n  \"data\": {\n    \"from\": \"2026-12-24\",\n    \"to\": \"2026-12-26\",\n    \"currency\": \"INR\",\n    \"decimals\": 2,\n    \"cells\": [\n      {\n        \"ratePlanId\": 901,\n        \"date\": \"2026-12-24\",\n        \"rate\": \"4500.00\",\n        \"rateMinor\": 450000,\n        \"source\": \"MANUAL\"\n      },\n      {\n        \"ratePlanId\": 901,\n        \"date\": \"2026-12-25\",\n        \"rate\": \"5200.00\",\n        \"rateMinor\": 520000,\n        \"source\": \"MANUAL\"\n      },\n      {\n        \"ratePlanId\": 901,\n        \"date\": \"2026-12-26\",\n        \"rate\": \"5200.00\",\n        \"rateMinor\": 520000,\n        \"source\": \"MANUAL\"\n      },\n      {\n        \"ratePlanId\": 904,\n        \"date\": \"2026-12-24\",\n        \"rate\": \"4000.00\",\n        \"rateMinor\": 400000,\n        \"source\": \"PLAN_DEFAULT\"\n      },\n      {\n        \"ratePlanId\": 904,\n        \"date\": \"2026-12-25\",\n        \"rate\": \"4000.00\",\n        \"rateMinor\": 400000,\n        \"source\": \"PLAN_DEFAULT\"\n      },\n      {\n        \"ratePlanId\": 904,\n        \"date\": \"2026-12-26\",\n        \"rate\": \"4000.00\",\n        \"rateMinor\": 400000,\n        \"source\": \"PLAN_DEFAULT\"\n      }\n    ]\n  }\n}"}]},{"name":"Get restrictions (stay rules)","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/restrictions?from={{dateFrom}}&to={{dateTo}}","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","restrictions"],"query":[{"key":"from","value":"{{dateFrom}}","description":"YYYY-MM-DD in the property's timezone; default today"},{"key":"to","value":"{{dateTo}}","description":"YYYY-MM-DD; default from + 30 days, at most 500 days after from"}]},"description":"Shows the stay rules of each rate plan, night by night: minimum stay, closed to arrival, stop sell."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/restrictions?from={{dateFrom}}&to={{dateTo}}","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","restrictions"],"query":[{"key":"from","value":"{{dateFrom}}","description":"YYYY-MM-DD in the property's timezone; default today"},{"key":"to","value":"{{dateTo}}","description":"YYYY-MM-DD; default from + 30 days, at most 500 days after from"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"OK\",\n  \"data\": {\n    \"from\": \"2026-12-24\",\n    \"to\": \"2026-12-26\",\n    \"cells\": [\n      {\n        \"ratePlanId\": 901,\n        \"date\": \"2026-12-24\",\n        \"stopSell\": null,\n        \"closedToArrival\": false,\n        \"closedToDeparture\": null,\n        \"minStayArrival\": 2,\n        \"minStayThrough\": null,\n        \"maxStay\": null\n      },\n      {\n        \"ratePlanId\": 901,\n        \"date\": \"2026-12-25\",\n        \"stopSell\": null,\n        \"closedToArrival\": false,\n        \"closedToDeparture\": null,\n        \"minStayArrival\": 2,\n        \"minStayThrough\": null,\n        \"maxStay\": null\n      },\n      {\n        \"ratePlanId\": 901,\n        \"date\": \"2026-12-26\",\n        \"stopSell\": null,\n        \"closedToArrival\": false,\n        \"closedToDeparture\": null,\n        \"minStayArrival\": 2,\n        \"minStayThrough\": null,\n        \"maxStay\": null\n      }\n    ]\n  }\n}"}]}]},{"name":"3. Update availability, rates and restrictions","description":"Send your numbers. ZimmerStack saves them and sends them to every OTA of the hotel. An OTA is a website that sells hotel rooms, like Booking.com or MakeMyTrip. The answer is 202 Accepted and has a batchId. Use folder 4 to check that the update reached the OTAs.","item":[{"name":"Update availability (how many rooms are free)","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/availability","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","availability"]},"body":{"mode":"raw","raw":"{\n  \"updates\": [\n    {\n      \"roomTypeId\": {{roomTypeId}},\n      \"dateFrom\": \"{{dateFrom}}\",\n      \"dateTo\": \"{{dateTo}}\",\n      \"available\": 3\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"Sets how many rooms of one room type are free on each night of a date range. Send the full number, not the change: 3 means 3 rooms are free."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["const body = pm.response.json();","if (body && body.data && body.data.batchId) pm.collectionVariables.set(\"batchId\", body.data.batchId);","pm.test(\"202 with a batchId\", () => { pm.response.to.have.status(202); pm.expect(body.data.batchId).to.be.a(\"string\"); });"]}}],"response":[{"name":"Example answer: 202 Accepted","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/availability","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","availability"]},"body":{"mode":"raw","raw":"{\n  \"updates\": [\n    {\n      \"roomTypeId\": {{roomTypeId}},\n      \"dateFrom\": \"{{dateFrom}}\",\n      \"dateTo\": \"{{dateTo}}\",\n      \"available\": 3\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 202,\n  \"message\": \"Accepted\",\n  \"data\": {\n    \"batchId\": \"4a1f6e2d-8c3b-4d59-a7e0-2b9c5d8f1e63\",\n    \"resource\": \"availability\",\n    \"requestedCells\": 31,\n    \"acceptedCells\": 3,\n    \"noopCells\": 28,\n    \"rejected\": [],\n    \"pushedBy\": \"inventory-drain\",\n    \"poll\": \"/api/v1/connect-api/v1/batches/4a1f6e2d-8c3b-4d59-a7e0-2b9c5d8f1e63\"\n  }\n}"}]},{"name":"Update rates (the price of each night)","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/rates","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","rates"]},"body":{"mode":"raw","raw":"{\n  \"updates\": [\n    {\n      \"ratePlanId\": {{ratePlanId}},\n      \"dateFrom\": \"{{dateFrom}}\",\n      \"dateTo\": \"{{dateTo}}\",\n      \"rate\": \"4500.00\",\n      \"currency\": \"{{currency}}\"\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"Sets the price of one rate plan for each night of a date range. The price is in the hotel's own currency."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["const body = pm.response.json();","if (body && body.data && body.data.batchId) pm.collectionVariables.set(\"batchId\", body.data.batchId);","pm.test(\"202 with a batchId\", () => { pm.response.to.have.status(202); pm.expect(body.data.batchId).to.be.a(\"string\"); });"]}}],"response":[{"name":"Example answer: 202 Accepted","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/rates","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","rates"]},"body":{"mode":"raw","raw":"{\n  \"updates\": [\n    {\n      \"ratePlanId\": {{ratePlanId}},\n      \"dateFrom\": \"{{dateFrom}}\",\n      \"dateTo\": \"{{dateTo}}\",\n      \"rate\": \"4500.00\",\n      \"currency\": \"{{currency}}\"\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 202,\n  \"message\": \"Accepted\",\n  \"data\": {\n    \"batchId\": \"7f1d2c4e-5a6b-4c8d-9e0f-112233445566\",\n    \"resource\": \"rates\",\n    \"requestedCells\": 121,\n    \"acceptedCells\": 34,\n    \"noopCells\": 87,\n    \"rejected\": [],\n    \"pushedBy\": \"ari-projector\",\n    \"poll\": \"/api/v1/connect-api/v1/batches/7f1d2c4e-5a6b-4c8d-9e0f-112233445566\"\n  }\n}"}]},{"name":"Update restrictions (stay rules)","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/restrictions","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","restrictions"]},"body":{"mode":"raw","raw":"{\n  \"updates\": [\n    {\n      \"ratePlanId\": {{ratePlanId}},\n      \"dateFrom\": \"{{dateFrom}}\",\n      \"dateTo\": \"{{dateTo}}\",\n      \"minStayArrival\": 2,\n      \"closedToArrival\": false\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"Sets the stay rules of one rate plan for a date range. Only the rules you send change. The others stay as they are."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["const body = pm.response.json();","if (body && body.data && body.data.batchId) pm.collectionVariables.set(\"batchId\", body.data.batchId);","pm.test(\"202 with a batchId\", () => { pm.response.to.have.status(202); pm.expect(body.data.batchId).to.be.a(\"string\"); });"]}}],"response":[{"name":"Example answer: 202 Accepted","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/restrictions","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","restrictions"]},"body":{"mode":"raw","raw":"{\n  \"updates\": [\n    {\n      \"ratePlanId\": {{ratePlanId}},\n      \"dateFrom\": \"{{dateFrom}}\",\n      \"dateTo\": \"{{dateTo}}\",\n      \"minStayArrival\": 2,\n      \"closedToArrival\": false\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 202,\n  \"message\": \"Accepted\",\n  \"data\": {\n    \"batchId\": \"c2d94b7a-6e15-4f08-b3a2-7d1e9f0c5a84\",\n    \"resource\": \"restrictions\",\n    \"requestedCells\": 4,\n    \"acceptedCells\": 4,\n    \"noopCells\": 0,\n    \"rejected\": [],\n    \"pushedBy\": \"ari-projector\",\n    \"poll\": \"/api/v1/connect-api/v1/batches/c2d94b7a-6e15-4f08-b3a2-7d1e9f0c5a84\",\n    \"notices\": [\n      {\n        \"code\": \"ROOM_STILL_ON_SALE\",\n        \"level\": \"warning\",\n        \"message\": \"You sent a stop-sell for rate plan 901: a switch on that plan, not on the room. Room type 412 is still on sale on 1 night through its other plan 904.\",\n        \"action\": \"To close the room on every plan and every channel, use POST /availability/close for room type 412, or send availability 0 for it (PUT /availability).\",\n        \"roomTypeId\": 412,\n        \"ratePlanIds\": [\n          901\n        ],\n        \"otherRatePlanIds\": [\n          904\n        ],\n        \"dateFrom\": \"2026-12-31\",\n        \"dateTo\": \"2026-12-31\",\n        \"nights\": 1\n      }\n    ]\n  }\n}"}]}]},{"name":"4. Check that an update reached the OTAs","description":"202 Accepted means ZimmerStack saved your update. It does not yet mean the OTAs have it. Ask here. Wait 15 seconds between two checks.","item":[{"name":"Check one update (batch)","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/batches/{{batchId}}","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","batches","{{batchId}}"]},"description":"Asks about your last update. status pending: still on its way. status landed: done. status failed: some nights were not taken, and the answer says why."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));","pm.test(\"status is pending or landed\", () => pm.expect([\"pending\", \"landed\"]).to.include(pm.response.json().data.status));"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/batches/{{batchId}}","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","batches","{{batchId}}"]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"OK\",\n  \"data\": {\n    \"batchId\": \"7f1d2c4e-5a6b-4c8d-9e0f-112233445566\",\n    \"resource\": \"rates\",\n    \"createdAt\": \"2026-12-01T09:14:03.201Z\",\n    \"requestedCells\": 121,\n    \"acceptedCells\": 34,\n    \"noopCells\": 87,\n    \"rejected\": [],\n    \"status\": \"pending\",\n    \"pendingCells\": 12,\n    \"parkedCells\": 0,\n    \"lastError\": null\n  }\n}"}]},{"name":"Check everything (sync status)","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/sync","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","sync"]},"description":"Shows if anything of this hotel is still waiting to reach the OTAs."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/sync","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","sync"]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"OK\",\n  \"data\": {\n    \"propertyId\": 61,\n    \"sandbox\": false,\n    \"ariAuthoritative\": true,\n    \"inventory\": {\n      \"state\": \"IN_SYNC\",\n      \"pendingCells\": 0,\n      \"lastOkAt\": \"2026-12-01T09:13:20.000Z\",\n      \"lastError\": null,\n      \"outOfSyncSince\": null\n    },\n    \"rates\": {\n      \"dirtyCells\": 12,\n      \"parkedCells\": 0,\n      \"lastPushAt\": \"2026-12-01T09:14:31.000Z\",\n      \"lastErrorAt\": null,\n      \"lastError\": null,\n      \"driftCells\": 0,\n      \"driftSeenAt\": null\n    },\n    \"shield\": {\n      \"level\": \"CLEAR\",\n      \"reason\": null,\n      \"until\": null\n    },\n    \"newestPendingBatch\": {\n      \"batchId\": \"7f1d2c4e-5a6b-4c8d-9e0f-112233445566\",\n      \"resource\": \"rates\",\n      \"createdAt\": \"2026-12-01T09:14:03.201Z\",\n      \"requestedCells\": 121,\n      \"acceptedCells\": 34,\n      \"noopCells\": 87,\n      \"rejected\": [],\n      \"status\": \"pending\",\n      \"pendingCells\": 12,\n      \"parkedCells\": 0,\n      \"lastError\": null\n    }\n  }\n}"}]}]},{"name":"5. Get OTA bookings (from Booking.com, MakeMyTrip and others)","description":"Read the bookings that OTAs sent for this hotel. Your server can also receive each booking as a webhook: the hotel's owner adds your server's address in Admin, under Developers. Use these requests to catch up after your server was down.","item":[{"name":"List OTA bookings","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/channel-bookings?limit=20","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","channel-bookings"],"query":[{"key":"limit","value":"20","description":"1–100"}]},"description":"Shows the OTA bookings that changed in the last 7 days, oldest change first. If more is true, send it again with cursor set to nextCursor."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/channel-bookings?limit=20","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","channel-bookings"],"query":[{"key":"limit","value":"20","description":"1–100"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"OK\",\n  \"data\": {\n    \"since\": \"2026-12-03T12:30:00.000Z\",\n    \"items\": [\n      {\n        \"id\": 100001,\n        \"reference\": \"TEST-ZS-8K3Q2M\",\n        \"version\": 1,\n        \"status\": \"CONFIRMED\",\n        \"stayStatus\": \"UPCOMING\",\n        \"channel\": {\n          \"otaName\": \"MakeMyTrip\",\n          \"otaReservationCode\": \"TEST-ZS-8K3Q2M\",\n          \"source\": \"CHANNEL_MANAGER\",\n          \"sourceGroup\": \"INDIRECT\"\n        },\n        \"stay\": {\n          \"checkIn\": \"2026-12-24\",\n          \"checkOut\": \"2026-12-26\",\n          \"nights\": 2,\n          \"dayUse\": false\n        },\n        \"guest\": {\n          \"fullName\": \"Asha Verma\",\n          \"firstName\": \"Asha\",\n          \"lastName\": \"Verma\",\n          \"phone\": \"+919876500000\",\n          \"email\": \"asha.verma@example.com\",\n          \"country\": \"IN\",\n          \"language\": \"en\"\n        },\n        \"guestNotes\": \"Late arrival around 22:00. Non-smoking room please. (test event)\",\n        \"occupancy\": {\n          \"adults\": 2,\n          \"children\": 0\n        },\n        \"rooms\": [\n          {\n            \"roomTypeId\": 412,\n            \"ratePlanId\": 901,\n            \"roomTypeName\": \"Deluxe Garden Room\",\n            \"mealPlan\": \"CP\",\n            \"mealPlanSource\": \"ota\",\n            \"mealPlanText\": \"CP · Breakfast included\",\n            \"mealPrice\": null,\n            \"adults\": 2,\n            \"children\": 0,\n            \"checkIn\": \"2026-12-24\",\n            \"checkOut\": \"2026-12-26\",\n            \"nights\": 2,\n            \"dayUse\": false,\n            \"ratePerNight\": 2700,\n            \"amount\": 5400,\n            \"nightlyRates\": [\n              {\n                \"date\": \"2026-12-24\",\n                \"amount\": 2600\n              },\n              {\n                \"date\": \"2026-12-25\",\n                \"amount\": 2800\n              }\n            ],\n            \"commission\": 1350,\n            \"status\": \"UPCOMING\"\n          }\n        ],\n        \"amounts\": {\n          \"currency\": \"INR\",\n          \"total\": 5400,\n          \"paid\": 0,\n          \"balanceDue\": 5400,\n          \"paymentCollect\": \"property\"\n        },\n        \"finance\": {\n          \"otaName\": \"MakeMyTrip\",\n          \"amountBasis\": \"GROSS_TOTAL\",\n          \"currency\": \"INR\",\n          \"grossAmount\": 5400,\n          \"commissionAmount\": 1350,\n          \"taxAmount\": 648,\n          \"netPayoutAmount\": 4050,\n          \"taxIncludedInAmount\": false\n        },\n        \"cancellation\": null,\n        \"createdAt\": \"2026-12-10T12:00:00.000Z\",\n        \"updatedAt\": \"2026-12-10T12:00:00.000Z\"\n      }\n    ],\n    \"more\": false,\n    \"nextCursor\": \"WyIyMDI2LTEyLTEwVDEyOjAwOjAwLjAwMFoiLDEwMDAwMV0\"\n  }\n}"}]},{"name":"Get one OTA booking","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/channel-bookings/{{bookingId}}","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","channel-bookings","{{bookingId}}"]},"description":"Shows one OTA booking by its id. The id is read from bookingId. To fill it, send the first request of folder 8 first."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/channel-bookings/{{bookingId}}","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","channel-bookings","{{bookingId}}"]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"OK\",\n  \"data\": {\n    \"id\": 100001,\n    \"reference\": \"TEST-ZS-8K3Q2M\",\n    \"version\": 1,\n    \"status\": \"CONFIRMED\",\n    \"stayStatus\": \"UPCOMING\",\n    \"channel\": {\n      \"otaName\": \"MakeMyTrip\",\n      \"otaReservationCode\": \"TEST-ZS-8K3Q2M\",\n      \"source\": \"CHANNEL_MANAGER\",\n      \"sourceGroup\": \"INDIRECT\"\n    },\n    \"stay\": {\n      \"checkIn\": \"2026-12-24\",\n      \"checkOut\": \"2026-12-26\",\n      \"nights\": 2,\n      \"dayUse\": false\n    },\n    \"guest\": {\n      \"fullName\": \"Asha Verma\",\n      \"firstName\": \"Asha\",\n      \"lastName\": \"Verma\",\n      \"phone\": \"+919876500000\",\n      \"email\": \"asha.verma@example.com\",\n      \"country\": \"IN\",\n      \"language\": \"en\"\n    },\n    \"guestNotes\": \"Late arrival around 22:00. Non-smoking room please. (test event)\",\n    \"occupancy\": {\n      \"adults\": 2,\n      \"children\": 0\n    },\n    \"rooms\": [\n      {\n        \"roomTypeId\": 412,\n        \"ratePlanId\": 901,\n        \"roomTypeName\": \"Deluxe Garden Room\",\n        \"mealPlan\": \"CP\",\n        \"mealPlanSource\": \"ota\",\n        \"mealPlanText\": \"CP · Breakfast included\",\n        \"mealPrice\": null,\n        \"adults\": 2,\n        \"children\": 0,\n        \"checkIn\": \"2026-12-24\",\n        \"checkOut\": \"2026-12-26\",\n        \"nights\": 2,\n        \"dayUse\": false,\n        \"ratePerNight\": 2700,\n        \"amount\": 5400,\n        \"nightlyRates\": [\n          {\n            \"date\": \"2026-12-24\",\n            \"amount\": 2600\n          },\n          {\n            \"date\": \"2026-12-25\",\n            \"amount\": 2800\n          }\n        ],\n        \"commission\": 1350,\n        \"status\": \"UPCOMING\"\n      }\n    ],\n    \"amounts\": {\n      \"currency\": \"INR\",\n      \"total\": 5400,\n      \"paid\": 0,\n      \"balanceDue\": 5400,\n      \"paymentCollect\": \"property\"\n    },\n    \"finance\": {\n      \"otaName\": \"MakeMyTrip\",\n      \"amountBasis\": \"GROSS_TOTAL\",\n      \"currency\": \"INR\",\n      \"grossAmount\": 5400,\n      \"commissionAmount\": 1350,\n      \"taxAmount\": 648,\n      \"netPayoutAmount\": 4050,\n      \"taxIncludedInAmount\": false\n    },\n    \"cancellation\": null,\n    \"createdAt\": \"2026-12-10T12:00:00.000Z\",\n    \"updatedAt\": \"2026-12-10T12:00:00.000Z\"\n  }\n}"}]},{"name":"List events in order","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/events?after=0&limit=20","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","events"],"query":[{"key":"after","value":"0","description":"The last sequence you applied; keep the answer's nextAfter"},{"key":"limit","value":"20","description":"1–100"}]},"description":"Shows every booking and every OTA problem of this hotel, oldest first, each with a number. Remember the last number you handled, and ask for what came after it."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/events?after=0&limit=20","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","events"],"query":[{"key":"after","value":"0","description":"The last sequence you applied; keep the answer's nextAfter"},{"key":"limit","value":"20","description":"1–100"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"OK\",\n  \"data\": {\n    \"items\": [],\n    \"more\": false,\n    \"nextAfter\": 41,\n    \"earliestSequence\": 1,\n    \"retentionDays\": 90\n  }\n}"}]}]},{"name":"6. Get website bookings (from the hotel's own website)","description":"Read the bookings guests made on the hotel's own website, when the hotel uses the ZimmerStack booking engine. Lower the rooms free in your own software for each one, before you send availability again.","item":[{"name":"List website bookings","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/direct-bookings?limit=20","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","direct-bookings"],"query":[{"key":"limit","value":"20","description":"1–100"}]},"description":"Shows the website bookings that changed in the last 7 days."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/direct-bookings?limit=20","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","direct-bookings"],"query":[{"key":"limit","value":"20","description":"1–100"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"OK\",\n  \"data\": {\n    \"since\": \"2026-12-03T12:30:00.000Z\",\n    \"items\": [\n      {\n        \"id\": 100001,\n        \"reference\": \"TEST-WEB-4H7P9D\",\n        \"version\": 1,\n        \"status\": \"CONFIRMED\",\n        \"stayStatus\": \"UPCOMING\",\n        \"channel\": {\n          \"otaName\": \"Website\",\n          \"otaReservationCode\": \"TEST-WEB-4H7P9D\",\n          \"source\": \"DIRECT_WEB\",\n          \"sourceGroup\": \"DIRECT\"\n        },\n        \"stay\": {\n          \"checkIn\": \"2026-12-24\",\n          \"checkOut\": \"2026-12-26\",\n          \"nights\": 2,\n          \"dayUse\": false\n        },\n        \"guest\": {\n          \"fullName\": \"Asha Verma\",\n          \"firstName\": \"Asha\",\n          \"lastName\": \"Verma\",\n          \"phone\": \"+919876500000\",\n          \"email\": \"asha.verma@example.com\",\n          \"country\": \"IN\",\n          \"language\": \"en\"\n        },\n        \"guestNotes\": null,\n        \"occupancy\": {\n          \"adults\": 2,\n          \"children\": 0\n        },\n        \"rooms\": [\n          {\n            \"roomTypeId\": 412,\n            \"ratePlanId\": 901,\n            \"roomTypeName\": \"Deluxe Garden Room\",\n            \"mealPlan\": \"CP\",\n            \"mealPlanSource\": null,\n            \"mealPlanText\": null,\n            \"mealPrice\": null,\n            \"adults\": 2,\n            \"children\": 0,\n            \"checkIn\": \"2026-12-24\",\n            \"checkOut\": \"2026-12-26\",\n            \"nights\": 2,\n            \"dayUse\": false,\n            \"ratePerNight\": 2700,\n            \"amount\": 5400,\n            \"nightlyRates\": null,\n            \"commission\": null,\n            \"status\": \"UPCOMING\"\n          }\n        ],\n        \"amounts\": {\n          \"currency\": \"INR\",\n          \"total\": 5400,\n          \"paid\": 1080,\n          \"balanceDue\": 4320,\n          \"paymentCollect\": \"property\"\n        },\n        \"finance\": null,\n        \"cancellation\": null,\n        \"createdAt\": \"2026-12-10T12:00:00.000Z\",\n        \"updatedAt\": \"2026-12-10T12:00:00.000Z\"\n      }\n    ],\n    \"more\": false,\n    \"nextCursor\": \"WyIyMDI2LTEyLTEwVDEyOjAwOjAwLjAwMFoiLDEwMDAwMV0\"\n  }\n}"}]},{"name":"Get one website booking","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/direct-bookings/{{bookingId}}","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","direct-bookings","{{bookingId}}"]},"description":"Shows one website booking by its id. The id is read from bookingId."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/direct-bookings/{{bookingId}}","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","direct-bookings","{{bookingId}}"]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"OK\",\n  \"data\": {\n    \"id\": 100001,\n    \"reference\": \"TEST-WEB-4H7P9D\",\n    \"version\": 1,\n    \"status\": \"CONFIRMED\",\n    \"stayStatus\": \"UPCOMING\",\n    \"channel\": {\n      \"otaName\": \"Website\",\n      \"otaReservationCode\": \"TEST-WEB-4H7P9D\",\n      \"source\": \"DIRECT_WEB\",\n      \"sourceGroup\": \"DIRECT\"\n    },\n    \"stay\": {\n      \"checkIn\": \"2026-12-24\",\n      \"checkOut\": \"2026-12-26\",\n      \"nights\": 2,\n      \"dayUse\": false\n    },\n    \"guest\": {\n      \"fullName\": \"Asha Verma\",\n      \"firstName\": \"Asha\",\n      \"lastName\": \"Verma\",\n      \"phone\": \"+919876500000\",\n      \"email\": \"asha.verma@example.com\",\n      \"country\": \"IN\",\n      \"language\": \"en\"\n    },\n    \"guestNotes\": null,\n    \"occupancy\": {\n      \"adults\": 2,\n      \"children\": 0\n    },\n    \"rooms\": [\n      {\n        \"roomTypeId\": 412,\n        \"ratePlanId\": 901,\n        \"roomTypeName\": \"Deluxe Garden Room\",\n        \"mealPlan\": \"CP\",\n        \"mealPlanSource\": null,\n        \"mealPlanText\": null,\n        \"mealPrice\": null,\n        \"adults\": 2,\n        \"children\": 0,\n        \"checkIn\": \"2026-12-24\",\n        \"checkOut\": \"2026-12-26\",\n        \"nights\": 2,\n        \"dayUse\": false,\n        \"ratePerNight\": 2700,\n        \"amount\": 5400,\n        \"nightlyRates\": null,\n        \"commission\": null,\n        \"status\": \"UPCOMING\"\n      }\n    ],\n    \"amounts\": {\n      \"currency\": \"INR\",\n      \"total\": 5400,\n      \"paid\": 1080,\n      \"balanceDue\": 4320,\n      \"paymentCollect\": \"property\"\n    },\n    \"finance\": null,\n    \"cancellation\": null,\n    \"createdAt\": \"2026-12-10T12:00:00.000Z\",\n    \"updatedAt\": \"2026-12-10T12:00:00.000Z\"\n  }\n}"}]},{"name":"Cancel a website booking and refund it","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/direct-bookings/{{bookingId}}/cancel","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","direct-bookings","{{bookingId}}","cancel"]},"body":{"mode":"raw","raw":"{\n  \"refund\": \"policy\",\n  \"reason\": \"Guest phoned the front desk to cancel\"\n}","options":{"raw":{"language":"json"}}},"description":"Cancels one website booking. You choose the refund: policy (what the booking's own rules give back), full, or none. Your key needs the scope direct-bookings:cancel. The id is read from bookingId. To test, send the request A guest books on the hotel's own website in folder 8 first."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/direct-bookings/{{bookingId}}/cancel","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","direct-bookings","{{bookingId}}","cancel"]},"body":{"mode":"raw","raw":"{\n  \"refund\": \"policy\",\n  \"reason\": \"Guest phoned the front desk to cancel\"\n}","options":{"raw":{"language":"json"}}}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"Booking cancelled\",\n  \"data\": {\n    \"booking\": {\n      \"id\": 100001,\n      \"reference\": \"TEST-WEB-4H7P9D\",\n      \"version\": 1,\n      \"status\": \"CANCELLED\",\n      \"stayStatus\": \"CANCELLED\",\n      \"channel\": {\n        \"otaName\": \"Website\",\n        \"otaReservationCode\": \"TEST-WEB-4H7P9D\",\n        \"source\": \"DIRECT_WEB\",\n        \"sourceGroup\": \"DIRECT\"\n      },\n      \"stay\": {\n        \"checkIn\": \"2026-12-24\",\n        \"checkOut\": \"2026-12-26\",\n        \"nights\": 2,\n        \"dayUse\": false\n      },\n      \"guest\": {\n        \"fullName\": \"Asha Verma\",\n        \"firstName\": \"Asha\",\n        \"lastName\": \"Verma\",\n        \"phone\": \"+919876500000\",\n        \"email\": \"asha.verma@example.com\",\n        \"country\": \"IN\",\n        \"language\": \"en\"\n      },\n      \"guestNotes\": null,\n      \"occupancy\": {\n        \"adults\": 2,\n        \"children\": 0\n      },\n      \"rooms\": [\n        {\n          \"roomTypeId\": 412,\n          \"ratePlanId\": 901,\n          \"roomTypeName\": \"Deluxe Garden Room\",\n          \"mealPlan\": \"CP\",\n          \"mealPlanSource\": null,\n          \"mealPlanText\": null,\n          \"mealPrice\": null,\n          \"adults\": 2,\n          \"children\": 0,\n          \"checkIn\": \"2026-12-24\",\n          \"checkOut\": \"2026-12-26\",\n          \"nights\": 2,\n          \"dayUse\": false,\n          \"ratePerNight\": 2700,\n          \"amount\": 5400,\n          \"nightlyRates\": null,\n          \"commission\": null,\n          \"status\": \"CANCELLED\"\n        }\n      ],\n      \"amounts\": {\n        \"currency\": \"INR\",\n        \"total\": 5400,\n        \"paid\": 1080,\n        \"balanceDue\": 4320,\n        \"paymentCollect\": \"property\"\n      },\n      \"finance\": null,\n      \"cancellation\": {\n        \"at\": \"2026-12-11T09:15:00.000Z\",\n        \"reason\": \"Cancelled by the hotel\"\n      },\n      \"createdAt\": \"2026-12-10T12:00:00.000Z\",\n      \"updatedAt\": \"2026-12-11T09:15:00.000Z\"\n    },\n    \"refund\": {\n      \"requested\": \"policy\",\n      \"amount\": 1080,\n      \"currency\": \"INR\",\n      \"status\": \"PROCESSED\"\n    },\n    \"replay\": false\n  }\n}"}]}]},{"name":"7. Create bookings from your own website","description":"For a hotel that runs the ZimmerStack PMS and sells rooms on its own website or app. Your website sends each booking here, and it appears in the PMS like a booking made at the front desk. The OTAs show one room fewer within seconds. Your key needs the scopes bookings:write and bookings:read.","item":[{"name":"Create a booking","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/bookings","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","bookings"]},"body":{"mode":"raw","raw":"{\n  \"externalReference\": \"{{externalReference}}\",\n  \"checkIn\": \"{{dateFrom}}\",\n  \"checkOut\": \"{{dateTo}}\",\n  \"currency\": \"{{currency}}\",\n  \"guest\": {\n    \"name\": \"Asha Verma\",\n    \"phone\": \"+919876543210\",\n    \"email\": \"asha@example.com\",\n    \"notes\": \"Late arrival, after 22:00\"\n  },\n  \"rooms\": [\n    {\n      \"roomTypeId\": {{roomTypeId}},\n      \"ratePlanId\": {{ratePlanId}},\n      \"adults\": 2,\n      \"children\": 1,\n      \"nightlyRate\": \"4500.00\"\n    },\n    {\n      \"roomTypeId\": {{roomTypeId}},\n      \"ratePlanId\": {{ratePlanId}},\n      \"adults\": 2,\n      \"nightlyRate\": \"4500.00\"\n    }\n  ],\n  \"payment\": {\n    \"amount\": \"9000.00\",\n    \"method\": \"ONLINE\",\n    \"reference\": \"pay_QwErTy123\"\n  },\n  \"notes\": \"Promo WINTER10 applied on the website\"\n}","options":{"raw":{"language":"json"}}},"description":"Puts one booking into the PMS. externalReference is your own booking id: if you send the same one again, you get the same booking back and nothing is made twice. Postman saves the new booking's id as bookingId. Remove the payment part unless your key has the scope bookings:payments."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["const body = pm.response.json();","if (body && body.data && body.data.bookingId) pm.collectionVariables.set(\"bookingId\", String(body.data.bookingId));","pm.test(\"201 created or 200 replay, with a bookingId\", () => { pm.expect([200, 201]).to.include(pm.response.code); pm.expect(body.data.bookingId).to.be.a(\"number\"); });","pm.test(\"the inventory event was recorded with the booking\", () => pm.expect(body.data.inventory.eventRecorded).to.be.true);"]}}],"response":[{"name":"Example answer: 201 Created","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/bookings","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","bookings"]},"body":{"mode":"raw","raw":"{\n  \"externalReference\": \"{{externalReference}}\",\n  \"checkIn\": \"{{dateFrom}}\",\n  \"checkOut\": \"{{dateTo}}\",\n  \"currency\": \"{{currency}}\",\n  \"guest\": {\n    \"name\": \"Asha Verma\",\n    \"phone\": \"+919876543210\",\n    \"email\": \"asha@example.com\",\n    \"notes\": \"Late arrival, after 22:00\"\n  },\n  \"rooms\": [\n    {\n      \"roomTypeId\": {{roomTypeId}},\n      \"ratePlanId\": {{ratePlanId}},\n      \"adults\": 2,\n      \"children\": 1,\n      \"nightlyRate\": \"4500.00\"\n    },\n    {\n      \"roomTypeId\": {{roomTypeId}},\n      \"ratePlanId\": {{ratePlanId}},\n      \"adults\": 2,\n      \"nightlyRate\": \"4500.00\"\n    }\n  ],\n  \"payment\": {\n    \"amount\": \"9000.00\",\n    \"method\": \"ONLINE\",\n    \"reference\": \"pay_QwErTy123\"\n  },\n  \"notes\": \"Promo WINTER10 applied on the website\"\n}","options":{"raw":{"language":"json"}}}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 201,\n  \"message\": \"Booking created\",\n  \"data\": {\n    \"bookingId\": 48213,\n    \"reference\": \"SB-7KQ2MX9D\",\n    \"externalReference\": \"WEB-2026-000123\",\n    \"status\": \"UPCOMING\",\n    \"checkIn\": \"2026-12-20\",\n    \"checkOut\": \"2026-12-23\",\n    \"nights\": 3,\n    \"currency\": \"INR\",\n    \"totalAmount\": \"27000.00\",\n    \"totalPaid\": \"9000.00\",\n    \"balanceDue\": \"18000.00\",\n    \"guest\": {\n      \"name\": \"Asha Verma\",\n      \"phone\": \"+919876543210\",\n      \"email\": \"asha@example.com\"\n    },\n    \"rooms\": [\n      {\n        \"bookingRoomId\": 90001,\n        \"roomTypeId\": 412,\n        \"ratePlanId\": 901,\n        \"mealPlan\": \"CP\",\n        \"adults\": 2,\n        \"children\": 1,\n        \"nightlyRate\": \"4500.00\",\n        \"status\": \"UPCOMING\"\n      },\n      {\n        \"bookingRoomId\": 90002,\n        \"roomTypeId\": 412,\n        \"ratePlanId\": 901,\n        \"mealPlan\": \"CP\",\n        \"adults\": 2,\n        \"children\": 0,\n        \"nightlyRate\": \"4500.00\",\n        \"status\": \"UPCOMING\"\n      }\n    ],\n    \"inventory\": {\n      \"eventRecorded\": true,\n      \"channelManager\": true,\n      \"pushedBy\": \"inventory-drain\"\n    },\n    \"replay\": false,\n    \"createdAt\": \"2026-12-10T09:14:03.201Z\",\n    \"cancelledAt\": null\n  }\n}"}]},{"name":"Get the booking you created","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/bookings/{{bookingId}}","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","bookings","{{bookingId}}"]},"description":"Shows the booking you just made."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));","pm.test(\"status UPCOMING\", () => pm.expect(pm.response.json().data.status).to.eql(\"UPCOMING\"));"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/bookings/{{bookingId}}","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","bookings","{{bookingId}}"]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"OK\",\n  \"data\": {\n    \"bookingId\": 48213,\n    \"reference\": \"SB-7KQ2MX9D\",\n    \"externalReference\": \"WEB-2026-000123\",\n    \"status\": \"UPCOMING\",\n    \"checkIn\": \"2026-12-20\",\n    \"checkOut\": \"2026-12-23\",\n    \"nights\": 3,\n    \"currency\": \"INR\",\n    \"totalAmount\": \"27000.00\",\n    \"totalPaid\": \"9000.00\",\n    \"balanceDue\": \"18000.00\",\n    \"guest\": {\n      \"name\": \"Asha Verma\",\n      \"phone\": \"+919876543210\",\n      \"email\": \"asha@example.com\"\n    },\n    \"rooms\": [\n      {\n        \"bookingRoomId\": 90001,\n        \"roomTypeId\": 412,\n        \"ratePlanId\": 901,\n        \"mealPlan\": \"CP\",\n        \"adults\": 2,\n        \"children\": 1,\n        \"nightlyRate\": \"4500.00\",\n        \"status\": \"UPCOMING\"\n      },\n      {\n        \"bookingRoomId\": 90002,\n        \"roomTypeId\": 412,\n        \"ratePlanId\": 901,\n        \"mealPlan\": \"CP\",\n        \"adults\": 2,\n        \"children\": 0,\n        \"nightlyRate\": \"4500.00\",\n        \"status\": \"UPCOMING\"\n      }\n    ],\n    \"inventory\": {\n      \"eventRecorded\": true,\n      \"channelManager\": true,\n      \"pushedBy\": \"inventory-drain\"\n    },\n    \"replay\": false,\n    \"createdAt\": \"2026-12-10T09:14:03.201Z\",\n    \"cancelledAt\": null\n  }\n}"}]},{"name":"List your bookings","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/bookings?limit=20","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","bookings"],"query":[{"key":"limit","value":"20"}]},"description":"Shows the bookings your key created in the last 7 days."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/bookings?limit=20","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","bookings"],"query":[{"key":"limit","value":"20"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"OK\",\n  \"data\": {\n    \"since\": \"2026-12-03T09:20:00.000Z\",\n    \"items\": [\n      {\n        \"bookingId\": 48213,\n        \"reference\": \"SB-7KQ2MX9D\",\n        \"externalReference\": \"WEB-2026-000123\",\n        \"status\": \"UPCOMING\",\n        \"checkIn\": \"2026-12-20\",\n        \"checkOut\": \"2026-12-23\",\n        \"nights\": 3,\n        \"currency\": \"INR\",\n        \"totalAmount\": \"27000.00\",\n        \"totalPaid\": \"9000.00\",\n        \"balanceDue\": \"18000.00\",\n        \"guest\": {\n          \"name\": \"Asha Verma\",\n          \"phone\": \"+919876543210\",\n          \"email\": \"asha@example.com\"\n        },\n        \"rooms\": [\n          {\n            \"bookingRoomId\": 90001,\n            \"roomTypeId\": 412,\n            \"ratePlanId\": 901,\n            \"mealPlan\": \"CP\",\n            \"adults\": 2,\n            \"children\": 1,\n            \"nightlyRate\": \"4500.00\",\n            \"status\": \"UPCOMING\"\n          },\n          {\n            \"bookingRoomId\": 90002,\n            \"roomTypeId\": 412,\n            \"ratePlanId\": 901,\n            \"mealPlan\": \"CP\",\n            \"adults\": 2,\n            \"children\": 0,\n            \"nightlyRate\": \"4500.00\",\n            \"status\": \"UPCOMING\"\n          }\n        ],\n        \"inventory\": {\n          \"eventRecorded\": true,\n          \"channelManager\": true,\n          \"pushedBy\": \"inventory-drain\"\n        },\n        \"replay\": false,\n        \"createdAt\": \"2026-12-10T09:14:03.201Z\",\n        \"cancelledAt\": null\n      }\n    ]\n  }\n}"}]},{"name":"Cancel your booking","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/bookings/{{bookingId}}/cancel","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","bookings","{{bookingId}}","cancel"]},"body":{"mode":"raw","raw":"{\n  \"reason\": \"Guest cancelled on the website\"\n}","options":{"raw":{"language":"json"}}},"description":"Cancels the booking you made. Its rooms go back on sale on the OTAs. Sending it twice does no harm."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));","pm.test(\"status CANCELLED\", () => pm.expect(pm.response.json().data.status).to.eql(\"CANCELLED\"));"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/bookings/{{bookingId}}/cancel","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","bookings","{{bookingId}}","cancel"]},"body":{"mode":"raw","raw":"{\n  \"reason\": \"Guest cancelled on the website\"\n}","options":{"raw":{"language":"json"}}}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"Booking cancelled\",\n  \"data\": {\n    \"bookingId\": 48213,\n    \"reference\": \"SB-7KQ2MX9D\",\n    \"externalReference\": \"WEB-2026-000123\",\n    \"status\": \"CANCELLED\",\n    \"checkIn\": \"2026-12-20\",\n    \"checkOut\": \"2026-12-23\",\n    \"nights\": 3,\n    \"currency\": \"INR\",\n    \"totalAmount\": \"27000.00\",\n    \"totalPaid\": \"9000.00\",\n    \"balanceDue\": \"18000.00\",\n    \"guest\": {\n      \"name\": \"Asha Verma\",\n      \"phone\": \"+919876543210\",\n      \"email\": \"asha@example.com\"\n    },\n    \"rooms\": [\n      {\n        \"bookingRoomId\": 90001,\n        \"roomTypeId\": 412,\n        \"ratePlanId\": 901,\n        \"mealPlan\": \"CP\",\n        \"adults\": 2,\n        \"children\": 1,\n        \"nightlyRate\": \"4500.00\",\n        \"status\": \"CANCELLED\"\n      },\n      {\n        \"bookingRoomId\": 90002,\n        \"roomTypeId\": 412,\n        \"ratePlanId\": 901,\n        \"mealPlan\": \"CP\",\n        \"adults\": 2,\n        \"children\": 0,\n        \"nightlyRate\": \"4500.00\",\n        \"status\": \"CANCELLED\"\n      }\n    ],\n    \"inventory\": {\n      \"eventRecorded\": true,\n      \"channelManager\": true,\n      \"pushedBy\": \"inventory-drain\"\n    },\n    \"replay\": false,\n    \"createdAt\": \"2026-12-10T09:14:03.201Z\",\n    \"cancelledAt\": \"2026-12-11T08:02:19.000Z\"\n  }\n}"}]}]},{"name":"8. Sandbox: practise what happens when a guest books","description":"A real booking comes when a guest books on an OTA like Booking.com. You cannot make a real guest book only to test your software. So here the sandbox pretends. Each request makes one thing happen that happens to a real hotel: a guest books, changes the booking, cancels it, an OTA has a problem, a guest does not arrive. After each request, look at two things: the rooms free, and the webhook your server receives. It is the same webhook as for a real hotel. This folder works with a test key only, and nothing in it reaches an OTA.","item":[{"name":"A guest books on an OTA (make a test booking)","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/sandbox/bookings","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","sandbox","bookings"]},"body":{"mode":"raw","raw":"{\n  \"roomTypeId\": {{roomTypeId}},\n  \"checkIn\": \"{{dateFrom}}\",\n  \"nights\": 2,\n  \"rooms\": 1,\n  \"adults\": 2,\n  \"guestName\": \"Asha Verma\",\n  \"otaName\": \"Booking.com\",\n  \"paidByOta\": false\n}","options":{"raw":{"language":"json"}}},"description":"Pretends that a guest booked one room for 2 nights on Booking.com. The answer is the booking, as a real OTA booking looks. Postman saves its id as bookingId. Your server receives the webhook channel.booking.created."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["const body = pm.response.json();","if (body && body.data && body.data.bookingId) pm.collectionVariables.set(\"bookingId\", String(body.data.bookingId));","pm.test(\"201 with a bookingId and a queued webhook\", () => { pm.response.to.have.status(201); pm.expect(body.data.bookingId).to.be.a(\"number\"); pm.expect(body.data.webhook.queued).to.be.true; });"]}}],"response":[{"name":"Example answer: 201 Created","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/sandbox/bookings","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","sandbox","bookings"]},"body":{"mode":"raw","raw":"{\n  \"roomTypeId\": {{roomTypeId}},\n  \"checkIn\": \"{{dateFrom}}\",\n  \"nights\": 2,\n  \"rooms\": 1,\n  \"adults\": 2,\n  \"guestName\": \"Asha Verma\",\n  \"otaName\": \"Booking.com\",\n  \"paidByOta\": false\n}","options":{"raw":{"language":"json"}}}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 201,\n  \"message\": \"Simulated OTA booking created; the channel.booking.created webhook is queued.\",\n  \"data\": {\n    \"bookingId\": 90311,\n    \"reference\": \"SBX-9001-MXHI8W001F6D\",\n    \"channelBookingId\": \"sbx-1f6d0c2e-7b53-4a0e-9c5a-2d8f3b1e4c70\",\n    \"otaName\": \"Booking.com\",\n    \"status\": \"UPCOMING\",\n    \"guestName\": \"Asha Verma\",\n    \"checkIn\": \"2026-12-24\",\n    \"checkOut\": \"2026-12-26\",\n    \"nights\": 2,\n    \"rooms\": 1,\n    \"roomTypeId\": 412,\n    \"nightlyRate\": 4850,\n    \"total\": 9700,\n    \"currency\": \"INR\",\n    \"paidByOta\": false,\n    \"oversold\": false,\n    \"createdAt\": \"2026-12-10T12:00:00.000Z\",\n    \"webhook\": {\n      \"eventType\": \"channel.booking.created\",\n      \"queued\": true\n    }\n  }\n}"}]},{"name":"See that one room fewer is free","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/availability?from={{dateFrom}}&to={{dateTo}}","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","availability"],"query":[{"key":"from","value":"{{dateFrom}}","description":"YYYY-MM-DD in the property's timezone; default today"},{"key":"to","value":"{{dateTo}}","description":"YYYY-MM-DD; default from + 30 days, at most 500 days after from"}]},"description":"Shows the availability of the same nights. On the two nights of the test booking, one room fewer is free. ZimmerStack lowered it by itself. Your own software must count this booking too, before it sends availability again."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/availability?from={{dateFrom}}&to={{dateTo}}","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","availability"],"query":[{"key":"from","value":"{{dateFrom}}","description":"YYYY-MM-DD in the property's timezone; default today"},{"key":"to","value":"{{dateTo}}","description":"YYYY-MM-DD; default from + 30 days, at most 500 days after from"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"OK\",\n  \"data\": {\n    \"from\": \"2026-12-24\",\n    \"to\": \"2026-12-26\",\n    \"cells\": [\n      {\n        \"roomTypeId\": 412,\n        \"date\": \"2026-12-24\",\n        \"available\": 2\n      },\n      {\n        \"roomTypeId\": 412,\n        \"date\": \"2026-12-25\",\n        \"available\": 2\n      },\n      {\n        \"roomTypeId\": 412,\n        \"date\": \"2026-12-26\",\n        \"available\": 2\n      },\n      {\n        \"roomTypeId\": 413,\n        \"date\": \"2026-12-24\",\n        \"available\": 1\n      },\n      {\n        \"roomTypeId\": 413,\n        \"date\": \"2026-12-25\",\n        \"available\": 1\n      },\n      {\n        \"roomTypeId\": 413,\n        \"date\": \"2026-12-26\",\n        \"available\": 1\n      }\n    ]\n  }\n}"}]},{"name":"List your test bookings","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/sandbox/bookings","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","sandbox","bookings"]},"description":"Shows every test booking you made on this hotel, with its state: new, changed or cancelled."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/sandbox/bookings","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","sandbox","bookings"]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"OK\",\n  \"data\": {\n    \"bookings\": [\n      {\n        \"bookingId\": 90311,\n        \"reference\": \"SBX-9001-MXHI8W001F6D\",\n        \"channelBookingId\": \"sbx-1f6d0c2e-7b53-4a0e-9c5a-2d8f3b1e4c70\",\n        \"otaName\": \"Booking.com\",\n        \"status\": \"UPCOMING\",\n        \"guestName\": \"Asha Verma\",\n        \"checkIn\": \"2026-12-24\",\n        \"checkOut\": \"2026-12-26\",\n        \"nights\": 2,\n        \"rooms\": 1,\n        \"roomTypeId\": 412,\n        \"nightlyRate\": 4850,\n        \"total\": 9700,\n        \"currency\": \"INR\",\n        \"paidByOta\": false,\n        \"oversold\": false,\n        \"createdAt\": \"2026-12-10T12:00:00.000Z\",\n        \"webhook\": {\n          \"eventType\": \"channel.booking.created\",\n          \"queued\": false\n        }\n      }\n    ]\n  }\n}"}]},{"name":"The guest changes the booking","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/sandbox/bookings/{{bookingId}}/modify","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","sandbox","bookings","{{bookingId}}","modify"]},"body":{"mode":"raw","raw":"{\n  \"nights\": 3,\n  \"guestName\": \"Asha Verma-Rao\"\n}","options":{"raw":{"language":"json"}}},"description":"Pretends that the guest changed the booking on the OTA: 3 nights in place of 2, and a new name. Your server receives the webhook channel.booking.modified. The full message, and what to do with it: https://docs.zimmerstack.com/guides/webhooks#booking-life"},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));","pm.test(\"nights changed\", () => pm.expect(pm.response.json().data.nights).to.eql(3));"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/sandbox/bookings/{{bookingId}}/modify","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","sandbox","bookings","{{bookingId}}","modify"]},"body":{"mode":"raw","raw":"{\n  \"nights\": 3,\n  \"guestName\": \"Asha Verma-Rao\"\n}","options":{"raw":{"language":"json"}}}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"OK\",\n  \"data\": {\n    \"bookingId\": 90311,\n    \"reference\": \"SBX-9001-MXHI8W001F6D\",\n    \"channelBookingId\": \"sbx-1f6d0c2e-7b53-4a0e-9c5a-2d8f3b1e4c70\",\n    \"otaName\": \"Booking.com\",\n    \"status\": \"UPCOMING\",\n    \"guestName\": \"Asha Verma-Rao\",\n    \"checkIn\": \"2026-12-24\",\n    \"checkOut\": \"2026-12-27\",\n    \"nights\": 3,\n    \"rooms\": 1,\n    \"roomTypeId\": 412,\n    \"nightlyRate\": 4966.67,\n    \"total\": 14900,\n    \"currency\": \"INR\",\n    \"paidByOta\": false,\n    \"oversold\": false,\n    \"createdAt\": \"2026-12-10T12:00:00.000Z\",\n    \"webhook\": {\n      \"eventType\": \"channel.booking.modified\",\n      \"queued\": true\n    }\n  }\n}"}]},{"name":"The guest cancels the booking","request":{"method":"POST","header":[{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/sandbox/bookings/{{bookingId}}/cancel","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","sandbox","bookings","{{bookingId}}","cancel"]},"description":"Pretends that the guest cancelled on the OTA. The room becomes free again. Your server receives the webhook channel.booking.cancelled. The full message, and what to do with it: https://docs.zimmerstack.com/guides/webhooks#booking-life"},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));","pm.test(\"status CANCELLED\", () => pm.expect(pm.response.json().data.status).to.eql(\"CANCELLED\"));"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"POST","header":[{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/sandbox/bookings/{{bookingId}}/cancel","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","sandbox","bookings","{{bookingId}}","cancel"]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"OK\",\n  \"data\": {\n    \"bookingId\": 90311,\n    \"reference\": \"SBX-9001-MXHI8W001F6D\",\n    \"channelBookingId\": \"sbx-1f6d0c2e-7b53-4a0e-9c5a-2d8f3b1e4c70\",\n    \"otaName\": \"Booking.com\",\n    \"status\": \"CANCELLED\",\n    \"guestName\": \"Asha Verma-Rao\",\n    \"checkIn\": \"2026-12-24\",\n    \"checkOut\": \"2026-12-27\",\n    \"nights\": 3,\n    \"rooms\": 1,\n    \"roomTypeId\": 412,\n    \"nightlyRate\": 4966.67,\n    \"total\": 14900,\n    \"currency\": \"INR\",\n    \"paidByOta\": false,\n    \"oversold\": false,\n    \"createdAt\": \"2026-12-10T12:00:00.000Z\",\n    \"webhook\": {\n      \"eventType\": \"channel.booking.cancelled\",\n      \"queued\": true\n    }\n  }\n}"}]},{"name":"An OTA has a problem (sync alert)","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/sandbox/sync-events","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","sandbox","sync-events"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"channel.sync.alert\",\n  \"event\": \"rate_error\"\n}","options":{"raw":{"language":"json"}}},"description":"Pretends that an OTA refused the rates you sent. This is called a sync alert. Your server receives the webhook channel.sync.alert. For a real hotel it means: something you sent did not reach the OTA, and a person must look."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/sandbox/sync-events","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","sandbox","sync-events"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"channel.sync.alert\",\n  \"event\": \"rate_error\"\n}","options":{"raw":{"language":"json"}}}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"OK\",\n  \"data\": {\n    \"event\": \"rate_error\",\n    \"channelId\": \"b53ff702-be2d-44ee-8a7e-d1153f096dba\",\n    \"channelKind\": \"BookingCom\",\n    \"raisedAt\": \"2026-12-10T12:30:00.000Z\",\n    \"resolvedAt\": null,\n    \"webhook\": {\n      \"eventType\": \"channel.sync.alert\",\n      \"queued\": true\n    }\n  }\n}"}]},{"name":"The OTA's problem is over","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/sandbox/sync-events","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","sandbox","sync-events"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"channel.sync.recovered\"\n}","options":{"raw":{"language":"json"}}},"description":"Pretends that the problem ended. Your server receives the webhook channel.sync.recovered."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/sandbox/sync-events","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","sandbox","sync-events"]},"body":{"mode":"raw","raw":"{\n  \"type\": \"channel.sync.recovered\"\n}","options":{"raw":{"language":"json"}}}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"OK\",\n  \"data\": {\n    \"event\": \"rate_error\",\n    \"channelId\": \"b53ff702-be2d-44ee-8a7e-d1153f096dba\",\n    \"channelKind\": \"BookingCom\",\n    \"raisedAt\": \"2026-12-10T12:30:00.000Z\",\n    \"resolvedAt\": \"2026-12-10T12:40:00.000Z\",\n    \"webhook\": {\n      \"eventType\": \"channel.sync.recovered\",\n      \"queued\": true\n    }\n  }\n}"}]},{"name":"A guest books on the hotel's own website","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/sandbox/bookings","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","sandbox","bookings"]},"body":{"mode":"raw","raw":"{\n  \"roomTypeId\": {{roomTypeId}},\n  \"checkIn\": \"{{dateFrom}}\",\n  \"nights\": 2,\n  \"rooms\": 1,\n  \"adults\": 2,\n  \"guestName\": \"Asha Verma\",\n  \"otaName\": \"Website\",\n  \"paidByOta\": false\n}","options":{"raw":{"language":"json"}}},"description":"Pretends that a guest booked on the hotel's own website, not on an OTA. The body is the same, with otaName Website. Postman saves its id as bookingId. Your server receives the webhook direct.booking.created."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["const body = pm.response.json();","if (body && body.data && body.data.bookingId) pm.collectionVariables.set(\"bookingId\", String(body.data.bookingId));","pm.test(\"201 with a bookingId\", () => { pm.response.to.have.status(201); pm.expect(body.data.bookingId).to.be.a(\"number\"); });"]}}],"response":[{"name":"Example answer: 201 Created","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/sandbox/bookings","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","sandbox","bookings"]},"body":{"mode":"raw","raw":"{\n  \"roomTypeId\": {{roomTypeId}},\n  \"checkIn\": \"{{dateFrom}}\",\n  \"nights\": 2,\n  \"rooms\": 1,\n  \"adults\": 2,\n  \"guestName\": \"Asha Verma\",\n  \"otaName\": \"Website\",\n  \"paidByOta\": false\n}","options":{"raw":{"language":"json"}}}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 201,\n  \"message\": \"Simulated OTA booking created; the channel.booking.created webhook is queued.\",\n  \"data\": {\n    \"bookingId\": 90311,\n    \"reference\": \"SBX-9001-MXHI8W001F6D\",\n    \"channelBookingId\": \"sbx-1f6d0c2e-7b53-4a0e-9c5a-2d8f3b1e4c70\",\n    \"otaName\": \"Website\",\n    \"status\": \"UPCOMING\",\n    \"guestName\": \"Asha Verma\",\n    \"checkIn\": \"2026-12-24\",\n    \"checkOut\": \"2026-12-26\",\n    \"nights\": 2,\n    \"rooms\": 1,\n    \"roomTypeId\": 412,\n    \"nightlyRate\": 4850,\n    \"total\": 9700,\n    \"currency\": \"INR\",\n    \"paidByOta\": false,\n    \"oversold\": false,\n    \"createdAt\": \"2026-12-10T12:00:00.000Z\",\n    \"webhook\": {\n      \"eventType\": \"direct.booking.created\",\n      \"queued\": true\n    }\n  }\n}"}]},{"name":"The website guest does not arrive (no-show)","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/sandbox/bookings/{{bookingId}}/no-show","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","sandbox","bookings","{{bookingId}}","no-show"]},"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"description":"Marks that website booking as a no-show: the guest did not arrive. Its nights become free again. Your server receives the webhook direct.booking.modified. It works for a website booking only: send the request above first."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"200, or 409 on a booking that is not a website booking\", () => pm.expect([200, 409]).to.include(pm.response.code));"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/sandbox/bookings/{{bookingId}}/no-show","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","sandbox","bookings","{{bookingId}}","no-show"]},"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"OK\",\n  \"data\": {\n    \"bookingId\": 90312,\n    \"reference\": \"SBX-9001-MXHIYLXC7B3E\",\n    \"channelBookingId\": \"sbx-7b3e94a1-0c5d-4f62-8e17-3a9d2c6b5f48\",\n    \"otaName\": \"Website\",\n    \"status\": \"UPCOMING\",\n    \"guestName\": \"Priya Nair\",\n    \"checkIn\": \"2026-12-24\",\n    \"checkOut\": \"2026-12-26\",\n    \"nights\": 2,\n    \"rooms\": 1,\n    \"roomTypeId\": 412,\n    \"nightlyRate\": 4850,\n    \"total\": 9700,\n    \"currency\": \"INR\",\n    \"paidByOta\": true,\n    \"oversold\": false,\n    \"createdAt\": \"2026-12-10T12:20:00.000Z\",\n    \"webhook\": {\n      \"eventType\": \"direct.booking.modified\",\n      \"queued\": true\n    },\n    \"stayStatus\": \"NOSHOW\"\n  }\n}"}]}]},{"name":"9. Create room types and rate plans","description":"Use this when your software owns the hotel's room types and rate plans. You name each one with your own id (ref). This folder creates one room type and one rate plan of its own, then deletes only those two. A delete names what it deletes by ZimmerStack's id, or by your own ref with ref: in front. This folder shows both: it deletes its rate plan by your ref, and its room type by ZimmerStack's id. The same requests work on your own room types and rate plans. Your key needs the scope catalog:write.","item":[{"name":"Create or change room types","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/catalog/room-types","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","catalog","room-types"]},"body":{"mode":"raw","raw":"{\n  \"roomTypes\": [\n    {\n      \"ref\": \"postman-room\",\n      \"name\": \"Postman test room\",\n      \"roomCount\": 1,\n      \"adults\": 2,\n      \"children\": 0\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"Sends a list of room types. A new ref is created. A ref that exists is changed."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));","const out = pm.response.json().data;","pm.test(\"one item with our id and an action\", () => { pm.expect(out.items).to.have.length(1); pm.expect(out.items[0].id).to.be.a(\"number\"); pm.expect([\"created\", \"updated\", \"adopted\", \"unchanged\"]).to.include(out.items[0].action); });","pm.collectionVariables.set(\"testRoomTypeId\", String(out.items[0].id));"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/catalog/room-types","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","catalog","room-types"]},"body":{"mode":"raw","raw":"{\n  \"roomTypes\": [\n    {\n      \"ref\": \"postman-room\",\n      \"name\": \"Postman test room\",\n      \"roomCount\": 1,\n      \"adults\": 2,\n      \"children\": 0\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"OK\",\n  \"data\": {\n    \"items\": [\n      {\n        \"ref\": \"postman-room\",\n        \"id\": 414,\n        \"action\": \"created\",\n        \"sync\": \"IN_SYNC\",\n        \"notice\": null\n      }\n    ],\n    \"channelManager\": {\n      \"enabled\": true,\n      \"reason\": null\n    }\n  }\n}"}]},{"name":"Create or change rate plans","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/catalog/rate-plans","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","catalog","rate-plans"]},"body":{"mode":"raw","raw":"{\n  \"ratePlans\": [\n    {\n      \"ref\": \"postman-plan\",\n      \"roomTypeRef\": \"postman-room\",\n      \"name\": \"Postman test plan\",\n      \"mealPlan\": \"EP\",\n      \"occupancy\": 2,\n      \"refundable\": true,\n      \"defaultRate\": 2500\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"Sends a list of rate plans. Each one names its room type by that room type's ref."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));","const out = pm.response.json().data;","pm.test(\"one item with our id\", () => { pm.expect(out.items).to.have.length(1); pm.expect(out.items[0].id).to.be.a(\"number\"); });","pm.collectionVariables.set(\"testRatePlanId\", String(out.items[0].id));"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/catalog/rate-plans","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","catalog","rate-plans"]},"body":{"mode":"raw","raw":"{\n  \"ratePlans\": [\n    {\n      \"ref\": \"postman-plan\",\n      \"roomTypeRef\": \"postman-room\",\n      \"name\": \"Postman test plan\",\n      \"mealPlan\": \"EP\",\n      \"occupancy\": 2,\n      \"refundable\": true,\n      \"defaultRate\": 2500\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"OK\",\n  \"data\": {\n    \"items\": [\n      {\n        \"ref\": \"postman-plan\",\n        \"id\": 903,\n        \"action\": \"created\",\n        \"sync\": \"IN_SYNC\",\n        \"notice\": null\n      }\n    ],\n    \"channelManager\": {\n      \"enabled\": true,\n      \"reason\": null\n    }\n  }\n}"}]},{"name":"Get room types and rate plans again","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/catalog","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","catalog"]},"description":"Shows the new room type and rate plan, each with your ref and our id."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));","pm.test(\"the test room carries its ref\", () => pm.expect(pm.response.json().data.roomTypes.some((r) => r.ref === \"postman-room\")).to.be.true);"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/catalog","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","catalog"]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"OK\",\n  \"data\": {\n    \"currency\": \"INR\",\n    \"roomTypes\": [\n      {\n        \"id\": 412,\n        \"ref\": \"rt-deluxe\",\n        \"name\": \"Deluxe Garden Room\",\n        \"maxAdults\": 2,\n        \"maxChildren\": 1,\n        \"roomKind\": \"room\",\n        \"sync\": \"IN_SYNC\"\n      },\n      {\n        \"id\": 413,\n        \"ref\": null,\n        \"name\": \"Family Suite\",\n        \"maxAdults\": 4,\n        \"maxChildren\": 2,\n        \"roomKind\": \"room\",\n        \"sync\": \"IN_SYNC\"\n      }\n    ],\n    \"ratePlans\": [\n      {\n        \"id\": 901,\n        \"ref\": \"rp-bb\",\n        \"roomTypeId\": 412,\n        \"name\": \"Bed and breakfast\",\n        \"mealPlan\": \"CP\",\n        \"occupancy\": 2,\n        \"currency\": \"INR\",\n        \"refundable\": true,\n        \"sync\": \"IN_SYNC\"\n      },\n      {\n        \"id\": 902,\n        \"ref\": null,\n        \"roomTypeId\": 413,\n        \"name\": \"Room only, non-refundable\",\n        \"mealPlan\": \"EP\",\n        \"occupancy\": 4,\n        \"currency\": \"INR\",\n        \"refundable\": false,\n        \"sync\": \"PENDING\"\n      },\n      {\n        \"id\": 904,\n        \"ref\": \"rp-ro\",\n        \"roomTypeId\": 412,\n        \"name\": \"Room only\",\n        \"mealPlan\": \"EP\",\n        \"occupancy\": 2,\n        \"currency\": \"INR\",\n        \"refundable\": true,\n        \"sync\": \"IN_SYNC\"\n      }\n    ]\n  }\n}"}]},{"name":"Delete a rate plan","request":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/catalog/rate-plans/ref:postman-plan","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","catalog","rate-plans","ref:postman-plan"]},"description":"Deletes one rate plan by your own ref. The address ends with ref:postman-plan: the text ref: and then the ref. Here it is the rate plan this folder created. ZimmerStack's id works in the same place too: write the id with no ref: in front. This request is sent only after this folder's two create requests."},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["if (!pm.collectionVariables.get(\"testRatePlanId\")) {","  const zsWhy = \"Send this folder's two PUT requests first: this request deletes only what they made.\";","  console.error(zsWhy);","  pm.test(zsWhy, () => { throw new Error(\"This request was not sent.\"); });","  if (pm.execution && pm.execution.skipRequest) pm.execution.skipRequest();","  throw new Error(zsWhy);","}"]}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));","pm.test(\"deleted\", () => pm.expect(pm.response.json().data.deleted).to.be.true);","pm.collectionVariables.set(\"testRatePlanId\", \"\");"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/catalog/rate-plans/ref:postman-plan","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","catalog","rate-plans","ref:postman-plan"]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"OK\",\n  \"data\": {\n    \"id\": 903,\n    \"deleted\": true,\n    \"channelManagerDeleted\": true,\n    \"deletedRatePlanIds\": []\n  }\n}"}]},{"name":"Delete a room type","request":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/catalog/room-types/{{testRoomTypeId}}","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","catalog","room-types","{{testRoomTypeId}}"]},"description":"Deletes one room type by ZimmerStack's id. Here it is the room type this folder created, and Postman puts its id in the address. Your own ref works in the same place too: write ref: and then the ref, like ref:postman-room. Its rate plans are deleted with it. This request is sent only after this folder created that room type."},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["if (!pm.collectionVariables.get(\"testRoomTypeId\")) {","  const zsWhy = \"Send this folder's two PUT requests first: this request deletes only what they made.\";","  console.error(zsWhy);","  pm.test(zsWhy, () => { throw new Error(\"This request was not sent.\"); });","  if (pm.execution && pm.execution.skipRequest) pm.execution.skipRequest();","  throw new Error(zsWhy);","}"]}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));","pm.test(\"deleted\", () => pm.expect(pm.response.json().data.deleted).to.be.true);","pm.collectionVariables.set(\"testRoomTypeId\", \"\"); pm.collectionVariables.set(\"testRatePlanId\", \"\");"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/catalog/room-types/{{testRoomTypeId}}","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","catalog","room-types","{{testRoomTypeId}}"]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"OK\",\n  \"data\": {\n    \"id\": 414,\n    \"deleted\": true,\n    \"channelManagerDeleted\": true,\n    \"deletedRatePlanIds\": [\n      903\n    ]\n  }\n}"}]}]},{"name":"10. Set a price modifier on an OTA (channel modifier)","description":"You always send one price for each night. You cannot send one OTA its own price, and you cannot choose which OTAs get a price. A modifier is a rule on one OTA: every price that goes to that OTA is raised or lowered by it, for example by 10%. Your key needs the scope channel-modifiers:write. The last two requests of this folder are a full sync: ZimmerStack sends one OTA, or every OTA of the hotel, everything it holds again. They need the scope ari:write.","item":[{"name":"List the OTAs of this hotel (channels)","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/channels","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","channels"]},"description":"Shows each connected OTA and its price modifier, if it has one. Postman saves the first one as channelId."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));","const channels = pm.response.json().data.channels;","pm.test(\"every channel carries a modifier field\", () => pm.expect(channels.every((c) => c.modifier === null || Array.isArray(c.modifier))).to.be.true);","if (channels.length) pm.collectionVariables.set(\"channelId\", channels[0].channelId);"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/channels","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","channels"]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"OK\",\n  \"data\": {\n    \"asOf\": \"2026-10-30T20:15:04.000Z\",\n    \"channels\": [\n      {\n        \"channelId\": \"7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f\",\n        \"kind\": \"BookingCom\",\n        \"title\": \"Booking.com — The Lantern House\",\n        \"seenAt\": \"2026-10-30T20:15:04.000Z\",\n        \"openIssues\": [],\n        \"modifier\": [\n          {\n            \"action\": \"increase\",\n            \"type\": \"percent\",\n            \"value\": 18\n          }\n        ],\n        \"markupPlan\": null\n      },\n      {\n        \"channelId\": \"0a9b8c7d-6e5f-4a3b-2c1d-0e9f8a7b6c5d\",\n        \"kind\": \"Expedia\",\n        \"title\": \"Expedia — The Lantern House\",\n        \"seenAt\": \"2026-10-30T20:15:04.000Z\",\n        \"openIssues\": [\n          {\n            \"event\": \"rate_error\",\n            \"raisedAt\": \"2026-10-30T09:40:11.000Z\"\n          }\n        ],\n        \"modifier\": [],\n        \"markupPlan\": null\n      }\n    ],\n    \"propertyIssues\": []\n  }\n}"}]},{"name":"Set the price modifier of one OTA (+10%)","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/channels/{{channelId}}/modifier","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","channels","{{channelId}}","modifier"]},"body":{"mode":"raw","raw":"{\n  \"steps\": [\n    {\n      \"action\": \"increase\",\n      \"type\": \"percent\",\n      \"value\": 10\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"Makes every price that goes to this OTA 10% higher, from now on."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));","pm.test(\"the channel holds the step\", () => pm.expect(pm.response.json().data.modifier).to.eql([{ action: \"increase\", type: \"percent\", value: 10 }]));"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/channels/{{channelId}}/modifier","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","channels","{{channelId}}","modifier"]},"body":{"mode":"raw","raw":"{\n  \"steps\": [\n    {\n      \"action\": \"increase\",\n      \"type\": \"percent\",\n      \"value\": 10\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"OK\",\n  \"data\": {\n    \"channelId\": \"7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f\",\n    \"kind\": \"BookingCom\",\n    \"title\": \"Booking.com — The Lantern House\",\n    \"modifier\": [\n      {\n        \"action\": \"increase\",\n        \"type\": \"percent\",\n        \"value\": 10\n      }\n    ],\n    \"changed\": true,\n    \"notice\": \"Saving a modifier makes the channel manager send that channel every date again, so prices already on the channel move to the new rule within minutes.\"\n  }\n}"}]},{"name":"Send the prices again","request":{"method":"POST","header":[{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/rates/resend","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","rates","resend"]},"description":"Sends the hotel's prices to the OTAs again. You may do this only a few times a day."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 202\", () => pm.response.to.have.status(202));","pm.test(\"cells were marked\", () => pm.expect(pm.response.json().data.cells).to.be.a(\"number\"));"]}}],"response":[{"name":"Example answer: 202 Accepted","originalRequest":{"method":"POST","header":[{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/rates/resend","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","rates","resend"]}},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 202,\n  \"message\": \"Accepted\",\n  \"data\": {\n    \"from\": \"2026-11-12\",\n    \"to\": \"2027-11-12\",\n    \"cells\": 1098,\n    \"parkedLeft\": 0,\n    \"watch\": \"/api/v1/connect-api/v1/sync\",\n    \"notice\": \"The prices and stay rules of these nights are on their way to the channels again, unchanged, at the usual pace. A full calendar takes minutes.\"\n  }\n}"}]},{"name":"Remove the price modifier","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/channels/{{channelId}}/modifier","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","channels","{{channelId}}","modifier"]},"body":{"mode":"raw","raw":"{\n  \"steps\": []\n}","options":{"raw":{"language":"json"}}},"description":"Removes the price modifier. The OTA gets the prices you send again, with nothing added or taken off."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));","pm.test(\"no steps left\", () => pm.expect(pm.response.json().data.modifier).to.eql([]));"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/channels/{{channelId}}/modifier","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","channels","{{channelId}}","modifier"]},"body":{"mode":"raw","raw":"{\n  \"steps\": []\n}","options":{"raw":{"language":"json"}}}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"OK\",\n  \"data\": {\n    \"channelId\": \"7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f\",\n    \"kind\": \"BookingCom\",\n    \"title\": \"Booking.com — The Lantern House\",\n    \"modifier\": [],\n    \"changed\": true,\n    \"notice\": \"Saving a modifier makes the channel manager send that channel every date again, so prices already on the channel move to the new rule within minutes.\"\n  }\n}"}]},{"name":"Send everything to one OTA again (full sync)","request":{"method":"POST","header":[{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/channels/{{channelId}}/full-sync","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","channels","{{channelId}}","full-sync"]},"description":"A full sync of one OTA. ZimmerStack sends that OTA everything it holds again: availability, rates and restrictions, for every date. Nothing new is sent, and your own numbers do not change. Use it when one OTA shows something different from what ZimmerStack holds. It is not the request Send the prices again: that one sends your prices to every OTA once more. An OTA takes one full sync in one hour. Sooner than that, the answer is 429 RATE_LIMITED, and it says when to try again. A full sync that the hotel's owner started in ZimmerStack counts too. With a test key the answer is 200 and says that nothing was sent: a sandbox has no real OTA. The saved example shows the answer for a live hotel: 202, and nextAt is when this OTA takes the next full sync. The OTA is read from channelId: send the first request of this folder first."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 202 (a full sync started) or 200 (none did: on a sandbox nothing is sent)\", () => pm.expect([200, 202]).to.include(pm.response.code));","const sync = pm.response.json().data;","pm.test(\"a sandbox says why nothing was sent\", () => { if (String(pm.variables.get(\"apiKey\") || \"\").startsWith(\"zsk_test_\")) pm.expect(sync.notice).to.be.a(\"string\"); });","pm.test(\"the status follows what started\", () => pm.expect(pm.response.code).to.eql(sync.started === true || sync.started > 0 ? 202 : 200));"]}}],"response":[{"name":"Example answer: 202 Accepted","originalRequest":{"method":"POST","header":[{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/channels/{{channelId}}/full-sync","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","channels","{{channelId}}","full-sync"]}},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 202,\n  \"message\": \"Accepted\",\n  \"data\": {\n    \"channelId\": \"7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f\",\n    \"started\": true,\n    \"nextAt\": \"2026-12-10T13:04:31.000Z\"\n  }\n}"}]},{"name":"Send everything to every OTA again (full sync)","request":{"method":"POST","header":[{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/full-sync","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","full-sync"]},"description":"A full sync of the whole hotel: the same as the request above, for every connected OTA, one after another. The answer has one line for each OTA. started true means the full sync started. started false comes with a code that says why not: RATE_LIMITED (that OTA had a full sync in the last hour, and retryAt says when to try again), CHANNEL_PAUSED (the hotel is not selling on that OTA now), CHANNEL_NOT_FOUND or CHANNEL_MANAGER_ERROR. One OTA that cannot start never stops the others. The answer is 202 when at least one started, and 200 when none did. With a test key the answer is 200 and says that nothing was sent: a sandbox has no real OTA. The saved example shows the answer for a live hotel."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 202 (a full sync started) or 200 (none did: on a sandbox nothing is sent)\", () => pm.expect([200, 202]).to.include(pm.response.code));","const sync = pm.response.json().data;","pm.test(\"a sandbox says why nothing was sent\", () => { if (String(pm.variables.get(\"apiKey\") || \"\").startsWith(\"zsk_test_\")) pm.expect(sync.notice).to.be.a(\"string\"); });","pm.test(\"the status follows what started\", () => pm.expect(pm.response.code).to.eql(sync.started === true || sync.started > 0 ? 202 : 200));","pm.test(\"one line for each channel\", () => pm.expect(pm.response.json().data.channels).to.be.an(\"array\"));"]}}],"response":[{"name":"Example answer: 202 Accepted","originalRequest":{"method":"POST","header":[{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/full-sync","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","full-sync"]}},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 202,\n  \"message\": \"Accepted\",\n  \"data\": {\n    \"channels\": [\n      {\n        \"channelId\": \"7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f\",\n        \"started\": true\n      },\n      {\n        \"channelId\": \"0a9b8c7d-6e5f-4a3b-2c1d-0e9f8a7b6c5d\",\n        \"started\": false,\n        \"code\": \"RATE_LIMITED\",\n        \"message\": \"This OTA connection had a full sync within the last hour. An OTA takes one full sync an hour for each connection, and one the hotel's owner started in ZimmerStack counts too. Nothing was sent. Retry after the Retry-After interval.\",\n        \"retryAt\": \"2026-12-10T12:44:10.000Z\"\n      }\n    ],\n    \"started\": 1\n  }\n}"}]}]},{"name":"11. More: limits, errors and testing before you send","description":"Things you need after the basics work: how fast you may send, what an error looks like, and how to test an update without saving it (dry run).","item":[{"name":"Get your limits (how many requests you may send)","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/limits","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","limits"]},"description":"Shows every limit of your key and this hotel, how much is left, and when it fills up again."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));","const l = pm.response.json().data;","pm.test(\"the key's own budget is listed with what is left\", () => { const k = l.budgets.find((b) => b.scope === \"requests\"); pm.expect(k.quota).to.be.above(0); pm.expect(k.remaining).to.be.at.most(k.quota); });","pm.test(\"the long budgets and the caps are there\", () => { pm.expect(l.shield.budgets.length).to.be.above(0); pm.expect(l.caps.length).to.be.above(0); });"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/limits","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","limits"]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"OK\",\n  \"data\": {\n    \"asOf\": \"2026-11-22T09:30:12.000Z\",\n    \"key\": {\n      \"kind\": \"hotel\",\n      \"mode\": \"live\",\n      \"propertyId\": 61\n    },\n    \"budgets\": [\n      {\n        \"scope\": \"requests\",\n        \"header\": \"key\",\n        \"per\": \"key\",\n        \"window\": \"60 s sliding\",\n        \"windowSeconds\": 60,\n        \"quota\": 120,\n        \"unit\": \"requests\",\n        \"used\": 3,\n        \"remaining\": 117,\n        \"resetSeconds\": 42,\n        \"counts\": \"every request on one key\"\n      },\n      {\n        \"scope\": \"writes\",\n        \"header\": \"key-writes\",\n        \"per\": \"key\",\n        \"window\": \"60 s sliding\",\n        \"windowSeconds\": 60,\n        \"quota\": 30,\n        \"unit\": \"writes\",\n        \"used\": 1,\n        \"remaining\": 29,\n        \"resetSeconds\": 42,\n        \"counts\": \"every request on one key that is not a GET (PUT, POST and DELETE); a dry run (dryRun: true) is a write here\"\n      },\n      {\n        \"scope\": \"cells\",\n        \"header\": \"cells\",\n        \"per\": \"property (all its keys)\",\n        \"window\": \"60 s sliding\",\n        \"windowSeconds\": 60,\n        \"quota\": 20000,\n        \"unit\": \"cells\",\n        \"used\": 730,\n        \"remaining\": 19270,\n        \"resetSeconds\": 42,\n        \"counts\": \"cells a property's writes name after range expansion, charged before anything is read or written. A dry run is charged the same cells as the write it previews; a close or a reopen (POST /availability/close) is charged the room type's count and each of its rate plans for every night\"\n      },\n      {\n        \"scope\": \"property-bookings-day\",\n        \"header\": null,\n        \"per\": \"property (all its keys)\",\n        \"window\": \"rolling 24 hours\",\n        \"windowSeconds\": 86400,\n        \"quota\": 500,\n        \"unit\": \"bookings\",\n        \"used\": 12,\n        \"remaining\": 488,\n        \"resetSeconds\": 61200,\n        \"counts\": \"POST /bookings per property per ROLLING 24 HOURS (not per minute); the owner can raise it per property\"\n      }\n    ],\n    \"shield\": {\n      \"standing\": {\n        \"level\": \"CLEAR\",\n        \"reason\": null,\n        \"until\": null\n      },\n      \"budgets\": [\n        {\n          \"scope\": \"cells-hour\",\n          \"header\": null,\n          \"per\": \"property (all its keys)\",\n          \"window\": \"one clock hour (UTC)\",\n          \"windowSeconds\": 3600,\n          \"quota\": 20440,\n          \"unit\": \"changed cells\",\n          \"used\": 43,\n          \"remaining\": 20397,\n          \"resetSeconds\": 1788,\n          \"counts\": \"changed cells, all of a property's keys together. At least this many; a larger property gets two of its own full calendars an hour. A dry run changes nothing and is never counted here\"\n        },\n        {\n          \"scope\": \"cells-day\",\n          \"header\": null,\n          \"per\": \"property (all its keys)\",\n          \"window\": \"rolling 24 hours\",\n          \"windowSeconds\": 86400,\n          \"quota\": 61320,\n          \"unit\": \"changed cells\",\n          \"used\": 1138,\n          \"remaining\": 60182,\n          \"resetSeconds\": 40188,\n          \"counts\": \"changed cells, all of a property's keys together. At least this many; a larger property gets six of its own full calendars a day. A dry run changes nothing and is never counted here\"\n        }\n      ]\n    },\n    \"caps\": [\n      {\n        \"scope\": \"maxUpdatesPerRequest\",\n        \"per\": \"request\",\n        \"quota\": 1000,\n        \"unit\": \"entries\",\n        \"counts\": \"entries in one updates array (400 TOO_MANY_UPDATES past it)\"\n      },\n      {\n        \"scope\": \"maxCellsPerRequest\",\n        \"per\": \"request\",\n        \"quota\": 5000,\n        \"unit\": \"cells\",\n        \"counts\": \"cells (entity × night) one request may name after range expansion (400 TOO_MANY_CELLS past it)\"\n      }\n    ],\n    \"note\": \"Reading this spends nothing: each window is looked at, never reserved. remaining null means the budget is not counted where this route can read it; its quota still holds. The RateLimit headers on every answer carry the budgets that answer was measured against.\"\n  }\n}"}]},{"name":"See the rate limit headers","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/property","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","property"]},"description":"Every answer has headers that say how many requests you have left in this minute. Look at the Headers tab of the answer."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));","pm.test(\"RateLimit headers present\", () => {","  pm.expect(pm.response.headers.has(\"RateLimit-Policy\")).to.be.true;","  pm.expect(pm.response.headers.has(\"RateLimit\")).to.be.true;","});"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/property","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","property"]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"OK\",\n  \"data\": {\n    \"id\": 61,\n    \"name\": \"The Lantern House\",\n    \"timezone\": \"Asia/Kolkata\",\n    \"currency\": \"INR\",\n    \"inventoryScope\": \"PMS_CM\",\n    \"sandbox\": false,\n    \"horizonDays\": 500,\n    \"ariAuthoritative\": true,\n    \"scopes\": [\n      \"bookings:read\",\n      \"bookings:write\"\n    ],\n    \"products\": {\n      \"channelManager\": true,\n      \"pms\": true\n    },\n    \"limits\": {\n      \"requestsPerMinute\": 120,\n      \"writesPerMinute\": 30,\n      \"maxUpdatesPerRequest\": 1000,\n      \"maxCellsPerRequest\": 5000,\n      \"bookingsPerMinute\": 20,\n      \"cellsPerHour\": 10000,\n      \"cellsPerDay\": 30000,\n      \"maxRoomTypes\": 18,\n      \"maxRatePlans\": 180,\n      \"ratePlansPerRoomType\": null,\n      \"newEntitiesPerMinute\": 20\n    },\n    \"usage\": {\n      \"cellsThisHour\": 43,\n      \"cellsLast24h\": 1138\n    },\n    \"shield\": {\n      \"level\": \"CLEAR\",\n      \"reason\": null,\n      \"until\": null\n    },\n    \"sync\": {\n      \"state\": \"IN_SYNC\",\n      \"pendingCells\": 0\n    }\n  }\n}"}]},{"name":"List your own recent requests","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/requests?status=errors&limit=20","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","requests"],"query":[{"key":"status","value":"errors","description":"one code (\"429\"), a family (\"4xx\") or \"errors\""},{"key":"limit","value":"20","description":"1–200"}]},"description":"Shows the requests your key sent in the last 7 days that ended in an error. Good for finding a bug."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/requests?status=errors&limit=20","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","requests"],"query":[{"key":"status","value":"errors","description":"one code (\"429\"), a family (\"4xx\") or \"errors\""},{"key":"limit","value":"20","description":"1–200"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"OK\",\n  \"data\": {\n    \"since\": \"2026-12-09T12:05:00.000Z\",\n    \"retentionDays\": 7,\n    \"items\": [\n      {\n        \"id\": \"5820417\",\n        \"at\": \"2026-12-10T12:04:31.118Z\",\n        \"method\": \"GET\",\n        \"route\": \"/sync\",\n        \"status\": 200,\n        \"errorCode\": null,\n        \"address\": \"203.0.113.24\",\n        \"durationMs\": 41,\n        \"requestId\": \"rq_mxhiep729f2c1a7e\",\n        \"propertyId\": 61,\n        \"keyId\": 14\n      },\n      {\n        \"id\": \"5820398\",\n        \"at\": \"2026-12-10T12:04:16.902Z\",\n        \"method\": \"PUT\",\n        \"route\": \"/rates\",\n        \"status\": 202,\n        \"errorCode\": null,\n        \"address\": \"203.0.113.24\",\n        \"durationMs\": 187,\n        \"requestId\": \"rq_mxhiee864be07d31\",\n        \"propertyId\": 61,\n        \"keyId\": 14\n      },\n      {\n        \"id\": \"5820371\",\n        \"at\": \"2026-12-10T12:03:58.440Z\",\n        \"method\": \"PUT\",\n        \"route\": \"/rates\",\n        \"status\": 429,\n        \"errorCode\": \"RATE_LIMITED\",\n        \"address\": \"203.0.113.24\",\n        \"durationMs\": 6,\n        \"requestId\": \"rq_mxhidzzcc81a5e06\",\n        \"propertyId\": 61,\n        \"keyId\": 14\n      }\n    ],\n    \"more\": false,\n    \"nextCursor\": null\n  }\n}"}]},{"name":"Send the same update twice safely (idempotency key)","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{idempotencyKey}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/rates","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","rates"]},"body":{"mode":"raw","raw":"{\n  \"updates\": [\n    {\n      \"ratePlanId\": {{ratePlanId}},\n      \"dateFrom\": \"{{dateFrom}}\",\n      \"dateTo\": \"{{dateTo}}\",\n      \"rate\": \"4500.00\",\n      \"currency\": \"{{currency}}\"\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"An idempotency key is a code you choose and send with an update. Send this request twice: the second time nothing is done again, and you get the first answer back."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 202\", () => pm.response.to.have.status(202));","pm.test(\"a batchId came back\", () => pm.expect(pm.response.json().data.batchId).to.be.a(\"string\"));"]}}],"response":[{"name":"Example answer: 202 Accepted","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{idempotencyKey}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/rates","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","rates"]},"body":{"mode":"raw","raw":"{\n  \"updates\": [\n    {\n      \"ratePlanId\": {{ratePlanId}},\n      \"dateFrom\": \"{{dateFrom}}\",\n      \"dateTo\": \"{{dateTo}}\",\n      \"rate\": \"4500.00\",\n      \"currency\": \"{{currency}}\"\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 202,\n  \"message\": \"Accepted\",\n  \"data\": {\n    \"batchId\": \"7f1d2c4e-5a6b-4c8d-9e0f-112233445566\",\n    \"resource\": \"rates\",\n    \"requestedCells\": 121,\n    \"acceptedCells\": 34,\n    \"noopCells\": 87,\n    \"rejected\": [],\n    \"pushedBy\": \"ari-projector\",\n    \"poll\": \"/api/v1/connect-api/v1/batches/7f1d2c4e-5a6b-4c8d-9e0f-112233445566\"\n  }\n}"}]},{"name":"See the error for a wrong key (401)","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/property","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","property"]},"auth":{"type":"bearer","bearer":[{"key":"token","value":"zsk_live_0000000000000000000000000000000000000000000","type":"string"}]},"description":"Sends a wrong key on purpose, so you can see the error your software must handle."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 401\", () => pm.response.to.have.status(401));","pm.test(\"data.code API_KEY_INVALID\", () => pm.expect(pm.response.json().data.code).to.eql(\"API_KEY_INVALID\"));"]}}],"response":[]},{"name":"See the error for a date too far ahead (400)","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/availability","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","availability"]},"body":{"mode":"raw","raw":"{\n  \"updates\": [\n    {\n      \"roomTypeId\": {{roomTypeId}},\n      \"dateFrom\": \"2099-01-01\",\n      \"dateTo\": \"2099-01-01\",\n      \"available\": 1\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"Sends a date many years ahead on purpose. The answer says how far ahead you may send."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 400\", () => pm.response.to.have.status(400));","pm.test(\"data.code HORIZON\", () => pm.expect(pm.response.json().data.code).to.eql(\"HORIZON\"));"]}}],"response":[]},{"name":"Test a restrictions update without saving it (dry run)","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/restrictions","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","restrictions"]},"body":{"mode":"raw","raw":"{\n  \"dryRun\": true,\n  \"updates\": [\n    {\n      \"ratePlanId\": {{ratePlanId}},\n      \"dateFrom\": \"{{dateFrom}}\",\n      \"dateTo\": \"{{dateTo}}\",\n      \"stopSell\": true\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"Checks the update fully and says what it would change. Nothing is saved and nothing is sent to an OTA."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));","const p = pm.response.json().data;","pm.test(\"a preview: nothing was written\", () => { pm.expect(p.dryRun).to.be.true; pm.expect([\"would-write\", \"nothing-to-write\", \"would-refuse\"]).to.include(p.verdict); });","pm.test(\"it says what it cost and what the real write would cost\", () => { pm.expect(p.spent.cells).to.be.a(\"number\"); pm.expect(p.wouldSpend.changedCells).to.be.a(\"number\"); });"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/restrictions","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","restrictions"]},"body":{"mode":"raw","raw":"{\n  \"dryRun\": true,\n  \"updates\": [\n    {\n      \"ratePlanId\": {{ratePlanId}},\n      \"dateFrom\": \"{{dateFrom}}\",\n      \"dateTo\": \"{{dateTo}}\",\n      \"stopSell\": true\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"Dry run: nothing was written\",\n  \"data\": {\n    \"dryRun\": true,\n    \"resource\": \"restrictions\",\n    \"verdict\": \"would-write\",\n    \"refusal\": null,\n    \"requestedCells\": 4,\n    \"wouldChangeCells\": 4,\n    \"unchangedCells\": 0,\n    \"heldCells\": 0,\n    \"wouldRejectCells\": 0,\n    \"lane\": false,\n    \"wouldChange\": [\n      {\n        \"ratePlanIds\": [\n          901\n        ],\n        \"dateFrom\": \"2026-12-24\",\n        \"dateTo\": \"2026-12-26\",\n        \"days\": null,\n        \"cells\": 3,\n        \"closedToArrival\": false,\n        \"minStayArrival\": 2\n      },\n      {\n        \"ratePlanIds\": [\n          901\n        ],\n        \"dateFrom\": \"2026-12-31\",\n        \"dateTo\": \"2026-12-31\",\n        \"days\": null,\n        \"cells\": 1,\n        \"stopSell\": true\n      }\n    ],\n    \"unchanged\": [],\n    \"held\": [],\n    \"wouldReject\": [],\n    \"notices\": [\n      {\n        \"code\": \"ROOM_STILL_ON_SALE\",\n        \"level\": \"warning\",\n        \"message\": \"You sent a stop-sell for rate plan 901: a switch on that plan, not on the room. Room type 412 is still on sale on 1 night through its other plan 904.\",\n        \"action\": \"To close the room on every plan and every channel, use POST /availability/close for room type 412, or send availability 0 for it (PUT /availability).\",\n        \"roomTypeId\": 412,\n        \"ratePlanIds\": [\n          901\n        ],\n        \"otherRatePlanIds\": [\n          904\n        ],\n        \"dateFrom\": \"2026-12-31\",\n        \"dateTo\": \"2026-12-31\",\n        \"nights\": 1\n      }\n    ],\n    \"spent\": {\n      \"cells\": 4\n    },\n    \"wouldSpend\": {\n      \"changedCells\": 4\n    },\n    \"note\": \"Nothing was written, queued or sent, and no idempotency key was stored. Send the same body without dryRun to do it. Our record can move between the two: the real answer is the truth.\"\n  }\n}"}]},{"name":"Test an availability update without saving it (dry run)","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/availability","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","availability"]},"body":{"mode":"raw","raw":"{\n  \"dryRun\": true,\n  \"updates\": [\n    {\n      \"roomTypeId\": {{roomTypeId}},\n      \"dateFrom\": \"{{dateFrom}}\",\n      \"dateTo\": \"{{dateTo}}\",\n      \"available\": 0\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"The same, for availability."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));","pm.test(\"a preview\", () => pm.expect(pm.response.json().data.dryRun).to.be.true);"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/availability","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","availability"]},"body":{"mode":"raw","raw":"{\n  \"dryRun\": true,\n  \"updates\": [\n    {\n      \"roomTypeId\": {{roomTypeId}},\n      \"dateFrom\": \"{{dateFrom}}\",\n      \"dateTo\": \"{{dateTo}}\",\n      \"available\": 0\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"Dry run: nothing was written\",\n  \"data\": {\n    \"dryRun\": true,\n    \"resource\": \"availability\",\n    \"verdict\": \"would-write\",\n    \"refusal\": null,\n    \"requestedCells\": 31,\n    \"wouldChangeCells\": 3,\n    \"unchangedCells\": 28,\n    \"heldCells\": 0,\n    \"wouldRejectCells\": 0,\n    \"lane\": false,\n    \"wouldChange\": [\n      {\n        \"roomTypeIds\": [\n          412\n        ],\n        \"dateFrom\": \"2026-12-24\",\n        \"dateTo\": \"2026-12-26\",\n        \"days\": null,\n        \"cells\": 3,\n        \"available\": 2\n      }\n    ],\n    \"unchanged\": [\n      {\n        \"roomTypeIds\": [\n          412\n        ],\n        \"dateFrom\": \"2026-12-01\",\n        \"dateTo\": \"2026-12-23\",\n        \"days\": null,\n        \"cells\": 23,\n        \"available\": 5\n      },\n      {\n        \"roomTypeIds\": [\n          412\n        ],\n        \"dateFrom\": \"2026-12-27\",\n        \"dateTo\": \"2026-12-31\",\n        \"days\": null,\n        \"cells\": 5,\n        \"available\": 5\n      }\n    ],\n    \"held\": [],\n    \"wouldReject\": [],\n    \"spent\": {\n      \"cells\": 31\n    },\n    \"wouldSpend\": {\n      \"changedCells\": 3\n    },\n    \"note\": \"Nothing was written, queued or sent, and no idempotency key was stored. Send the same body without dryRun to do it. Our record can move between the two: the real answer is the truth.\"\n  }\n}"}]},{"name":"Stop selling a room type everywhere (dry run)","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/availability/close","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","availability","close"]},"body":{"mode":"raw","raw":"{\n  \"roomTypeId\": {{roomTypeId}},\n  \"dateFrom\": \"{{dateFrom}}\",\n  \"dateTo\": \"{{dateTo}}\",\n  \"dryRun\": true\n}","options":{"raw":{"language":"json"}}},"description":"Shows what closing one room type on every OTA would do. Remove dryRun from the body to really do it."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));","const c = pm.response.json().data;","pm.test(\"the plan of the close, nothing written\", () => { pm.expect(c.action).to.eql(\"close\"); pm.expect(c.dryRun).to.be.true; pm.expect(c.ratePlans).to.be.an(\"array\"); pm.expect(c.batches).to.eql([]); });"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/availability/close","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","availability","close"]},"body":{"mode":"raw","raw":"{\n  \"roomTypeId\": {{roomTypeId}},\n  \"dateFrom\": \"{{dateFrom}}\",\n  \"dateTo\": \"{{dateTo}}\",\n  \"dryRun\": true\n}","options":{"raw":{"language":"json"}}}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"Dry run: nothing was written\",\n  \"data\": {\n    \"action\": \"close\",\n    \"dryRun\": true,\n    \"roomTypeId\": 412,\n    \"dateFrom\": \"2026-12-24\",\n    \"dateTo\": \"2026-12-26\",\n    \"nights\": 3,\n    \"count\": {\n      \"changedNights\": 3,\n      \"unchangedNights\": 0\n    },\n    \"ratePlans\": [\n      {\n        \"ratePlanId\": 901,\n        \"name\": \"Bed and breakfast\",\n        \"changedNights\": 3,\n        \"unchangedNights\": 0,\n        \"perOtaPlans\": 1\n      },\n      {\n        \"ratePlanId\": 904,\n        \"name\": \"Room only\",\n        \"changedNights\": 2,\n        \"unchangedNights\": 1,\n        \"perOtaPlans\": 0\n      }\n    ],\n    \"notReached\": [\n      {\n        \"what\": \"ota-linked-rates\",\n        \"reason\": \"not-ours\",\n        \"message\": \"A rate an OTA links on its own side is not a rate plan here and takes no stop-sell from us. It is closed by the count alone, and an OTA cancellation puts one room back on the count: if this hotel has such a rate (its channels: BookingCom, Goibibo), send availability 0 again after a cancellation on these nights.\"\n      }\n    ],\n    \"skippedNights\": 0,\n    \"batches\": []\n  }\n}"}]},{"name":"Start selling the room type again (dry run)","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/availability/reopen","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","availability","reopen"]},"body":{"mode":"raw","raw":"{\n  \"roomTypeId\": {{roomTypeId}},\n  \"dateFrom\": \"{{dateFrom}}\",\n  \"dateTo\": \"{{dateTo}}\",\n  \"dryRun\": true\n}","options":{"raw":{"language":"json"}}},"description":"Shows what reopening the room type would do. Remove dryRun from the body to really do it."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));","pm.test(\"the plan of the reopen\", () => pm.expect(pm.response.json().data.action).to.eql(\"reopen\"));"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/availability/reopen","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","availability","reopen"]},"body":{"mode":"raw","raw":"{\n  \"roomTypeId\": {{roomTypeId}},\n  \"dateFrom\": \"{{dateFrom}}\",\n  \"dateTo\": \"{{dateTo}}\",\n  \"dryRun\": true\n}","options":{"raw":{"language":"json"}}}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"Dry run: nothing was written\",\n  \"data\": {\n    \"action\": \"reopen\",\n    \"dryRun\": true,\n    \"roomTypeId\": 412,\n    \"dateFrom\": \"2026-12-24\",\n    \"dateTo\": \"2026-12-26\",\n    \"nights\": 3,\n    \"count\": {\n      \"changedNights\": 3,\n      \"unchangedNights\": 0\n    },\n    \"ratePlans\": [\n      {\n        \"ratePlanId\": 901,\n        \"name\": \"Bed and breakfast\",\n        \"changedNights\": 3,\n        \"unchangedNights\": 0,\n        \"perOtaPlans\": 1\n      },\n      {\n        \"ratePlanId\": 904,\n        \"name\": \"Room only\",\n        \"changedNights\": 2,\n        \"unchangedNights\": 1,\n        \"perOtaPlans\": 0\n      }\n    ],\n    \"notReached\": [],\n    \"skippedNights\": 0,\n    \"batches\": []\n  }\n}"}]},{"name":"Explain one night","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/explain?roomTypeId={{roomTypeId}}&ratePlanId={{ratePlanId}}&date={{dateFrom}}","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","explain"],"query":[{"key":"roomTypeId","value":"{{roomTypeId}}","description":"From 0 · Catalog"},{"key":"ratePlanId","value":"{{ratePlanId}}","description":"Optional: one plan of that room type in full; omit for every plan of the room"},{"key":"date","value":"{{dateFrom}}","description":"The night, YYYY-MM-DD in the property's calendar"}]},"description":"For one room type and one night: what you sent, what ZimmerStack holds, and what was last seen at the OTAs' side. Use it when a night does not sell as you expect."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"200, or 400 when the first plan is not a plan of the first room type\", () => pm.expect([200, 400]).to.include(pm.response.code));","if (pm.response.code === 200) pm.test(\"a summary in sentences\", () => pm.expect(pm.response.json().data.summary).to.be.an(\"array\"));"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/explain?roomTypeId={{roomTypeId}}&ratePlanId={{ratePlanId}}&date={{dateFrom}}","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","explain"],"query":[{"key":"roomTypeId","value":"{{roomTypeId}}","description":"From 0 · Catalog"},{"key":"ratePlanId","value":"{{ratePlanId}}","description":"Optional: one plan of that room type in full; omit for every plan of the room"},{"key":"date","value":"{{dateFrom}}","description":"The night, YYYY-MM-DD in the property's calendar"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"OK\",\n  \"data\": {\n    \"asOf\": \"2026-11-19T17:29:00.000Z\",\n    \"propertyId\": 61,\n    \"date\": \"2026-11-21\",\n    \"sandbox\": false,\n    \"sourceOfTruth\": true,\n    \"summary\": [\n      \"Your software last sent a count of 0 for this night at 2026-11-10 17:15 UTC (batch 3c2b1a09-8f7e-4d6c-b5a4-938271605f4e).\",\n      \"Our record holds 0, set by your software.\",\n      \"The channel manager was last seen holding 1, at 2026-11-11 08:16 UTC (it moved with a booking or cancellation). It passes that count to every connected OTA; we do not read the OTAs themselves.\",\n      \"Our record (0) and the channel manager (1) differ for this night. The next count your software sends is sent on, even if it equals ours.\",\n      \"1 booking(s) hold or held a room of this type on this night: 0 live, 1 cancelled.\",\n      \"Rate plan 901 (Bed and breakfast) is stop-sold on this night (your software, at 2026-11-10 17:16 UTC).\"\n    ],\n    \"roomType\": {\n      \"id\": 412,\n      \"name\": \"Deluxe Garden Room\",\n      \"linked\": true\n    },\n    \"count\": {\n      \"lastSent\": {\n        \"at\": \"2026-11-10T17:15:02.000Z\",\n        \"batchId\": \"3c2b1a09-8f7e-4d6c-b5a4-938271605f4e\",\n        \"keyId\": 14,\n        \"available\": 0\n      },\n      \"record\": {\n        \"available\": 0,\n        \"setBy\": \"software\",\n        \"setAt\": \"2026-11-10T17:15:02.000Z\",\n        \"movedSince\": false\n      },\n      \"channelManager\": {\n        \"available\": 1,\n        \"seenAt\": \"2026-11-11T08:16:40.000Z\",\n        \"how\": \"delta\"\n      },\n      \"inSync\": false,\n      \"queued\": false,\n      \"pushes\": [\n        {\n          \"at\": \"2026-11-11T08:16:40.000Z\",\n          \"cause\": \"CANCEL\",\n          \"by\": \"channel\",\n          \"bookingId\": 145450,\n          \"value\": null,\n          \"outcome\": \"not-needed\",\n          \"words\": null\n        },\n        {\n          \"at\": \"2026-11-10T17:15:41.000Z\",\n          \"cause\": \"OVERRIDE_SET\",\n          \"by\": \"software-or-person\",\n          \"bookingId\": null,\n          \"value\": null,\n          \"outcome\": \"sent\",\n          \"words\": null\n        }\n      ],\n      \"closed\": null\n    },\n    \"bookings\": [\n      {\n        \"bookingId\": 145450,\n        \"channel\": \"Agoda\",\n        \"status\": \"CANCELLED\",\n        \"bookedAt\": \"2026-11-10T17:04:11.000Z\",\n        \"cancelledAt\": \"2026-11-11T08:16:38.000Z\",\n        \"moves\": [\n          {\n            \"at\": \"2026-11-10T17:04:12.000Z\",\n            \"cause\": \"BOOKING\",\n            \"outcome\": \"not-needed\"\n          },\n          {\n            \"at\": \"2026-11-11T08:16:40.000Z\",\n            \"cause\": \"CANCEL\",\n            \"outcome\": \"not-needed\"\n          }\n        ]\n      }\n    ],\n    \"plans\": [\n      {\n        \"ratePlanId\": 901,\n        \"name\": \"Bed and breakfast\",\n        \"linked\": true,\n        \"price\": {\n          \"lastSent\": {\n            \"at\": \"2026-11-02T06:00:10.000Z\",\n            \"batchId\": \"7f1d2c4e-5a6b-4c8d-9e0f-112233445566\",\n            \"keyId\": 14,\n            \"rate\": \"4500.00\",\n            \"rateMinor\": 450000\n          },\n          \"record\": {\n            \"rate\": \"4500.00\",\n            \"rateMinor\": 450000,\n            \"source\": \"MANUAL\",\n            \"setBy\": \"software\"\n          },\n          \"channelManager\": {\n            \"rate\": \"4500.00\",\n            \"rateMinor\": 450000,\n            \"seenAt\": \"2026-11-19T01:12:03.000Z\"\n          },\n          \"inSync\": true\n        },\n        \"stayRules\": {\n          \"lastSent\": {\n            \"at\": \"2026-11-10T17:16:20.000Z\",\n            \"batchId\": \"9e8d7c6b-5a49-4382-a716-0f1e2d3c4b5a\",\n            \"keyId\": 14,\n            \"values\": {\n              \"stopSell\": true\n            }\n          },\n          \"record\": {\n            \"stopSell\": true,\n            \"closedToArrival\": null,\n            \"closedToDeparture\": null,\n            \"minStayArrival\": null,\n            \"minStayThrough\": null,\n            \"maxStay\": null,\n            \"stopSellSetBy\": \"software\"\n          },\n          \"channelManager\": {\n            \"stopSell\": true,\n            \"closedToArrival\": false,\n            \"closedToDeparture\": false,\n            \"minStayArrival\": 1,\n            \"minStayThrough\": 1,\n            \"maxStay\": 0,\n            \"seenAt\": \"2026-11-19T01:12:03.000Z\"\n          },\n          \"inSync\": true\n        },\n        \"send\": {\n          \"lastLandedAt\": \"2026-11-10T17:17:05.000Z\",\n          \"queuedSince\": null,\n          \"held\": null,\n          \"driftResends\": null\n        },\n        \"family\": {\n          \"parent\": null,\n          \"perOtaPlans\": [\n            {\n              \"ratePlanId\": null,\n              \"name\": null,\n              \"channelId\": \"7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f\",\n              \"channelKind\": \"Agoda\",\n              \"mode\": \"follows-price\"\n            }\n          ]\n        },\n        \"channels\": [\n          {\n            \"channelId\": \"2a9f4c1e-7b3d-4e8a-9c5f-0d1e2f3a4b5c\",\n            \"kind\": \"BookingCom\",\n            \"title\": \"Booking.com\",\n            \"active\": true,\n            \"mapped\": true,\n            \"through\": \"itself\",\n            \"starOnPlanIds\": [],\n            \"readonlyRows\": 0\n          },\n          {\n            \"channelId\": \"7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f\",\n            \"kind\": \"Agoda\",\n            \"title\": \"Agoda\",\n            \"active\": true,\n            \"mapped\": true,\n            \"through\": \"per-ota-plan\",\n            \"starOnPlanIds\": [],\n            \"readonlyRows\": 0\n          },\n          {\n            \"channelId\": \"c4e8b2a6-1d3f-4a5b-8c7d-9e0f1a2b3c4d\",\n            \"kind\": \"Goibibo\",\n            \"title\": \"MakeMyTrip\",\n            \"active\": true,\n            \"mapped\": false,\n            \"through\": null,\n            \"starOnPlanIds\": [],\n            \"readonlyRows\": 0\n          }\n        ],\n        \"reach\": \"mapped\"\n      }\n    ],\n    \"channels\": {\n      \"known\": true,\n      \"seenAt\": \"2026-11-19T01:10:00.000Z\",\n      \"live\": [\n        {\n          \"channelId\": \"2a9f4c1e-7b3d-4e8a-9c5f-0d1e2f3a4b5c\",\n          \"kind\": \"BookingCom\",\n          \"title\": \"Booking.com\"\n        },\n        {\n          \"channelId\": \"7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f\",\n          \"kind\": \"Agoda\",\n          \"title\": \"Agoda\"\n        },\n        {\n          \"channelId\": \"c4e8b2a6-1d3f-4a5b-8c7d-9e0f1a2b3c4d\",\n          \"kind\": \"Goibibo\",\n          \"title\": \"MakeMyTrip\"\n        }\n      ]\n    },\n    \"policies\": [\n      {\n        \"code\": \"FOLLOWS_OTA_MOVES\",\n        \"message\": \"A count your software sent moves with the OTAs: a booking takes one off, a cancellation puts one back, as the channel manager does by itself. Your software's next count still has the final word.\"\n      }\n    ],\n    \"searched\": {\n      \"batches\": 50,\n      \"oldestBatchAt\": \"2026-10-28T06:00:09.000Z\",\n      \"inventoryEvents\": 30\n    }\n  }\n}"}]},{"name":"Sandbox: make the next update fail on purpose","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/sandbox/faults","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","sandbox","faults"]},"body":{"mode":"raw","raw":"{\n  \"kind\": \"refuse\",\n  \"values\": 1,\n  \"message\": \"Rate is below the channel's minimum\"\n}","options":{"raw":{"language":"json"}}},"description":"Works with a test key. The sandbox refuses your next update, so you can test how your software handles a failure."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"200 on a test key, 403 SANDBOX_ONLY on a live one\", () => pm.expect([200, 403]).to.include(pm.response.code));"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/sandbox/faults","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","sandbox","faults"]},"body":{"mode":"raw","raw":"{\n  \"kind\": \"refuse\",\n  \"values\": 1,\n  \"message\": \"Rate is below the channel's minimum\"\n}","options":{"raw":{"language":"json"}}}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"The pretend channel is set: see watch for what to do next.\",\n  \"data\": {\n    \"active\": true,\n    \"kind\": \"refuse\",\n    \"remaining\": 1,\n    \"until\": null,\n    \"message\": \"Rate is below the channel's minimum\",\n    \"setAt\": \"2026-11-23T09:30:12.000Z\",\n    \"watch\": [\n      \"Send a price or a stay rule (PUT /rates or PUT /restrictions) and keep its batchId.\",\n      \"Within a minute GET /batches/{batchId} reads failed, with parkedCells and the pretend channel's words in lastError; GET /sync counts the same nights under rates.parkedCells.\",\n      \"Your webhook receives channel.sync.alert with event value_refused (once for this fault).\",\n      \"Send the same value again: it is answered in rejected as held, with the notice VALUE_HELD, and is not sent again.\",\n      \"Send a different value for those nights: it lands, and the nights are no longer held.\"\n    ]\n  }\n}"}]},{"name":"Sandbox: see the failure you set","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/sandbox/faults","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","sandbox","faults"]},"description":"Shows the failure that is set now, if any."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"200 on a test key, 403 SANDBOX_ONLY on a live one\", () => pm.expect([200, 403]).to.include(pm.response.code));"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/sandbox/faults","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","sandbox","faults"]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"OK\",\n  \"data\": {\n    \"active\": true,\n    \"kind\": \"refuse\",\n    \"remaining\": 1,\n    \"until\": null,\n    \"message\": \"Rate is below the channel's minimum\",\n    \"setAt\": \"2026-11-23T09:30:12.000Z\",\n    \"watch\": [\n      \"Send a price or a stay rule (PUT /rates or PUT /restrictions) and keep its batchId.\",\n      \"Within a minute GET /batches/{batchId} reads failed, with parkedCells and the pretend channel's words in lastError; GET /sync counts the same nights under rates.parkedCells.\",\n      \"Your webhook receives channel.sync.alert with event value_refused (once for this fault).\",\n      \"Send the same value again: it is answered in rejected as held, with the notice VALUE_HELD, and is not sent again.\",\n      \"Send a different value for those nights: it lands, and the nights are no longer held.\"\n    ]\n  }\n}"}]},{"name":"Sandbox: go back to normal","request":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/sandbox/faults","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","sandbox","faults"]},"description":"Removes the failure. The sandbox accepts updates again."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"200 on a test key, 403 SANDBOX_ONLY on a live one\", () => pm.expect([200, 403]).to.include(pm.response.code));"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/sandbox/faults","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","sandbox","faults"]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"The pretend channel answers normally again.\",\n  \"data\": {\n    \"active\": false,\n    \"kind\": null,\n    \"remaining\": null,\n    \"until\": null,\n    \"message\": null,\n    \"setAt\": null,\n    \"watch\": [\n      \"No fault is set: everything you send lands in our record within a minute.\"\n    ]\n  }\n}"}]},{"name":"Get the full API description (OpenAPI)","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/public/connect-api/contract","host":["{{baseUrl}}"],"path":["api","v1","public","connect-api","contract"]},"auth":{"type":"noauth"},"description":"The complete list of every address, field and error code, in a format tools can read. It needs no key."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));","pm.test(\"OpenAPI 3.1\", () => pm.expect(pm.response.json().openapi).to.eql(\"3.1.0\"));"]}}],"response":[]},{"name":"Check if ZimmerStack has a problem (status)","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/status","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","status"]},"description":"Shows each part of ZimmerStack and any open problem that touches your hotel."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));","pm.test(\"the components are listed\", () => pm.expect(pm.response.json().data.components.length).to.be.above(2));"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/status","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","status"]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"OK\",\n  \"data\": {\n    \"asOf\": \"2026-11-22T04:05:00.000Z\",\n    \"overall\": \"degraded\",\n    \"components\": [\n      {\n        \"id\": \"api\",\n        \"name\": \"The API\",\n        \"kind\": \"platform\",\n        \"covers\": \"Requests to the Connect API are answered.\",\n        \"state\": \"operational\",\n        \"incidentIds\": []\n      },\n      {\n        \"id\": \"bookings_in\",\n        \"name\": \"Bookings coming in\",\n        \"kind\": \"platform\",\n        \"covers\": \"Bookings made on the booking sites reach ZimmerStack and are sent on to you.\",\n        \"state\": \"operational\",\n        \"incidentIds\": []\n      },\n      {\n        \"id\": \"ari_out\",\n        \"name\": \"Prices and availability going out\",\n        \"kind\": \"platform\",\n        \"covers\": \"The prices, stay rules and room counts you send reach the booking sites.\",\n        \"state\": \"degraded\",\n        \"incidentIds\": [\n          37\n        ]\n      },\n      {\n        \"id\": \"ota:bookingcom\",\n        \"name\": \"Booking.com\",\n        \"kind\": \"booking_site\",\n        \"covers\": \"Booking.com: bookings from it, and prices and availability to it.\",\n        \"state\": \"operational\",\n        \"incidentIds\": []\n      },\n      {\n        \"id\": \"ota:gommt\",\n        \"name\": \"MakeMyTrip · Goibibo\",\n        \"kind\": \"booking_site\",\n        \"covers\": \"MakeMyTrip · Goibibo: bookings from it, and prices and availability to it.\",\n        \"state\": \"operational\",\n        \"incidentIds\": []\n      },\n      {\n        \"id\": \"ota:agoda\",\n        \"name\": \"Agoda\",\n        \"kind\": \"booking_site\",\n        \"covers\": \"Agoda: bookings from it, and prices and availability to it.\",\n        \"state\": \"operational\",\n        \"incidentIds\": []\n      },\n      {\n        \"id\": \"ota:expedia\",\n        \"name\": \"Expedia\",\n        \"kind\": \"booking_site\",\n        \"covers\": \"Expedia: bookings from it, and prices and availability to it.\",\n        \"state\": \"operational\",\n        \"incidentIds\": []\n      },\n      {\n        \"id\": \"ota:tripcom\",\n        \"name\": \"Trip.com\",\n        \"kind\": \"booking_site\",\n        \"covers\": \"Trip.com: bookings from it, and prices and availability to it.\",\n        \"state\": \"operational\",\n        \"incidentIds\": []\n      },\n      {\n        \"id\": \"ota:yatra\",\n        \"name\": \"Yatra\",\n        \"kind\": \"booking_site\",\n        \"covers\": \"Yatra: bookings from it, and prices and availability to it.\",\n        \"state\": \"operational\",\n        \"incidentIds\": []\n      },\n      {\n        \"id\": \"ota:hostelworld\",\n        \"name\": \"Hostelworld\",\n        \"kind\": \"booking_site\",\n        \"covers\": \"Hostelworld: bookings from it, and prices and availability to it.\",\n        \"state\": \"operational\",\n        \"incidentIds\": []\n      },\n      {\n        \"id\": \"ota:airbnb\",\n        \"name\": \"Airbnb\",\n        \"kind\": \"booking_site\",\n        \"covers\": \"Airbnb: bookings from it, and prices and availability to it.\",\n        \"state\": \"operational\",\n        \"incidentIds\": []\n      }\n    ],\n    \"incidents\": {\n      \"open\": [\n        {\n          \"id\": 37,\n          \"component\": \"ari_out\",\n          \"componentName\": \"Prices and availability going out\",\n          \"severity\": \"degraded\",\n          \"status\": \"identified\",\n          \"title\": \"Prices and availability are reaching the booking sites late\",\n          \"startedAt\": \"2026-11-22T03:40:00.000Z\",\n          \"updatedAt\": \"2026-11-22T04:02:00.000Z\",\n          \"resolvedAt\": null,\n          \"properties\": {\n            \"all\": false,\n            \"count\": 2,\n            \"ids\": [\n              61,\n              62\n            ],\n            \"truncated\": false\n          },\n          \"updates\": [\n            {\n              \"at\": \"2026-11-22T04:02:00.000Z\",\n              \"status\": \"identified\",\n              \"severity\": \"degraded\",\n              \"message\": \"We found the cause and are working through the queue. Changes you send are kept and go out in order; do not send them again.\"\n            },\n            {\n              \"at\": \"2026-11-22T03:40:00.000Z\",\n              \"status\": \"investigating\",\n              \"severity\": \"degraded\",\n              \"message\": \"Changes you send are accepted and kept, but are reaching the booking sites up to 20 minutes late. We are looking into it.\"\n            }\n          ]\n        }\n      ],\n      \"recent\": []\n    },\n    \"uptimeTarget\": {\n      \"percent\": 99.9,\n      \"window\": \"calendar month\",\n      \"credits\": false,\n      \"what\": \"The Connect API answers requests 99.9% of each calendar month. This is a target we publish and report against; it carries no service credits.\"\n    },\n    \"page\": null\n  }\n}"}]}]}]}