{"info":{"name":"ZimmerStack API - Partner (many hotels)","description":"For a software company that connects many hotels to 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 three requests, from top to bottom.\n3. Send folder 2, folder 3 and folder 4, in this order. They build a hotel of your own: the hotel, its room types and its rate plans. With a test key it is made in your sandbox.\n4. Open folder 5 and send Update availability.\n\nThe folders after these work on your new hotel. You may also skip the three folders that build it: the file then works on your first hotel.\n\nUse a test key first. It starts with zsk_test_. A test key works only on your sandbox (your test hotels), so nothing here can change a real hotel.\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. Property = one hotel. Sandbox = the place for your test hotels. Room type = one kind of room. Rate plan = one way to sell a room type, with its own price.","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));","// A company key names the hotel on every request; a hotel key needs no header.","// With no hotel chosen yet, read the list of hotels once and keep the first (as the request that lists them does); a hotel key is remembered as keyKind property and nothing is sent.","const zsPath = pm.request.url.getPath().replace(/^.*\\/connect-api\\/v\\d+/, \"\").replace(/\\/+$/, \"\").toLowerCase();","const zsNoHotel = /^(\\/properties)$/.test(zsPath) || /^(\\/webhook-endpoints|\\/billing|\\/support-tickets)(\\/|$)/.test(zsPath) || /^\\/properties\\/[^/]+$/.test(zsPath);","const zsNameHotel = () => {","  const id = pm.variables.get(\"propertyId\");","  if (id) pm.request.headers.upsert({ key: \"X-ZS-Property\", value: String(id) });","};","const zsOwn = pm.request.auth;","const zsToken = !zsOwn ? pm.variables.get(\"apiKey\") : zsOwn.type === \"bearer\" ? pm.variables.replaceIn(String(zsOwn.parameters().get(\"token\") || \"\")) : \"\";","// Only the collection's own key is asked: a request that brings another key (folder 4's wrong key) or none is left alone.","if (!zsNoHotel && !pm.variables.get(\"propertyId\") && pm.collectionVariables.get(\"keyKind\") !== \"property\" && zsToken && zsToken === pm.variables.get(\"apiKey\")) {","  pm.sendRequest(","    { url: pm.variables.replaceIn(\"{{baseUrl}}/api/v1/connect-api/v1/properties\"), method: \"GET\", header: { Authorization: \"Bearer \" + zsToken } },","    (err, res) => {","      try {","        const d = !err && res.code === 200 ? res.json().data : null;","        if (d && d.keyKind === \"company\" && d.properties && d.properties[0]) {","          pm.collectionVariables.set(\"propertyId\", String(d.properties[0].id));","          pm.collectionVariables.set(\"keyKind\", \"company\");","        } else if (d && d.keyKind === \"property\") {","          pm.collectionVariables.set(\"keyKind\", \"property\");","        }","      } catch (e) { /* nothing learned: the request goes on as it was */ }","      if (!zsNoHotel) zsNameHotel();","    }","  );","} else if (!zsNoHotel) {","  zsNameHotel();","}"]}}],"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":"propertyId","value":"","type":"string","description":"For a company key only: the id of the hotel your requests are for. Postman fills it with your first hotel by itself, and the request List your hotels shows all of them. The request Create a hotel puts your new hotel here. Type another id here to work on another hotel. A sandbox's own key leaves it empty."},{"key":"keyKind","value":"","type":"string","description":"Filled by a request in this file. You do not need to type it."},{"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 the first request of the Sandbox folder, A guest books on an OTA."},{"key":"channelId","value":"","type":"string","description":"Filled by a request in this file. You do not need to type it."},{"key":"linkId","value":"","type":"string","description":"Filled by a request in this file. You do not need to type it."},{"key":"mappingLines","value":"[]","type":"string","description":"Filled by a request in this file. You do not need to type it."},{"key":"keyId","value":"","type":"string","description":"Filled by a request in this file. You do not need to type it."},{"key":"addedPropertyId","value":"","type":"string","description":"The id of the hotel that the request Create a hotel made. The requests Change a hotel and Remove a hotel use it, and Remove a hotel empties it."},{"key":"addedPropertyName","value":"","type":"string","description":"The exact name of that hotel. Filled by the request Create a hotel. The request Change a hotel saves the name again, in case you changed it."},{"key":"testRoomTypeId","value":"","type":"string","description":"The id of the room type that the request Create a room type to delete 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 request Create a rate plan to delete 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."},{"key":"endpointId","value":"","type":"string","description":"The id of your webhook endpoint. Filled by the request Add your server's address. Or type the id of an endpoint you already have."},{"key":"addedEndpointId","value":"","type":"string","description":"The id of the webhook endpoint that the request Add your server's address made. Only the request Delete a webhook endpoint uses it, and empties it. It is never an endpoint you typed into endpointId."},{"key":"deliveryId","value":"","type":"string","description":"The id of one message that was sent to your server. Filled by the request List the messages that were sent."},{"key":"ticketId","value":"","type":"string","description":"The id of your support ticket. Filled by the request Write to support."}],"item":[{"name":"1. Start here: check your key","description":"Send these three 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":"List your hotels (properties)","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/properties","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","properties"]},"description":"Shows every hotel your key can work for. With a test key these are your test hotels. A new partner has one: the example test hotel from sign-up. Postman saves the first hotel's id as propertyId and sends it with every other request."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));","const d = pm.response.json().data;","pm.test(\"at least one property\", () => pm.expect(d.properties.length).to.be.above(0));","if (d.keyKind === \"company\") { pm.collectionVariables.set(\"keyKind\", \"company\"); if (!pm.variables.get(\"propertyId\") && d.properties[0]) pm.collectionVariables.set(\"propertyId\", String(d.properties[0].id)); }","else if (pm.response.code === 200) { pm.collectionVariables.set(\"keyKind\", \"property\"); if (pm.collectionVariables.get(\"propertyId\")) pm.collectionVariables.set(\"propertyId\", \"\"); }"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/properties","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","properties"]}},"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    \"keyKind\": \"company\",\n    \"properties\": [\n      {\n        \"id\": 61,\n        \"name\": \"The Lantern House\",\n        \"timezone\": \"Asia/Kolkata\",\n        \"currency\": \"INR\",\n        \"channelManager\": true,\n        \"sandbox\": false\n      },\n      {\n        \"id\": 62,\n        \"name\": \"Hill View Retreat\",\n        \"timezone\": \"Asia/Kolkata\",\n        \"currency\": \"INR\",\n        \"channelManager\": true,\n        \"sandbox\": false\n      }\n    ]\n  }\n}"}]},{"name":"Check one hotel (property)","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's name, currency and time zone. It also shows the scopes of your key: what the key is allowed to do."},"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. Create a hotel","description":"Create a hotel of your own: The Lantern House, with one room type. With a test key it is made in your sandbox: nothing is billed, and no OTA sees it. With a live key the same request creates a real hotel. From now on, every request in this file works on the new hotel. This folder also changes the hotel one time: it gets a new first line of its address. Your key must be allowed to add hotels (the scope properties:write). In the partner portal that is the box Also add and remove hotels.","item":[{"name":"Create a hotel","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/properties","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","properties"]},"body":{"mode":"raw","raw":"{\n  \"name\": \"The Lantern House\",\n  \"owner\": {\n    \"name\": \"Asha Rao\",\n    \"email\": \"asha@lanternhouse.example\",\n    \"phone\": \"+91 98765 43210\"\n  },\n  \"address\": {\n    \"line1\": \"14 Hill Road\",\n    \"city\": \"Shimla\",\n    \"country\": \"IN\"\n  },\n  \"roomTypes\": [\n    {\n      \"ref\": \"rt-deluxe\",\n      \"name\": \"Deluxe Room\",\n      \"roomCount\": 10,\n      \"defaultRate\": 4500\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"Creates one hotel with one room type, Deluxe Room. Postman saves the new hotel's id as propertyId, so the next requests work on it. Send it one time: each send creates one more hotel. In this file it is sent with a test key only, so no real hotel is added by mistake. The same request with a live key adds a real hotel, and a real hotel is billed."},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["if (!String(pm.variables.get(\"apiKey\") || \"\").startsWith(\"zsk_test_\")) {","  const zsWhy = \"Not sent. This request works with a test key only: your key must start with zsk_test_. With a live key it would add a real hotel, and a real hotel is billed. To add a real hotel, read https://docs.zimmerstack.com/partner/first-hotel\";","  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":["const body = pm.response.json();","pm.test(\"201 with the new hotel: a test hotel, never billed\", () => { pm.response.to.have.status(201); pm.expect(body.data.id).to.be.a(\"number\"); pm.expect(body.data.sandbox).to.be.true; pm.expect(body.data.billing.state).to.eql(\"NOT_BILLED\"); });","if (body && body.data && body.data.id) {","  pm.collectionVariables.set(\"addedPropertyId\", String(body.data.id)); pm.collectionVariables.set(\"addedPropertyName\", body.data.name);","  // From here on every request works on the new hotel.","  pm.collectionVariables.set(\"propertyId\", String(body.data.id)); pm.collectionVariables.set(\"keyKind\", \"company\");","}"]}}],"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/properties","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","properties"]},"body":{"mode":"raw","raw":"{\n  \"name\": \"The Lantern House\",\n  \"owner\": {\n    \"name\": \"Asha Rao\",\n    \"email\": \"asha@lanternhouse.example\",\n    \"phone\": \"+91 98765 43210\"\n  },\n  \"address\": {\n    \"line1\": \"14 Hill Road\",\n    \"city\": \"Shimla\",\n    \"country\": \"IN\"\n  },\n  \"roomTypes\": [\n    {\n      \"ref\": \"rt-deluxe\",\n      \"name\": \"Deluxe Room\",\n      \"roomCount\": 10,\n      \"defaultRate\": 4500\n    }\n  ]\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\": \"Created\",\n  \"data\": {\n    \"id\": 9001,\n    \"name\": \"The Lantern House (sandbox)\",\n    \"timezone\": \"Asia/Kolkata\",\n    \"currency\": \"INR\",\n    \"channelManager\": true,\n    \"sandbox\": true,\n    \"billing\": {\n      \"state\": \"NOT_BILLED\",\n      \"reason\": null,\n      \"message\": \"A sandbox is never billed.\"\n    },\n    \"replay\": false\n  }\n}"}]},{"name":"List your hotels again","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/properties","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","properties"]},"description":"Shows that the new hotel is now in your list. A hotel made with a test key has (sandbox) at the end of its name."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));","pm.test(\"the new property is listed\", () => pm.expect(pm.response.json().data.properties.some((p) => String(p.id) === pm.collectionVariables.get(\"addedPropertyId\"))).to.be.true);"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/properties","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","properties"]}},"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    \"keyKind\": \"company\",\n    \"properties\": [\n      {\n        \"id\": 9000,\n        \"name\": \"Your Company Sandbox\",\n        \"timezone\": \"Asia/Kolkata\",\n        \"currency\": \"INR\",\n        \"channelManager\": true,\n        \"sandbox\": true\n      },\n      {\n        \"id\": 9001,\n        \"name\": \"The Lantern House (sandbox)\",\n        \"timezone\": \"Asia/Kolkata\",\n        \"currency\": \"INR\",\n        \"channelManager\": true,\n        \"sandbox\": true\n      }\n    ]\n  }\n}"}]},{"name":"Check the new hotel (property)","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 new hotel's name, currency and time zone. Postman saves the currency for the requests that send rates."},"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":"Change a hotel","request":{"method":"PATCH","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/properties/{{addedPropertyId}}","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","properties","{{addedPropertyId}}"]},"body":{"mode":"raw","raw":"{\n  \"address\": {\n    \"line1\": \"16 Hill Road\"\n  }\n}","options":{"raw":{"language":"json"}}},"description":"Changes the hotel you just created: it gets a new first line of its address. Only the fields you send change, so its name stays. You can change the name, and four parts of the address: line1, city, state and postalCode. This request never changes a hotel's country, currency, time zone or owner. It changes the hotel in ZimmerStack only, never the name of a listing on an OTA. The answer shows the hotel, its whole address, and the list changed with the fields that are new. A hotel made with a test key starts with the word Sandbox as its address and its city, so the example shows Sandbox as the city. In this file it is sent with a test key only, because the change is kept. The same request works with a live key, for a real hotel you added."},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["if (!String(pm.variables.get(\"apiKey\") || \"\").startsWith(\"zsk_test_\")) {","  const zsWhy = \"Not sent. This request works with a test key only: your key must start with zsk_test_. With a live key it would change the address of a real hotel, and keep the change.\";","  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);","}","if (!pm.collectionVariables.get(\"addedPropertyId\")) {","  const zsWhy = \"Send Create a hotel first: this request changes only the hotel it 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":["const body = pm.response.json();","pm.test(\"200 with the hotel, its address and what changed\", () => { pm.response.to.have.status(200); pm.expect(body.data.address).to.be.an(\"object\"); pm.expect(body.data.changed).to.be.an(\"array\"); });","// The remove request sends the hotel's exact name: keep the name this answer gives, so a changed name is the one sent.","if (pm.response.code === 200 && body.data && body.data.name) pm.collectionVariables.set(\"addedPropertyName\", body.data.name);"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"PATCH","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/properties/{{addedPropertyId}}","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","properties","{{addedPropertyId}}"]},"body":{"mode":"raw","raw":"{\n  \"address\": {\n    \"line1\": \"16 Hill Road\"\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    \"id\": 9001,\n    \"name\": \"The Lantern House (sandbox)\",\n    \"timezone\": \"Asia/Kolkata\",\n    \"currency\": \"INR\",\n    \"channelManager\": true,\n    \"sandbox\": true,\n    \"address\": {\n      \"line1\": \"16 Hill Road\",\n      \"city\": \"Sandbox\",\n      \"state\": null,\n      \"postalCode\": null,\n      \"country\": \"IN\"\n    },\n    \"changed\": [\n      \"address.line1\"\n    ]\n  }\n}"}]},{"name":"Get the new hotel's 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 what the hotel was born with: one room type, and one rate plan for it (room only). Postman saves their ids as roomTypeId and ratePlanId."},"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":"3. Create and change room types","description":"A room type is one kind of room the hotel sells, like Deluxe Room. Your hotel has one. Here you create a second one with your own id (ref), and then you change it. Creating and changing are the same request. Nothing is deleted here: folder 17 deletes. Your key needs the scope catalog:write.","item":[{"name":"Create a room type","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\": \"rt-suite\",\n      \"name\": \"Suite\",\n      \"roomCount\": 2,\n      \"adults\": 3\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. This body creates one room type, Suite, with the ref rt-suite. In this file it is sent with a test key only, because what it creates is kept. The same request works for a real hotel."},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["if (!String(pm.variables.get(\"apiKey\") || \"\").startsWith(\"zsk_test_\")) {","  const zsWhy = \"Not sent. This request works with a test key only: your key must start with zsk_test_. With a live key it would add this example's room type to a real hotel, and keep it there.\";","  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));","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); });"]}}],"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\": \"rt-suite\",\n      \"name\": \"Suite\",\n      \"roomCount\": 2,\n      \"adults\": 3\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\": \"rt-suite\",\n        \"id\": 413,\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 the room types (the new one is listed)","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/catalog","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","catalog"]},"description":"Shows both room types, each with your ref and our id. Postman saves the first room type's id as roomTypeId."},"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 new room type is listed with your ref\", () => pm.expect(c.roomTypes.some((r) => r.ref === \"rt-suite\")).to.be.true);","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":"Change a room type","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\": \"rt-suite\",\n      \"name\": \"Suite\",\n      \"roomCount\": 3,\n      \"adults\": 3\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"The same request, sent again with the same ref rt-suite and a new number of rooms: 3 in place of 2. The room type is changed. No second one is made. The answer says updated."},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["if (!String(pm.variables.get(\"apiKey\") || \"\").startsWith(\"zsk_test_\")) {","  const zsWhy = \"Not sent. This request works with a test key only: your key must start with zsk_test_. With a live key it would change a room type of a real hotel, and keep the change.\";","  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));","const out = pm.response.json().data;","pm.test(\"one item, changed and not made twice\", () => { pm.expect(out.items).to.have.length(1); pm.expect([\"updated\", \"unchanged\", \"adopted\"]).to.include(out.items[0].action); });"]}}],"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\": \"rt-suite\",\n      \"name\": \"Suite\",\n      \"roomCount\": 3,\n      \"adults\": 3\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\": \"rt-suite\",\n        \"id\": 413,\n        \"action\": \"updated\",\n        \"sync\": \"IN_SYNC\",\n        \"notice\": null\n      }\n    ],\n    \"channelManager\": {\n      \"enabled\": true,\n      \"reason\": null\n    }\n  }\n}"}]}]},{"name":"4. Create and change rate plans","description":"A rate plan is one way to sell a room type, with its own price: room only, or with breakfast. Here you create two rate plans, and then you change one. Each one names its room type by that room type's ref. Nothing is deleted here: folder 17 deletes. Send folder 2 and folder 3 first: these rate plans are for their room types.","item":[{"name":"Create 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\": \"rp-bb\",\n      \"roomTypeRef\": \"rt-deluxe\",\n      \"name\": \"Bed and breakfast\",\n      \"mealPlan\": \"CP\",\n      \"defaultRate\": 5000\n    },\n    {\n      \"ref\": \"rp-suite\",\n      \"roomTypeRef\": \"rt-suite\",\n      \"name\": \"Room only\",\n      \"mealPlan\": \"EP\",\n      \"defaultRate\": 9000\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"Sends a list of rate plans. This body creates Bed and breakfast for the Deluxe Room, and Room only for the Suite. defaultRate is the price that new dates start with. A new rate plan must have it. In this file it is sent with a test key only, because what it creates is kept. The same request works for a real hotel."},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["if (!String(pm.variables.get(\"apiKey\") || \"\").startsWith(\"zsk_test_\")) {","  const zsWhy = \"Not sent. This request works with a test key only: your key must start with zsk_test_. With a live key it would add this example's rate plans to a real hotel, and keep them there.\";","  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));","const out = pm.response.json().data;","pm.test(\"one item for each plan, with our id\", () => { pm.expect(out.items).to.have.length(2); out.items.forEach((item) => pm.expect(item.id).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/catalog/rate-plans","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","catalog","rate-plans"]},"body":{"mode":"raw","raw":"{\n  \"ratePlans\": [\n    {\n      \"ref\": \"rp-bb\",\n      \"roomTypeRef\": \"rt-deluxe\",\n      \"name\": \"Bed and breakfast\",\n      \"mealPlan\": \"CP\",\n      \"defaultRate\": 5000\n    },\n    {\n      \"ref\": \"rp-suite\",\n      \"roomTypeRef\": \"rt-suite\",\n      \"name\": \"Room only\",\n      \"mealPlan\": \"EP\",\n      \"defaultRate\": 9000\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\": \"rp-bb\",\n        \"id\": 901,\n        \"action\": \"created\",\n        \"sync\": \"IN_SYNC\",\n        \"notice\": null\n      },\n      {\n        \"ref\": \"rp-suite\",\n        \"id\": 902,\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 the rate plans (the new ones are listed)","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 rate plans, each with your ref and our id. Postman saves the id of Bed and breakfast as ratePlanId, for the requests that send rates."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));","const c = pm.response.json().data;","const plan = c.ratePlans.find((p) => p.ref === \"rp-bb\");","pm.test(\"the new rate plan is listed with your ref\", () => pm.expect(plan).to.be.an(\"object\"));","if (plan) { pm.collectionVariables.set(\"ratePlanId\", String(plan.id)); pm.collectionVariables.set(\"roomTypeId\", String(plan.roomTypeId)); }"]}}],"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":"Change a rate plan","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\": \"rp-bb\",\n      \"roomTypeRef\": \"rt-deluxe\",\n      \"name\": \"Bed and breakfast (flexible)\",\n      \"mealPlan\": \"CP\",\n      \"defaultRate\": 5200\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"The same request, sent again with the same ref rp-bb, a new name and a new defaultRate. The rate plan is changed. No second one is made. The answer says updated."},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["if (!String(pm.variables.get(\"apiKey\") || \"\").startsWith(\"zsk_test_\")) {","  const zsWhy = \"Not sent. This request works with a test key only: your key must start with zsk_test_. With a live key it would change a rate plan of a real hotel, and keep the change.\";","  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));","const out = pm.response.json().data;","pm.test(\"one item, changed and not made twice\", () => { pm.expect(out.items).to.have.length(1); pm.expect([\"updated\", \"unchanged\", \"adopted\"]).to.include(out.items[0].action); });"]}}],"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\": \"rp-bb\",\n      \"roomTypeRef\": \"rt-deluxe\",\n      \"name\": \"Bed and breakfast (flexible)\",\n      \"mealPlan\": \"CP\",\n      \"defaultRate\": 5200\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\": \"rp-bb\",\n        \"id\": 901,\n        \"action\": \"updated\",\n        \"sync\": \"IN_SYNC\",\n        \"notice\": null\n      }\n    ],\n    \"channelManager\": {\n      \"enabled\": true,\n      \"reason\": null\n    }\n  }\n}"}]}]},{"name":"5. 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 6 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":"Update availability by your own ref","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      \"roomTypeRef\": \"rt-suite\",\n      \"dateFrom\": \"{{dateFrom}}\",\n      \"dateTo\": \"{{dateTo}}\",\n      \"available\": 2\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"The same update, with your own ref in the place of our id. The body has roomTypeRef and no roomTypeId. The ref is rt-suite: the one you gave the Suite in folder 3. The answer is the same as for an update by id. Each item names its room type one way only: roomTypeId or roomTypeRef, never both. On a hotel whose room types have no ref of yours it answers 400 UNKNOWN_ROOM_TYPE. So send folder 3 and folder 4 first."},"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      \"roomTypeRef\": \"rt-suite\",\n      \"dateFrom\": \"{{dateFrom}}\",\n      \"dateTo\": \"{{dateTo}}\",\n      \"available\": 2\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 by your own ref","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      \"ratePlanRef\": \"rp-suite\",\n      \"dateFrom\": \"{{dateFrom}}\",\n      \"dateTo\": \"{{dateTo}}\",\n      \"rate\": \"9500.00\",\n      \"currency\": \"{{currency}}\"\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"The same update, with your own ref in the place of our id. The body has ratePlanRef and no ratePlanId. The ref is rp-suite: the one you gave the Suite's rate plan in folder 4. Update restrictions takes ratePlanRef in the same way. On a hotel whose rate plans have no ref of yours it answers 400 UNKNOWN_RATE_PLAN. So send folder 3 and folder 4 first."},"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      \"ratePlanRef\": \"rp-suite\",\n      \"dateFrom\": \"{{dateFrom}}\",\n      \"dateTo\": \"{{dateTo}}\",\n      \"rate\": \"9500.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":"6. 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":"7. 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":"8. Get OTA bookings (from Booking.com, MakeMyTrip and others)","description":"Read the bookings that OTAs sent for this hotel. Your server also receives each booking as a webhook (folder 14). 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 10 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":"9. 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 10 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":"10. 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":"11. 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":"12. Connect an OTA to a hotel (connect link)","description":"A connect link alone does not connect an OTA, except Airbnb. It is the last step. 1. At the OTA first: the OTA must accept our connectivity partner for the hotel, in its extranet or through its support. This can take days, and no request here does it. 2. Then the link: the hotel's own person types the hotel's id at the OTA on our page. 3. Then the mapping: they match each room and rate of the OTA to one of the hotel's rate plans. 4. Then Start selling. Your key needs the scope channels:connect. The whole flow: https://docs.zimmerstack.com/guides/connect-an-ota#how-it-unfolds The last four requests of this folder are for an OTA that is already connected: get its mapping, change its mapping, disconnect it, and open the channel console. They need the same scope and a live key.","item":[{"name":"Make a connect link for one OTA","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/connect-links","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","connect-links"]},"body":{"mode":"raw","raw":"{\n  \"propertyId\": {{propertyId}},\n  \"channel\": \"bookingcom\",\n  \"expiresInHours\": 72,\n  \"reference\": \"postman-demo\"\n}","options":{"raw":{"language":"json"}}},"description":"Makes one link for one hotel and one OTA: the last step of connecting it. Send the answer's hotelStep to the hotel first. Send the link only once the OTA has accepted our connectivity partner. Airbnb has nothing to accept, but allows one connection at a time: its host first disconnects any other channel manager there. A link connects a real OTA, so it needs a live key. A test key gets the answer 409 LIVE_KEY_REQUIRED. The saved example shows the answer to a live key."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["const body = pm.response.json();","pm.test(\"201 with the link and its url, or 409 LIVE_KEY_REQUIRED on a test key\", () => pm.expect([201, 409]).to.include(pm.response.code));","if (pm.response.code === 201 && body.data.link) pm.collectionVariables.set(\"linkId\", body.data.link.id);"]}}],"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/connect-links","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","connect-links"]},"body":{"mode":"raw","raw":"{\n  \"propertyId\": {{propertyId}},\n  \"channel\": \"bookingcom\",\n  \"expiresInHours\": 72,\n  \"reference\": \"postman-demo\"\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\": \"Connect link created\",\n  \"data\": {\n    \"link\": {\n      \"id\": \"3f2b6c1e-8a4d-4e7b-9c05-1d2e3f4a5b6c\",\n      \"propertyId\": 61,\n      \"channel\": \"bookingcom\",\n      \"channelName\": \"Booking.com\",\n      \"status\": \"pending\",\n      \"createdAt\": \"2026-11-23T09:30:00.000Z\",\n      \"expiresAt\": \"2026-11-26T09:30:00.000Z\",\n      \"openedAt\": null,\n      \"connectedAt\": null,\n      \"completedAt\": null,\n      \"revokedAt\": null,\n      \"channelId\": null,\n      \"reference\": \"onboarding-4471\",\n      \"returnUrl\": null,\n      \"createdByKey\": {\n        \"id\": 12,\n        \"name\": \"Aarohan PMS, production\",\n        \"maskedKey\": \"zsk_live_aB3…\"\n      }\n    },\n    \"url\": \"https://channels.zimmerstack.com/connect-link#zcl_…\",\n    \"hotelStep\": \"In the Booking.com extranet, open Account, then Connectivity provider. Search for our connectivity partner, choose it and accept the agreement. You can match rooms straight away; selling starts once Booking.com approves the connection.\",\n    \"withdrawn\": 0\n  }\n}"}]},{"name":"List your connect links","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/connect-links?limit=20","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","connect-links"],"query":[{"key":"limit","value":"20","description":"1–100"}]},"description":"Shows the links you made, newest 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/connect-links?limit=20","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","connect-links"],"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    \"items\": [\n      {\n        \"id\": \"3f2b6c1e-8a4d-4e7b-9c05-1d2e3f4a5b6c\",\n        \"propertyId\": 61,\n        \"channel\": \"bookingcom\",\n        \"channelName\": \"Booking.com\",\n        \"status\": \"completed\",\n        \"createdAt\": \"2026-11-23T09:30:00.000Z\",\n        \"expiresAt\": \"2026-11-26T09:30:00.000Z\",\n        \"openedAt\": \"2026-11-23T11:02:10.000Z\",\n        \"connectedAt\": \"2026-11-23T11:14:41.000Z\",\n        \"completedAt\": \"2026-11-23T11:16:03.000Z\",\n        \"revokedAt\": null,\n        \"channelId\": \"7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f\",\n        \"reference\": \"onboarding-4471\",\n        \"returnUrl\": null,\n        \"createdByKey\": {\n          \"id\": 12,\n          \"name\": \"Aarohan PMS, production\",\n          \"maskedKey\": \"zsk_live_aB3…\"\n        }\n      }\n    ]\n  }\n}"}]},{"name":"Get one connect link","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/connect-links/{{linkId}}","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","connect-links","{{linkId}}"]},"description":"Shows if the hotel has opened the link and connected the OTA."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"200, or 404 when no link was made in this run\", () => pm.expect([200, 404]).to.include(pm.response.code));"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/connect-links/{{linkId}}","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","connect-links","{{linkId}}"]}},"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\": \"3f2b6c1e-8a4d-4e7b-9c05-1d2e3f4a5b6c\",\n    \"propertyId\": 61,\n    \"channel\": \"bookingcom\",\n    \"channelName\": \"Booking.com\",\n    \"status\": \"completed\",\n    \"createdAt\": \"2026-11-23T09:30:00.000Z\",\n    \"expiresAt\": \"2026-11-26T09:30:00.000Z\",\n    \"openedAt\": \"2026-11-23T11:02:10.000Z\",\n    \"connectedAt\": \"2026-11-23T11:14:41.000Z\",\n    \"completedAt\": \"2026-11-23T11:16:03.000Z\",\n    \"revokedAt\": null,\n    \"channelId\": \"7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f\",\n    \"reference\": \"onboarding-4471\",\n    \"returnUrl\": null,\n    \"createdByKey\": {\n      \"id\": 12,\n      \"name\": \"Aarohan PMS, production\",\n      \"maskedKey\": \"zsk_live_aB3…\"\n    }\n  }\n}"}]},{"name":"Cancel a connect link","request":{"method":"POST","header":[{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/connect-links/{{linkId}}/revoke","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","connect-links","{{linkId}}","revoke"]},"description":"Makes a link stop working, for example when you sent it to the wrong person."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"200, or 404 when no link was made in this run\", () => pm.expect([200, 404]).to.include(pm.response.code));"]}}],"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/connect-links/{{linkId}}/revoke","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","connect-links","{{linkId}}","revoke"]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"Connect link revoked\",\n  \"data\": {\n    \"id\": \"3f2b6c1e-8a4d-4e7b-9c05-1d2e3f4a5b6c\",\n    \"propertyId\": 61,\n    \"channel\": \"bookingcom\",\n    \"channelName\": \"Booking.com\",\n    \"status\": \"revoked\",\n    \"createdAt\": \"2026-11-23T09:30:00.000Z\",\n    \"expiresAt\": \"2026-11-26T09:30:00.000Z\",\n    \"openedAt\": null,\n    \"connectedAt\": null,\n    \"completedAt\": null,\n    \"revokedAt\": \"2026-11-23T10:05:00.000Z\",\n    \"channelId\": null,\n    \"reference\": \"onboarding-4471\",\n    \"returnUrl\": null,\n    \"createdByKey\": {\n      \"id\": 12,\n      \"name\": \"Aarohan PMS, production\",\n      \"maskedKey\": \"zsk_live_aB3…\"\n    }\n  }\n}"}]},{"name":"Get the mapping of one OTA","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/properties/{{propertyId}}/channels/{{channelId}}/mapping","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","properties","{{propertyId}}","channels","{{channelId}}","mapping"]},"description":"Shows each room and rate of the OTA in one line, and the rate plan of the hotel that is matched to it now. A line with no match has ratePlanId null, and suggestedRatePlanId is our guess for it. The OTA is read from channelId: send the request List the OTAs of this hotel first. ZimmerStack asks the OTA each time, so the answer takes a few seconds. Postman saves what is matched now as mappingLines, for the next request. It needs a live key: a sandbox has no real OTA, so a test key gets the answer 409 LIVE_KEY_REQUIRED. The saved example shows the answer to a live key."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["const body = pm.response.json();","pm.test(\"200 with the lines, 404 when the channel is not this hotel's, or 409 LIVE_KEY_REQUIRED on a test key\", () => pm.expect([200, 404, 409]).to.include(pm.response.code));","if (pm.response.code === 200) {","  const d = body.data;","  const held = d.lines.filter((l) => l.blocked === null && l.ratePlanId !== null).map((l) => (d.usesPrimary ? { lineId: l.lineId, ratePlanId: l.ratePlanId, primary: l.primary } : { lineId: l.lineId, ratePlanId: l.ratePlanId }));","  pm.collectionVariables.set(\"mappingLines\", JSON.stringify(held, null, 2));","}"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/properties/{{propertyId}}/channels/{{channelId}}/mapping","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","properties","{{propertyId}}","channels","{{channelId}}","mapping"]}},"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    \"channelId\": \"7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f\",\n    \"channel\": \"bookingcom\",\n    \"channelName\": \"Booking.com\",\n    \"confirmWord\": \"Booking.com\",\n    \"selling\": true,\n    \"mapEveryLine\": true,\n    \"usesPrimary\": true,\n    \"lines\": [\n      {\n        \"lineId\": \"46777651::2001::2\",\n        \"otaRoom\": {\n          \"code\": \"46777651\",\n          \"name\": \"Deluxe Double Room with Garden View\"\n        },\n        \"otaRate\": {\n          \"code\": \"2001\",\n          \"name\": \"Standard Rate with breakfast\"\n        },\n        \"occupancy\": 2,\n        \"ratePlanId\": 901,\n        \"primary\": true,\n        \"suggestedRatePlanId\": null,\n        \"blocked\": null\n      },\n      {\n        \"lineId\": \"46777651::2001::1\",\n        \"otaRoom\": {\n          \"code\": \"46777651\",\n          \"name\": \"Deluxe Double Room with Garden View\"\n        },\n        \"otaRate\": {\n          \"code\": \"2001\",\n          \"name\": \"Standard Rate with breakfast\"\n        },\n        \"occupancy\": 1,\n        \"ratePlanId\": null,\n        \"primary\": false,\n        \"suggestedRatePlanId\": 901,\n        \"blocked\": null\n      },\n      {\n        \"lineId\": \"46777652::2002::4\",\n        \"otaRoom\": {\n          \"code\": \"46777652\",\n          \"name\": \"Family Suite\"\n        },\n        \"otaRate\": {\n          \"code\": \"2002\",\n          \"name\": \"Non-refundable Rate\"\n        },\n        \"occupancy\": 4,\n        \"ratePlanId\": null,\n        \"primary\": true,\n        \"suggestedRatePlanId\": 902,\n        \"blocked\": null\n      }\n    ],\n    \"ratePlans\": [\n      {\n        \"ratePlanId\": 901,\n        \"roomTypeId\": 412,\n        \"roomTypeName\": \"Deluxe Garden Room\",\n        \"name\": \"Bed and breakfast\",\n        \"occupancy\": 2\n      },\n      {\n        \"ratePlanId\": 904,\n        \"roomTypeId\": 412,\n        \"roomTypeName\": \"Deluxe Garden Room\",\n        \"name\": \"Room only\",\n        \"occupancy\": 2\n      },\n      {\n        \"ratePlanId\": 902,\n        \"roomTypeId\": 413,\n        \"roomTypeName\": \"Family Suite\",\n        \"name\": \"Room only, non-refundable\",\n        \"occupancy\": 4\n      }\n    ]\n  }\n}"}]},{"name":"Change the mapping of one OTA (re-map)","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/properties/{{propertyId}}/channels/{{channelId}}/mapping","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","properties","{{propertyId}}","channels","{{channelId}}","mapping"]},"body":{"mode":"raw","raw":"{\n  \"lines\": {{mappingLines}}\n}","options":{"raw":{"language":"json"}}},"description":"Saves the whole mapping of one OTA. Send every line you want matched, each with one ratePlanId of the hotel. A line you leave out is not matched any more. As it is sent here, the body is what the request above read, so nothing changes. To re-map, change mappingLines first. If the mapping breaks a rule of the OTA, the answer is 400 VALIDATION, problems names each line, and nothing is changed. After a change, send the request Send everything to one OTA again (full sync), so the new lines get their rates and availability. The saved example shows the answer to a live key."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"200 saved, 400 when the matching breaks a rule, 404, or 409 LIVE_KEY_REQUIRED on a test key\", () => pm.expect([200, 400, 404, 409]).to.include(pm.response.code));"]}}],"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/properties/{{propertyId}}/channels/{{channelId}}/mapping","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","properties","{{propertyId}}","channels","{{channelId}}","mapping"]},"body":{"mode":"raw","raw":"{\n  \"lines\": {{mappingLines}}\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\": \"Mapping saved\",\n  \"data\": {\n    \"channelId\": \"7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f\",\n    \"changed\": true,\n    \"mapped\": 3,\n    \"removed\": 0,\n    \"kept\": 0,\n    \"unmatched\": [],\n    \"remaining\": 0,\n    \"waiting\": false,\n    \"next\": \"Send POST /channels/{channelId}/full-sync for this connection so the newly matched rates receive their prices and room counts.\"\n  }\n}"}]},{"name":"Disconnect one OTA from a hotel","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/properties/{{propertyId}}/channels/{{channelId}}/disconnect","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","properties","{{propertyId}}","channels","{{channelId}}","disconnect"]},"body":{"mode":"raw","raw":"{\n  \"confirm\": \"TYPE-ITS-NAME-HERE\"\n}","options":{"raw":{"language":"json"}}},"description":"Removes one OTA from one hotel. The other OTAs of the hotel stay connected. The OTA gets no more rates and availability from ZimmerStack, and its bookings stop coming to you. The hotel's page at the OTA stays open: the hotel closes or changes it at the OTA. As it is sent here, nothing is disconnected: confirm does not hold the OTA's name, so the answer is 422 CONFIRMATION_MISMATCH and expected shows the word to send, for example MakeMyTrip. Type that word in confirm only when you want to disconnect. To connect the OTA again, make a new connect link. The saved example shows the answer when confirm holds the right word."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"422 until confirm is the booking site's name (200 once it is), 404, or 409 LIVE_KEY_REQUIRED on a test key\", () => pm.expect([200, 404, 409, 422]).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/properties/{{propertyId}}/channels/{{channelId}}/disconnect","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","properties","{{propertyId}}","channels","{{channelId}}","disconnect"]},"body":{"mode":"raw","raw":"{\n  \"confirm\": \"TYPE-ITS-NAME-HERE\"\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\": \"Channel disconnected\",\n  \"data\": {\n    \"channelId\": \"0a9b8c7d-6e5f-4a3b-2c1d-0e9f8a7b6c5d\",\n    \"done\": true,\n    \"remaining\": 0,\n    \"waiting\": false\n  }\n}"}]},{"name":"Open the channel console for a hotel","request":{"method":"POST","header":[{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/properties/{{propertyId}}/channel-console","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","properties","{{propertyId}}","channel-console"]},"description":"Gives you the address of the channel console for one hotel. Open it in a browser or in an iframe in your own software. It shows every OTA of the hotel, with its settings and its mapping. The address works one time, for 15 minutes, and only this answer shows it. Do not save it and do not send it to anyone: the person who opens it can change the hotel's OTAs. Ask for a new address each time. It needs a live key. The saved example shows the answer to a live key."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"201 with the address, or 409 LIVE_KEY_REQUIRED on a test key\", () => pm.expect([201, 409]).to.include(pm.response.code));"]}}],"response":[{"name":"Example answer: 201 Created","originalRequest":{"method":"POST","header":[{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/properties/{{propertyId}}/channel-console","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","properties","{{propertyId}}","channel-console"]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 201,\n  \"message\": \"Console session opened\",\n  \"data\": {\n    \"url\": \"https://…/auth/exchange?oauth_session_key=…&app_mode=headless&redirect_to=/channels&property_id=…\",\n    \"expiresInSeconds\": 900\n  }\n}"}]}]},{"name":"13. Go live with a hotel","description":"Before a real hotel sells through your software, check that it is ready. Then switch it on. This folder also makes keys for one hotel. Send these with a TEST key first.","item":[{"name":"Check if the hotel is ready to go live","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/readiness","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","readiness"]},"description":"Shows four checks and which of them pass. Send a year of rates and availability before you go live."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));","pm.test(\"says live, ready and the checks\", () => { const d = pm.response.json().data; pm.expect(d.live).to.be.a(\"boolean\"); pm.expect(d.ready).to.be.a(\"boolean\"); pm.expect(d.checks).to.be.an(\"array\"); });"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/readiness","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","readiness"]}},"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    \"live\": false,\n    \"ready\": false,\n    \"nights\": {\n      \"from\": \"2026-11-23\",\n      \"to\": \"2027-11-22\",\n      \"count\": 365\n    },\n    \"passedBy\": null,\n    \"checks\": [\n      {\n        \"id\": \"channel_manager\",\n        \"passed\": true,\n        \"summary\": \"The hotel is on the channel manager.\",\n        \"action\": null\n      },\n      {\n        \"id\": \"catalog_linked\",\n        \"passed\": true,\n        \"summary\": \"Every room type and rate plan is on the channel manager (2 room types, 3 rate plans).\",\n        \"action\": null\n      },\n      {\n        \"id\": \"prices_hold\",\n        \"passed\": true,\n        \"summary\": \"A price your software sends stays until your software changes it.\",\n        \"action\": null\n      },\n      {\n        \"id\": \"nothing_stale\",\n        \"passed\": false,\n        \"summary\": \"Going live now would send 1,095 values nobody set, and 0 values differ from what the channel manager holds.\",\n        \"action\": \"Send the next 365 nights first: a price for every rate plan and night (PUT /rates), each request carrying the header X-ZS-Before-Go-Live: true. Then read this report again. Still missing: 1,095 rate-plan nights. Room counts: until the hotel is live a count that lowers what is on sale is sent at once and a higher one is refused, so send your room counts again right after going live (730 room-type nights not written by your software yet).\",\n        \"details\": {\n          \"recordMatches\": {\n            \"passed\": false,\n            \"waiting\": 1095,\n            \"waitingNobodySet\": 1095,\n            \"differs\": 0,\n            \"cellsRead\": 270,\n            \"lastReadAt\": \"2026-11-22T21:04:11.000Z\"\n          },\n          \"fullYearSent\": {\n            \"passed\": false,\n            \"ratePlanNightsMissing\": 1095,\n            \"roomTypeNightsMissing\": 730,\n            \"ratePlans\": [\n              {\n                \"ratePlanId\": 901,\n                \"nightsSet\": 0,\n                \"nightsMissing\": 365\n              },\n              {\n                \"ratePlanId\": 902,\n                \"nightsSet\": 0,\n                \"nightsMissing\": 365\n              },\n              {\n                \"ratePlanId\": 903,\n                \"nightsSet\": 0,\n                \"nightsMissing\": 365\n              }\n            ],\n            \"roomTypes\": [\n              {\n                \"roomTypeId\": 412,\n                \"nightsSet\": 0,\n                \"nightsMissing\": 365\n              },\n              {\n                \"roomTypeId\": 413,\n                \"nightsSet\": 0,\n                \"nightsMissing\": 365\n              }\n            ]\n          }\n        }\n      }\n    ]\n  }\n}"}]},{"name":"Go live","request":{"method":"POST","header":[{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/go-live","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","go-live"]},"description":"Makes your software the source of this hotel's rates and availability. It works only when every check passes."},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["if (!String(pm.variables.get(\"apiKey\") || \"\").startsWith(\"zsk_test_\")) {","  const zsWhy = \"Not sent. This request works with a test key only: your key must start with zsk_test_. With a live key it would make your software the source of a real hotel's rates and availability.\";","  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(\"200 live, or 409 NOT_READY\", () => pm.expect([200, 409]).to.include(pm.response.code));"]}}],"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/go-live","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","go-live"]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"Live\",\n  \"data\": {\n    \"propertyId\": 61,\n    \"live\": true,\n    \"replay\": false,\n    \"wentLiveAt\": \"2026-11-23T12:40:00.000Z\",\n    \"passedBy\": \"full_year_sent\",\n    \"next\": [\n      \"Every price, stay rule and room count your software sends is now pushed to the hotel's booking sites; you no longer send X-ZS-Before-Go-Live.\",\n      \"What was waiting in our record is on its way: GET /sync shows it land.\",\n      \"Nights past the next 365 that your software never wrote are sent closed until it writes them.\"\n    ]\n  }\n}"}]},{"name":"List the hotel keys you made","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/properties/{{propertyId}}/keys","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","properties","{{propertyId}}","keys"]},"description":"Shows the keys you made for this one hotel. Your key needs the scope keys:manage."},"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/properties/{{propertyId}}/keys","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","properties","{{propertyId}}","keys"]}},"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        \"id\": 87,\n        \"propertyId\": 61,\n        \"name\": \"Aarohan PMS, The Lantern House\",\n        \"maskedKey\": \"zsk_live_Qm7…\",\n        \"mode\": \"live\",\n        \"status\": \"ACTIVE\",\n        \"scopes\": [\n          \"ari:read\",\n          \"ari:write\",\n          \"channel-bookings:read\"\n        ],\n        \"allowedCidrs\": [\n          \"203.0.113.0/24\"\n        ],\n        \"createdAt\": \"2026-11-23T12:45:00.000Z\",\n        \"lastUsedAt\": null,\n        \"lastUsedIp\": null,\n        \"expiresAt\": null,\n        \"retireAt\": null,\n        \"rotatedToId\": null,\n        \"revokedAt\": null,\n        \"revokedReason\": null\n      }\n    ],\n    \"limit\": 5\n  }\n}"}]},{"name":"Make a hotel key","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/properties/{{propertyId}}/keys","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","properties","{{propertyId}}","keys"]},"body":{"mode":"raw","raw":"{\n  \"name\": \"Postman demo key\",\n  \"scopes\": [\n    \"ari:read\",\n    \"ari:write\"\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"Makes a key that works for this hotel only. The key is shown one time. Save it at once."},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["if (!String(pm.variables.get(\"apiKey\") || \"\").startsWith(\"zsk_test_\")) {","  const zsWhy = \"Not sent. This request works with a test key only: your key must start with zsk_test_. With a live key it would make, replace or switch off a key of a real hotel.\";","  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":["const body = pm.response.json();","pm.test(\"201 with the key and its secret\", () => { pm.response.to.have.status(201); pm.expect(body.data.view.id).to.be.a(\"number\"); pm.expect(body.data.key).to.match(/^zsk_test_/); });","if (body && body.data && body.data.view) pm.collectionVariables.set(\"keyId\", String(body.data.view.id));"]}}],"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/properties/{{propertyId}}/keys","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","properties","{{propertyId}}","keys"]},"body":{"mode":"raw","raw":"{\n  \"name\": \"Postman demo key\",\n  \"scopes\": [\n    \"ari:read\",\n    \"ari:write\"\n  ]\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\": \"API key created\",\n  \"data\": {\n    \"key\": \"zsk_live_…\",\n    \"view\": {\n      \"id\": 87,\n      \"propertyId\": 61,\n      \"name\": \"Aarohan PMS, The Lantern House\",\n      \"maskedKey\": \"zsk_live_Qm7…\",\n      \"mode\": \"live\",\n      \"status\": \"ACTIVE\",\n      \"scopes\": [\n        \"ari:read\",\n        \"ari:write\",\n        \"channel-bookings:read\"\n      ],\n      \"allowedCidrs\": [\n        \"203.0.113.0/24\"\n      ],\n      \"createdAt\": \"2026-11-23T12:45:00.000Z\",\n      \"lastUsedAt\": null,\n      \"lastUsedIp\": null,\n      \"expiresAt\": null,\n      \"retireAt\": null,\n      \"rotatedToId\": null,\n      \"revokedAt\": null,\n      \"revokedReason\": null\n    }\n  }\n}"}]},{"name":"Replace a hotel key with a new one","request":{"method":"POST","header":[{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/properties/{{propertyId}}/keys/{{keyId}}/rotate","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","properties","{{propertyId}}","keys","{{keyId}}","rotate"]},"description":"Makes a new key in place of an old one. The old key keeps working for 24 hours."},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["if (!String(pm.variables.get(\"apiKey\") || \"\").startsWith(\"zsk_test_\")) {","  const zsWhy = \"Not sent. This request works with a test key only: your key must start with zsk_test_. With a live key it would make, replace or switch off a key of a real hotel.\";","  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);","}","if (!pm.collectionVariables.get(\"keyId\")) {","  const zsWhy = \"Send the request that makes a hotel key first: this request replaces only the key it 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":["const body = pm.response.json();","pm.test(\"status 200\", () => pm.response.to.have.status(200));","if (body && body.data && body.data.view) pm.collectionVariables.set(\"keyId\", String(body.data.view.id));"]}}],"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/properties/{{propertyId}}/keys/{{keyId}}/rotate","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","properties","{{propertyId}}","keys","{{keyId}}","rotate"]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"API key rotated\",\n  \"data\": {\n    \"key\": \"zsk_live_…\",\n    \"view\": {\n      \"id\": 88,\n      \"propertyId\": 61,\n      \"name\": \"Aarohan PMS, The Lantern House\",\n      \"maskedKey\": \"zsk_live_Xr4…\",\n      \"mode\": \"live\",\n      \"status\": \"ACTIVE\",\n      \"scopes\": [\n        \"ari:read\",\n        \"ari:write\",\n        \"channel-bookings:read\"\n      ],\n      \"allowedCidrs\": [\n        \"203.0.113.0/24\"\n      ],\n      \"createdAt\": \"2026-11-24T08:00:00.000Z\",\n      \"lastUsedAt\": null,\n      \"lastUsedIp\": null,\n      \"expiresAt\": null,\n      \"retireAt\": null,\n      \"rotatedToId\": null,\n      \"revokedAt\": null,\n      \"revokedReason\": null\n    },\n    \"retired\": {\n      \"id\": 87,\n      \"propertyId\": 61,\n      \"name\": \"Aarohan PMS, The Lantern House\",\n      \"maskedKey\": \"zsk_live_Qm7…\",\n      \"mode\": \"live\",\n      \"status\": \"ACTIVE\",\n      \"scopes\": [\n        \"ari:read\",\n        \"ari:write\",\n        \"channel-bookings:read\"\n      ],\n      \"allowedCidrs\": [\n        \"203.0.113.0/24\"\n      ],\n      \"createdAt\": \"2026-11-23T12:45:00.000Z\",\n      \"lastUsedAt\": \"2026-11-24T07:59:12.000Z\",\n      \"lastUsedIp\": \"203.0.113.24\",\n      \"expiresAt\": null,\n      \"retireAt\": \"2026-11-25T08:00:00.000Z\",\n      \"rotatedToId\": 88,\n      \"revokedAt\": null,\n      \"revokedReason\": null\n    }\n  }\n}"}]},{"name":"Switch off a hotel key","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/properties/{{propertyId}}/keys/{{keyId}}/revoke","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","properties","{{propertyId}}","keys","{{keyId}}","revoke"]},"body":{"mode":"raw","raw":"{\n  \"reason\": \"Postman demo finished\"\n}","options":{"raw":{"language":"json"}}},"description":"Makes a key stop working at once."},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["if (!String(pm.variables.get(\"apiKey\") || \"\").startsWith(\"zsk_test_\")) {","  const zsWhy = \"Not sent. This request works with a test key only: your key must start with zsk_test_. With a live key it would make, replace or switch off a key of a real hotel.\";","  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);","}","if (!pm.collectionVariables.get(\"keyId\")) {","  const zsWhy = \"Send the request that makes a hotel key first: this request switches off only the key it 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));"]}}],"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/properties/{{propertyId}}/keys/{{keyId}}/revoke","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","properties","{{propertyId}}","keys","{{keyId}}","revoke"]},"body":{"mode":"raw","raw":"{\n  \"reason\": \"Postman demo finished\"\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\": \"API key revoked\",\n  \"data\": {\n    \"id\": 87,\n    \"propertyId\": 61,\n    \"name\": \"Aarohan PMS, The Lantern House\",\n    \"maskedKey\": \"zsk_live_Qm7…\",\n    \"mode\": \"live\",\n    \"status\": \"REVOKED\",\n    \"scopes\": [\n      \"ari:read\",\n      \"ari:write\",\n      \"channel-bookings:read\"\n    ],\n    \"allowedCidrs\": [\n      \"203.0.113.0/24\"\n    ],\n    \"createdAt\": \"2026-11-23T12:45:00.000Z\",\n    \"lastUsedAt\": \"2026-11-24T07:59:12.000Z\",\n    \"lastUsedIp\": \"203.0.113.24\",\n    \"expiresAt\": null,\n    \"retireAt\": null,\n    \"rotatedToId\": null,\n    \"revokedAt\": \"2026-11-24T08:05:00.000Z\",\n    \"revokedReason\": \"The old server was switched off\"\n  }\n}"}]}]},{"name":"14. Webhooks (get bookings sent to your server)","description":"A webhook is a message ZimmerStack sends to your server when something happens, like a new booking. Here you tell ZimmerStack the address of your server. Your key needs the scope webhooks:manage. These requests are for your company, so they send no hotel id. The last request deletes the address this folder added, and only that one. You may skip it.","item":[{"name":"Add your server's address (webhook endpoint)","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/webhook-endpoints","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","webhook-endpoints"]},"body":{"mode":"raw","raw":"{\n  \"url\": \"https://example.com/zimmerstack/webhooks\",\n  \"dataAck\": true\n}","options":{"raw":{"language":"json"}}},"description":"Tells ZimmerStack where to send messages. The answer has a signing secret, shown one time. Your server uses it to check that a message is really from ZimmerStack."},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["if (!String(pm.variables.get(\"apiKey\") || \"\").startsWith(\"zsk_test_\")) {","  const zsWhy = \"Not sent. This request works with a test key only: your key must start with zsk_test_. With a live key it would add a live webhook endpoint, which receives your real hotels' events.\";","  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":["const body = pm.response.json();","pm.test(\"201 with the endpoint and its secret\", () => { pm.response.to.have.status(201); pm.expect(body.data.endpoint.id).to.be.a(\"number\"); pm.expect(body.data.secret).to.match(/^whsec_/); });","if (body && body.data && body.data.endpoint) { pm.collectionVariables.set(\"endpointId\", String(body.data.endpoint.id)); pm.collectionVariables.set(\"addedEndpointId\", String(body.data.endpoint.id)); }"]}}],"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/webhook-endpoints","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","webhook-endpoints"]},"body":{"mode":"raw","raw":"{\n  \"url\": \"https://example.com/zimmerstack/webhooks\",\n  \"dataAck\": true\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\": \"Webhook endpoint created\",\n  \"data\": {\n    \"endpoint\": {\n      \"id\": 7,\n      \"mode\": \"live\",\n      \"url\": \"https://example.com/zimmerstack/webhooks\",\n      \"description\": \"Bookings and channel alerts for our PMS\",\n      \"apiVersion\": \"2026-09-01\",\n      \"eventTypes\": [\n        \"channel.booking.created\",\n        \"channel.booking.modified\",\n        \"channel.booking.cancelled\",\n        \"channel.sync.alert\",\n        \"channel.sync.recovered\"\n      ],\n      \"includeGuestContact\": false,\n      \"status\": \"ACTIVE\",\n      \"statusReason\": null,\n      \"secretVersion\": 1,\n      \"previousSecretExpiresAt\": null,\n      \"notifyEmail\": null,\n      \"createdAt\": \"2026-12-10T09:30:00.000Z\",\n      \"updatedAt\": \"2026-12-10T09:30:00.000Z\",\n      \"lastStoppedAt\": null,\n      \"health\": {\n        \"state\": \"healthy\",\n        \"consecutiveFailures\": 0,\n        \"failingSince\": null,\n        \"lastSuccessAt\": null,\n        \"lastFailureAt\": null,\n        \"lastErrorMessage\": null\n      }\n    },\n    \"secret\": \"whsec_…\"\n  }\n}"}]},{"name":"List your webhook endpoints","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/webhook-endpoints","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","webhook-endpoints"]},"description":"Shows the addresses you added."},"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/webhook-endpoints","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","webhook-endpoints"]}},"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        \"id\": 7,\n        \"mode\": \"live\",\n        \"url\": \"https://example.com/zimmerstack/webhooks\",\n        \"description\": \"Bookings and channel alerts for our PMS\",\n        \"apiVersion\": \"2026-09-01\",\n        \"eventTypes\": [\n          \"channel.booking.created\",\n          \"channel.booking.modified\",\n          \"channel.booking.cancelled\",\n          \"channel.sync.alert\",\n          \"channel.sync.recovered\"\n        ],\n        \"includeGuestContact\": false,\n        \"status\": \"ACTIVE\",\n        \"statusReason\": null,\n        \"secretVersion\": 1,\n        \"previousSecretExpiresAt\": null,\n        \"notifyEmail\": null,\n        \"createdAt\": \"2026-12-10T09:30:00.000Z\",\n        \"updatedAt\": \"2026-12-10T12:00:03.000Z\",\n        \"lastStoppedAt\": null,\n        \"health\": {\n          \"state\": \"healthy\",\n          \"consecutiveFailures\": 0,\n          \"failingSince\": null,\n          \"lastSuccessAt\": \"2026-12-10T12:00:03.000Z\",\n          \"lastFailureAt\": null,\n          \"lastErrorMessage\": null\n        }\n      }\n    ],\n    \"limit\": 3\n  }\n}"}]},{"name":"Get one webhook endpoint","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/webhook-endpoints/{{endpointId}}","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","webhook-endpoints","{{endpointId}}"]},"description":"Shows one address and if messages are reaching 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/webhook-endpoints/{{endpointId}}","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","webhook-endpoints","{{endpointId}}"]}},"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\": 7,\n    \"mode\": \"live\",\n    \"url\": \"https://example.com/zimmerstack/webhooks\",\n    \"description\": \"Bookings and channel alerts for our PMS\",\n    \"apiVersion\": \"2026-09-01\",\n    \"eventTypes\": [\n      \"channel.booking.created\",\n      \"channel.booking.modified\",\n      \"channel.booking.cancelled\",\n      \"channel.sync.alert\",\n      \"channel.sync.recovered\"\n    ],\n    \"includeGuestContact\": false,\n    \"status\": \"ACTIVE\",\n    \"statusReason\": null,\n    \"secretVersion\": 1,\n    \"previousSecretExpiresAt\": null,\n    \"notifyEmail\": null,\n    \"createdAt\": \"2026-12-10T09:30:00.000Z\",\n    \"updatedAt\": \"2026-12-10T12:00:03.000Z\",\n    \"lastStoppedAt\": null,\n    \"health\": {\n      \"state\": \"healthy\",\n      \"consecutiveFailures\": 0,\n      \"failingSince\": null,\n      \"lastSuccessAt\": \"2026-12-10T12:00:03.000Z\",\n      \"lastFailureAt\": null,\n      \"lastErrorMessage\": null\n    }\n  }\n}"}]},{"name":"Change a webhook endpoint","request":{"method":"PATCH","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/webhook-endpoints/{{endpointId}}","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","webhook-endpoints","{{endpointId}}"]},"body":{"mode":"raw","raw":"{\n  \"description\": \"Bookings and OTA problems, for our PMS\"\n}","options":{"raw":{"language":"json"}}},"description":"Changes one webhook endpoint. Send only the fields you want to change. This body changes the endpoint's own note (description) and nothing else. The same request changes the address (url), the kinds of message (eventTypes), the email for warnings (notifyEmail) or the guest contact switch (includeGuestContact). A new list of eventTypes takes the place of the old list. The answer is the endpoint after the change."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));","pm.test(\"the endpoint comes back, as it is after the change\", () => pm.expect(pm.response.json().data.id).to.be.a(\"number\"));"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"PATCH","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/webhook-endpoints/{{endpointId}}","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","webhook-endpoints","{{endpointId}}"]},"body":{"mode":"raw","raw":"{\n  \"description\": \"Bookings and OTA problems, for our PMS\"\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\": \"Webhook endpoint updated\",\n  \"data\": {\n    \"id\": 7,\n    \"mode\": \"live\",\n    \"url\": \"https://example.com/zimmerstack/webhooks\",\n    \"description\": \"Bookings and OTA problems, for our PMS\",\n    \"apiVersion\": \"2026-09-01\",\n    \"eventTypes\": [\n      \"channel.booking.created\",\n      \"channel.booking.modified\",\n      \"channel.booking.cancelled\",\n      \"channel.sync.alert\",\n      \"channel.sync.recovered\"\n    ],\n    \"includeGuestContact\": false,\n    \"status\": \"ACTIVE\",\n    \"statusReason\": null,\n    \"secretVersion\": 1,\n    \"previousSecretExpiresAt\": null,\n    \"notifyEmail\": null,\n    \"createdAt\": \"2026-12-10T09:30:00.000Z\",\n    \"updatedAt\": \"2026-12-10T12:10:00.000Z\",\n    \"lastStoppedAt\": null,\n    \"health\": {\n      \"state\": \"healthy\",\n      \"consecutiveFailures\": 0,\n      \"failingSince\": null,\n      \"lastSuccessAt\": \"2026-12-10T12:00:03.000Z\",\n      \"lastFailureAt\": null,\n      \"lastErrorMessage\": null\n    }\n  }\n}"}]},{"name":"Send a test message to your server","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/webhook-endpoints/{{endpointId}}/test","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","webhook-endpoints","{{endpointId}}","test"]},"body":{"mode":"raw","raw":"{\n  \"eventType\": \"channel.sync.alert\"\n}","options":{"raw":{"language":"json"}}},"description":"Sends one test message now, so you can check that your server receives it."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 202\", () => pm.response.to.have.status(202));"]}}],"response":[{"name":"Example answer: 202 Accepted","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/webhook-endpoints/{{endpointId}}/test","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","webhook-endpoints","{{endpointId}}","test"]},"body":{"mode":"raw","raw":"{\n  \"eventType\": \"channel.sync.alert\"\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\": \"Test event queued\",\n  \"data\": {\n    \"deliveryId\": \"48211\",\n    \"eventId\": \"e3a1f0c8-6d2b-4c57-b9a4-0f1e2d3c4b5a\",\n    \"eventType\": \"channel.booking.created\"\n  }\n}"}]},{"name":"List the messages that were sent","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/webhook-endpoints/{{endpointId}}/deliveries?limit=20","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","webhook-endpoints","{{endpointId}}","deliveries"],"query":[{"key":"limit","value":"20","description":"1–100"}]},"description":"Shows each message sent to this address, newest first, and if your server answered."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 200\", () => pm.response.to.have.status(200));","const d = pm.response.json().data.items[0]; if (d) pm.collectionVariables.set(\"deliveryId\", d.id);"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/webhook-endpoints/{{endpointId}}/deliveries?limit=20","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","webhook-endpoints","{{endpointId}}","deliveries"],"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    \"items\": [\n      {\n        \"id\": \"48211\",\n        \"eventId\": \"e3a1f0c8-6d2b-4c57-b9a4-0f1e2d3c4b5a\",\n        \"eventType\": \"channel.booking.created\",\n        \"mode\": \"TEST\",\n        \"status\": \"DELIVERED\",\n        \"attempts\": 1,\n        \"nextAttemptAt\": \"2026-12-10T13:00:00.000Z\",\n        \"lastError\": null,\n        \"occurredAt\": \"2026-12-10T13:00:00.000Z\",\n        \"deliveredAt\": \"2026-12-10T13:00:01.000Z\",\n        \"createdAt\": \"2026-12-10T13:00:00.000Z\",\n        \"payloadBytes\": 1651,\n        \"payloadAvailable\": true\n      },\n      {\n        \"id\": \"48209\",\n        \"eventId\": \"5c0e7a1d-2b64-4f3a-9d18-7e6a4b3c2f10\",\n        \"eventType\": \"channel.booking.created\",\n        \"mode\": \"LIVE\",\n        \"status\": \"DELIVERED\",\n        \"attempts\": 1,\n        \"nextAttemptAt\": \"2026-12-10T12:00:02.000Z\",\n        \"lastError\": null,\n        \"occurredAt\": \"2026-12-10T12:00:00.000Z\",\n        \"deliveredAt\": \"2026-12-10T12:00:03.000Z\",\n        \"createdAt\": \"2026-12-10T12:00:02.000Z\",\n        \"payloadBytes\": 1668,\n        \"payloadAvailable\": true\n      }\n    ],\n    \"nextCursor\": null\n  }\n}"}]},{"name":"Get one sent message","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/webhook-endpoints/{{endpointId}}/deliveries/{{deliveryId}}","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","webhook-endpoints","{{endpointId}}","deliveries","{{deliveryId}}"]},"description":"Shows one message exactly as it was sent, and every try."},"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/webhook-endpoints/{{endpointId}}/deliveries/{{deliveryId}}","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","webhook-endpoints","{{endpointId}}","deliveries","{{deliveryId}}"]}},"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\": \"48209\",\n    \"eventId\": \"5c0e7a1d-2b64-4f3a-9d18-7e6a4b3c2f10\",\n    \"eventType\": \"channel.booking.created\",\n    \"mode\": \"LIVE\",\n    \"status\": \"DELIVERED\",\n    \"attempts\": 1,\n    \"nextAttemptAt\": \"2026-12-10T12:00:02.000Z\",\n    \"lastError\": null,\n    \"occurredAt\": \"2026-12-10T12:00:00.000Z\",\n    \"deliveredAt\": \"2026-12-10T12:00:03.000Z\",\n    \"createdAt\": \"2026-12-10T12:00:02.000Z\",\n    \"payloadBytes\": 1668,\n    \"payloadAvailable\": true,\n    \"payload\": {\n      \"id\": \"evt_5c0e7a1d-2b64-4f3a-9d18-7e6a4b3c2f10\",\n      \"type\": \"channel.booking.created\",\n      \"apiVersion\": \"2026-09-01\",\n      \"occurredAt\": \"2026-12-10T12:00:00.000Z\",\n      \"mode\": \"live\",\n      \"sequence\": 42,\n      \"property\": {\n        \"id\": 61,\n        \"name\": \"The Lantern House\",\n        \"currency\": \"INR\",\n        \"timezone\": \"Asia/Kolkata\"\n      },\n      \"data\": {\n        \"booking\": {\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            \"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      \"changes\": null,\n      \"previous\": null\n    },\n    \"attempts_log\": [\n      {\n        \"id\": \"91377\",\n        \"attemptNo\": 1,\n        \"startedAt\": \"2026-12-10T12:00:02.412Z\",\n        \"durationMs\": 318,\n        \"outcome\": \"SUCCESS\",\n        \"responseStatus\": 200,\n        \"responseBodySnippet\": \"ok\",\n        \"errorMessage\": null,\n        \"resolvedIp\": \"203.0.113.80\"\n      }\n    ],\n    \"request\": {\n      \"headers\": {\n        \"content-type\": \"application/json; charset=utf-8\",\n        \"webhook-id\": \"evt_5c0e7a1d-2b64-4f3a-9d18-7e6a4b3c2f10\",\n        \"webhook-timestamp\": \"<unix seconds at send time>\",\n        \"webhook-signature\": \"v1,<base64 HMAC-SHA256>\",\n        \"x-zimmerstack-event\": \"channel.booking.created\",\n        \"x-zimmerstack-delivery\": \"dlv_48209\",\n        \"x-zimmerstack-api-version\": \"2026-09-01\",\n        \"idempotency-key\": \"evt_5c0e7a1d-2b64-4f3a-9d18-7e6a4b3c2f10\"\n      }\n    }\n  }\n}"}]},{"name":"Send one message again","request":{"method":"POST","header":[{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/webhook-endpoints/{{endpointId}}/deliveries/{{deliveryId}}/redeliver","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","webhook-endpoints","{{endpointId}}","deliveries","{{deliveryId}}","redeliver"]},"description":"Sends one old message again, for example after you fixed a bug."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 202\", () => pm.response.to.have.status(202));"]}}],"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/webhook-endpoints/{{endpointId}}/deliveries/{{deliveryId}}/redeliver","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","webhook-endpoints","{{endpointId}}","deliveries","{{deliveryId}}","redeliver"]}},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 202,\n  \"message\": \"Delivery queued again\",\n  \"data\": {\n    \"id\": \"48209\",\n    \"eventId\": \"5c0e7a1d-2b64-4f3a-9d18-7e6a4b3c2f10\",\n    \"eventType\": \"channel.booking.created\",\n    \"mode\": \"LIVE\",\n    \"status\": \"PENDING\",\n    \"attempts\": 0,\n    \"nextAttemptAt\": \"2026-12-10T12:45:00.000Z\",\n    \"lastError\": null,\n    \"occurredAt\": \"2026-12-10T12:00:00.000Z\",\n    \"deliveredAt\": \"2026-12-10T12:00:03.000Z\",\n    \"createdAt\": \"2026-12-10T12:00:02.000Z\",\n    \"payloadBytes\": 1668,\n    \"payloadAvailable\": true\n  }\n}"}]},{"name":"Send all messages again since a time","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/webhook-endpoints/{{endpointId}}/recover","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","webhook-endpoints","{{endpointId}}","recover"]},"body":{"mode":"raw","raw":"{\n  \"since\": \"{{dateFrom}}T00:00:00Z\"\n}","options":{"raw":{"language":"json"}}},"description":"Sends again every message from a time you choose until now. Use it after your server was down."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 202\", () => pm.response.to.have.status(202));"]}}],"response":[{"name":"Example answer: 202 Accepted","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/webhook-endpoints/{{endpointId}}/recover","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","webhook-endpoints","{{endpointId}}","recover"]},"body":{"mode":"raw","raw":"{\n  \"since\": \"{{dateFrom}}T00:00:00Z\"\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\": \"Recovery queued\",\n  \"data\": {\n    \"reset\": 2,\n    \"created\": 5,\n    \"scanned\": 41,\n    \"truncated\": false\n  }\n}"}]},{"name":"Pause the messages","request":{"method":"POST","header":[{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/webhook-endpoints/{{endpointId}}/pause","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","webhook-endpoints","{{endpointId}}","pause"]},"description":"Stops sending for now. Messages are kept, not lost."},"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":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/webhook-endpoints/{{endpointId}}/pause","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","webhook-endpoints","{{endpointId}}","pause"]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"Webhook endpoint paused\",\n  \"data\": {\n    \"id\": 7,\n    \"mode\": \"live\",\n    \"url\": \"https://example.com/zimmerstack/webhooks\",\n    \"description\": \"Bookings and channel alerts for our PMS\",\n    \"apiVersion\": \"2026-09-01\",\n    \"eventTypes\": [\n      \"channel.booking.created\",\n      \"channel.booking.modified\",\n      \"channel.booking.cancelled\",\n      \"channel.sync.alert\",\n      \"channel.sync.recovered\"\n    ],\n    \"includeGuestContact\": false,\n    \"status\": \"PAUSED\",\n    \"statusReason\": \"Paused by the vendor\",\n    \"secretVersion\": 1,\n    \"previousSecretExpiresAt\": null,\n    \"notifyEmail\": null,\n    \"createdAt\": \"2026-12-10T09:30:00.000Z\",\n    \"updatedAt\": \"2026-12-10T12:30:00.000Z\",\n    \"lastStoppedAt\": \"2026-12-10T12:30:00.000Z\",\n    \"health\": {\n      \"state\": \"paused\",\n      \"consecutiveFailures\": 0,\n      \"failingSince\": null,\n      \"lastSuccessAt\": \"2026-12-10T12:00:03.000Z\",\n      \"lastFailureAt\": null,\n      \"lastErrorMessage\": null\n    }\n  }\n}"}]},{"name":"Start the messages again","request":{"method":"POST","header":[{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/webhook-endpoints/{{endpointId}}/resume","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","webhook-endpoints","{{endpointId}}","resume"]},"description":"Starts sending again. The messages kept during the pause go out first, oldest 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":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/webhook-endpoints/{{endpointId}}/resume","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","webhook-endpoints","{{endpointId}}","resume"]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"Webhook endpoint resumed\",\n  \"data\": {\n    \"id\": 7,\n    \"mode\": \"live\",\n    \"url\": \"https://example.com/zimmerstack/webhooks\",\n    \"description\": \"Bookings and channel alerts for our PMS\",\n    \"apiVersion\": \"2026-09-01\",\n    \"eventTypes\": [\n      \"channel.booking.created\",\n      \"channel.booking.modified\",\n      \"channel.booking.cancelled\",\n      \"channel.sync.alert\",\n      \"channel.sync.recovered\"\n    ],\n    \"includeGuestContact\": false,\n    \"status\": \"ACTIVE\",\n    \"statusReason\": null,\n    \"secretVersion\": 1,\n    \"previousSecretExpiresAt\": null,\n    \"notifyEmail\": null,\n    \"createdAt\": \"2026-12-10T09:30:00.000Z\",\n    \"updatedAt\": \"2026-12-10T12:40:00.000Z\",\n    \"lastStoppedAt\": \"2026-12-10T12:30:00.000Z\",\n    \"health\": {\n      \"state\": \"healthy\",\n      \"consecutiveFailures\": 0,\n      \"failingSince\": null,\n      \"lastSuccessAt\": \"2026-12-10T12:00:03.000Z\",\n      \"lastFailureAt\": null,\n      \"lastErrorMessage\": null\n    },\n    \"heldEvents\": 3\n  }\n}"}]},{"name":"Change the signing secret","request":{"method":"POST","header":[{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/webhook-endpoints/{{endpointId}}/rotate-secret","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","webhook-endpoints","{{endpointId}}","rotate-secret"]},"description":"Makes a new signing secret. The old one keeps working for 24 hours."},"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":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/webhook-endpoints/{{endpointId}}/rotate-secret","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","webhook-endpoints","{{endpointId}}","rotate-secret"]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"Signing secret rotated\",\n  \"data\": {\n    \"secret\": \"whsec_…\",\n    \"secretVersion\": 2,\n    \"previousExpiresAt\": \"2026-12-11T12:50:00.000Z\"\n  }\n}"}]},{"name":"Delete a webhook endpoint","request":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/webhook-endpoints/{{addedEndpointId}}","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","webhook-endpoints","{{addedEndpointId}}"]},"description":"Deletes the webhook endpoint that the first request of this folder added. No message goes to that address again, and the list of messages sent to it is removed too. It cannot be undone. Postman deletes only the endpoint this folder made, never one you typed into endpointId. You may skip this request and keep the endpoint. In this file it is sent with a test key only, so no live endpoint is deleted by mistake. The same request works with a live key."},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["if (!String(pm.variables.get(\"apiKey\") || \"\").startsWith(\"zsk_test_\")) {","  const zsWhy = \"Not sent. This request works with a test key only: your key must start with zsk_test_. With a live key it would delete a live webhook endpoint, and your real hotels' events would stop reaching your server.\";","  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);","}","if (!pm.collectionVariables.get(\"addedEndpointId\")) {","  const zsWhy = \"Send the request that adds an endpoint first: this request deletes only the endpoint it 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);","if (pm.response.code === 200) {","  // Nothing may name a deleted endpoint.","  if (pm.collectionVariables.get(\"endpointId\") === pm.collectionVariables.get(\"addedEndpointId\")) pm.collectionVariables.set(\"endpointId\", \"\");","  pm.collectionVariables.set(\"addedEndpointId\", \"\");","}"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/webhook-endpoints/{{addedEndpointId}}","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","webhook-endpoints","{{addedEndpointId}}"]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"Webhook endpoint deleted\",\n  \"data\": {\n    \"id\": 7,\n    \"deleted\": true\n  }\n}"}]}]},{"name":"15. Bills and support","description":"Read your own invoices, and write to support, from your software. Reading a bill changes nothing and pays nothing. Send the support requests with a TEST key: a ticket made with a live key reaches our support team.","item":[{"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 hotels."},"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}"}]},{"name":"Get what you owe","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/billing","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","billing"]},"description":"Shows what is unpaid, how many hotels you may add, and any money you paid ahead. Your key needs the scope billing:read."},"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/billing","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","billing"]}},"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    \"billed\": true,\n    \"currency\": \"INR\",\n    \"outstanding\": {\n      \"amount\": \"3765.38\",\n      \"amountMinor\": 376538,\n      \"openInvoices\": 1,\n      \"oldestDueAt\": \"2027-01-10T18:29:59.999Z\"\n    },\n    \"onboardingFee\": {\n      \"state\": \"PAID\",\n      \"amount\": \"50.00\",\n      \"currency\": \"USD\",\n      \"invoiceNumber\": \"ZS/26-27/0398\"\n    },\n    \"quota\": {\n      \"applies\": true,\n      \"why\": \"ACTIVE\",\n      \"startsOn\": \"2027-01-01\",\n      \"properties\": {\n        \"allowed\": 10,\n        \"used\": 4,\n        \"free\": 6\n      },\n      \"next\": {\n        \"properties\": 20,\n        \"payAhead\": \"54.00\",\n        \"payAheadMinor\": 5400,\n        \"currency\": \"USD\"\n      },\n      \"setByZimmerStack\": false,\n      \"rule\": \"Your quota is how many hotels you may have live at once. It rises by itself as your paid invoices add up, in levels; paying ahead opens the next level the same day; past the top level ZimmerStack sets it by hand: ask with a support ticket (POST /support-tickets). A hotel past the quota is refused when you add it (409 BILLING_SETUP_REQUIRED, details.reason QUOTA_FULL).\"\n    },\n    \"paidAhead\": {\n      \"amount\": \"0.00\",\n      \"amountMinor\": 0,\n      \"currency\": \"INR\"\n    },\n    \"unpaidInvoiceDays\": {\n      \"applies\": true,\n      \"dueDay\": 10,\n      \"pauseDay\": 25,\n      \"endAfterDays\": 5,\n      \"rule\": \"A monthly invoice is due by the end of day 10 of its month. Still unpaid on day 25, your hotels' booking-site connections are paused (nothing is deleted, and they are switched back on the day it is paid). 5 days after that the hotels' service is ended.\",\n      \"unpaid\": [\n        {\n          \"invoiceNumber\": \"ZS/26-27/0441\",\n          \"dueAt\": \"2027-01-10T18:29:59.999Z\",\n          \"pauseAt\": \"2027-01-24T18:30:00.000Z\",\n          \"endAt\": \"2027-01-29T18:30:00.000Z\",\n          \"automatic\": true\n        }\n      ]\n    },\n    \"atCost\": {\n      \"currency\": \"USD\",\n      \"what\": \"The channel manager includes a number of room types and rate plans with a hotel and charges for each one above it. When ZimmerStack raises a hotel's limit past that number, what the hotel then holds above it is recorded here at the channel manager's own price.\",\n      \"invoicing\": \"BY_ZIMMERSTACK\",\n      \"rule\": \"A recorded line is added to one of your invoices by our team, at cost. It then reads INVOICED, with the invoice's number once that invoice is issued.\",\n      \"recorded\": \"3.00\",\n      \"recordedMinor\": 300,\n      \"items\": [\n        {\n          \"month\": \"2027-01\",\n          \"property\": {\n            \"id\": 62,\n            \"name\": \"Hill View Retreat\"\n          },\n          \"kind\": \"room_types\",\n          \"what\": \"3 room types above the 20 included\",\n          \"held\": 23,\n          \"included\": 20,\n          \"quantity\": 3,\n          \"allowedLimit\": 26,\n          \"unitPrice\": \"1.00\",\n          \"amount\": \"3.00\",\n          \"amountMinor\": 300,\n          \"status\": \"RECORDED\",\n          \"standing\": \"ADDED_BY_ZIMMERSTACK\",\n          \"invoiceNumber\": null\n        }\n      ]\n    }\n  }\n}"}]},{"name":"List your invoices","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/billing/invoices","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","billing","invoices"]},"description":"Shows each invoice, before and after tax."},"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/billing/invoices","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","billing","invoices"]}},"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    \"billed\": true,\n    \"items\": [\n      {\n        \"id\": \"inv_8f3k2m9q\",\n        \"number\": \"ZS/26-27/0441\",\n        \"about\": \"MONTH\",\n        \"periodStart\": \"2027-01-01\",\n        \"periodEnd\": \"2027-01-31\",\n        \"currency\": \"INR\",\n        \"status\": \"OPEN\",\n        \"issuedAt\": \"2027-01-03T04:30:00.000Z\",\n        \"dueAt\": \"2027-01-10T18:29:59.999Z\",\n        \"paidAt\": null,\n        \"overdue\": true,\n        \"beforeTax\": \"3191.00\",\n        \"beforeTaxMinor\": 319100,\n        \"tax\": \"574.38\",\n        \"taxMinor\": 57438,\n        \"total\": \"3765.38\",\n        \"totalMinor\": 376538,\n        \"paid\": \"0.00\",\n        \"credited\": \"0.00\",\n        \"balance\": \"3765.38\",\n        \"balanceMinor\": 376538,\n        \"lines\": [\n          {\n            \"description\": \"The Lantern House — Channel manager, January 2027 (live on 2027-01-01) · Hotel, 24 rooms · USD 9.00 at INR 88.6344 per USD (RBI reference rate, 31 Dec 2026)\",\n            \"hotel\": null,\n            \"quantity\": 1,\n            \"kind\": \"RECURRING\",\n            \"total\": \"941.30\",\n            \"totalMinor\": 94130\n          }\n        ]\n      }\n    ],\n    \"payments\": [\n      {\n        \"receivedAt\": \"2026-12-08T09:12:44.000Z\",\n        \"amount\": \"5229.43\",\n        \"amountMinor\": 522943,\n        \"currency\": \"INR\",\n        \"method\": \"RAZORPAY\",\n        \"invoiceNumber\": \"ZS/26-27/0398\"\n      }\n    ]\n  }\n}"}]},{"name":"Get your next invoice","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/billing/next-invoice","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","billing","next-invoice"]},"description":"Shows what your next invoice will be made of, hotel by hotel."},"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/billing/next-invoice","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","billing","next-invoice"]}},"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    \"billed\": true,\n    \"asOf\": \"2027-01-12T06:00:00.000Z\",\n    \"month\": \"2027-02\",\n    \"counting\": \"LIVE_ON_FIRST\",\n    \"currency\": \"INR\",\n    \"lines\": [\n      {\n        \"hotel\": \"The Lantern House\",\n        \"propertyId\": 61,\n        \"module\": \"CM\",\n        \"priced\": \"PRICE_LIST\",\n        \"priceList\": {\n          \"id\": 1,\n          \"name\": \"Channel manager API\",\n          \"currency\": \"USD\"\n        },\n        \"band\": \"Hotel\",\n        \"rooms\": 24,\n        \"declaredRooms\": null,\n        \"hotelsInBand\": 3,\n        \"unit\": \"HOTEL\",\n        \"quantity\": 1,\n        \"unitPrice\": \"797.71\",\n        \"unitPriceMinor\": 79771,\n        \"amount\": \"797.71\",\n        \"amountMinor\": 79771,\n        \"conversion\": {\n          \"fromCurrency\": \"USD\",\n          \"listUnitPrice\": \"9.00\",\n          \"rate\": \"88.6344\",\n          \"rateDate\": \"2027-01-08\"\n        }\n      },\n      {\n        \"hotel\": \"Ganga Guest House\",\n        \"propertyId\": 63,\n        \"module\": \"CM\",\n        \"priced\": \"PRICE_LIST\",\n        \"priceList\": {\n          \"id\": 1,\n          \"name\": \"Channel manager API\",\n          \"currency\": \"USD\"\n        },\n        \"band\": \"Homestay & VR\",\n        \"rooms\": 8,\n        \"declaredRooms\": 6,\n        \"hotelsInBand\": 1,\n        \"unit\": \"ROOM\",\n        \"quantity\": 8,\n        \"unitPrice\": \"88.63\",\n        \"unitPriceMinor\": 8863,\n        \"amount\": \"709.04\",\n        \"amountMinor\": 70904,\n        \"conversion\": {\n          \"fromCurrency\": \"USD\",\n          \"listUnitPrice\": \"1.00\",\n          \"rate\": \"88.6344\",\n          \"rateDate\": \"2027-01-08\"\n        }\n      }\n    ],\n    \"beforeTax\": \"1506.75\",\n    \"beforeTaxMinor\": 150675,\n    \"taxAddedOnTop\": true,\n    \"paidAhead\": {\n      \"amount\": \"0.00\",\n      \"amountMinor\": 0\n    },\n    \"notes\": [],\n    \"conversionMissing\": null,\n    \"atCost\": {\n      \"invoicing\": \"BY_ZIMMERSTACK\",\n      \"rule\": \"A recorded line is added to one of your invoices by our team, at cost. It then reads INVOICED, with the invoice's number once that invoice is issued.\",\n      \"lines\": [\n        {\n          \"month\": \"2027-01\",\n          \"property\": {\n            \"id\": 62,\n            \"name\": \"Hill View Retreat\"\n          },\n          \"kind\": \"room_types\",\n          \"what\": \"3 room types above the 20 included\",\n          \"usdAmount\": \"3.00\",\n          \"usdAmountMinor\": 300,\n          \"amount\": null,\n          \"amountMinor\": null\n        }\n      ],\n      \"conversion\": null,\n      \"conversionMissing\": null,\n      \"beforeTax\": \"0.00\",\n      \"beforeTaxMinor\": 0\n    }\n  }\n}"}]},{"name":"Write to support (open a ticket)","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/support-tickets","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","support-tickets"]},"body":{"mode":"raw","raw":"{\n  \"severity\": \"question\",\n  \"subject\": \"Postman test ticket\",\n  \"message\": \"Opened from the Postman collection to see the shape of a ticket and its diagnostic. Nothing is wrong.\"\n}","options":{"raw":{"language":"json"}}},"description":"Opens a support ticket. Your key needs the scope support:write."},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["if (!String(pm.variables.get(\"apiKey\") || \"\").startsWith(\"zsk_test_\")) {","  const zsWhy = \"Not sent. This request works with a test key only: your key must start with zsk_test_. A ticket opened with a live key reaches our support team for real.\";","  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":["const body = pm.response.json();","pm.test(\"201 with the ticket and its diagnostic\", () => { pm.response.to.have.status(201); pm.expect(body.data.id).to.be.a(\"number\"); pm.expect(body.data.diagnostic).to.be.an(\"object\"); });","if (body && body.data && body.data.id) pm.collectionVariables.set(\"ticketId\", String(body.data.id));"]}}],"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/support-tickets","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","support-tickets"]},"body":{"mode":"raw","raw":"{\n  \"severity\": \"question\",\n  \"subject\": \"Postman test ticket\",\n  \"message\": \"Opened from the Postman collection to see the shape of a ticket and its diagnostic. Nothing is wrong.\"\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\": \"Support ticket opened\",\n  \"data\": {\n    \"id\": 1042,\n    \"subject\": \"Bookings from Booking.com stopped arriving on two hotels\",\n    \"severity\": \"many_hotels\",\n    \"status\": \"OPEN\",\n    \"mode\": \"live\",\n    \"properties\": {\n      \"all\": false,\n      \"ids\": [\n        61,\n        62\n      ]\n    },\n    \"openedAt\": \"2026-11-22T04:05:12.000Z\",\n    \"lastMessageAt\": \"2026-11-22T04:05:12.000Z\",\n    \"firstReply\": {\n      \"target\": \"Within 60 minutes, 9:00 to 21:00 IST, every day. Opened outside those hours: by 10:00 IST.\",\n      \"dueAt\": \"2026-11-22T05:05:12.000Z\",\n      \"repliedAt\": null\n    },\n    \"closedAt\": null,\n    \"closedBy\": null,\n    \"messages\": [\n      {\n        \"id\": 3310,\n        \"author\": \"partner\",\n        \"body\": \"Since about 09:10 IST no new Booking.com booking has reached our webhook for either hotel. Their extranets show three bookings made since then. Other booking sites are arriving.\",\n        \"createdAt\": \"2026-11-22T04:05:12.000Z\"\n      }\n    ],\n    \"diagnostic\": {\n      \"takenAt\": \"2026-11-22T04:05:12.000Z\",\n      \"windowHours\": 24,\n      \"requests\": {\n        \"refused\": 3,\n        \"byCode\": [\n          {\n            \"status\": 429,\n            \"errorCode\": \"RATE_LIMITED\",\n            \"count\": 3,\n            \"lastAt\": \"2026-11-22T03:58:40.000Z\"\n          }\n        ],\n        \"lastRefused\": [\n          {\n            \"requestId\": \"rq_mi8x3k2a9f2c1a7e\",\n            \"at\": \"2026-11-22T03:58:40.000Z\",\n            \"method\": \"PUT\",\n            \"route\": \"/rates\",\n            \"status\": 429,\n            \"errorCode\": \"RATE_LIMITED\",\n            \"propertyId\": 61\n          }\n        ]\n      },\n      \"hotels\": [\n        {\n          \"propertyId\": 61,\n          \"inventory\": {\n            \"pendingCells\": 0,\n            \"outOfSyncSince\": null,\n            \"lastOkAt\": \"2026-11-22T04:03:55.000Z\"\n          },\n          \"rates\": {\n            \"waitingCells\": 0,\n            \"refusedCells\": 0,\n            \"lastPushAt\": \"2026-11-22T03:59:02.000Z\",\n            \"lastErrorAt\": null,\n            \"consecutiveFailures\": 0\n          },\n          \"channelIssues\": [\n            {\n              \"event\": \"disconnect_channel\",\n              \"count\": 1,\n              \"since\": \"2026-11-22T03:41:18.000Z\"\n            }\n          ],\n          \"shield\": {\n            \"level\": \"CLEAR\",\n            \"until\": null\n          },\n          \"usage\": {\n            \"cellsChanged\": 1138,\n            \"refusals\": 0,\n            \"refusedByChannelManager\": 0\n          }\n        }\n      ],\n      \"hotelsNotShown\": 0,\n      \"partner\": {\n        \"shield\": {\n          \"level\": \"CLEAR\",\n          \"until\": null\n        },\n        \"usage\": {\n          \"cellsChanged\": 20914,\n          \"refusals\": 0,\n          \"refusedByChannelManager\": 0\n        }\n      },\n      \"webhooks\": [\n        {\n          \"endpointId\": 7,\n          \"status\": \"ACTIVE\",\n          \"consecutiveFailures\": 0,\n          \"failingSince\": null,\n          \"lastSuccessAt\": \"2026-11-22T03:39:50.000Z\",\n          \"lastFailureAt\": null,\n          \"deliveries\": {\n            \"delivered\": 212,\n            \"failed\": 0,\n            \"pending\": 0\n          },\n          \"lastFailed\": []\n        }\n      ],\n      \"incomplete\": []\n    }\n  }\n}"}]},{"name":"List your tickets","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/support-tickets","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","support-tickets"]},"description":"Shows the tickets you opened."},"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/support-tickets","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","support-tickets"]}},"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        \"id\": 1042,\n        \"subject\": \"Bookings from Booking.com stopped arriving on two hotels\",\n        \"severity\": \"many_hotels\",\n        \"status\": \"OPEN\",\n        \"mode\": \"live\",\n        \"properties\": {\n          \"all\": false,\n          \"ids\": [\n            61,\n            62\n          ]\n        },\n        \"openedAt\": \"2026-11-22T04:05:12.000Z\",\n        \"lastMessageAt\": \"2026-11-22T08:52:31.000Z\",\n        \"firstReply\": {\n          \"target\": \"Within 60 minutes, 9:00 to 21:00 IST, every day. Opened outside those hours: by 10:00 IST.\",\n          \"dueAt\": \"2026-11-22T05:05:12.000Z\",\n          \"repliedAt\": \"2026-11-22T04:31:40.000Z\"\n        },\n        \"closedAt\": null,\n        \"closedBy\": null\n      }\n    ],\n    \"nextCursor\": null\n  }\n}"}]},{"name":"Get one ticket","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/support-tickets/{{ticketId}}","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","support-tickets","{{ticketId}}"]},"description":"Shows one ticket with every message in 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/support-tickets/{{ticketId}}","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","support-tickets","{{ticketId}}"]}},"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\": 1042,\n    \"subject\": \"Bookings from Booking.com stopped arriving on two hotels\",\n    \"severity\": \"many_hotels\",\n    \"status\": \"OPEN\",\n    \"mode\": \"live\",\n    \"properties\": {\n      \"all\": false,\n      \"ids\": [\n        61,\n        62\n      ]\n    },\n    \"openedAt\": \"2026-11-22T04:05:12.000Z\",\n    \"lastMessageAt\": \"2026-11-22T04:05:12.000Z\",\n    \"firstReply\": {\n      \"target\": \"Within 60 minutes, 9:00 to 21:00 IST, every day. Opened outside those hours: by 10:00 IST.\",\n      \"dueAt\": \"2026-11-22T05:05:12.000Z\",\n      \"repliedAt\": null\n    },\n    \"closedAt\": null,\n    \"closedBy\": null,\n    \"messages\": [\n      {\n        \"id\": 3310,\n        \"author\": \"partner\",\n        \"body\": \"Since about 09:10 IST no new Booking.com booking has reached our webhook for either hotel. Their extranets show three bookings made since then. Other booking sites are arriving.\",\n        \"createdAt\": \"2026-11-22T04:05:12.000Z\"\n      }\n    ],\n    \"diagnostic\": {\n      \"takenAt\": \"2026-11-22T04:05:12.000Z\",\n      \"windowHours\": 24,\n      \"requests\": {\n        \"refused\": 3,\n        \"byCode\": [\n          {\n            \"status\": 429,\n            \"errorCode\": \"RATE_LIMITED\",\n            \"count\": 3,\n            \"lastAt\": \"2026-11-22T03:58:40.000Z\"\n          }\n        ],\n        \"lastRefused\": [\n          {\n            \"requestId\": \"rq_mi8x3k2a9f2c1a7e\",\n            \"at\": \"2026-11-22T03:58:40.000Z\",\n            \"method\": \"PUT\",\n            \"route\": \"/rates\",\n            \"status\": 429,\n            \"errorCode\": \"RATE_LIMITED\",\n            \"propertyId\": 61\n          }\n        ]\n      },\n      \"hotels\": [\n        {\n          \"propertyId\": 61,\n          \"inventory\": {\n            \"pendingCells\": 0,\n            \"outOfSyncSince\": null,\n            \"lastOkAt\": \"2026-11-22T04:03:55.000Z\"\n          },\n          \"rates\": {\n            \"waitingCells\": 0,\n            \"refusedCells\": 0,\n            \"lastPushAt\": \"2026-11-22T03:59:02.000Z\",\n            \"lastErrorAt\": null,\n            \"consecutiveFailures\": 0\n          },\n          \"channelIssues\": [\n            {\n              \"event\": \"disconnect_channel\",\n              \"count\": 1,\n              \"since\": \"2026-11-22T03:41:18.000Z\"\n            }\n          ],\n          \"shield\": {\n            \"level\": \"CLEAR\",\n            \"until\": null\n          },\n          \"usage\": {\n            \"cellsChanged\": 1138,\n            \"refusals\": 0,\n            \"refusedByChannelManager\": 0\n          }\n        }\n      ],\n      \"hotelsNotShown\": 0,\n      \"partner\": {\n        \"shield\": {\n          \"level\": \"CLEAR\",\n          \"until\": null\n        },\n        \"usage\": {\n          \"cellsChanged\": 20914,\n          \"refusals\": 0,\n          \"refusedByChannelManager\": 0\n        }\n      },\n      \"webhooks\": [\n        {\n          \"endpointId\": 7,\n          \"status\": \"ACTIVE\",\n          \"consecutiveFailures\": 0,\n          \"failingSince\": null,\n          \"lastSuccessAt\": \"2026-11-22T03:39:50.000Z\",\n          \"lastFailureAt\": null,\n          \"deliveries\": {\n            \"delivered\": 212,\n            \"failed\": 0,\n            \"pending\": 0\n          },\n          \"lastFailed\": []\n        }\n      ],\n      \"incomplete\": []\n    }\n  }\n}"}]},{"name":"Reply on a ticket","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/support-tickets/{{ticketId}}/messages","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","support-tickets","{{ticketId}}","messages"]},"body":{"mode":"raw","raw":"{\n  \"message\": \"A second message, from the Postman collection.\"\n}","options":{"raw":{"language":"json"}}},"description":"Adds your message to a ticket."},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"status 201\", () => pm.response.to.have.status(201));"]}}],"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/support-tickets/{{ticketId}}/messages","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","support-tickets","{{ticketId}}","messages"]},"body":{"mode":"raw","raw":"{\n  \"message\": \"A second message, from the Postman collection.\"\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\": \"Message added\",\n  \"data\": {\n    \"id\": 1042,\n    \"subject\": \"Bookings from Booking.com stopped arriving on two hotels\",\n    \"severity\": \"many_hotels\",\n    \"status\": \"OPEN\",\n    \"mode\": \"live\",\n    \"properties\": {\n      \"all\": false,\n      \"ids\": [\n        61,\n        62\n      ]\n    },\n    \"openedAt\": \"2026-11-22T04:05:12.000Z\",\n    \"lastMessageAt\": \"2026-11-22T08:52:31.000Z\",\n    \"firstReply\": {\n      \"target\": \"Within 60 minutes, 9:00 to 21:00 IST, every day. Opened outside those hours: by 10:00 IST.\",\n      \"dueAt\": \"2026-11-22T05:05:12.000Z\",\n      \"repliedAt\": \"2026-11-22T04:31:40.000Z\"\n    },\n    \"closedAt\": null,\n    \"closedBy\": null,\n    \"messages\": [\n      {\n        \"id\": 3310,\n        \"author\": \"partner\",\n        \"body\": \"Since about 09:10 IST no new Booking.com booking has reached our webhook for either hotel. Their extranets show three bookings made since then. Other booking sites are arriving.\",\n        \"createdAt\": \"2026-11-22T04:05:12.000Z\"\n      },\n      {\n        \"id\": 3311,\n        \"author\": \"zimmerstack\",\n        \"body\": \"Booking.com signed both hotels out at 09:11 IST. Both are connected again since 09:58 IST, and the three bookings made in between have reached your webhook. Write here if anything is still missing.\",\n        \"createdAt\": \"2026-11-22T04:31:40.000Z\"\n      },\n      {\n        \"id\": 3312,\n        \"author\": \"partner\",\n        \"body\": \"It started again at 14:20 IST on hotel 61 only.\",\n        \"createdAt\": \"2026-11-22T08:52:31.000Z\"\n      }\n    ],\n    \"diagnostic\": {\n      \"takenAt\": \"2026-11-22T04:05:12.000Z\",\n      \"windowHours\": 24,\n      \"requests\": {\n        \"refused\": 3,\n        \"byCode\": [\n          {\n            \"status\": 429,\n            \"errorCode\": \"RATE_LIMITED\",\n            \"count\": 3,\n            \"lastAt\": \"2026-11-22T03:58:40.000Z\"\n          }\n        ],\n        \"lastRefused\": [\n          {\n            \"requestId\": \"rq_mi8x3k2a9f2c1a7e\",\n            \"at\": \"2026-11-22T03:58:40.000Z\",\n            \"method\": \"PUT\",\n            \"route\": \"/rates\",\n            \"status\": 429,\n            \"errorCode\": \"RATE_LIMITED\",\n            \"propertyId\": 61\n          }\n        ]\n      },\n      \"hotels\": [\n        {\n          \"propertyId\": 61,\n          \"inventory\": {\n            \"pendingCells\": 0,\n            \"outOfSyncSince\": null,\n            \"lastOkAt\": \"2026-11-22T04:03:55.000Z\"\n          },\n          \"rates\": {\n            \"waitingCells\": 0,\n            \"refusedCells\": 0,\n            \"lastPushAt\": \"2026-11-22T03:59:02.000Z\",\n            \"lastErrorAt\": null,\n            \"consecutiveFailures\": 0\n          },\n          \"channelIssues\": [\n            {\n              \"event\": \"disconnect_channel\",\n              \"count\": 1,\n              \"since\": \"2026-11-22T03:41:18.000Z\"\n            }\n          ],\n          \"shield\": {\n            \"level\": \"CLEAR\",\n            \"until\": null\n          },\n          \"usage\": {\n            \"cellsChanged\": 1138,\n            \"refusals\": 0,\n            \"refusedByChannelManager\": 0\n          }\n        }\n      ],\n      \"hotelsNotShown\": 0,\n      \"partner\": {\n        \"shield\": {\n          \"level\": \"CLEAR\",\n          \"until\": null\n        },\n        \"usage\": {\n          \"cellsChanged\": 20914,\n          \"refusals\": 0,\n          \"refusedByChannelManager\": 0\n        }\n      },\n      \"webhooks\": [\n        {\n          \"endpointId\": 7,\n          \"status\": \"ACTIVE\",\n          \"consecutiveFailures\": 0,\n          \"failingSince\": null,\n          \"lastSuccessAt\": \"2026-11-22T03:39:50.000Z\",\n          \"lastFailureAt\": null,\n          \"deliveries\": {\n            \"delivered\": 212,\n            \"failed\": 0,\n            \"pending\": 0\n          },\n          \"lastFailed\": []\n        }\n      ],\n      \"incomplete\": []\n    }\n  }\n}"}]},{"name":"Close your ticket","request":{"method":"POST","header":[{"key":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/support-tickets/{{ticketId}}/close","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","support-tickets","{{ticketId}}","close"]},"description":"Closes a ticket you opened."},"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":"x-idempotency-key","value":"{{$guid}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/support-tickets/{{ticketId}}/close","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","support-tickets","{{ticketId}}","close"]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"body":"{\n  \"statuscode\": 200,\n  \"message\": \"Support ticket closed\",\n  \"data\": {\n    \"id\": 1042,\n    \"subject\": \"Bookings from Booking.com stopped arriving on two hotels\",\n    \"severity\": \"many_hotels\",\n    \"status\": \"CLOSED\",\n    \"mode\": \"live\",\n    \"properties\": {\n      \"all\": false,\n      \"ids\": [\n        61,\n        62\n      ]\n    },\n    \"openedAt\": \"2026-11-22T04:05:12.000Z\",\n    \"lastMessageAt\": \"2026-11-22T08:52:31.000Z\",\n    \"firstReply\": {\n      \"target\": \"Within 60 minutes, 9:00 to 21:00 IST, every day. Opened outside those hours: by 10:00 IST.\",\n      \"dueAt\": \"2026-11-22T05:05:12.000Z\",\n      \"repliedAt\": \"2026-11-22T04:31:40.000Z\"\n    },\n    \"closedAt\": \"2026-11-22T10:15:00.000Z\",\n    \"closedBy\": \"partner\",\n    \"messages\": [\n      {\n        \"id\": 3310,\n        \"author\": \"partner\",\n        \"body\": \"Since about 09:10 IST no new Booking.com booking has reached our webhook for either hotel. Their extranets show three bookings made since then. Other booking sites are arriving.\",\n        \"createdAt\": \"2026-11-22T04:05:12.000Z\"\n      },\n      {\n        \"id\": 3311,\n        \"author\": \"zimmerstack\",\n        \"body\": \"Booking.com signed both hotels out at 09:11 IST. Both are connected again since 09:58 IST, and the three bookings made in between have reached your webhook. Write here if anything is still missing.\",\n        \"createdAt\": \"2026-11-22T04:31:40.000Z\"\n      },\n      {\n        \"id\": 3312,\n        \"author\": \"partner\",\n        \"body\": \"It started again at 14:20 IST on hotel 61 only.\",\n        \"createdAt\": \"2026-11-22T08:52:31.000Z\"\n      }\n    ],\n    \"diagnostic\": {\n      \"takenAt\": \"2026-11-22T04:05:12.000Z\",\n      \"windowHours\": 24,\n      \"requests\": {\n        \"refused\": 3,\n        \"byCode\": [\n          {\n            \"status\": 429,\n            \"errorCode\": \"RATE_LIMITED\",\n            \"count\": 3,\n            \"lastAt\": \"2026-11-22T03:58:40.000Z\"\n          }\n        ],\n        \"lastRefused\": [\n          {\n            \"requestId\": \"rq_mi8x3k2a9f2c1a7e\",\n            \"at\": \"2026-11-22T03:58:40.000Z\",\n            \"method\": \"PUT\",\n            \"route\": \"/rates\",\n            \"status\": 429,\n            \"errorCode\": \"RATE_LIMITED\",\n            \"propertyId\": 61\n          }\n        ]\n      },\n      \"hotels\": [\n        {\n          \"propertyId\": 61,\n          \"inventory\": {\n            \"pendingCells\": 0,\n            \"outOfSyncSince\": null,\n            \"lastOkAt\": \"2026-11-22T04:03:55.000Z\"\n          },\n          \"rates\": {\n            \"waitingCells\": 0,\n            \"refusedCells\": 0,\n            \"lastPushAt\": \"2026-11-22T03:59:02.000Z\",\n            \"lastErrorAt\": null,\n            \"consecutiveFailures\": 0\n          },\n          \"channelIssues\": [\n            {\n              \"event\": \"disconnect_channel\",\n              \"count\": 1,\n              \"since\": \"2026-11-22T03:41:18.000Z\"\n            }\n          ],\n          \"shield\": {\n            \"level\": \"CLEAR\",\n            \"until\": null\n          },\n          \"usage\": {\n            \"cellsChanged\": 1138,\n            \"refusals\": 0,\n            \"refusedByChannelManager\": 0\n          }\n        }\n      ],\n      \"hotelsNotShown\": 0,\n      \"partner\": {\n        \"shield\": {\n          \"level\": \"CLEAR\",\n          \"until\": null\n        },\n        \"usage\": {\n          \"cellsChanged\": 20914,\n          \"refusals\": 0,\n          \"refusedByChannelManager\": 0\n        }\n      },\n      \"webhooks\": [\n        {\n          \"endpointId\": 7,\n          \"status\": \"ACTIVE\",\n          \"consecutiveFailures\": 0,\n          \"failingSince\": null,\n          \"lastSuccessAt\": \"2026-11-22T03:39:50.000Z\",\n          \"lastFailureAt\": null,\n          \"deliveries\": {\n            \"delivered\": 212,\n            \"failed\": 0,\n            \"pending\": 0\n          },\n          \"lastFailed\": []\n        }\n      ],\n      \"incomplete\": []\n    }\n  }\n}"}]}]},{"name":"16. 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":"17. Delete a room type or a rate plan","description":"Deleting cannot be undone. So this folder first creates one room type and one rate plan of its own, and then deletes only those two. Your other room types and rate plans are never touched. A delete names what it deletes in one of two ways: 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 two requests delete a room type or a rate plan of any hotel your key works for. On a real hotel with a connected OTA, a delete is refused with 409 CATALOG_CONFLICT while an OTA still has a match to it. A person removes every match first, in the partner portal. A sandbox has no OTA, so you do not see this here. Your key needs the scope catalog:write.","item":[{"name":"Create a room type to delete","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":"Creates one room type, only so that this folder has one to delete. Its ref is postman-room. Postman saves its id as testRoomTypeId."},"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 a rate plan to delete","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":"Creates one rate plan for that room type, only so that this folder has one to delete. Its ref is postman-plan. Postman saves its id as testRatePlanId."},"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":"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":"18. Remove a hotel","description":"Removes the hotel that folder 2 created. You may skip this folder and keep the hotel: a hotel made with a test key costs nothing. With a live key the same request removes a real hotel you added and ends its service. The checklist in the partner portal reads the test hotels you have now. If you remove this one, the steps it ticked there may lose their tick. After the removal, Postman works on your first hotel again. Then send folder 1 again, so that hotel's ids are saved.","item":[{"name":"Remove a hotel","request":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/properties/{{addedPropertyId}}?confirm={{addedPropertyName}}","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","properties","{{addedPropertyId}}"],"query":[{"key":"confirm","value":"{{addedPropertyName}}","description":"The hotel's exact name, as the request that created it answered"}]},"description":"Removes the hotel for good. Postman sends its exact name, so no other hotel is removed by mistake. Then propertyId is emptied, and Postman picks your first hotel again by itself. In this file it is sent with a test key only, so no real hotel is removed by mistake."},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["if (!String(pm.variables.get(\"apiKey\") || \"\").startsWith(\"zsk_test_\")) {","  const zsWhy = \"Not sent. This request works with a test key only: your key must start with zsk_test_. With a live key it would remove a real hotel and end its service. How a real hotel is added: https://docs.zimmerstack.com/partner/first-hotel\";","  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);","}","if (!pm.collectionVariables.get(\"addedPropertyId\")) {","  const zsWhy = \"Send Create a hotel first: this request removes only the hotel it 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(\"removed\", () => pm.expect(pm.response.json().data.removed).to.be.true);","if (pm.response.code === 200) {","  // Nothing may name a removed hotel: with propertyId empty the collection picks your first hotel by itself.","  if (pm.collectionVariables.get(\"propertyId\") === pm.collectionVariables.get(\"addedPropertyId\")) pm.collectionVariables.set(\"propertyId\", \"\");","  pm.collectionVariables.set(\"addedPropertyId\", \"\"); pm.collectionVariables.set(\"addedPropertyName\", \"\");","}"]}}],"response":[{"name":"Example answer: 200 OK","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/api/v1/connect-api/v1/properties/{{addedPropertyId}}?confirm={{addedPropertyName}}","host":["{{baseUrl}}"],"path":["api","v1","connect-api","v1","properties","{{addedPropertyId}}"],"query":[{"key":"confirm","value":"{{addedPropertyName}}","description":"The hotel's exact name, as the request that created it answered"}]}},"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 sandbox is removed.\",\n  \"data\": {\n    \"id\": 9001,\n    \"name\": \"The Lantern House (sandbox)\",\n    \"removed\": true,\n    \"replay\": false,\n    \"sandbox\": true,\n    \"access\": \"CLOSED\",\n    \"billing\": {\n      \"state\": \"NOT_BILLED\",\n      \"cancelledAt\": null\n    },\n    \"channelManager\": {\n      \"state\": \"NOT_CONNECTED\",\n      \"step\": null,\n      \"stillConnected\": null\n    }\n  }\n}"}]}]}]}