{"openapi":"3.1.0","info":{"title":"ZimmerStack Connect API","version":"v1","description":"Two kinds of key: a HOTEL KEY for one property, and a software vendor's COMPANY KEY for every hotel it may act on, which names the hotel on each request in the X-ZS-Property header (GET /properties lists them). Two integrations, one key format. CHANNEL MANAGER (scopes ari:*, catalog:write, channel-bookings:read): your PMS owns the room types and rate plans, pushes availability, rates and restrictions; ZimmerStack fans them out to every connected OTA, and OTA bookings reach you through the outbound webhooks (GET /api/v1/public/webhooks/contract) or GET /channel-bookings. When the hotel also sells on its own website through the ZimmerStack booking engine, those bookings reach you the same way under their own names: the direct.booking.* webhooks and GET /direct-bookings (scope direct-bookings:read). PMS (scopes bookings:*): your OWN booking engine hands the reservation your website sold to the ZimmerStack PMS; inventory and the channels update exactly as for a front-desk booking. A channel-manager-only tenant has no booking endpoints on purpose: a walk-in in its PMS becomes an absolute availability count here.","contact":{"name":"ZimmerStack support","email":"support@zimmerstack.com"}},"servers":[{"url":"https://api.zimmerstack.com","description":"production"}],"x-zimmerstack":{"auth":{"scheme":"Authorization: Bearer zsk_live_… (zsk_test_… on a sandbox)","keyShape":"zsk_live_ (or zsk_test_ on a sandbox) + 40 letters and digits + a 6-character checksum (the CRC32 of everything before it, in base 62), so a key can be told from a look-alike without asking us; a key minted before 22 Nov 2026 is zsk_live_ + 43 base64url characters and keeps working until it is rotated; shown once at creation; a hotel key = one property, a company key = a software vendor's hotels","rotation":"Every key can be rotated, company keys included: the new key is shown once and the old one keeps answering for 24 hours, then answers 401 API_KEY_REVOKED. A person rotates a hotel's own keys in ZimmerStack (Developers) and a partner's company keys in the partner portal (Developers); no API route does either. The keys a partner made on a hotel are rotated in the partner portal too, or by API with a company key that holds keys:manage (x-zimmerstack.hotelKeys).","leaks":"A key reported as found in a public place (for example by GitHub secret scanning in a public repository) is revoked at once and its holder is emailed: requests on it answer 401 API_KEY_REVOKED. Mint a new key and keep it in your server's settings, never in code.","requestLog":"Every request made with a key is kept 7 days and read back with GET /requests: time, route, status, error code, address, duration and request id; never a body or a guest's data.","never":["query string","x-api-key","user-api-key"],"expiry":"The owner may give a key an end of life (expiresAt); past it every request is 401 API_KEY_EXPIRED, like a revocation. A rotation keeps the life.","scopes":[{"scope":"ari:read","does":"Read availability, rates, restrictions and sync state from our record"},{"scope":"ari:write","does":"Set availability, rates and restrictions (pushed to every connected channel)"},{"scope":"catalog:write","does":"Create and change room types and rate plans (created on the channel manager and mirrored there)"},{"scope":"channel-modifiers:write","does":"Set a channel's price modifier: one change moves every price sent to that channel from then on"},{"scope":"channel-bookings:read","does":"Read the OTA bookings the channel manager delivered to this property, in the webhook's shape"},{"scope":"direct-bookings:read","does":"Read the bookings guests made on the hotel's own website (our booking engine), in the webhook's shape"},{"scope":"direct-bookings:cancel","does":"Cancel a booking guests made on the hotel's own website and refund it: per the booking's policy, in full, or not at all"},{"scope":"bookings:read","does":"Read bookings this key created"},{"scope":"bookings:write","does":"Create and cancel bookings in the PMS (inventory updates and reaches the channels)"},{"scope":"bookings:payments","does":"Record a payment on a booking it creates (needs bookings:write)"},{"scope":"properties:write","does":"Add a hotel, and change or remove a hotel you added (a software partner's company key only)"},{"scope":"webhooks:manage","does":"Manage your company webhook endpoints: create, change, pause, test, recover, redeliver and read deliveries (a software partner's company key only)"},{"scope":"channels:connect","does":"Make one-time connect links (the hotel's own person connects one booking site on our hosted page), and manage a hotel's OTA connections: re-map rooms and rate plans, disconnect one, open the channel console (a software partner's company key only)"},{"scope":"keys:manage","does":"List, mint, rotate and revoke the keys you made on a hotel; never a company key (a software partner's company key only)"},{"scope":"billing:read","does":"Read your own invoices, what your next invoice is made of, money paid ahead and your property quota (a software partner's company key only; nothing here pays or changes anything)"},{"scope":"support:write","does":"Open a support ticket, read your tickets, add a message and close one (a software partner's company key only)"}],"scopeRule":"A key holds the scopes the owner granted at creation (editable later without rotating). Every route names the one scope it needs; a key without it is 403 SCOPE_MISSING. bookings:payments needs bookings:write. GET /property echoes this key's scopes.","allowlist":"Optional per key: up to 20 IPv4/IPv6 addresses or CIDR ranges. Set it to your servers' egress addresses: a request from anywhere else is 403 IP_NOT_ALLOWED, counts against the address's authentication budget, and is shown to the owner.","whichKey":"Two kinds of key, one API. A HOTEL KEY is bound to one property: the property is implicit and needs no header (an X-ZS-Property naming another property is 404 PROPERTY_NOT_FOUND). A COMPANY KEY belongs to a software vendor and reaches every hotel the vendor may act on: name the hotel on every request with the X-ZS-Property header, its id from GET /properties. GET /properties says which kind you hold (keyKind). Routes, bodies and answers are the same for both.","companyKey":{"header":"X-ZS-Property: <property id from GET /properties>","missingHeader":"400 PROPERTY_REQUIRED, whose data.details lists the first 20 hotels your key reaches (properties: id and name; total: how many there are), so you can pick one at once (the routes about your own company need no header and read none: GET /properties, POST /properties, PATCH /properties/{propertyId}, DELETE /properties/{propertyId}, /properties/{propertyId}/keys, /properties/{propertyId}/channels/{channelId}/mapping and /disconnect, /properties/{propertyId}/channel-console, /webhook-endpoints, /connect-links, /billing, /support-tickets; GET /requests, GET /limits and GET /status answer for the company without it and for one hotel with it)","notReachable":"404 PROPERTY_NOT_FOUND for a property the key may not act on, whether or not it exists","reach":"A live company key reaches the hotels the vendor enrolled and any hotel whose owner allowed the vendor (Integrations → Software vendors, by the vendor code); the owner can revoke that any time and the key stops reaching the hotel at once. A test company key reaches the vendor's own sandboxes only.","scopes":"The channel-manager scopes (ari:read, ari:write, catalog:write, channel-modifiers:write, channel-bookings:read, direct-bookings:read, direct-bookings:cancel) and the six scopes only a company key can hold, none ticked by default: properties:write (add, change and remove hotels), webhooks:manage (manage your company webhook endpoints, x-zimmerstack.webhookEndpoints), channels:connect (make one-time connect links, x-zimmerstack.connectLinks, and manage a hotel's OTA connections: re-map, disconnect, the channel console, x-zimmerstack.channelConnections), keys:manage (the keys you made on a hotel, x-zimmerstack.hotelKeys), billing:read (read your own invoices and quota, x-zimmerstack.billing) and support:write (your own support tickets, x-zimmerstack.support). A hotel's PMS bookings (bookings:*) need that hotel's own key.","properties":"With properties:write a company key adds a hotel (POST /properties), changes the name and address of a hotel it added (PATCH /properties/{propertyId}) and removes a hotel it added (DELETE /properties/{propertyId}): x-zimmerstack.properties. A key that holds only properties:write acts on no hotel (403 SCOPE_MISSING when it names one). In the partner portal a key with this scope is made by the account owner or an Admin, the people who may add a hotel there. Two more of the six are given only by someone who holds the matching power there: channels:connect by someone who may act for a hotel, billing:read by someone who may open the Billing page. Whoever may make a company key in Developers may give webhooks:manage, keys:manage and support:write.","budgets":"Each hotel keeps its own per-key and per-property budgets; the company key also has one budget across all its hotels (x-zimmerstack.limits.companyRequestsPerMinute).","writes":"An ARI write to a hotel whose local rates and availability are not the channels' source of truth is 409 ARI_NOT_AUTHORITATIVE (a hotel a vendor enrols is born the source of truth).","minted":"In the ZimmerStack partner portal (Developers), shown once, revoked there.","webhooks":"One company webhook endpoint (made in the partner portal, Developers, or by API with the webhooks:manage scope: /webhook-endpoints) receives the booking and sync events of every hotel a live company key reaches; each event names its hotel in property.id. A sandbox endpoint receives the vendor's sandbox. A pause holds events: they are kept (up to 90 days) and sent in order on resume. A suspension (72 hours of failures) drops them; Recover since (the portal, or POST /webhook-endpoints/{endpointId}/recover) replays them, for a hotels endpoint only from hotels that allowed the vendor when the event happened and still do."}},"dates":"YYYY-MM-DD, calendar dates in the property's timezone (GET /property); a stay occupies [checkIn, checkOut) — the checkout day is not a night","money":"one shape both ways: an amount is SENT and RETURNED in major units with the property's currency, as a number or a decimal string with the currency's own decimals (rate \"4500.50\"), beside currency and decimals; rateMinor stays, in hundredths of the major unit (x-zimmerstack.moneyByCurrency)","moneyByCurrency":{"units":"ISO 4217 gives every currency a MAJOR unit (the rupee, the euro, the yen) and a MINOR unit, with 0, 2 or 3 decimals between them. Amounts here are major units. Every field named …Minor is one HUNDREDTH of the major unit in EVERY currency, which is the ISO minor unit only where the currency has two decimals: a rate of 15000 yen reads rateMinor 1500000, a rate of 1850000 rupiah reads 185000000. Divide by 100, always; or read the decimal string beside it (rate), which needs no arithmetic.","decimals":"What your software sends is kept exactly, to the currency's own decimals (GET /property decimals): 4500.50 rupees is stored and returned as 4500.50, 89.50 euros as 89.50. A currency without decimals (yen, dong) is whole: a price sent with a fraction (15000.5, or \"15000.50\") is rounded and named in the answer's rounded list. A price sent as a NUMBER with more decimals than the currency has (4500.505 in rupees) is rounded half up to them and named too. A price sent as a decimal STRING carries at most two decimals: one with three or more (\"4500.505\") is refused, 400 VALIDATION, and nothing is written. A currency with three decimals (the Gulf dinars) is kept as a whole amount for now, and the answer says so. Nothing is rounded silently. How a hotel keeps a price its own staff type on ZimmerStack's screens is the hotel's setting and never changes what you send.","table":[{"currency":"INR","name":"Indian rupee","decimals":2,"send":"4500.50","rate":"4500.50","rateMinor":450050,"isoMinorUnits":450050,"note":"rateMinor is the ISO minor unit here","example":"INR 4500.50"},{"currency":"EUR","name":"Euro","decimals":2,"send":"89.50","rate":"89.50","rateMinor":8950,"isoMinorUnits":8950,"note":"rateMinor is the ISO minor unit here","example":"EUR 89.50"},{"currency":"USD","name":"US dollar","decimals":2,"send":129.99,"rate":"129.99","rateMinor":12999,"isoMinorUnits":12999,"note":"rateMinor is the ISO minor unit here","example":"USD 129.99"},{"currency":"IDR","name":"Indonesian rupiah","decimals":2,"send":1850000,"rate":"1850000.00","rateMinor":185000000,"isoMinorUnits":185000000,"note":"rateMinor is the ISO minor unit here","example":"IDR 1850000.00"},{"currency":"JPY","name":"Japanese yen","decimals":0,"send":15000,"rate":"15000","rateMinor":1500000,"isoMinorUnits":null,"note":"rateMinor is hundredths, not the ISO minor unit: read rate","example":"JPY 15000"},{"currency":"KWD","name":"Kuwaiti dinar","decimals":3,"send":45.75,"rate":"46.000","rateMinor":4600,"isoMinorUnits":null,"note":"KWD prices cannot be kept to three decimal places yet, so the price is kept as a whole amount.","example":"KWD 46.000"}],"limits":"A rate may be 1 to 21474836 in any currency. A rate plan's standing price and a modifier's fixed step are limited to 1000000 for a property selling in rupees, and to 21474836 for any other currency.","taxes":"A hotel outside India that has confirmed its own tax lines gets them on a booking: POST /bookings reads nightlyRateIncludesTaxes. Default true: the rate is what the guest paid online; it is split into the lines and totalAmount does not move, except for a line the hotel collects at the property itself (a city tax per person a night), which is added and paid at the hotel. false: the rate is as the hotel sells it at its desk; lines the hotel adds on top are added, lines it keeps inside its prices stay inside. The booking answers carry taxes; always read totalAmount from the answer. A hotel in India, or one with no confirmed lines, has no taxes block and refuses false with TAXES_NOT_CONFIGURED; a hotel whose taxes all sit inside its prices refuses false with TAXES_INSIDE_RATES.","channelBookings":"An OTA may send a booking in another currency than the property's. Nothing is converted: amounts.receivedCurrency names the currency the amounts are in, and is absent on every other booking. A booking's taxes block carries the hotel's own lines once it is assessed."},"samplesByPlace":{"lisbon":{"about":"A guest house in Lisbon. It sells in euros, so a price keeps its cents (89.50 stays 89.50), and it has confirmed Portugal's accommodation VAT, which sits inside its prices and is worked out night by night.","property":{"id":204,"name":"Casa do Miradouro","timezone":"Europe/Lisbon","currency":"EUR"},"catalog":{"currency":"EUR","roomTypes":[{"id":731,"ref":"rt-double","name":"Double Room, River View","maxAdults":2,"maxChildren":1,"roomKind":"room","sync":"IN_SYNC"}],"ratePlans":[{"id":1502,"ref":"rp-bb","roomTypeId":731,"name":"Bed and breakfast","mealPlan":"CP","occupancy":2,"currency":"EUR","refundable":true,"sync":"IN_SYNC"}]},"ratesWrite":{"updates":[{"ratePlanId":1502,"dateFrom":"2026-12-01","dateTo":"2027-03-31","rate":"89.50","currency":"EUR"},{"ratePlanId":1502,"dateFrom":"2026-12-01","dateTo":"2027-03-31","days":["fr","sa"],"rate":112,"currency":"EUR"}]},"ratePlansUpsert":{"ratePlans":[{"ref":"rp-bb","roomTypeRef":"rt-double","name":"Bed and breakfast","mealPlan":"CP","occupancy":2,"refundable":true,"defaultRate":"89.50"}]},"bookingCreate":{"externalReference":"WEB-2026-LX-0412","checkIn":"2026-12-20","checkOut":"2026-12-23","currency":"EUR","guest":{"name":"Inês Carvalho","phone":"+351912345678","email":"ines@example.com","notes":"Arriving by train, around 21:00"},"rooms":[{"roomTypeId":731,"ratePlanId":1502,"adults":2,"nightlyRate":"89.50"}],"payment":{"amount":"89.50","method":"CARD","reference":"pay_LxQ81n4"}},"bookingView":{"bookingId":61877,"reference":"CM-4TQ8ZK2P","externalReference":"WEB-2026-LX-0412","status":"UPCOMING","checkIn":"2026-12-20","checkOut":"2026-12-23","nights":3,"currency":"EUR","totalAmount":"268.50","totalPaid":"89.50","balanceDue":"179.00","guest":{"name":"Inês Carvalho","phone":"+351912345678","email":"ines@example.com"},"rooms":[{"bookingRoomId":120441,"roomTypeId":731,"ratePlanId":1502,"mealPlan":"CP","adults":2,"children":0,"nightlyRate":"89.50","status":"UPCOMING"}],"inventory":{"eventRecorded":true,"channelManager":true,"pushedBy":"inventory-drain"},"replay":false,"createdAt":"2026-11-17T10:02:44.118Z","cancelledAt":null,"taxes":{"nightlyRateIncludesTaxes":true,"lines":[{"code":"PT-VAT-ACCOMMODATION","name":"VAT 6%","kind":"TAX","includedInRate":true,"amount":"15.21"}],"includedInRates":"15.21","addedToTotal":"0.00"}}},"bali":{"about":"A villa in Ubud, Bali. It sells in rupiah: a nightly price is seven digits and has no cents in practice. It has confirmed a 10% service charge and the 10% hotel tax (PBJT) on the room plus service, both added on top, and its booking engine sends prices before taxes.","property":{"id":318,"name":"Villa Sawah Ubud","timezone":"Asia/Makassar","currency":"IDR"},"catalog":{"currency":"IDR","roomTypes":[{"id":902,"ref":"rt-villa","name":"One-Bedroom Pool Villa","maxAdults":2,"maxChildren":1,"roomKind":"room","sync":"IN_SYNC"}],"ratePlans":[{"id":2210,"ref":"rp-ro","roomTypeId":902,"name":"Room only","mealPlan":"EP","occupancy":2,"currency":"IDR","refundable":true,"sync":"IN_SYNC"}]},"ratesWrite":{"updates":[{"ratePlanId":2210,"dateFrom":"2026-12-01","dateTo":"2027-03-31","rate":1850000,"currency":"IDR"},{"ratePlanId":2210,"dateFrom":"2026-12-24","dateTo":"2027-01-02","rate":"2400000","currency":"IDR"}]},"ratePlansUpsert":{"ratePlans":[{"ref":"rp-ro","roomTypeRef":"rt-villa","name":"Room only","mealPlan":"EP","occupancy":2,"refundable":true,"defaultRate":1850000}]},"bookingCreate":{"externalReference":"WEB-2026-UBD-0077","checkIn":"2026-12-10","checkOut":"2026-12-12","currency":"IDR","nightlyRateIncludesTaxes":false,"guest":{"name":"Made Wirawan","phone":"+6281234567890","email":"made@example.com"},"rooms":[{"roomTypeId":902,"ratePlanId":2210,"adults":2,"nightlyRate":1850000}]},"bookingView":{"bookingId":70312,"reference":"CM-9HX3PW7N","externalReference":"WEB-2026-UBD-0077","status":"UPCOMING","checkIn":"2026-12-10","checkOut":"2026-12-12","nights":2,"currency":"IDR","totalAmount":"4477000.00","totalPaid":"0.00","balanceDue":"4477000.00","guest":{"name":"Made Wirawan","phone":"+6281234567890","email":"made@example.com"},"rooms":[{"bookingRoomId":131907,"roomTypeId":902,"ratePlanId":2210,"mealPlan":"EP","adults":2,"children":0,"nightlyRate":"1850000.00","status":"UPCOMING"}],"inventory":{"eventRecorded":true,"channelManager":true,"pushedBy":"inventory-drain"},"replay":false,"createdAt":"2026-11-17T03:40:09.552Z","cancelledAt":null,"taxes":{"nightlyRateIncludesTaxes":false,"lines":[{"code":"SERVICE_CHARGE","name":"Service charge 10%","kind":"FEE","includedInRate":false,"amount":"370000.00"},{"code":"ID-PBJT-PERHOTELAN","name":"Hotel tax (PBJT) 10%","kind":"TAX","includedInRate":false,"amount":"407000.00"}],"includedInRates":"0.00","addedToTotal":"777000.00"}}}},"writes":"absolute values, last write wins within a request, unchanged cells are dropped before anything is written","limits":{"requestsPerMinute":120,"writesPerMinute":30,"propertyRequestsPerMinute":300,"propertyWritesPerMinute":60,"propertyCellsPerMinute":20000,"ipRequestsPerMinute":240,"ipAuthFailuresPerMinute":20,"keyAuthFailuresPerMinute":5,"globalUnauthenticatedPerMinute":1200,"globalRequestsPerMinute":3000,"maxUpdatesPerRequest":1000,"maxCellsPerRequest":5000,"maxBodyBytes":1048576,"horizonDays":500,"bookingsPerMinute":20,"propertyBookingsPerMinute":40,"propertyBookingsPerDay":500,"directCancelsPerMinute":10,"propertyDirectCancelsPerDay":50,"companyRequestsPerMinute":1200,"maxNightsPerBooking":90},"bookings":{"who":"Hotels that run the ZimmerStack PMS and their OWN booking engine: hand us the reservation your website sold and it lands in the PMS exactly as a front-desk booking — guest, folio, inventory, channels.","pricing":"You price the stay. Send the nightly rate you charged per room; we store it and never re-quote. currency must equal the property's.","inventory":"Availability is checked inside the booking transaction under the property's inventory lock (a sold-out night is 409 NO_AVAILABILITY, nothing written). The inventory event commits with the booking; the drain pushes the new counts to every connected channel within seconds.","idempotency":"externalReference is YOUR reservation id and is unique per property: the same value again from the same key (or the key it was rotated from), while that booking is live, returns the same booking with HTTP 200 and replay: true. Use it on every retry. A reference another key already used on this property, or one that belongs to a booking you cancelled, is 409 EXTERNAL_REFERENCE_REUSED: after a cancel, the new stay needs a new reference.","payments":"A payment is recorded only when the key holds bookings:payments and never above the stay total. Nothing collected = omit payment; the desk collects at check-in.","guest":"By default the guest hears from YOUR site only; the owner can switch on our confirmation per property (admin → Developers → Settings).","cancel":"POST /bookings/{bookingId}/cancel cancels the whole booking and re-opens its nights on the channels; a booking already checked in is 409 BOOKING_NOT_CANCELLABLE. Date or room changes: cancel and re-create under a NEW externalReference (a modify endpoint is planned).","scope":"A key reads and cancels only the bookings it (or the key it was rotated from) created on its property; another key's, front-desk and OTA bookings are never visible (BOOKING_NOT_FOUND)."},"compatibility":{"promise":"v1 never breaks. It only grows: new routes, new optional request fields, new fields and new values in answers, new headers. Ignore what you do not know: an unknown field, an unknown data.code (treat it by its HTTP status), an unknown budget name in RateLimit.","neverWithoutNotice":"A route's path and method; a field's name, type and meaning; what is required and what is optional; a data.code and the HTTP status it comes with; the units of money and dates; the names key and key-writes in the RateLimit headers; the idempotency rules.","deprecation":"Something we would rather you stopped using is deprecated, not removed: it keeps working, and every answer that involved it carries Deprecation (RFC 9745: the instant it became deprecated, \"@\" and Unix seconds) and a Link with rel=\"deprecation\" to the page that names the replacement.","sunset":"A removal gets at least 12 months' notice: from the day it is announced (the changelog, an email to every partner with a live key, the compatibility page) every answer that involved it also carries Sunset (RFC 8594: the instant it stops working), never less than 12 months after the announcement.","numbers":"A budget's quota is a number, not a shape: it can change, and is announced in the changelog. Read RateLimit and GET /limits instead of hard-coding one. Tightening a budget live integrations are using gets notice like a removal.","versions":"There is no /v2 and no dated version per key: what comes next is an edition of v1, never a migration.","noticeMonths":12,"page":"https://docs.zimmerstack.com/compatibility","deprecations":[{"id":"rate-plan-default-rate-minor","what":"defaultRateMinor on PUT /catalog/rate-plans (the standing price in hundredths of the currency's unit)","use":"defaultRate: the same price in major units (4500 or \"4500.00\"), like every rate you send","deprecatedOn":"2026-11-16","sunsetAnnouncedOn":null,"sunsetOn":null,"headers":{"Deprecation":"@1794787200","Sunset":null}}]},"limitsTable":{"what":"Every budget and cap an integration can meet, one row each. kind budget: a window the key guard or a route measures. kind shield: a budget over an hour or a day (x-zimmerstack.shield); its quota is the least any property gets when atLeast is true. kind cap: the most one request may carry, or the most of a thing that may exist. GET /limits answers the same rows for your key with what is left and when it refills.","live":"GET /limits","rows":[{"scope":"api-address","header":"api-address","kind":"budget","per":"address, on each API machine","window":"60 s fixed","windowSeconds":60,"quota":1200,"unit":"requests","atLeast":false,"counts":"every request to any ZimmerStack API route from one address (an IPv6 /56 counts as one address), counted on each API machine: the guard in front of everything, the Connect API included"},{"scope":"ip","header":"ip","kind":"budget","per":"address","window":"60 s sliding","windowSeconds":60,"quota":240,"unit":"requests","atLeast":false,"counts":"requests from one address (an IPv6 /56 counts as one address) that carry no key verified from it in the last ten minutes, checked before the key is read. A key that has authenticated from that address is counted against its own budgets, not here"},{"scope":"ip-auth","header":"ip-auth","kind":"budget","per":"address","window":"60 s sliding","windowSeconds":60,"quota":20,"unit":"failed authentications","atLeast":false,"counts":"401 answers, and 403 IP_NOT_ALLOWED, to one address; past it the address's unverified requests are refused before any lookup. A key that authenticated from that address in the last ten minutes keeps working"},{"scope":"key-auth","header":"key-auth","kind":"budget","per":"address and key","window":"60 s sliding","windowSeconds":60,"quota":5,"unit":"failed authentications","atLeast":false,"counts":"401 and 403 IP_NOT_ALLOWED answers to one key (its first twelve characters) from one address; past it that key is refused from that address before any lookup, so one revoked key never uses up its address's budget"},{"scope":"global-unauthenticated","header":"global-unauthenticated","kind":"budget","per":"everyone without a verified key","window":"60 s sliding","windowSeconds":60,"quota":1200,"unit":"requests","atLeast":false,"counts":"requests from every address together that carry no recently verified key and so cost a key lookup: the most a flood of made-up keys can ask of the database"},{"scope":"requests","header":"key","kind":"budget","per":"key","window":"60 s sliding","windowSeconds":60,"quota":120,"unit":"requests","atLeast":false,"counts":"every request on one key"},{"scope":"writes","header":"key-writes","kind":"budget","per":"key","window":"60 s sliding","windowSeconds":60,"quota":30,"unit":"writes","atLeast":false,"counts":"every request on one key that is not a GET (PUT, POST and DELETE); a dry run (dryRun: true) is a write here"},{"scope":"property","header":"property","kind":"budget","per":"property (all its keys)","window":"60 s sliding","windowSeconds":60,"quota":300,"unit":"requests","atLeast":false,"counts":"every request on all of a property's keys together (five keys are not five budgets)"},{"scope":"property-writes","header":"property-writes","kind":"budget","per":"property (all its keys)","window":"60 s sliding","windowSeconds":60,"quota":60,"unit":"writes","atLeast":false,"counts":"every request that is not a GET on all of a property's keys together"},{"scope":"cells","header":"cells","kind":"budget","per":"property (all its keys)","window":"60 s sliding","windowSeconds":60,"quota":20000,"unit":"cells","atLeast":false,"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"},{"scope":"company","header":"company","kind":"budget","per":"company key (all its hotels)","window":"60 s sliding","windowSeconds":60,"quota":1200,"unit":"requests","atLeast":false,"counts":"every request on one company key, across all its hotels (each hotel keeps its own key and property budgets too)"},{"scope":"global","header":"global","kind":"budget","per":"everyone","window":"60 s sliding","windowSeconds":60,"quota":3000,"unit":"requests","atLeast":false,"counts":"every authenticated request on the Connect API, all keys together; test keys count in a ceiling of their own of the same size, so a sandbox never spends what live hotels use"},{"scope":"bookings","header":"bookings","kind":"budget","per":"key","window":"60 s sliding","windowSeconds":60,"quota":20,"unit":"bookings","atLeast":false,"counts":"POST /bookings on one key"},{"scope":"property-bookings","header":"property-bookings","kind":"budget","per":"property (all its keys)","window":"60 s sliding","windowSeconds":60,"quota":40,"unit":"bookings","atLeast":false,"counts":"POST /bookings on all of a property's keys together"},{"scope":"property-bookings-day","header":null,"kind":"budget","per":"property (all its keys)","window":"rolling 24 hours","windowSeconds":86400,"quota":500,"unit":"bookings","atLeast":false,"counts":"POST /bookings per property per ROLLING 24 HOURS (not per minute); the owner can raise it per property"},{"scope":"direct-cancels","header":"direct-cancels","kind":"budget","per":"key","window":"60 s sliding","windowSeconds":60,"quota":10,"unit":"cancels","atLeast":false,"counts":"POST /direct-bookings/{bookingId}/cancel on one key (a replay is not counted)"},{"scope":"property-direct-cancels-day","header":null,"kind":"budget","per":"property (all its keys)","window":"rolling 24 hours","windowSeconds":86400,"quota":50,"unit":"cancels","atLeast":false,"counts":"POST /direct-bookings/{bookingId}/cancel per property per ROLLING 24 HOURS (not per minute)"},{"scope":"cells-hour","header":null,"kind":"shield","per":"property (all its keys)","window":"one clock hour (UTC)","windowSeconds":3600,"quota":10000,"unit":"changed cells","atLeast":true,"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"},{"scope":"cells-day","header":null,"kind":"shield","per":"property (all its keys)","window":"rolling 24 hours","windowSeconds":86400,"quota":30000,"unit":"changed cells","atLeast":true,"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"},{"scope":"vendor-cells-day","header":null,"kind":"shield","per":"software vendor (all its hotels)","window":"rolling 24 hours","windowSeconds":86400,"quota":150000,"unit":"changed cells","atLeast":true,"counts":"a software vendor's changed cells across all its hotels (company keys and keys it minted). At least this many, plus 15,000 for each hotel it serves; a sandbox is never counted here"},{"scope":"shield-lane","header":null,"kind":"shield","per":"property (all its keys)","window":"one clock hour (UTC)","windowSeconds":3600,"quota":500,"unit":"closing cells","atLeast":true,"counts":"cells of writes that only close inventory, accepted while the property is out of budget or paused (the safety lane). At least this many; sixty nights of every room type"},{"scope":"structure-creates","header":null,"kind":"shield","per":"property","window":"60 s sliding","windowSeconds":60,"quota":20,"unit":"new room types and rate plans","atLeast":false,"counts":"new room types and rate plans per property; a row already here that the write puts on the channel manager counts when it gets there, never when the answer's notice says it could not; also the most one request may create (TOO_MANY_NEW_ENTITIES)"},{"scope":"structure-creates-day","header":null,"kind":"shield","per":"property","window":"rolling 24 hours","windowSeconds":86400,"quota":300,"unit":"new room types and rate plans","atLeast":false,"counts":"new room types and rate plans per property"},{"scope":"structure-edits-day","header":null,"kind":"shield","per":"property","window":"rolling 24 hours","windowSeconds":86400,"quota":300,"unit":"changed room types and rate plans","atLeast":false,"counts":"changed room types and rate plans per property"},{"scope":"structure-deletes-day","header":null,"kind":"shield","per":"property","window":"rolling 24 hours","windowSeconds":86400,"quota":60,"unit":"deleted room types and rate plans","atLeast":false,"counts":"deleted room types and rate plans per property"},{"scope":"vendor-structure-creates-day","header":null,"kind":"shield","per":"software vendor (all its hotels)","window":"rolling 24 hours","windowSeconds":86400,"quota":500,"unit":"new room types and rate plans","atLeast":true,"counts":"a software vendor's new room types and rate plans across all its hotels"},{"scope":"vendor-remote-properties-day","header":null,"kind":"shield","per":"software vendor","window":"rolling 24 hours","windowSeconds":86400,"quota":10,"unit":"hotels","atLeast":false,"counts":"hotels a software vendor puts on the channel manager for the first time"},{"scope":"vendor-property-removals-day","header":null,"kind":"shield","per":"software vendor","window":"rolling 24 hours","windowSeconds":86400,"quota":10,"unit":"hotels","atLeast":false,"counts":"hotels a software partner removes (DELETE /properties/{propertyId}, and Remove hotel in the partner portal); a sandbox is never counted"},{"scope":"partner-new-properties-hour","header":null,"kind":"shield","per":"software partner","window":"one hour","windowSeconds":3600,"quota":20,"unit":"hotels","atLeast":false,"counts":"hotels a partner adds, POST /properties and the partner portal's form together; a sandbox is never counted"},{"scope":"partner-new-sandboxes-hour","header":null,"kind":"shield","per":"software partner","window":"rolling hour","windowSeconds":3600,"quota":30,"unit":"sandboxes","atLeast":false,"counts":"sandboxes a partner makes with a test key (POST /properties), counted when one is made; the partner portal's own sandbox button is not counted"},{"scope":"connect-links-hour","header":null,"kind":"shield","per":"property","window":"rolling hour","windowSeconds":3600,"quota":10,"unit":"connect links","atLeast":false,"counts":"one-time connect links a software partner makes for one hotel (POST /connect-links), every booking site together; a link that was withdrawn or ran out still counts"},{"scope":"partner-connect-links-hour","header":null,"kind":"shield","per":"software partner","window":"rolling hour","windowSeconds":3600,"quota":120,"unit":"connect links","atLeast":false,"counts":"one-time connect links a software partner makes across all its hotels (POST /connect-links)"},{"scope":"modifier-changes-day","header":null,"kind":"shield","per":"property","window":"rolling 24 hours","windowSeconds":86400,"quota":6,"unit":"changes","atLeast":false,"counts":"changes to a channel's price modifier per property (PUT /channels/{channelId}/modifier); steps the channel already holds are not counted"},{"scope":"rate-resends-day","header":null,"kind":"shield","per":"property","window":"rolling 24 hours","windowSeconds":86400,"quota":3,"unit":"re-sends","atLeast":false,"counts":"times a property's prices are sent to the channels again (POST /rates/resend)"},{"scope":"full-sync-hour","header":null,"kind":"shield","per":"OTA connection","window":"rolling hour","windowSeconds":3600,"quota":1,"unit":"full sync","atLeast":false,"counts":"full syncs of one OTA connection (POST /channels/{channelId}/full-sync, and each connection of POST /full-sync); one the hotel's owner started in ZimmerStack counts too"},{"scope":"partner-support-tickets-day","header":null,"kind":"shield","per":"software partner","window":"rolling 24 hours","windowSeconds":86400,"quota":20,"unit":"tickets","atLeast":false,"counts":"support tickets a partner opens (POST /support-tickets), both key modes together; a replayed idempotency key is not counted"},{"scope":"partner-support-messages-hour","header":null,"kind":"shield","per":"software partner","window":"rolling hour","windowSeconds":3600,"quota":60,"unit":"messages","atLeast":false,"counts":"messages a partner adds to its support tickets (POST /support-tickets/{ticketId}/messages)"},{"scope":"maxUpdatesPerRequest","header":null,"kind":"cap","per":"request","window":"one request","windowSeconds":null,"quota":1000,"unit":"entries","atLeast":false,"counts":"entries in one updates array (400 TOO_MANY_UPDATES past it)"},{"scope":"maxCellsPerRequest","header":null,"kind":"cap","per":"request","window":"one request","windowSeconds":null,"quota":5000,"unit":"cells","atLeast":false,"counts":"cells (entity × night) one request may name after range expansion (400 TOO_MANY_CELLS past it)"},{"scope":"maxBodyBytes","header":null,"kind":"cap","per":"request","window":"one request","windowSeconds":null,"quota":1048576,"unit":"bytes","atLeast":false,"counts":"the JSON body; larger is 413 PAYLOAD_TOO_LARGE before a byte is validated"},{"scope":"horizonDays","header":null,"kind":"cap","per":"request","window":"one request","windowSeconds":null,"quota":500,"unit":"nights","atLeast":false,"counts":"the last writable night and the last bookable arrival: today + this many, in the property's calendar (400 HORIZON past it)"},{"scope":"maxNightsPerBooking","header":null,"kind":"cap","per":"request","window":"one request","windowSeconds":null,"quota":90,"unit":"nights","atLeast":false,"counts":"nights in one POST /bookings"},{"scope":"newEntitiesPerRequest","header":null,"kind":"cap","per":"request","window":"one request","windowSeconds":null,"quota":20,"unit":"new room types and rate plans","atLeast":false,"counts":"new room types or rate plans one structure write may create (400 TOO_MANY_NEW_ENTITIES past it)"},{"scope":"maxRoomTypes","header":null,"kind":"cap","per":"property","window":"one request","windowSeconds":null,"quota":18,"unit":"room types","atLeast":false,"counts":"live room types on a hotel (a vacation rental has figures of its own, on GET /limits): 409 CATALOG_LIMIT_REACHED past it"},{"scope":"maxRatePlans","header":null,"kind":"cap","per":"property","window":"one request","windowSeconds":null,"quota":180,"unit":"rate plans","atLeast":false,"counts":"live rate plans on a hotel: 409 CATALOG_LIMIT_REACHED past it"},{"scope":"maxActiveKeysPerProperty","header":null,"kind":"cap","per":"property","window":"one request","windowSeconds":null,"quota":5,"unit":"keys","atLeast":false,"counts":"active hotel keys on one property (409 KEY_LIMIT past it)"},{"scope":"maxActiveCompanyKeys","header":null,"kind":"cap","per":"software partner","window":"one request","windowSeconds":null,"quota":5,"unit":"keys","atLeast":false,"counts":"active company keys of one software partner"},{"scope":"maxSandboxes","header":null,"kind":"cap","per":"software partner","window":"one request","windowSeconds":null,"quota":5,"unit":"sandboxes","atLeast":false,"counts":"sandboxes one software partner may hold at once"},{"scope":"maxAllowedCidrs","header":null,"kind":"cap","per":"key","window":"one request","windowSeconds":null,"quota":20,"unit":"addresses or ranges","atLeast":false,"counts":"entries in one key's address allowlist"},{"scope":"idempotencyRetentionDays","header":null,"kind":"cap","per":"key","window":"one request","windowSeconds":null,"quota":7,"unit":"days","atLeast":false,"counts":"how long an x-idempotency-key replays its first answer"},{"scope":"maxSupportMessageChars","header":null,"kind":"cap","per":"request","window":"one request","windowSeconds":null,"quota":5000,"unit":"characters","atLeast":false,"counts":"characters in one support ticket message, the first included (400 VALIDATION past it)"},{"scope":"maxSupportTicketProperties","header":null,"kind":"cap","per":"request","window":"one request","windowSeconds":null,"quota":200,"unit":"hotels","atLeast":false,"counts":"hotels one support ticket may name in propertyIds; past it send allProperties (400 VALIDATION)"}]},"rateLimits":{"window":"60 s sliding, shared by every API machine; counters are exact, not per machine","scopes":[{"scope":"api-address","perMinute":1200,"counts":"every request to any ZimmerStack API route from one address (an IPv6 /56 counts as one address), counted on each API machine: the guard in front of everything, the Connect API included","header":"api-address","per":"address, on each API machine","window":"60 s fixed","windowSeconds":60},{"scope":"ip","perMinute":240,"counts":"requests from one address (an IPv6 /56 counts as one address) that carry no key verified from it in the last ten minutes, checked before the key is read. A key that has authenticated from that address is counted against its own budgets, not here","header":"ip","per":"address","window":"60 s sliding","windowSeconds":60},{"scope":"ip-auth","perMinute":20,"counts":"401 answers, and 403 IP_NOT_ALLOWED, to one address; past it the address's unverified requests are refused before any lookup. A key that authenticated from that address in the last ten minutes keeps working","header":"ip-auth","per":"address","window":"60 s sliding","windowSeconds":60},{"scope":"key-auth","perMinute":5,"counts":"401 and 403 IP_NOT_ALLOWED answers to one key (its first twelve characters) from one address; past it that key is refused from that address before any lookup, so one revoked key never uses up its address's budget","header":"key-auth","per":"address and key","window":"60 s sliding","windowSeconds":60},{"scope":"global-unauthenticated","perMinute":1200,"counts":"requests from every address together that carry no recently verified key and so cost a key lookup: the most a flood of made-up keys can ask of the database","header":"global-unauthenticated","per":"everyone without a verified key","window":"60 s sliding","windowSeconds":60},{"scope":"requests","perMinute":120,"counts":"every request on one key","header":"key","per":"key","window":"60 s sliding","windowSeconds":60},{"scope":"writes","perMinute":30,"counts":"every request on one key that is not a GET (PUT, POST and DELETE); a dry run (dryRun: true) is a write here","header":"key-writes","per":"key","window":"60 s sliding","windowSeconds":60},{"scope":"property","perMinute":300,"counts":"every request on all of a property's keys together (five keys are not five budgets)","header":"property","per":"property (all its keys)","window":"60 s sliding","windowSeconds":60},{"scope":"property-writes","perMinute":60,"counts":"every request that is not a GET on all of a property's keys together","header":"property-writes","per":"property (all its keys)","window":"60 s sliding","windowSeconds":60},{"scope":"cells","perMinute":20000,"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","header":"cells","per":"property (all its keys)","window":"60 s sliding","windowSeconds":60},{"scope":"company","perMinute":1200,"counts":"every request on one company key, across all its hotels (each hotel keeps its own key and property budgets too)","header":"company","per":"company key (all its hotels)","window":"60 s sliding","windowSeconds":60},{"scope":"global","perMinute":3000,"counts":"every authenticated request on the Connect API, all keys together; test keys count in a ceiling of their own of the same size, so a sandbox never spends what live hotels use","header":"global","per":"everyone","window":"60 s sliding","windowSeconds":60},{"scope":"bookings","perMinute":20,"counts":"POST /bookings on one key","header":"bookings","per":"key","window":"60 s sliding","windowSeconds":60},{"scope":"property-bookings","perMinute":40,"counts":"POST /bookings on all of a property's keys together","header":"property-bookings","per":"property (all its keys)","window":"60 s sliding","windowSeconds":60},{"scope":"property-bookings-day","perMinute":500,"counts":"POST /bookings per property per ROLLING 24 HOURS (not per minute); the owner can raise it per property","header":null,"per":"property (all its keys)","window":"rolling 24 hours","windowSeconds":86400},{"scope":"direct-cancels","perMinute":10,"counts":"POST /direct-bookings/{bookingId}/cancel on one key (a replay is not counted)","header":"direct-cancels","per":"key","window":"60 s sliding","windowSeconds":60},{"scope":"property-direct-cancels-day","perMinute":50,"counts":"POST /direct-bookings/{bookingId}/cancel per property per ROLLING 24 HOURS (not per minute)","header":null,"per":"property (all its keys)","window":"rolling 24 hours","windowSeconds":86400}],"address":"An address is one IPv4 address or one IPv6 /56. The ip, ip-auth and global-unauthenticated budgets are for requests we cannot name yet: a key that has authenticated from its address in the last ten minutes is counted against its own budgets (and its company's), not against them, and is never refused for another key's failures. A key that keeps failing is refused alone (key-auth) before it can use up its address's budget.","writes":"A write is every request that is not a GET: PUT, POST and DELETE count against the writes budgets alike.","headers":{"RateLimit-Policy":"on every answer, one quoted policy per budget the request was measured against, with its quota and its window in seconds, the key's own first — \"key\";q=120;w=60, \"key-writes\";q=30;w=60, \"property\";q=300;w=60, \"global\";q=3000;w=60","RateLimit":"on every answer, for the same budgets, what is left and the seconds until it has room — \"key\";r=117;t=42, \"key-writes\";r=29;t=42, \"property\";r=296;t=42, \"global\";r=2990;t=58","names":"The name in the header is the budget's data.scope, except the key's own two: requests is \"key\" and writes is \"key-writes\". A write route also carries its own minute budgets (cells, bookings, property-bookings, direct-cancels). The headers carry the budgets of a minute only: a budget over an hour or a day is not there, and GET /limits answers it.","Retry-After":"on every 429, whole seconds to wait; the body's data.scope says which budget refused, and its line in RateLimit reads r=0"},"onRefusal":"429 RATE_LIMITED. Wait Retry-After, then resend the same request. Never retry in a tight loop; never retry any other 4xx.","tooLarge":"413 when the JSON body exceeds 1048576 bytes; split the updates array","pace":["Batch: one PUT per resource carrying ranges (dateFrom..dateTo, optional days) — a 365-night calendar for three plans is a handful of updates, not a thousand","Send on change, not on a timer: unchanged cells are dropped and cost nothing, but they still spend your request budget","Read RateLimit on every answer and slow down when r approaches 0, instead of waiting for a 429","Reuse x-idempotency-key on a retry so a timed-out request can never land twice","Poll GET /batches/{batchId} and GET /sync no more than every 15 s; the push to the channels is asynchronous and bounded by the channel manager's own budget"],"channelManager":{"perHotelPerMinute":{"pricesAndStayRules":{"partnerAllowsPerMinute":10,"weSendAtMostPerMinute":8,"automaticPerMinute":6,"keptFor":"a person's own price edit in the hotel's app"},"availability":{"partnerAllowsPerMinute":10,"weSendAtMostPerMinute":8,"automaticPerMinute":6,"keptFor":"a guest's booking, so a booking never waits behind a big update"}},"whyAsynchronous":"Your 202 means the cells are in our record. We then send them on, at most 8 updates a minute for each hotel for prices and stay rules and at most 8 for availability (6 for automatic sends, the rest kept for a person's own price edit and for a guest's booking), so a full calendar takes minutes, never seconds, and is never lost. These are updates we send onward, not requests to this API: one carries many nights and room types. Our connectivity partner allows 10 of each a minute for one hotel, so we always stay under it.","whatWeDo":"We merge a hotel's changed cells into the fewest calls, drop what did not change, pace every call, stop before our connectivity partner's limit and wait when it says so. Every limit that protects it counts per hotel, all keys of the hotel together, so more keys give no more. You think only about the limits of this API."}},"shield":{"what":"On top of the per-minute budgets, every property has budgets over an hour and a day, hard limits on its structure, and a standing ZimmerStack can change. They exist because every changed cell is forwarded by the channel manager to every connected channel: an integration that re-sends, flaps or loops is the hotel's and the channels' problem within a minute. GET /property carries this property's own figures (limits), what it has used (usage) and where it stands (shield).","counted":"A budget counts CHANGED cells: cells whose value differs from our record. Re-sending a calendar we already hold costs nothing here. So send on change, in ranges.","calendar":{"what":"One full calendar of a property is (2 × its rate plans + its room types) × 500 nights: a price and a stay-rule cell for every plan night, an availability cell for every room-type night. The figures in the table are the least any property gets; a larger one gets whole calendars.","horizonDays":500,"perHour":2,"perDay":6,"vendorPerDayBase":150000,"vendorPerDayPerHotel":15000,"perProperty":"Every key on a property spends the same budget: a second key, or a company key beside a hotel key, is not a second budget."},"budgets":[{"scope":"cells-hour","window":"one clock hour (UTC)","floor":10000,"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"},{"scope":"cells-day","window":"rolling 24 hours","floor":30000,"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"},{"scope":"vendor-cells-day","window":"rolling 24 hours","floor":150000,"counts":"a software vendor's changed cells across all its hotels (company keys and keys it minted). At least this many, plus 15,000 for each hotel it serves; a sandbox is never counted here"},{"scope":"shield-lane","window":"one clock hour (UTC)","floor":500,"counts":"cells of writes that only close inventory, accepted while the property is out of budget or paused (the safety lane). At least this many; sixty nights of every room type"},{"scope":"structure-creates","window":"60 s sliding","floor":20,"counts":"new room types and rate plans per property; a row already here that the write puts on the channel manager counts when it gets there, never when the answer's notice says it could not; also the most one request may create (TOO_MANY_NEW_ENTITIES)"},{"scope":"structure-creates-day","window":"rolling 24 hours","floor":300,"counts":"new room types and rate plans per property"},{"scope":"structure-edits-day","window":"rolling 24 hours","floor":300,"counts":"changed room types and rate plans per property"},{"scope":"structure-deletes-day","window":"rolling 24 hours","floor":60,"counts":"deleted room types and rate plans per property"},{"scope":"vendor-structure-creates-day","window":"rolling 24 hours","floor":500,"counts":"a software vendor's new room types and rate plans across all its hotels"},{"scope":"vendor-remote-properties-day","window":"rolling 24 hours","floor":10,"counts":"hotels a software vendor puts on the channel manager for the first time"},{"scope":"vendor-property-removals-day","window":"rolling 24 hours","floor":10,"counts":"hotels a software partner removes (DELETE /properties/{propertyId}, and Remove hotel in the partner portal); a sandbox is never counted"},{"scope":"partner-new-properties-hour","window":"one hour","floor":20,"counts":"hotels a partner adds, POST /properties and the partner portal's form together; a sandbox is never counted"},{"scope":"partner-new-sandboxes-hour","window":"rolling hour","floor":30,"counts":"sandboxes a partner makes with a test key (POST /properties), counted when one is made; the partner portal's own sandbox button is not counted"},{"scope":"connect-links-hour","window":"rolling hour","floor":10,"counts":"one-time connect links a software partner makes for one hotel (POST /connect-links), every booking site together; a link that was withdrawn or ran out still counts"},{"scope":"partner-connect-links-hour","window":"rolling hour","floor":120,"counts":"one-time connect links a software partner makes across all its hotels (POST /connect-links)"},{"scope":"modifier-changes-day","window":"rolling 24 hours","floor":6,"counts":"changes to a channel's price modifier per property (PUT /channels/{channelId}/modifier); steps the channel already holds are not counted"},{"scope":"rate-resends-day","window":"rolling 24 hours","floor":3,"counts":"times a property's prices are sent to the channels again (POST /rates/resend)"},{"scope":"full-sync-hour","window":"rolling hour","floor":1,"counts":"full syncs of one OTA connection (POST /channels/{channelId}/full-sync, and each connection of POST /full-sync); one the hotel's owner started in ZimmerStack counts too"},{"scope":"partner-support-tickets-day","window":"rolling 24 hours","floor":20,"counts":"support tickets a partner opens (POST /support-tickets), both key modes together; a replayed idempotency key is not counted"},{"scope":"partner-support-messages-hour","window":"rolling hour","floor":60,"counts":"messages a partner adds to its support tickets (POST /support-tickets/{ticketId}/messages)"}],"caps":{"maxRoomTypes":18,"maxRatePlans":180,"why":"Each cap sits a tenth under what the channel manager includes for that kind of property before it bills extra, so an integration never runs a hotel into overage. GET /property carries this property's own caps.","byCategory":[{"category":"hotel","maxRoomTypes":18,"maxRatePlans":180,"ratePlansPerRoomType":null},{"category":"vacation rental","maxRoomTypes":45,"maxRatePlans":405,"ratePlansPerRoomType":9}],"onRefusal":"409 CATALOG_LIMIT_REACHED (details.limit, details.current, details.requested). Delete what is unused, or ask ZimmerStack support."},"onRefusal":"429 RATE_LIMITED with data.scope naming the budget and Retry-After in whole seconds: to the next clock hour for cells-hour, until enough of the day has aged out for a rolling day. Nothing was written. Wait, then send what still needs to change.","safetyLane":"A hotel must not oversell because its integration ran out of budget or was paused. A write that only CLOSES inventory (a lower availability count or 0, or stopSell / closedToArrival / closedToDeparture switched on, and nothing else in the request) is still accepted in both cases, against its own hourly allowance (at least 500 cells); its 202 carries lane: true. A write that opens inventory or changes a price waits.","priceBand":{"what":"PUT /rates takes prices in MAJOR units, and reads answer the same price as rate, a decimal string in major units (the older rateMinor beside it is hundredths of the major unit, which is not every currency's minor unit). A price below a tenth or above ten times its plan's standing price (the plan's defaultRate, or its room type's base rate) is not taken on trust: the whole request is 422 RATE_OUT_OF_BAND and nothing is written. A plan with no standing price is never judged.","minPct":10,"maxPct":1000,"wayOut":"If the price is meant, move the plan's standing price first (PUT /catalog/rate-plans defaultRate): the band moves with it. ZimmerStack support can set a property to warn only (the 202 then carries priceWarnings) or switch its band off; the hotel's owner asks for it."},"standing":{"levels":{"CLEAR":"Nothing held against the integration.","WATCH":"Something notable happened (a budget was used up). Nothing is refused.","PAUSED":"Only writes that close inventory are accepted (the safety lane); anything else is 429 RATE_LIMITED with data.scope shield-pause and a Retry-After that ends with the pause. Set automatically for a while when the channel manager refuses the integration's values or it uses up a budget on two of three days (15 minutes, then 1 hour, 6 hours, a day), or by ZimmerStack support until released.","SUSPENDED":"Every write is 403 WRITES_SUSPENDED until ZimmerStack support releases it."},"frozen":"503 WRITES_FROZEN with Retry-After: ZimmerStack has paused every integration's writes at once. Rare, short, and never your integration alone.","never":"Reads, GET /channel-bookings, webhooks and POST /bookings are never refused by any of this: a guest's reservation and its news always travel."},"rejectedValues":"A rate or restriction value the channel manager itself refuses is held, not re-sent: GET /sync counts it (rates.parkedCells), its batch reads failed with the reason, and the property's other cells keep landing. Send a corrected value for those nights.","sandbox":"A sandbox meets the same budgets, limits and band on its own property, so you learn them before going live. It is never frozen and never counts against your company's budgets."},"properties":{"what":"A software partner's company key adds a hotel, changes a hotel it added and removes a hotel it added, without the partner portal: POST /properties, PATCH /properties/{propertyId} and DELETE /properties/{propertyId}. Scope properties:write, which only a company key can hold; a hotel's own key is 403 COMPANY_KEY_REQUIRED. None of the three reads X-ZS-Property.","add":"POST /properties makes what the partner portal's \"Add a hotel\" form makes: a channel-manager hotel with its own owner account, its room types (1 to 20, each with one room-only rate plan at its defaultRate), on your invoice at your price. The owner gets their sign-in details by email, unless you turned that email off in the partner portal's Settings: then you hand them over from the portal. Your software never sees them. The answer is the hotel in GET /properties' shape: name its id in X-ZS-Property from then on.","afterAdding":"A hotel added with its room types is put on the channel manager when its billing starts (billing.state ACTIVE), usually before this request answers; channelManager says whether it is there. While it is false, a write for the hotel answers 409 CHANNEL_MANAGER_DISABLED: send its room types again with PUT /catalog/room-types (the same refs you gave here, or the same names, so they become those room types instead of a second set), or press Finish setup on the hotel's page in the partner portal. Either puts it there. Then send your other room types and rate plans, and your availability and rates.","change":"PATCH /properties/{propertyId} changes a hotel's name and its address (line1, city, state, postalCode): only the fields you send, and the answer is the hotel in GET /properties' shape with its address and changed, the fields whose stored value moved (empty when everything you sent was already stored). It never changes the hotel's country, currency, time zone, owner or tax id: a request that names one of them is 400 VALIDATION, and so is a request that sends nothing to change. It changes the hotel's record in ZimmerStack, not the name of a listing on an OTA. Only a hotel you added: one whose owner let you in is 409 PROPERTY_NOT_CHANGEABLE (data.details.reason OWNER_ALLOWED: its owner changes it), and a hotel you cannot reach is 404 PROPERTY_NOT_FOUND. Who pays for the hotel and what else it uses are not asked, unlike a removal. With a test key it changes one of your sandboxes, whose name keeps its ending, (sandbox). x-idempotency-key is optional here, as on every write but the add.","idempotency":"POST /properties needs x-idempotency-key (400 IDEMPOTENCY_KEY_INVALID without one): the same key never makes a second hotel, even when the first answer was lost. A test key and a live key never share a key's answer. A 4xx answer is kept under its key for 7 days, like every verdict: once you have changed what it asked for (your billing setup done, a sandbox removed), send the request under a new key. A 429 or a 503 is never kept: send the same request, with the same key, after Retry-After.","billing":"billing.state says where the new hotel's billing stands. ACTIVE: its billing has started and it is on your next monthly invoice (under the public price list your live hotels are counted on the 1st of each month, so the days before the next 1st are free). WAITING: the hotel is live and its billing has not started; billing.reason says why (SETUP, OVERDUE, UNPAID_LIMIT or REVIEW) and billing.message what to do. Before your first hotel, accept the price list and add your billing details in the partner portal (409 BILLING_SETUP_REQUIRED until then).","owner":"One owner account per email address. An address that already has an account is 409 OWNER_HAS_ACCOUNT: a hotel that exists already joins you when its owner enters your vendor code under Integrations.","remove":"DELETE /properties/{propertyId}?confirm=<the hotel's exact name> removes a hotel for good, in one call: its subscription is cancelled, then its channel connections, its rate plans, its room types and its listing are taken off the channel manager, your keys stop reaching it and nobody signs in to it any more. Its bookings and bills are kept. 200 when nothing is left on the channel manager; 202 when a step there is still pending, which ZimmerStack retries by itself (channelManager.state RETRYING, with the step and what is still connected). Call it again any time: once the hotel is gone the answer is 200 with replay: true and where it stands, and no confirm is needed.","whichHotels":"Only a hotel you added and pay for, that runs the channel manager alone and is the one property of its owner's account. Anything else is 409 PROPERTY_NOT_REMOVABLE, and data.details.reason says who can do it: OWNER_ALLOWED (its owner let you in: the owner removes your access) · NOT_BILLED_TO_YOU, OTHER_PRODUCTS, SHARES_ACCOUNT (ZimmerStack removes it: write to support). A hotel you cannot reach is 404 PROPERTY_NOT_FOUND.","refusals":"400 CONFIRMATION_MISMATCH: confirm is not the hotel's exact name. 503 PROPERTY_BUSY: a hotel of yours is being added or removed right now, one at a time; retry after Retry-After. 503 PROPERTY_BUSY with a Retry-After of an hour on a removal: it has started and could not finish, ZimmerStack has been told and finishes it, and nothing is needed from you; call again later for where it stands. 429 RATE_LIMITED with data.scope vendor-property-removals-day: the most hotels your company may remove in a day (10; a removal that had already started is finished whatever the day's count), partner-new-properties-hour: the most it may add in an hour (20), or partner-new-sandboxes-hour: the most sandboxes a test key may make in an hour (30). 503 PRICE_UNAVAILABLE: the hotel could not be priced just now; retry. 400 VALIDATION whose message says the request is held (data.details.reason): the hotel could not be created from a request already on file, so sending it again, under this key or a new one, will not help; write to ZimmerStack support.","sandbox":"With a test key (zsk_test_) the same two calls make and delete one of your sandboxes (up to 5 at once; 409 SANDBOX_LIMIT beyond, and at most 30 made in any hour; 429 RATE_LIMITED with data.scope partner-new-sandboxes-hour beyond): the body is checked exactly as a live one, the sandbox takes its room types, and nothing is billed or reaches a channel. Its name ends in (sandbox) and is at most 60 characters: confirm a delete with the name the answer returned."},"structure":{"what":"PUT /catalog/room-types and PUT /catalog/rate-plans (scope catalog:write) let the PMS own the hotel's structure: an upsert by ref, your own id. A new entity is created on the channel manager at once; every later change mirrors there with retries and a nightly drift check; the answer names our id, the action and the sync status per entity. GET /catalog carries ref and sync from now on.","adoption":"A room type the owner already made with the same name (and no ref) becomes yours by ref (action: adopted); a plan likewise under the same room type. A plan never moves between room types (409 CATALOG_CONFLICT): delete it and send it again.","switchOn":"A channel-manager-only hotel with no channel-manager property yet gets one on the first write, and the channel manager is switched on once a room type and a plan are mapped; channelManager.enabled in the answer says where it stands, reason why not.","idempotent":"Twice over: ref is the upsert key here, and the channel-manager create adopts an existing entity with the same title instead of creating it again, so a retry never duplicates on either side. Send x-idempotency-key on retries as on every write.","notHere":"A room count after creation (it lives on the channel manager), photos, descriptions, amenities, cancellation policies and stay rules: the owner's Rooms & rates screen, or the restrictions routes.","sandbox":"On a sandbox everything lands locally and reads IN_SYNC, through the same code path."},"refs":{"what":"A request that names a room type or a rate plan may name it by your own ref in the place of our id: the ref you gave it in PUT /catalog/room-types, PUT /catalog/rate-plans or POST /properties, which GET /catalog reads back. One of the two on each item, never both.","where":"PUT /availability, POST /availability/close, POST /availability/reopen and POST /sandbox/bookings take roomTypeId or roomTypeRef. PUT /rates and PUT /restrictions take ratePlanId or ratePlanRef. GET /explain takes roomTypeId or roomTypeRef, and for its optional rate plan ratePlanId or ratePlanRef. A catalog delete takes ref: and the ref in its address (DELETE /catalog/room-types/ref:rt-penthouse). Ids and refs may be mixed across the updates of one request.","how":"A ref is looked up among this hotel's own room types or rate plans and turned into our id before anything else reads the request. So a request by ref is checked, counted against the budgets, written and answered exactly as the same request by id, and every answer names our ids. samples.availabilityWriteByRef, ratesWriteByRef and restrictionsWriteByRef are the three write samples by ref.","refusals":"Each refuses the whole request, with nothing written, sent or counted. A ref no room type or rate plan of this hotel has: 400 UNKNOWN_ROOM_TYPE or UNKNOWN_RATE_PLAN, with the refs in data.details.roomTypeRefs or data.details.ratePlanRefs; a ref of another hotel, and one only a deleted room type or rate plan still held, are unknown here. An item that names both our id and your ref, or neither: 400 VALIDATION, with the item's path. A ref more than one room type or rate plan of the hotel holds: 409 CATALOG_CONFLICT; name it by our id. samples.refRefusals shows each.","noRef":"A room type or a rate plan the hotel's owner made has no ref of yours (ref is null on GET /catalog), and neither has the rate plan POST /properties makes for each room type. Name those by our id, or give one your ref first: send it through PUT /catalog/room-types or PUT /catalog/rate-plans under its own name, and it becomes yours by ref (action: adopted).","idempotency":"Like every 4xx verdict, a 400 for an unknown ref is kept under its x-idempotency-key for 7 days. Once you have created the room type or rate plan, send the request under a new key.","notHere":"POST /bookings names its rooms by our ids only. Every answer, every webhook and the three reads name our ids, as before."},"channelBookings":{"what":"GET /channel-bookings lists the OTA bookings the channel manager delivered to the property — the SAME booking object the webhooks carry, so one parser serves both. Scope channel-bookings:read, granted separately from the ARI pair.","since":"since is on the booking's last change (created, modified or cancelled), default the last 7 days; page with limit (≤100) and pass the answer's nextCursor as cursor while more is true. nextCursor is returned on every page, the last one included: keep it and ask with it next time, so a poller needs no clock of its own.","matchesWebhook":"The booking is what its last event said: finance (with paymentType, virtualCard and feeAmount), guestNotes, guest.country, guest.language, amounts.paymentCollect and an OTA cancellation's reason are read from our stored copy of the revision, so a pull is never poorer than the webhook. version is the booking's current version: a copy of yours with a lower one has missed an event.","why":"Recover a missed webhook, or poll instead of receiving: the webhooks remain the push path, this is the pull path over the same shape.","never":"Front-desk, booking-engine and Connect API bookings are never listed here; they are not channel bookings. The booking engine's are GET /direct-bookings."},"directBookings":{"what":"A hotel that sells on its own website through the ZimmerStack booking engine takes bookings no OTA sent. They reach a PMS under their own names: the webhooks direct.booking.created, direct.booking.modified and direct.booking.cancelled, and GET /direct-bookings for the pull. The booking object is the one channel.booking.* carries, so one parser serves both families.","tellApart":"channel.source is DIRECT_WEB, channel.sourceGroup is DIRECT and channel.otaName is \"Website\". finance is null (no OTA, no commission); amounts.paymentCollect is \"property\"; amounts.paid is what the guest paid online, amounts.balanceDue what the desk collects.","subscribe":"An endpoint receives them only when it lists the event types, each ticked on its own. An endpoint registered before a type existed receives none of it until its owner ticks it: direct.booking.modified was added on 21 Nov 2026, so an endpoint that listed created and cancelled before then still receives exactly those two.","applyFirst":"A website booking takes one room off the count the channels hold, at once. A PMS that pushes absolute room counts must apply the booking to its own calendar BEFORE its next PUT /availability, or that push puts the sold room back on sale. Read GET /direct-bookings before a full push to catch anything a webhook has not delivered yet.","events":"created: a nightly or an hourly booking the guest confirmed. modified: the hotel recorded in ZimmerStack that the guest did not arrive (a no-show), or undid that. The booking is not cancelled, so status stays CONFIRMED and the payment is untouched; stayStatus and each room's status say NOSHOW (the nights are on sale again on every channel: free the room) or, after an undo, UPCOMING again (the nights are taken again: hold the room). changes names what moved (\"stayStatus\", \"rooms[0].status\") and previous carries the booking as it read before, stayStatus included. cancelled: the guest cancelled on the booking page, or the hotel cancelled or deleted the booking in ZimmerStack or through POST /direct-bookings/{bookingId}/cancel; cancellation.reason says which (\"Cancelled by the guest\" or \"Cancelled by the hotel\"). A cancel your own PMS made comes back to you as this event too: match it on the booking id and treat it as already applied.","afterwards":"Anything else the hotel changes on a website booking in ZimmerStack afterwards (other dates, one room of several cancelled, a payment taken at the desk) sends no event yet; modified is a no-show and its undo only, and changes is how a later kind of change will say what it is. GET /direct-bookings lists that booking again, because since is on its last change: read it on a slow schedule too (once an hour is plenty), not only before a push. A modified or a cancelled event can also arrive for a booking whose created your endpoint never received (it ticked the types later): treat an unknown booking id as new and read it with GET /direct-bookings/{bookingId}.","pull":"GET /direct-bookings takes the same since, status, limit and cursor as GET /channel-bookings and pages the same way. Scope direct-bookings:read, granted separately from channel-bookings:read. A booking deleted in ZimmerStack stays listed, as CANCELLED.","never":"OTA bookings (GET /channel-bookings), front-desk bookings and bookings a key created (GET /bookings) are never listed here.","cancel":"POST /direct-bookings/{bookingId}/cancel cancels a whole website booking that is still UPCOMING and says what the guest gets back: refund \"policy\" (the default: what the booking's own cancellation policy gives now, exactly as if the guest cancelled on the booking page), \"full\" (everything paid online) or \"none\" (the hotel settles any money itself). The refund goes back to the guest's online payment, never more than it; the hotel's share of that payment is taken back first. The nights go back on sale on the channels, the guest gets the usual cancellation message, and direct.booking.cancelled says \"Cancelled by the hotel\". Scope direct-bookings:cancel, granted on its own and never by default. A checked-in, checked-out or no-show booking is 409 BOOKING_NOT_CANCELLABLE; an already-cancelled one answers 200 with replay: true and moves no money. Send x-idempotency-key: a retry with the same key gets the first answer back. Budgets: 10 per key per minute, 50 per property per rolling day.","sandbox":"POST /sandbox/bookings with otaName \"Website\" simulates one and sends the real direct.booking.created; its cancel sends direct.booking.cancelled. Its modify is 409 BOOKING_NOT_MODIFIABLE. POST /direct-bookings/{bookingId}/cancel works on a sandbox website booking with a test key: the nights come back and the event says \"Cancelled by the hotel\", and no money moves (refund.status NONE)."},"events":{"what":"GET /events?after=&limit= is the hotel's ordered event log: every event a webhook can carry for it (OTA bookings, website bookings, channel alerts), once, oldest first. The webhooks are the nudge; the log is the truth.","how":"Each event of a hotel has a sequence, one higher than the hotel's last. Keep the last sequence you applied and ask for everything after it: after an outage, on a schedule, or whenever a webhook arrives whose sequence is not your next one. nextAfter is your new place; more: true means ask again at once. Nothing depends on a delivery having arrived or on the order deliveries arrived in.","item":"An item is the webhook's own envelope (id, type, occurredAt, mode, sequence, property, data, changes, previous), so one parser serves both. The same sequence rides the webhook, its redelivery and its replay.","version":"data.booking.version is our own counter of a booking's events: 1 on its first event, one more on each later one. A higher version is a later state, whatever order deliveries arrived in.","scopes":"channel-bookings:read reads the channel events (channel.booking.*, channel.sync.*); direct-bookings:read the website's (direct.booking.*). A key with one of them sees the other family's numbers skipped: the sequence is the hotel's. With neither, 403 SCOPE_MISSING.","retention":"Kept 90 days. earliestSequence is the lowest sequence still kept: when it is more than one above your after, the events in between are gone; reconcile with GET /channel-bookings and GET /direct-bookings, then carry on from nextAfter.","notHere":"A Test button's sample event (it has no sequence), and events from before 22 Nov 2026."},"webhookEndpoints":{"what":"A software partner's company key manages its own company webhook endpoints without the partner portal: list, create, change (address, event types, notify email, the guest-contact switch), pause, resume, rotate the signing secret, delete, send a test of any event type, recover since an instant, redeliver one delivery and read the delivery log. Scope webhooks:manage, which only a company key can hold and which is never ticked by default; a hotel's own key is 403 COMPANY_KEY_REQUIRED. No route reads X-ZS-Property: an endpoint belongs to you, not to a hotel.","modes":"A live key manages your live endpoints (the events of every hotel you may act on); a test key your test ones (your sandboxes' events). The other mode's endpoint is 404 WEBHOOK_ENDPOINT_NOT_FOUND. Up to three endpoints, both modes together (409 WEBHOOK_ENDPOINT_LIMIT).","secret":"The signing secret (whsec_…) is in the answer that creates the endpoint or rotates its secret, and nowhere else: no route reads an existing secret back. After a rotation both secrets sign for 24 hours.","guestContact":"An endpoint made by API starts with guest contact off. PATCH includeGuestContact to switch it at any time: it applies to every delivery made from then on.","events":"With no eventTypes a new endpoint takes the OTA booking events and both channel.sync events. The website booking events (direct.booking.*) are ticked on their own.","pause":"A paused endpoint's events are held and go out oldest first on resume (data.heldEvents). An endpoint ZimmerStack suspended is resumed by ZimmerStack (403 WEBHOOK_ENDPOINT_SUSPENDED); it drops events, which recover queues again.","test":"POST /webhook-endpoints/{endpointId}/test with eventType: any type an endpoint can receive, or zimmerstack.ping (the default). The sample says mode: test and carries no sequence. On a sandbox the real events are made by POST /sandbox/… (x-zimmerstack.sandbox).","recover":"POST /webhook-endpoints/{endpointId}/recover with since queues again every subscribed event since then that failed or never had a delivery: at most 90 days back and 10,000 events a run (truncated: true means run it again). A live endpoint is sent only the events of hotels you could act on then and still can. GET /events is the other way to catch up, and needs no endpoint at all.","idempotency":"Send x-idempotency-key on the writes, as on every write: a retry with the same key gets the first answer back. A 4xx is kept under its key for 7 days, so after changing what it asked for (resuming a paused endpoint, removing one of three) send the request under a new key. A 429 or a 503 is never kept.","refusals":"404 WEBHOOK_ENDPOINT_NOT_FOUND · 404 WEBHOOK_DELIVERY_NOT_FOUND · 409 WEBHOOK_ENDPOINT_LIMIT · 409 WEBHOOK_ENDPOINT_NOT_ACTIVE (test, recover and redeliver need an active endpoint) · 403 WEBHOOK_ENDPOINT_SUSPENDED · 403 WEBHOOK_ACCESS_ENDED (the hotel ended your access before the event was sent) · 410 WEBHOOK_PAYLOAD_EXPIRED (the event is older than 90 days) · 400 VALIDATION with data.details.reason for an address, event type, email or date we refuse · 429 RATE_LIMITED with data.scope webhook-endpoint (so many tests, rotations, recovers or redeliveries an hour) · 503 WEBHOOKS_UNAVAILABLE.","portalOnly":"Reading an existing signing secret, and everything about company keys, prices and team members, stay with a person in the partner portal."},"connectLinks":{"what":"A connect link ALONE DOES NOT CONNECT A BOOKING SITE, except Airbnb. It is the LAST step: every other booking site must first accept our connectivity partner for the hotel, at the booking site itself (hotelStep; no API call and no link does that step). Only Airbnb is connected from the link alone. The link is one-time, for ONE booking site of ONE hotel, without your partner portal. Your company key asks for it (POST /connect-links) and you send its url to the hotel once its step is done. On our hosted page that person types the hotel's id at the booking site (MakeMyTrip and Goibibo also the access token they give), confirms every room and rate match (the mapping) and presses Start selling. Nobody signs in to a booking site on the page, except on Airbnb: the host signs in on Airbnb's own page and allows the connection. You hear channel.connect.completed, or channel.connect.expired if the link ran out first.","flow":"How it unfolds, every booking site but Airbnb: (1) the hotel has its own listing there; (2) the booking site accepts our connectivity partner for the hotel, in its extranet or through its support, days at worst (hotelStep); (3) you make the link and send its url; (4) the hotel's person types the hotel's id there (MakeMyTrip: and its access token) and an email; (5) we test those details with the booking site, which refuses them while step 2 is not done, and nothing is saved; (6) we read the booking site's rooms and rates and show them beside the hotel's room types and rate plans with a suggested match each; (7) the person confirms the matches (mapping); (8) the connection is created with them, switched off; (9) Start selling switches it on: the hotel's whole calendar of rates, availability and restrictions is sent, upcoming bookings are pulled where the booking site offers it (Booking.com sells once it approves the connection); (10) you hear channel.connect.completed and bookings reach you by webhook. Airbnb: nothing to accept, but Airbnb allows one connection at a time, so the host first disconnects any other channel manager or PMS on the account (Privacy and sharing, Connected apps) and turns off any \"unavailable by default\" calendar setting; then the link sends the host to Airbnb's sign-in to allow the connection, each listing is matched to one rate plan, then Start selling.","mapping":"The first mapping is done by the hotel's person on the link's page: each room and rate line of the booking site (one line per number of guests where it prices so) is matched to one of the hotel's rate plans, those your software sent. A line left unmatched is sent nothing and keeps what the extranet holds; a rate the booking site derives from another follows its parent and is not matched. Make your rate plans like the booking site's (one per meal plan, for example). A match is changed later with GET and PUT /properties/{propertyId}/channels/{channelId}/mapping (x-zimmerstack.channelConnections), on the hotel's page in the partner portal or in its Channels app, never with the link.","scope":"channels:connect, which only a company key can hold and which is never ticked by default: a key with it can start a hotel selling on a booking site. It is given by someone in your company who may act for hotels. A hotel's own key is 403 COMPANY_KEY_REQUIRED. No route reads X-ZS-Property: the hotel is propertyId in the create's body. A live key only: a test key is 409 LIVE_KEY_REQUIRED.","never":"A connect link takes no booking-site detail (no hotel id there, no access token, no password) and no room or rate match, in any field: the create's body is the hotel, the booking site and three options, and an unknown field is 400 VALIDATION. The details and the first matching are given by a person, on the page. A matching is changed later by API (x-zimmerstack.channelConnections); a booking-site detail never is.","link":"The url opens once and is in the answer that makes the link, nowhere else: we keep a hash of its token. It opens for 72 hours unless expiresInHours says otherwise (up to 168); once opened, the page has 120 minutes. A second link for the same hotel and booking site withdraws an earlier one nobody opened, and picks up a connection an earlier link saved without starting it. A replay of the create (the same x-idempotency-key) answers url: null: make a new link.","page":"The page can do one thing: this connection for this hotel. It cannot pause or remove a connection, read the hotel's other connections, or change a price. It carries your brand when ZimmerStack serves your hotels under it; otherwise it names your company as the sender. Everything it does is on the hotel's activity log, naming the key that made the link.","hotelStep":"Every booking site but Airbnb must first accept our connectivity partner for the hotel: in its extranet (Booking.com, Agoda, Expedia) or through its support (MakeMyTrip and Goibibo, which then give an access token; Trip.com; Yatra; Hostelworld for a hostel new to channel managers). It can take days, and no API call does it. hotelStep, in the create's answer, is that step in a sentence, with our connectivity partner's name as the booking site lists it: send it to the hotel first, and send the url once the hotel has done it (an opened page has 120 minutes; a link that ran out meanwhile is replaced by a new one). It is null for Airbnb, which has nothing to accept; tell its host yourself to disconnect any other channel manager or PMS on the Airbnb account first, since Airbnb allows one connection at a time. The page itself does not print the name.","limits":"One connection per hotel and booking site unless ZimmerStack allowed that hotel more: the page says so if the hotel already has one. 10 links an hour per hotel and 120 an hour across your hotels (429 RATE_LIMITED, data.scope connect-links-hour or partner-connect-links-hour).","status":"GET /connect-links/{linkId}: pending (made, not opened), opened (someone is on the page), completed (Start selling was pressed), expired, revoked. POST /connect-links/{linkId}/revoke withdraws a link; an open page stops at its next step.","webhooks":"channel.connect.completed and channel.connect.expired are event types of their own: tick them on your endpoint (PATCH /webhook-endpoints/{endpointId}). Both are in the hotel's event log (GET /events) with a sequence. completed carries the connection's id (GET /channels) and what became of the booking site's upcoming bookings; expired says whether anyone opened the link and whether a connection was saved, paused.","refusals":"404 PROPERTY_NOT_FOUND (not a hotel this key may act on) · 409 CHANNEL_NOT_AVAILABLE (details.reason switched_off or not_offered_here) · 409 CHANNEL_MANAGER_DISABLED (send the hotel's room types and rate plans first) · 409 LIVE_KEY_REQUIRED · 404 CONNECT_LINK_NOT_FOUND · 429 RATE_LIMITED · 503 CONNECT_LINKS_UNAVAILABLE."},"channelConnections":{"what":"Once a booking site is connected, your company key manages that connection for the hotel without your partner portal: read and change which of the hotel's rate plans feeds each room and rate of the booking site (the mapping), disconnect one booking site, and open the channel console for the hotel. The hotel is propertyId in the path and the connection is channelId, as GET /channels gives it with X-ZS-Property naming the hotel. Each request does what the partner portal's own button does, and each is on the hotel's activity log, which the hotel's owner reads, with your key's name.","scope":"channels:connect, which only a company key can hold and which is never ticked by default. A hotel's own key is 403 COMPANY_KEY_REQUIRED. No route reads X-ZS-Property. A live key only: a sandbox has no real OTA, so a test key is 409 LIVE_KEY_REQUIRED. The hotel must be one you have access to, and managing connections must be part of your access (409 CHANNEL_NOT_AVAILABLE, details.reason not_in_your_access: write to support).","readMapping":"GET /properties/{propertyId}/channels/{channelId}/mapping reads the booking site's rooms and rates again, live, and answers one line for each rate of each room (one per number of guests where the booking site prices so): the line's id, what is matched to it now (ratePlanId, yours from GET /catalog, or null), a suggestion for a line with no match, and blocked when the line cannot be matched (the booking site derives it from another rate, or another hotel of the same account holds it). ratePlans lists the hotel's rate plans a line can take. It takes a few seconds: the booking site is asked each time.","saveMapping":"PUT the WHOLE matching: every line you want matched, each with a ratePlanId. A line that can be matched and is left out, or sent with ratePlanId null, is unmatched by the save. Lines that are blocked are never changed. Where usesPrimary is true, one line of each rate carries its availability and stay rules: send primary true on that one, or leave primary out on every line of the rate to take the default (the highest guest count). Where mapEveryLine is true (Booking.com) every line that can be matched must be. One room of the booking site takes rate plans of ONE of your room types. The save is checked as the screen's is; a matching that breaks a rule is 400 VALIDATION with data.details.problems naming each line, and nothing is changed. A save that holds what the connection already has answers changed: false and sends nothing.","problems":"data.details.problems of a refused save, each with the lineId it is about: NOTHING_MAPPED (no line has a rate plan) · UNKNOWN_SLOT (a lineId the booking site does not list now: read the mapping again) · BLOCKED_SLOT (the line cannot be matched) · UNMAPPED (this booking site wants the line matched) · UNKNOWN_RATE_PLAN or UNKNOWN_PLAN (not a rate plan of this hotel on the channel manager) · ROOM_SPLIT (one room of the booking site was given rate plans of two of your room types; otaRoomCode names it) · PRIMARY_MISSING or PRIMARY_MULTIPLE (a rate needs exactly one primary line; lineIds names its lines).","afterSave":"A new matching sends no price by itself. After a save that changed something, send POST /channels/{channelId}/full-sync for that connection (X-ZS-Property naming the hotel): the newly matched rates then receive their prices and room counts.","airbnb":"Airbnb matches one listing to one rate plan, one change per request, each about half a minute: the answer says remaining, so send the same body again (with a new x-idempotency-key, or none) until remaining is 0, waiting a few seconds when waiting is true. A disconnect of Airbnb unlinks its listings the same way before it removes the connection: done false, remaining, send it again.","disconnect":"POST /properties/{propertyId}/channels/{channelId}/disconnect with confirm set to the booking site's brand word (confirmWord of the mapping read; MakeMyTrip or Goibibo for that connection). The connection is paused, then removed from the channel manager: the booking site stops receiving prices, availability and bookings stop reaching you from it. It does not close the hotel's listing: what the booking site shows from then on is managed in its extranet, so close or update it there. A wrong word is 422 CONFIRMATION_MISMATCH with the right one in data.details.expected, and nothing is changed. To connect it again, make a new connect link.","console":"POST /properties/{propertyId}/channel-console answers the address of the channel console for that one hotel: every connection, its settings, its mapping and its messages, as the partner portal's Channel console shows it. Open it in a browser or an iframe. The address works once, for the time expiresInSeconds says (15 minutes), and is in this answer only: a replay of the request (the same x-idempotency-key) answers url: null, so ask again for each session. Never store it or send it to anyone outside your team: whoever opens it acts on the hotel's connections. No body.","recorded":"A saved matching, a disconnect and each console session are on the hotel's activity log and in our audit, naming your company and the key that asked.","refusals":"404 PROPERTY_NOT_FOUND (not a hotel this key may act on) · 404 CHANNEL_NOT_FOUND (no such connection on this hotel) · 409 LIVE_KEY_REQUIRED · 409 CHANNEL_NOT_AVAILABLE (details.reason not_in_your_access, not_matched_here: a booking site our matching does not cover, use the console; switched_off; test_account) · 409 CHANNEL_MANAGER_DISABLED (the hotel is not on the channel manager) · 409 PROPERTY_UNAVAILABLE (the hotel's service is paused or has ended) · 400 VALIDATION (data.details.problems) · 422 CONFIRMATION_MISMATCH · 502 CHANNEL_MANAGER_ERROR (the channel manager or the booking site refused or did not answer; nothing was changed; never kept under an idempotency key, so the retry runs)."},"goLive":{"what":"Going live makes your software the source of truth for a hotel: from then on every price, stay rule and room count you send is pushed to its booking sites. A hotel you add with POST /properties is live from the start. Any other hotel (one whose owner let you in by your code) goes live with POST /go-live, once GET /readiness says it is ready. Both name the hotel in X-ZS-Property. A hotel's own key follows the same rules: when its owner makes a key that holds ari:read or ari:write, a hotel whose record already matches its booking sites, with nothing waiting to be sent, is switched on there and then; any other hotel gets the key \"not live yet\" and goes live with POST /go-live on that key, or with the Go live button on the owner's API keys page. Nobody has to ask ZimmerStack support for the switch.","why":"A hotel that ran on our screens first has a record full of prices nobody chose for the booking sites. Switched on without a check, those would be sent over the hotel's real prices. The report is how we know that will not happen.","checks":"GET /readiness answers four checks, each passed or not, with a sentence and what to do: channel_manager (the hotel is on the channel manager) · catalog_linked (so is every room type and rate plan) · prices_hold (ZimmerStack's own pricing does not overwrite a price you send) · nothing_stale, which passes one of two ways: our record matches the channels for the next 365 nights (nothing waiting to be sent, nothing different from what the channel manager was read holding in the last 48 hours), or your software has sent the next 365 nights first. It reads our record only, so ask as often as you like.","sendFirst":"To send a full year first: PUT /rates for every rate plan and night, each request carrying the header X-ZS-Before-Go-Live: true. Without the header a hotel that is not live answers 409 ARI_NOT_AUTHORITATIVE, as before. Prices and stay rules sent ahead are stored and wait (the answer says heldUntilGoLive: true). Room counts are different: until the hotel is live, a count that lowers what is on sale is sent to the booking sites at once (a held count would oversell a room), and a count that raises it is refused in the answer's rejected list, because the hotel's own people may still be running its counts. Send your room counts again right after going live.","switch":"POST /go-live needs ari:write. Ready: 200 with live: true. Not ready: 409 NOT_READY with the checks that did not pass, and that refusal is never kept under an x-idempotency-key, so send the same request again once you have fixed them. Already live: 200 with replay: true. It is written on the hotel's activity log and in our audit as an automated act, naming your key.","after":"Nights past the next 365 that your software never wrote are sent closed until it writes them. The hotel's owner can end your access at any time; switching a hotel back is done by ZimmerStack support."},"hotelKeys":{"what":"A company key lists, mints, rotates and revokes the keys you made on a hotel, without your partner portal: GET and POST /properties/{propertyId}/keys, POST …/keys/{keyId}/rotate and …/revoke. The hotel is in the path; X-ZS-Property is not read.","scope":"keys:manage, which only a company key can hold and which is never ticked by default: a key with it mints more keys. A hotel's own key is 403 COMPANY_KEY_REQUIRED.","reach":"The hotels you added and still have access to (a live key), or your sandboxes (a test key). Only the keys you made: a hotel's own keys are its owner's and are never listed, rotated or revoked here. A company key is never made, rotated or revoked by API: that stays with a person in your partner portal.","secret":"The secret is in the answer that mints or rotates a key and nowhere else: we keep its hash. A replay of that request (the same x-idempotency-key) answers key: null.","rotate":"A rotation makes a new key with the same name, scopes, addresses and expiry; the old one keeps answering for 24 hours (retireAt), then stops.","rules":"The rules are a hotel key's own: any scope a hotel's key may hold (never a company key's own scopes), at most 5 active keys a hotel (409 KEY_LIMIT). ari:read and ari:write may be given on a hotel that is not live yet: a hotel whose record matches its booking sites, with nothing waiting to be sent, is switched on as the key is made, and on any other hotel the key's ARI calls answer 409 ARI_NOT_AUTHORITATIVE until the hotel goes live, unless they are sent ahead with X-ZS-Before-Go-Live: true. Every mint, rotation and revoke is on the hotel's activity log, naming the company key that did it.","refusals":"404 PROPERTY_NOT_FOUND · 404 KEY_NOT_FOUND · 409 KEY_LIMIT · 409 KEY_REVOKED · 409 KEY_ALREADY_ROTATING · 400 SCOPES_INVALID · 400 ALLOWED_CIDRS_INVALID · 400 REASON_REQUIRED · 400 VALIDATION."},"billing":{"what":"A software partner's company key reads what its Billing page shows: GET /billing (what is owed, the onboarding fee, your property quota, money paid ahead, the days of an unpaid invoice, and what was passed on at cost), GET /billing/invoices (your issued invoices, each before and after tax, with its lines) and GET /billing/next-invoice (what your next monthly invoice is made of, hotel by hotel). Scope billing:read, which only a company key can hold and which is never ticked by default; a hotel's own key is 403 COMPANY_KEY_REQUIRED. No route reads X-ZS-Property. The same answer for a live key and a test key: a bill is your company's.","readOnly":"Nothing here pays, accepts a price or changes billing details: those stay with a person in the partner portal. No payment link is answered.","whoMayGiveIt":"A key that reads your bills is made by someone who may open the portal's Billing page (the account owner, an Admin). A Developer cannot make one.","nextInvoice":"Each line says how its price was reached: the rooms counted (what the hotel declared, or the most it has on sale on one night when that is more), the room band they fall in, how many of your hotels share that band (which picks a volume price), the price list it was read from, and the conversion when the list is in another currency. It is read today; the invoice reads rooms, prices and the exchange rate again on the day it is made, and that is the bill.","counting":"A hotel is on a month's invoice when it is live on the 1st, connected to a booking site or not, in full for the month starting; a hotel added after the 1st is first billed on the next 1st, and nothing is refunded for a hotel removed mid-month.","quota":"quota.properties says how many hotels you may have live (allowed), how many you have (used) and how many you may still add (free). quota.next says the next level and about what paying ahead opens it today; paying ahead is done in the partner portal. Past the quota, POST /properties answers 409 BILLING_SETUP_REQUIRED with details.reason QUOTA_FULL.","unpaid":"unpaidInvoiceDays gives the rule (due by the end of dueDay, booking-site connections paused on pauseDay, the hotels' service ended endAfterDays later) and, for each unpaid monthly invoice, its own instants: dueAt, pauseAt, endAt. applies false means the rule is not in force for you yet (quota.startsOn says from when).","atCost":"A hotel includes a number of room types and rate plans; past them the channel manager charges for each one. Our limits sit under what is included, so nothing is charged unless ZimmerStack raises a hotel's limit. When it does, what the hotel holds above the included number is recorded against you at the channel manager's own price, nothing added, and listed under atCost with its month, its hotel and whether it is on an invoice yet.","atCostInvoicing":"atCost.invoicing says how a recorded line reaches an invoice today, and atCost.rule says it in a sentence. BY_ZIMMERSTACK: our team adds it to one of your invoices. AUTOMATIC: your next monthly invoice carries it by itself, one line for each, converted from US dollars to your invoice's currency at the same exchange rate as your price list that day, with the rate and its date printed on the line. Each line's standing says where it is for you (ON_INVOICE with its invoiceNumber, ON_NEXT_INVOICE, ADDED_BY_ZIMMERSTACK or NOT_CHARGED); GET /billing/next-invoice lists the lines that are on no invoice yet under its own atCost.","money":"Amounts are major units as decimal strings beside …Minor in hundredths, in the invoice's currency (x-zimmerstack.moneyByCurrency). The quota's pay-ahead figure, the onboarding fee and the at-cost lines are in US dollars."},"support":{"what":"A software partner's company key opens a support ticket, reads its tickets, replies and closes one: POST /support-tickets, GET /support-tickets, GET /support-tickets/{ticketId}, POST …/messages, POST …/close. Scope support:write, which only a company key can hold and which is never ticked by default. No route reads X-ZS-Property: the hotels affected are named in the body.","severities":[{"severity":"many_hotels","name":"Many hotels","means":"2 or more of your hotels, or all of them, cannot take bookings or cannot send prices and rooms to the booking sites.","firstReply":"Within 60 minutes, 9:00 to 21:00 IST, every day. Opened outside those hours: by 10:00 IST."},{"severity":"one_hotel","name":"One hotel","means":"One hotel cannot take bookings or cannot send prices and rooms to the booking sites.","firstReply":"Within one working day."},{"severity":"question","name":"Question","means":"Anything else: how something works, a bill, a change you plan, a problem that stops nothing.","firstReply":"Within one working day."}],"hours":"A many_hotels ticket is first answered within the hour between 9:00 and 21:00 IST, every day. firstReply.dueAt on the ticket is that instant. Every other ticket is first answered within one working day.","severityRules":"The level follows from the hotels you name: many_hotels needs two or more propertyIds or allProperties true; one_hotel needs exactly one; question takes any or none. A ticket opened with a test key is about a sandbox and is always question. A level that does not fit is 400 VALIDATION, with the sentence saying which one does.","diagnostic":"When a ticket opens we attach what our own records show for the last 24 hours and return it with the ticket: your refused requests (request ids, routes, codes and counts), each named hotel's sync state (room counts waiting, prices waiting or refused, open channel problems, where it stands with the channel shield), your own standing and what you wrote, and your webhook endpoints' failures (delivery ids and counts). Up to 20 hotels are described one by one. Ids, counts, states and times only: never a guest's data, a key, a secret, a webhook body or the text of an error. So do not paste any of those into the message.","modes":"A ticket belongs to the mode of the key that opened it. A live key lists and reads live tickets, a test key test ones; the other mode's ticket is 404 SUPPORT_TICKET_NOT_FOUND, as is another partner's.","answers":"When ZimmerStack answers, the ticket's status becomes ANSWERED and your company webhook endpoints of that mode that list support.ticket.replied hear it, with our message; when we close it, support.ticket.closed. We also mail your account address. A reply of yours sets it back to OPEN. A closed ticket takes no more messages (409 SUPPORT_TICKET_CLOSED): open a new one and name the old one.","limits":"20 tickets a partner per rolling day and 60 messages a partner per rolling hour (429 RATE_LIMITED, data.scope partner-support-tickets-day or partner-support-messages-hour); a message up to 5000 characters; up to 200 hotels named on one ticket.","idempotency":"Send x-idempotency-key on the three writes: a retry with the same key gets the first answer back and never opens a second ticket.","always":"A ticket can be opened whatever your integration's standing: a freeze, a pause or a suspension of your writes does not refuse it.","mail":"support@zimmerstack.com still works; quote the ticket's id."},"status":{"what":"GET /status answers the components (the API, bookings coming in, prices and availability going out, each booking site), each operational or named in an open incident, and the incidents that touch your hotels: the open ones and those resolved in the last 7 days. Every key reads it, whatever its scopes. A hotel's key reads its own hotel's; a company key reads one hotel's with X-ZS-Property and all its hotels' without.","components":[{"id":"api","name":"The API","kind":"platform","covers":"Requests to the Connect API are answered."},{"id":"bookings_in","name":"Bookings coming in","kind":"platform","covers":"Bookings made on the booking sites reach ZimmerStack and are sent on to you."},{"id":"ari_out","name":"Prices and availability going out","kind":"platform","covers":"The prices, stay rules and room counts you send reach the booking sites."},{"id":"ota:bookingcom","name":"Booking.com","kind":"booking_site","covers":"Booking.com: bookings from it, and prices and availability to it."},{"id":"ota:gommt","name":"MakeMyTrip · Goibibo","kind":"booking_site","covers":"MakeMyTrip · Goibibo: bookings from it, and prices and availability to it."},{"id":"ota:agoda","name":"Agoda","kind":"booking_site","covers":"Agoda: bookings from it, and prices and availability to it."},{"id":"ota:expedia","name":"Expedia","kind":"booking_site","covers":"Expedia: bookings from it, and prices and availability to it."},{"id":"ota:tripcom","name":"Trip.com","kind":"booking_site","covers":"Trip.com: bookings from it, and prices and availability to it."},{"id":"ota:yatra","name":"Yatra","kind":"booking_site","covers":"Yatra: bookings from it, and prices and availability to it."},{"id":"ota:hostelworld","name":"Hostelworld","kind":"booking_site","covers":"Hostelworld: bookings from it, and prices and availability to it."},{"id":"ota:airbnb","name":"Airbnb","kind":"booking_site","covers":"Airbnb: bookings from it, and prices and availability to it."}],"states":["operational","degraded","partial_outage","major_outage"],"severities":[{"severity":"degraded","means":"Working, slower or later than usual. Nothing is lost."},{"severity":"partial_outage","means":"Not working for some hotels or some requests."},{"severity":"major_outage","means":"Not working."}],"statuses":["investigating","identified","monitoring","resolved"],"whose":"An incident touches every hotel, or the hotels ZimmerStack named. You are shown the incidents that touch a hotel you may act on, and of the hotels one names you are shown only your own (properties.ids). An incident that touches every hotel says properties.all true.","writer":"An incident is opened, updated and resolved by ZimmerStack's staff, never by a machine on its own: operational means no person has reported a problem, not that a monitor measured none.","webhooks":"platform.incident.opened, .updated and .resolved are sent once per endpoint, not once per hotel: data.incident.properties names your affected hotels. A hotel's own endpoint hears the incidents that touch that hotel; a company endpoint the ones that touch a hotel it may act on. They carry no top-level property and no sequence, are not in GET /events, and Recover since does not replay them: GET /status is the read. List the three types on an endpoint to receive them.","mail":"A partner with an affected hotel is also mailed when an incident opens and when it is resolved.","uptimeTarget":{"percent":99.9,"window":"calendar month","credits":false,"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."},"page":"A hosted status page is not live yet. page on GET /status is null until it is, and then carries its address."},"guestContact":{"rule":"A guest's phone and email are returned by the API until 30 days after checkout. After that guest.phone and guest.email are null and guest.contactWithheld says \"retention\", so you can tell withheld from a booking that never had one. The name, the stay and the money stay.","where":"GET /channel-bookings, GET /direct-bookings, both single reads and GET /events. The same rule for a hotel's own key and a partner's.","logged":"Every read that returned contact is logged (the key, the partner behind it, when, which bookings) and the hotel's owner sees the list. If a read cannot be logged its answer goes out with contactWithheld \"unavailable\": ask again.","webhooks":"An endpoint receives phone and email only while its owner has guest contact switched on; it can be switched at any time. A partner's company endpoint starts with it off."},"channels":{"what":"GET /channels lists the connections the channel manager holds for the property, from our record (the nightly settings sweep), with every unresolved problem the channel manager reported (rate_error, sync_error, disconnect_channel, the inventory pipe out of sync).","freshness":"asOf says when the list was captured; a channel connected today appears after the next sweep. Problems are live.","pushed":"The same problems are pushed as webhooks: channel.sync.alert when one is raised (channelKind names the channel; a change to a channel's money settings is one too, event settings_changed) and channel.sync.recovered when it ends: the channel reconnected, a re-check found it working, the hotel marked it as handled, or the inventory pipe recovered. recovered carries the alert's own event, channelId and raisedAt, so the two pair up (docs/webhooks)."},"modifiers":{"what":"One price per rate plan per night goes to every channel the plan is mapped to. A channel's modifier is the one thing that differs per channel: up to five ordered steps (raise or lower, by a percentage or a fixed amount in major units) the channel manager applies to every price it sends that channel. GET /channels shows each channel's steps; PUT /channels/{channelId}/modifier replaces them (scope channel-modifiers:write: one call moves every price on that channel. A software partner's keys hold it by default; a hotel's own key holds it when the owner ticked it).","takesEffect":"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.","resend":"Not needed after a modifier: the channel manager re-sends that channel every date itself. POST /rates/resend (scope ari:write) is for the rare case where the channel should get our record's prices and stay rules again, unchanged; re-sending the same price through PUT /rates does nothing, because a value our record already holds is dropped before anything is sent. A hotel may ask for it only a few times a day (data.scope rate-resends-day).","workflow":["GET /channels: find the channel (channelId, kind) and read the steps it holds","PUT /channels/{channelId}/modifier with the whole list of steps; [] removes the modifier","Nothing else: the channel manager sends that channel every date again, so prices already there move within minutes"],"band":{"maxDecreasePct":50,"maxIncreasePct":100},"bandRule":"The steps together may not lower a price by more or raise it by more than the band: 422 MODIFIER_OUT_OF_BAND, nothing changed. A fixed amount is judged at the property's lowest and highest standing price.","shared":"A connection that serves more than one property (one Airbnb or Booking.com account for sister hotels) is refused, 409 CHANNEL_SHARED: its modifier would move another hotel's prices. The hotels' owner sets it in ZimmerStack.","grid":"GET /rates always answers the price before any modifier. What a channel is sent is that price with the channel's steps applied in order.","markupPlan":"markupPlan on GET /channels is a separate adjustment the owner may have set in the ZimmerStack Channels app; it applies before the modifier and is read-only here.","sandbox":"A sandbox has three pretend channels (Booking.com, MakeMyTrip, Agoda) so the whole workflow can be tried with a test key; nothing leaves our record."},"fullSync":{"what":"A full sync makes the channel manager send one OTA everything it holds again: room counts, prices and stay rules, for every date. POST /channels/{channelId}/full-sync does it for one OTA connection (channelId as GET /channels gives it); POST /full-sync for every connection of the hotel, one after another. Scope ari:write, a live hotel, as for POST /rates/resend.","notResend":"It is not POST /rates/resend. A re-send sends OUR record's prices and stay rules to the channel manager again, which passes them on. A full sync sends nothing of ours: the channel manager repeats to one OTA what it already holds. So a full sync cannot repair a value our record holds wrongly; write the right value for that.","when":"When an OTA shows something the channel manager does not hold: an OTA dropped an update, or a room or rate was mapped after the dates were sent. Rarely, and by a person: never on a timer and never to make sure.","hourly":"An OTA takes one full sync an hour for each connection (data.scope full-sync-hour, 429 with Retry-After; data.details.retryAt says when the next one is taken). The hour is the connection's own, whoever started the last one: a full sync the hotel's owner started in ZimmerStack within the hour counts too.","wholeHotel":"POST /full-sync answers one line for each connection: started true, or code and message (RATE_LIMITED with retryAt, CHANNEL_PAUSED, CHANNEL_NOT_FOUND, CHANNEL_MANAGER_ERROR). One connection that cannot go never stops the others. The status is 202 when at least one started and 200 when none did.","idempotency":"An idempotency key replays its first answer for 7 days, the 202 and the 200 alike, so use a new key for each full sync you mean to start. A 429 or a 5xx is never stored.","paused":"A paused connection is refused, 409 CHANNEL_PAUSED: nothing is sent to an OTA the hotel is not selling on. The hotel's owner starts selling on it in ZimmerStack.","sandbox":"A sandbox has no real OTA. Both requests answer 200 there and say so in notice (\"Nothing was sent: a sandbox has no real OTA. On a live hotel the same request starts a full sync.\"); the one-connection request still wants a channelId of the sandbox's own pretend channels. Nothing is sent.","recorded":"Each full sync that started is on the hotel's activity log, which the hotel's owner reads, with the key that asked for it."},"sandbox":{"what":"The owner creates a sandbox from a real property (admin → Developers → API keys, Channels → Integrations): a copy of its room types and rate plans that no channel ever sees. Keys minted there start with zsk_test_ and work ONLY there; a live key never reaches it.","pushes":"Every route behaves as in production. A push lands in our record and stops: GET /sync reports IN_SYNC and GET /batches/{batchId} reports landed within a minute, through the same code path as a live property. GET /property says sandbox: true.","modify":"POST /sandbox/bookings/{bookingId}/modify sends a modified revision — new dates, length, rooms or guest — and the REAL channel.booking.modified webhook with changes and previous, the old nights back on availability and the new ones off.","bookings":"POST /sandbox/bookings simulates an OTA booking end to end — the booking, the sandbox's availability moved down, the inventory event, and the REAL channel.booking.created webhook to every endpoint registered on the sandbox. POST /sandbox/bookings/{bookingId}/cancel does the same for a cancellation. With otaName \"Website\" the booking is one made on the hotel's own website instead, and the events are direct.booking.created and direct.booking.cancelled (x-zimmerstack.directBookings). A live key gets 403 SANDBOX_ONLY.","everyType":"A real event of every type can be made on a sandbox. channel.booking.created, .modified, .cancelled and direct.booking.created, .cancelled: the three booking routes above. direct.booking.modified: POST /sandbox/bookings/{bookingId}/no-show on a Website booking marks the guest a no-show (stayStatus NOSHOW, the nights back on sale), and { undo: true } takes it back. channel.sync.alert and channel.sync.recovered: POST /sandbox/sync-events with type, and event for which problem (rate_error, sync_error, disconnect_channel, settings_changed, inventory_out_of_sync); the problem is on one of the sandbox's pretend channels and GET /channels lists it until recovered clears it. A cancellation that arrives with no booking before it: POST /sandbox/bookings with arrivesCancelled: true sends channel.booking.cancelled alone. Each has a sequence and is in GET /events, which a Test button's sample is not.","limits":"The same budgets as production (one sandbox per owner, up to five per software partner, at most five keys on each). Nothing you do there is billed or pushed to a channel.","goLive":"Ask the owner for a zsk_live_ key on the real property, swap the key, keep the code."},"explain":{"what":"Before your software writes, it can see what the write will do; after it writes, the answer says what the write did NOT do; and any night's whole story is one call. A 202 only ever said the values were in our record. These say whether they do what you meant.","dryRun":{"how":"Add dryRun: true to the body of PUT /availability, PUT /rates or PUT /restrictions. The request is validated, coalesced and judged exactly as a real one, and stops before the first write. It answers 200 with a preview instead of 202.","answers":"verdict (would-write, nothing-to-write or would-refuse, with the refusal a real request would get now), the ranges that would change with the value sent, the ranges already held by our record and the channel manager, the ranges held after a refusal with the channel manager's words, what our record would refuse, prices that would be rounded, and the same notices the real write carries.","costs":"Charged like the write it previews against the budgets of a minute: one request and one write on the key and the property, and the same cells on the property's cells budget (x-zimmerstack.limitsTable). Never counted against the hour and day budgets of changed cells: it changes none. So a dry run is not a free read of the calendar; GET /availability, /rates and /restrictions are the reads.","storesNothing":"No batch, no queue entry, no idempotency key: send the same body without dryRun, under the same key if you like, to do it. Our record can move between the two; the real answer is the truth.","limits":"Each list of a preview holds at most 50 ranges; the field beside it (wouldChangeOmitted, unchangedOmitted, heldOmitted) says how many were left out. wouldReject foretells the refusals our record can know without writing: a real write can still refuse a group for a reason only the write meets.","alsoOn":"POST /availability/close and POST /availability/reopen take dryRun too."},"notices":{"what":"Every answer of an ARI write, and every preview, may carry notices: one plain sentence each, with a stable code, what it is about (room type, rate plans, nights, channels) and what to do. Warnings first; at most 20, with noticesOmitted for the rest. Absent when there is nothing to say.","levels":"warning: our record shows what you sent does not do the whole job (something still sells, nothing is sent, a rule of the hotel will undo it). info: how it works, said so the next surprise is not one.","rule":"Branch on code, show message and action to a person. A code you do not know is one added later: show it. Codes are never renamed and never change meaning.","zeroAndStopSell":"Two different things. Availability 0 is a COUNT of the room type: it closes the room on every rate plan and every channel, the rates an OTA links on its own side included, and it moves: an OTA cancellation puts a room back, your next count replaces it. A stop-sell is a SWITCH on ONE rate plan: it holds whatever the count does, and it stops that plan only, so the room keeps selling through its other plans and through any rate an OTA derives on its side. To close a room and keep it closed, do both: POST /availability/close.","codes":[{"code":"NOT_SOURCE_OF_TRUTH","level":"warning","on":"every write","means":"The hotel is not live for this software yet: prices and stay rules sent now are stored and wait for go-live, and of room counts only one that lowers what is on sale goes out."},{"code":"ROOM_TYPE_NOT_LINKED","level":"warning","on":"availability","means":"The room type has no link to the channel manager: its count is kept and sent nowhere."},{"code":"PLAN_NOT_LINKED","level":"warning","on":"rates, restrictions","means":"The rate plan has no link to the channel manager: its values are kept and sent nowhere."},{"code":"PLAN_NOT_MAPPED","level":"warning","on":"rates, restrictions","means":"The rate plan is on the channel manager and no connected channel that is switched on sells it: nothing sells or stops because of this write."},{"code":"ROOM_STILL_ON_SALE","level":"warning","on":"restrictions","means":"You stop-sold one rate plan; the room is still on sale through its other plans (otherRatePlanIds)."},{"code":"OTA_LINKED_RATES_NOT_REACHED","level":"info","on":"restrictions","means":"A stop-sell does not reach a rate an OTA links on its own side: only the room's count closes it."},{"code":"STAY_RULES_FROM_ANOTHER_PLAN","level":"warning","on":"restrictions","means":"On a channel, the OTA rate this plan sells takes its stay rules from another plan's row (otherRatePlanIds): a stay rule here alone does not reach it."},{"code":"PER_OTA_PLANS_FOLLOW","level":"info","on":"rates, restrictions","means":"The plan has per-OTA plans: its price is copied onto them and they follow its stay rules."},{"code":"PER_OTA_PLAN_FOLLOWS_PARENT","level":"warning","on":"rates, restrictions","means":"The plan you wrote is a per-OTA plan: its parent's price and stay rules replace what is set here."},{"code":"VALUE_HELD","level":"warning","on":"rates, restrictions","means":"The value equals one the channel manager refused: it is held with its words, not sent again."},{"code":"COUNT_WAS_REFUSED","level":"warning","on":"availability","means":"The last count sent for these nights was refused by the channel manager and nothing has landed since."},{"code":"COUNT_ZERO_IS_NOT_STOP_SELL","level":"info","on":"availability","means":"You sent availability 0: a count that closes every plan and channel, and that the next OTA cancellation or your next count moves. Not a switch."},{"code":"STOP_SELL_IS_NOT_A_COUNT","level":"info","on":"restrictions","means":"You sent a stop-sell: a switch on those plans. The room's count is untouched."},{"code":"COUNT_OPEN_BUT_PLANS_STOPPED","level":"warning","on":"availability","means":"You sent a count above 0 for nights on which every plan of the room is stop-sold: the room does not sell."},{"code":"NEW_DATES_OPEN_CLOSED","level":"warning","on":"availability","means":"The hotel's rule \"new dates open closed\" will set these nights to 0 when they come on sale."},{"code":"FAR_NIGHTS_NEED_A_COUNT","level":"warning","on":"rates, restrictions","means":"A night past day 365 with no count of its own goes out closed, whatever its price or stay rules."},{"code":"ENGINE_WILL_REPRICE","level":"warning","on":"rates","means":"The hotel's pricing engine is set to win: it replaces a price sent here at its next hourly update."},{"code":"ENGINE_WILL_RECOUNT","level":"warning","on":"availability","means":"The hotel publishes the count its bookings work out: a count above 0 sent here is replaced. A 0 holds."},{"code":"DRIFT_REPAIR_OFF","level":"info","on":"rates, restrictions","means":"The hotel switched the nightly repair off: a value changed on the channel manager's side is reported, not sent again."}]},"close":{"what":"POST /availability/close closes one room type on a range of nights everywhere, in one call: it sets the room type's count to 0 and switches stop-sell on for every one of its rate plans (their per-OTA plans take it from them on the channel manager). You do not need to know the hotel's plans. Scope ari:write.","answer":"What was closed (count.changedNights, and each rate plan with its nights), what was already closed, and notReached: every plan that is not linked or that no channel sells, and the one thing no stop-sell reaches, a rate an OTA links on its own side, which only the count closes.","reopen":"POST /availability/reopen undoes exactly that close and nothing else: it lifts the stop-sell on the plans the close switched on (a plan that was already stop-sold before stays stopped) and puts back the count each night held before. Name available to set a count yourself instead: only your software knows how many rooms are free now. A night whose count was changed after the close is left as it is, and a night the close had not closed is skipped (skippedNights).","writes":"Both are ordinary writes underneath: 202 with a batch for the count and one for the stay rules to watch with GET /batches/{batchId}; 200 when nothing had to change, and on a dry run. Charged the room type's count and each of its plans for every night against the cells budget.","shield":"A close only closes inventory, so it is accepted while the integration is paused or out of budget, on the safety lane (lane: true). A reopen opens inventory and waits like any other open (429 RATE_LIMITED, data.scope shield-pause)."},"night":{"what":"GET /explain?roomTypeId=&date=, optionally &ratePlanId=: one night's whole story from our record. Scope ari:read. No call is made to the channel manager, so it can be asked at any time.","answers":"For the room type's count and for each rate plan's price and stay rules: what your software last sent and when (with its batch id), what our record holds and who set it, what the channel manager was last seen holding and when; every send of the count we still hold and how it ended, a refused value in the channel manager's own words; the plan's per-OTA plans; every connection and whether it sells the plan; the rules in force that night; the bookings that hold or held a room (ids and times, never a guest); and summary, the same in plain sentences.","honest":"Where we do not know, the answer says so: seenAt null means the night was never read back from the channel manager; lastSent null means the write is older than the ones we kept the values of (searched says how far we looked); channels.known false means the hotel's connections have not been read yet.","notOtas":"We hold the channel manager's copy, not each OTA's: what an OTA shows is what the channel manager passed to it."},"notMapped":"A rate plan can be on the channel manager and sold by no connected channel. What each connection maps is read from the channel manager every night and kept (channels.seenAt on GET /explain). Such a plan is named three ways: the notice PLAN_NOT_MAPPED on a write, unreachable[] with status not-mapped on its batch (which still lands: the values are sent), and reach on GET /explain.","sandboxFaults":{"what":"On a sandbox the pretend channel takes everything. POST /sandbox/faults makes it misbehave, so you can watch your software handle what a live hotel meets on a bad day. Test keys only (403 SANDBOX_ONLY). Prices and stay rules only: room counts land as before.","kinds":{"refuse":"The next values (rate plan × night) are refused as the channel manager refuses: the nights are held with its words, the batch reads failed with parkedCells, GET /sync counts them, your webhook receives channel.sync.alert (value_refused), and the same value sent again is answered as held.","throttle":"For minutes, every push is answered \"too many requests\": batches wait (pending, then failed from the fifth attempt in a row, as on a live hotel), nothing is lost, no alert is sent, and it lands by itself afterwards.","outage":"For minutes, every push fails. After five failed attempts, one a minute on a sandbox, your webhook receives channel.sync.alert (rates_out_of_sync) and the batch reads failed; when the outage ends the next attempt lands and channel.sync.recovered follows."},"answer":"The fault in force and watch: what to do next and what your software should then see, step by step. GET /sandbox/faults reads it; DELETE /sandbox/faults ends it. One fault at a time; a new one replaces it."}},"postman":{"collection":"/api/v1/public/connect-api/postman","environment":"/api/v1/public/connect-api/postman?environment=1","note":"A Postman v2.1 collection generated from this contract: import both, paste your key into the environment's apiKey, and run the folders top to bottom."},"idempotency":{"header":"x-idempotency-key","retentionDays":7},"errorCodes":["API_KEY_INVALID","API_KEY_REVOKED","API_KEY_EXPIRED","CONNECT_API_NOT_CONFIGURED","IP_NOT_ALLOWED","SCOPE_MISSING","PROPERTY_UNAVAILABLE","CHANNEL_MANAGER_DISABLED","PMS_NOT_AVAILABLE","VALIDATION","RANGE_INVALID","HORIZON","TOO_MANY_UPDATES","TOO_MANY_CELLS","UNKNOWN_ROOM_TYPE","UNKNOWN_RATE_PLAN","CURRENCY_MISMATCH","RATE_LIMITED","NOTHING_ACCEPTED","BATCH_NOT_FOUND","IDEMPOTENCY_KEY_INVALID","IDEMPOTENCY_KEY_REUSED","IDEMPOTENCY_IN_FLIGHT","STAY_INVALID","UNKNOWN_ROOM_TYPE_FOR_PLAN","OCCUPANCY_EXCEEDED","NO_AVAILABILITY","EXTERNAL_REFERENCE_REUSED","PAYMENT_NOT_ALLOWED","PAYMENT_EXCEEDS_TOTAL","TAXES_NOT_CONFIGURED","TAXES_INSIDE_RATES","BOOKING_NOT_FOUND","BOOKING_NOT_CANCELLABLE","MODULE_NOT_ENTITLED","SANDBOX_ONLY","ROOM_TYPE_NOT_FOUND","RATE_PLAN_NOT_FOUND","CATALOG_CONFLICT","CATALOG_BUSY","CHANNEL_MANAGER_ERROR","WEBHOOK_ENDPOINT_NOT_FOUND","WEBHOOK_DELIVERY_NOT_FOUND","WEBHOOK_ENDPOINT_LIMIT","WEBHOOK_ENDPOINT_NOT_ACTIVE","WEBHOOK_ENDPOINT_SUSPENDED","WEBHOOK_PAYLOAD_EXPIRED","WEBHOOK_ACCESS_ENDED","WEBHOOKS_UNAVAILABLE","PROPERTY_REQUIRED","PROPERTY_NOT_FOUND","ARI_NOT_AUTHORITATIVE","ROUTE_NOT_FOUND","PAYLOAD_TOO_LARGE","AUTH_BACKEND_UNAVAILABLE","BOOKING_NOT_MODIFIABLE","SANDBOX_NOT_FOUND","SANDBOX_INCOMPLETE","WRITES_FROZEN","WRITES_SUSPENDED","SHIELD_UNAVAILABLE","CATALOG_LIMIT_REACHED","TOO_MANY_NEW_ENTITIES","RATE_OUT_OF_BAND","CHANNEL_NOT_FOUND","CHANNEL_SHARED","MODIFIER_OUT_OF_BAND","CHANNEL_PAUSED","COMPANY_KEY_REQUIRED","BILLING_SETUP_REQUIRED","OWNER_HAS_ACCOUNT","SANDBOX_LIMIT","CONFIRMATION_MISMATCH","PROPERTY_NOT_REMOVABLE","PROPERTY_NOT_CHANGEABLE","PROPERTY_BUSY","PRICE_UNAVAILABLE","CONNECT_LINK_NOT_FOUND","CONNECT_LINKS_UNAVAILABLE","CHANNEL_NOT_AVAILABLE","LIVE_KEY_REQUIRED","NOT_READY","KEY_NOT_FOUND","KEY_LIMIT","KEY_REVOKED","KEY_ALREADY_ROTATING","SCOPES_INVALID","ALLOWED_CIDRS_INVALID","REASON_REQUIRED","SUPPORT_TICKET_NOT_FOUND","SUPPORT_TICKET_CLOSED"],"samples":{"property":{"id":61,"name":"The Lantern House","timezone":"Asia/Kolkata","currency":"INR","inventoryScope":"PMS_CM","sandbox":false,"horizonDays":500,"ariAuthoritative":true,"scopes":["bookings:read","bookings:write"],"products":{"channelManager":true,"pms":true},"limits":{"requestsPerMinute":120,"writesPerMinute":30,"maxUpdatesPerRequest":1000,"maxCellsPerRequest":5000,"bookingsPerMinute":20,"cellsPerHour":10000,"cellsPerDay":30000,"maxRoomTypes":18,"maxRatePlans":180,"ratePlansPerRoomType":null,"newEntitiesPerMinute":20},"usage":{"cellsThisHour":43,"cellsLast24h":1138},"shield":{"level":"CLEAR","reason":null,"until":null},"sync":{"state":"IN_SYNC","pendingCells":0}},"limits":{"asOf":"2026-11-22T09:30:12.000Z","key":{"kind":"hotel","mode":"live","propertyId":61},"budgets":[{"scope":"requests","header":"key","per":"key","window":"60 s sliding","windowSeconds":60,"quota":120,"unit":"requests","used":3,"remaining":117,"resetSeconds":42,"counts":"every request on one key"},{"scope":"writes","header":"key-writes","per":"key","window":"60 s sliding","windowSeconds":60,"quota":30,"unit":"writes","used":1,"remaining":29,"resetSeconds":42,"counts":"every request on one key that is not a GET (PUT, POST and DELETE); a dry run (dryRun: true) is a write here"},{"scope":"cells","header":"cells","per":"property (all its keys)","window":"60 s sliding","windowSeconds":60,"quota":20000,"unit":"cells","used":730,"remaining":19270,"resetSeconds":42,"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"},{"scope":"property-bookings-day","header":null,"per":"property (all its keys)","window":"rolling 24 hours","windowSeconds":86400,"quota":500,"unit":"bookings","used":12,"remaining":488,"resetSeconds":61200,"counts":"POST /bookings per property per ROLLING 24 HOURS (not per minute); the owner can raise it per property"}],"shield":{"standing":{"level":"CLEAR","reason":null,"until":null},"budgets":[{"scope":"cells-hour","header":null,"per":"property (all its keys)","window":"one clock hour (UTC)","windowSeconds":3600,"quota":20440,"unit":"changed cells","used":43,"remaining":20397,"resetSeconds":1788,"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"},{"scope":"cells-day","header":null,"per":"property (all its keys)","window":"rolling 24 hours","windowSeconds":86400,"quota":61320,"unit":"changed cells","used":1138,"remaining":60182,"resetSeconds":40188,"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"}]},"caps":[{"scope":"maxUpdatesPerRequest","per":"request","quota":1000,"unit":"entries","counts":"entries in one updates array (400 TOO_MANY_UPDATES past it)"},{"scope":"maxCellsPerRequest","per":"request","quota":5000,"unit":"cells","counts":"cells (entity × night) one request may name after range expansion (400 TOO_MANY_CELLS past it)"}],"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."},"properties":{"keyKind":"company","properties":[{"id":61,"name":"The Lantern House","timezone":"Asia/Kolkata","currency":"INR","channelManager":true,"sandbox":false},{"id":62,"name":"Hill View Retreat","timezone":"Asia/Kolkata","currency":"INR","channelManager":true,"sandbox":false}]},"propertyCreate":{"name":"Ganga Guest House","owner":{"name":"Meera Joshi","email":"meera@gangaguesthouse.example","phone":"+91 98765 43210"},"address":{"line1":"14 Assi Ghat Road","city":"Varanasi","state":"Uttar Pradesh","postalCode":"221005","country":"IN"},"taxId":"09ABCDE1234F1Z5","roomTypes":[{"ref":"rt-river","name":"River View Room","roomCount":6,"adults":2,"defaultRate":3200},{"ref":"rt-family","name":"Family Room","roomCount":2,"adults":4,"defaultRate":5400}]},"propertyCreated":{"id":63,"name":"Ganga Guest House","timezone":"Asia/Kolkata","currency":"INR","channelManager":false,"sandbox":false,"billing":{"state":"ACTIVE","reason":null,"message":"This hotel's billing has started: it is on your next monthly invoice."},"replay":false},"propertyChange":{"name":"Ganga Riverside Guest House","address":{"line1":"16 Assi Ghat Road"}},"propertyChanged":{"id":63,"name":"Ganga Riverside Guest House","timezone":"Asia/Kolkata","currency":"INR","channelManager":false,"sandbox":false,"address":{"line1":"16 Assi Ghat Road","city":"Varanasi","state":"Uttar Pradesh","postalCode":"221005","country":"IN"},"changed":["name","address.line1"]},"propertyRemoved":{"id":63,"name":"Ganga Guest House","removed":true,"replay":false,"sandbox":false,"access":"CLOSED","billing":{"state":"CANCELLED","cancelledAt":"2026-11-19T09:30:12.000Z"},"channelManager":{"state":"REMOVED","step":null,"stillConnected":null}},"propertyRemovedPending":{"id":63,"name":"Ganga Guest House","removed":true,"replay":false,"sandbox":false,"access":"CLOSED","billing":{"state":"CANCELLED","cancelledAt":"2026-11-19T09:30:12.000Z"},"channelManager":{"state":"RETRYING","step":"RATE_PLANS","stillConnected":{"channels":0,"ratePlans":2,"roomTypes":2,"property":true}}},"billing":{"billed":true,"currency":"INR","outstanding":{"amount":"3765.38","amountMinor":376538,"openInvoices":1,"oldestDueAt":"2027-01-10T18:29:59.999Z"},"onboardingFee":{"state":"PAID","amount":"50.00","currency":"USD","invoiceNumber":"ZS/26-27/0398"},"quota":{"applies":true,"why":"ACTIVE","startsOn":"2027-01-01","properties":{"allowed":10,"used":4,"free":6},"next":{"properties":20,"payAhead":"54.00","payAheadMinor":5400,"currency":"USD"},"setByZimmerStack":false,"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)."},"paidAhead":{"amount":"0.00","amountMinor":0,"currency":"INR"},"unpaidInvoiceDays":{"applies":true,"dueDay":10,"pauseDay":25,"endAfterDays":5,"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.","unpaid":[{"invoiceNumber":"ZS/26-27/0441","dueAt":"2027-01-10T18:29:59.999Z","pauseAt":"2027-01-24T18:30:00.000Z","endAt":"2027-01-29T18:30:00.000Z","automatic":true}]},"atCost":{"currency":"USD","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.","invoicing":"BY_ZIMMERSTACK","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.","recorded":"3.00","recordedMinor":300,"items":[{"month":"2027-01","property":{"id":62,"name":"Hill View Retreat"},"kind":"room_types","what":"3 room types above the 20 included","held":23,"included":20,"quantity":3,"allowedLimit":26,"unitPrice":"1.00","amount":"3.00","amountMinor":300,"status":"RECORDED","standing":"ADDED_BY_ZIMMERSTACK","invoiceNumber":null}]}},"billingInvoices":{"billed":true,"items":[{"id":"inv_8f3k2m9q","number":"ZS/26-27/0441","about":"MONTH","periodStart":"2027-01-01","periodEnd":"2027-01-31","currency":"INR","status":"OPEN","issuedAt":"2027-01-03T04:30:00.000Z","dueAt":"2027-01-10T18:29:59.999Z","paidAt":null,"overdue":true,"beforeTax":"3191.00","beforeTaxMinor":319100,"tax":"574.38","taxMinor":57438,"total":"3765.38","totalMinor":376538,"paid":"0.00","credited":"0.00","balance":"3765.38","balanceMinor":376538,"lines":[{"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)","hotel":null,"quantity":1,"kind":"RECURRING","total":"941.30","totalMinor":94130}]}],"payments":[{"receivedAt":"2026-12-08T09:12:44.000Z","amount":"5229.43","amountMinor":522943,"currency":"INR","method":"RAZORPAY","invoiceNumber":"ZS/26-27/0398"}]},"billingNextInvoice":{"billed":true,"asOf":"2027-01-12T06:00:00.000Z","month":"2027-02","counting":"LIVE_ON_FIRST","currency":"INR","lines":[{"hotel":"The Lantern House","propertyId":61,"module":"CM","priced":"PRICE_LIST","priceList":{"id":1,"name":"Channel manager API","currency":"USD"},"band":"Hotel","rooms":24,"declaredRooms":null,"hotelsInBand":3,"unit":"HOTEL","quantity":1,"unitPrice":"797.71","unitPriceMinor":79771,"amount":"797.71","amountMinor":79771,"conversion":{"fromCurrency":"USD","listUnitPrice":"9.00","rate":"88.6344","rateDate":"2027-01-08"}},{"hotel":"Ganga Guest House","propertyId":63,"module":"CM","priced":"PRICE_LIST","priceList":{"id":1,"name":"Channel manager API","currency":"USD"},"band":"Homestay & VR","rooms":8,"declaredRooms":6,"hotelsInBand":1,"unit":"ROOM","quantity":8,"unitPrice":"88.63","unitPriceMinor":8863,"amount":"709.04","amountMinor":70904,"conversion":{"fromCurrency":"USD","listUnitPrice":"1.00","rate":"88.6344","rateDate":"2027-01-08"}}],"beforeTax":"1506.75","beforeTaxMinor":150675,"taxAddedOnTop":true,"paidAhead":{"amount":"0.00","amountMinor":0},"notes":[],"conversionMissing":null,"atCost":{"invoicing":"BY_ZIMMERSTACK","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.","lines":[{"month":"2027-01","property":{"id":62,"name":"Hill View Retreat"},"kind":"room_types","what":"3 room types above the 20 included","usdAmount":"3.00","usdAmountMinor":300,"amount":null,"amountMinor":null}],"conversion":null,"conversionMissing":null,"beforeTax":"0.00","beforeTaxMinor":0}},"supportTicketCreate":{"severity":"many_hotels","subject":"Bookings from Booking.com stopped arriving on two hotels","message":"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.","propertyIds":[61,62]},"supportTicket":{"id":1042,"subject":"Bookings from Booking.com stopped arriving on two hotels","severity":"many_hotels","status":"OPEN","mode":"live","properties":{"all":false,"ids":[61,62]},"openedAt":"2026-11-22T04:05:12.000Z","lastMessageAt":"2026-11-22T04:05:12.000Z","firstReply":{"target":"Within 60 minutes, 9:00 to 21:00 IST, every day. Opened outside those hours: by 10:00 IST.","dueAt":"2026-11-22T05:05:12.000Z","repliedAt":null},"closedAt":null,"closedBy":null,"messages":[{"id":3310,"author":"partner","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.","createdAt":"2026-11-22T04:05:12.000Z"}],"diagnostic":{"takenAt":"2026-11-22T04:05:12.000Z","windowHours":24,"requests":{"refused":3,"byCode":[{"status":429,"errorCode":"RATE_LIMITED","count":3,"lastAt":"2026-11-22T03:58:40.000Z"}],"lastRefused":[{"requestId":"rq_mi8x3k2a9f2c1a7e","at":"2026-11-22T03:58:40.000Z","method":"PUT","route":"/rates","status":429,"errorCode":"RATE_LIMITED","propertyId":61}]},"hotels":[{"propertyId":61,"inventory":{"pendingCells":0,"outOfSyncSince":null,"lastOkAt":"2026-11-22T04:03:55.000Z"},"rates":{"waitingCells":0,"refusedCells":0,"lastPushAt":"2026-11-22T03:59:02.000Z","lastErrorAt":null,"consecutiveFailures":0},"channelIssues":[{"event":"disconnect_channel","count":1,"since":"2026-11-22T03:41:18.000Z"}],"shield":{"level":"CLEAR","until":null},"usage":{"cellsChanged":1138,"refusals":0,"refusedByChannelManager":0}}],"hotelsNotShown":0,"partner":{"shield":{"level":"CLEAR","until":null},"usage":{"cellsChanged":20914,"refusals":0,"refusedByChannelManager":0}},"webhooks":[{"endpointId":7,"status":"ACTIVE","consecutiveFailures":0,"failingSince":null,"lastSuccessAt":"2026-11-22T03:39:50.000Z","lastFailureAt":null,"deliveries":{"delivered":212,"failed":0,"pending":0},"lastFailed":[]}],"incomplete":[]}},"status":{"asOf":"2026-11-22T04:05:00.000Z","overall":"degraded","components":[{"id":"api","name":"The API","kind":"platform","covers":"Requests to the Connect API are answered.","state":"operational","incidentIds":[]},{"id":"bookings_in","name":"Bookings coming in","kind":"platform","covers":"Bookings made on the booking sites reach ZimmerStack and are sent on to you.","state":"operational","incidentIds":[]},{"id":"ari_out","name":"Prices and availability going out","kind":"platform","covers":"The prices, stay rules and room counts you send reach the booking sites.","state":"degraded","incidentIds":[37]},{"id":"ota:bookingcom","name":"Booking.com","kind":"booking_site","covers":"Booking.com: bookings from it, and prices and availability to it.","state":"operational","incidentIds":[]},{"id":"ota:gommt","name":"MakeMyTrip · Goibibo","kind":"booking_site","covers":"MakeMyTrip · Goibibo: bookings from it, and prices and availability to it.","state":"operational","incidentIds":[]},{"id":"ota:agoda","name":"Agoda","kind":"booking_site","covers":"Agoda: bookings from it, and prices and availability to it.","state":"operational","incidentIds":[]},{"id":"ota:expedia","name":"Expedia","kind":"booking_site","covers":"Expedia: bookings from it, and prices and availability to it.","state":"operational","incidentIds":[]},{"id":"ota:tripcom","name":"Trip.com","kind":"booking_site","covers":"Trip.com: bookings from it, and prices and availability to it.","state":"operational","incidentIds":[]},{"id":"ota:yatra","name":"Yatra","kind":"booking_site","covers":"Yatra: bookings from it, and prices and availability to it.","state":"operational","incidentIds":[]},{"id":"ota:hostelworld","name":"Hostelworld","kind":"booking_site","covers":"Hostelworld: bookings from it, and prices and availability to it.","state":"operational","incidentIds":[]},{"id":"ota:airbnb","name":"Airbnb","kind":"booking_site","covers":"Airbnb: bookings from it, and prices and availability to it.","state":"operational","incidentIds":[]}],"incidents":{"open":[{"id":37,"component":"ari_out","componentName":"Prices and availability going out","severity":"degraded","status":"identified","title":"Prices and availability are reaching the booking sites late","startedAt":"2026-11-22T03:40:00.000Z","updatedAt":"2026-11-22T04:02:00.000Z","resolvedAt":null,"properties":{"all":false,"count":2,"ids":[61,62],"truncated":false},"updates":[{"at":"2026-11-22T04:02:00.000Z","status":"identified","severity":"degraded","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."},{"at":"2026-11-22T03:40:00.000Z","status":"investigating","severity":"degraded","message":"Changes you send are accepted and kept, but are reaching the booking sites up to 20 minutes late. We are looking into it."}]}],"recent":[]},"uptimeTarget":{"percent":99.9,"window":"calendar month","credits":false,"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."},"page":null},"catalog":{"currency":"INR","roomTypes":[{"id":412,"ref":"rt-deluxe","name":"Deluxe Garden Room","maxAdults":2,"maxChildren":1,"roomKind":"room","sync":"IN_SYNC"},{"id":413,"ref":null,"name":"Family Suite","maxAdults":4,"maxChildren":2,"roomKind":"room","sync":"IN_SYNC"}],"ratePlans":[{"id":901,"ref":"rp-bb","roomTypeId":412,"name":"Bed and breakfast","mealPlan":"CP","occupancy":2,"currency":"INR","refundable":true,"sync":"IN_SYNC"},{"id":902,"ref":null,"roomTypeId":413,"name":"Room only, non-refundable","mealPlan":"EP","occupancy":4,"currency":"INR","refundable":false,"sync":"PENDING"},{"id":904,"ref":"rp-ro","roomTypeId":412,"name":"Room only","mealPlan":"EP","occupancy":2,"currency":"INR","refundable":true,"sync":"IN_SYNC"}]},"roomTypesUpsert":{"roomTypes":[{"ref":"rt-deluxe","name":"Deluxe Garden Room","roomCount":8,"adults":2,"children":1},{"ref":"rt-penthouse","name":"Penthouse","roomCount":1,"adults":3,"children":1}]},"ratePlansUpsert":{"ratePlans":[{"ref":"rp-bb","roomTypeRef":"rt-deluxe","name":"Bed and breakfast","mealPlan":"CP","occupancy":2,"refundable":true,"defaultRate":"4500.00"},{"ref":"rp-ph-ro","roomTypeRef":"rt-penthouse","name":"Room only","mealPlan":"EP","occupancy":3,"refundable":false,"defaultRate":12000}]},"catalogUpsertResult":{"items":[{"ref":"rt-deluxe","id":412,"action":"adopted","sync":"IN_SYNC","notice":null},{"ref":"rt-penthouse","id":414,"action":"created","sync":"IN_SYNC","notice":null}],"channelManager":{"enabled":true,"reason":null}},"ratePlansUpsertResult":{"items":[{"ref":"rp-bb","id":901,"action":"adopted","sync":"IN_SYNC","notice":null},{"ref":"rp-ph-ro","id":903,"action":"created","sync":"IN_SYNC","notice":null}],"channelManager":{"enabled":true,"reason":null}},"catalogDeleteResult":{"id":414,"deleted":true,"channelManagerDeleted":true,"deletedRatePlanIds":[903]},"availabilityWrite":{"updates":[{"roomTypeId":412,"dateFrom":"2026-12-01","dateTo":"2026-12-31","available":5},{"roomTypeId":412,"dateFrom":"2026-12-24","dateTo":"2026-12-26","available":2}]},"ratesWrite":{"updates":[{"ratePlanId":901,"dateFrom":"2026-12-01","dateTo":"2027-03-31","rate":"4500.00","currency":"INR"},{"ratePlanId":901,"dateFrom":"2026-12-01","dateTo":"2027-03-31","days":["fr","sa"],"rate":5200,"currency":"INR"}]},"restrictionsWrite":{"updates":[{"ratePlanId":901,"dateFrom":"2026-12-24","dateTo":"2026-12-26","minStayArrival":2,"closedToArrival":false},{"ratePlanId":901,"dateFrom":"2026-12-31","dateTo":"2026-12-31","stopSell":true}]},"availabilityWriteByRef":{"updates":[{"roomTypeRef":"rt-deluxe","dateFrom":"2026-12-01","dateTo":"2026-12-31","available":5},{"roomTypeRef":"rt-deluxe","dateFrom":"2026-12-24","dateTo":"2026-12-26","available":2}]},"ratesWriteByRef":{"updates":[{"ratePlanRef":"rp-bb","dateFrom":"2026-12-01","dateTo":"2027-03-31","rate":"4500.00","currency":"INR"},{"ratePlanRef":"rp-bb","dateFrom":"2026-12-01","dateTo":"2027-03-31","days":["fr","sa"],"rate":5200,"currency":"INR"}]},"restrictionsWriteByRef":{"updates":[{"ratePlanRef":"rp-bb","dateFrom":"2026-12-24","dateTo":"2026-12-26","minStayArrival":2,"closedToArrival":false},{"ratePlanRef":"rp-bb","dateFrom":"2026-12-31","dateTo":"2026-12-31","stopSell":true}]},"refRefusals":{"unknownRoomType":{"statuscode":400,"message":"room type ref(s) rt-attic do not belong to this property (see GET /catalog, or send the room type first through PUT /catalog/room-types)","data":{"code":"UNKNOWN_ROOM_TYPE","details":{"roomTypeRefs":["rt-attic"]}}},"unknownRatePlan":{"statuscode":400,"message":"rate plan ref(s) rp-weekend do not belong to this property (see GET /catalog, or send the rate plan first through PUT /catalog/rate-plans)","data":{"code":"UNKNOWN_RATE_PLAN","details":{"ratePlanRefs":["rp-weekend"]}}},"both":{"statuscode":400,"message":"updates.0: name the room type once: send roomTypeId or roomTypeRef, not both","data":{"code":"VALIDATION","details":[{"code":"custom","message":"name the room type once: send roomTypeId or roomTypeRef, not both","path":["updates",0]}]}},"neither":{"statuscode":400,"message":"updates.0: name the rate plan: send ratePlanId or ratePlanRef","data":{"code":"VALIDATION","details":[{"code":"custom","message":"name the rate plan: send ratePlanId or ratePlanRef","path":["updates",0]}]}},"notUnique":{"statuscode":409,"message":"More than one room type of this hotel has the ref rt-deluxe, so the ref names no single one. Name the room type by its id: GET /catalog lists each with its id.","data":{"code":"CATALOG_CONFLICT","details":{"roomTypeRefs":["rt-deluxe"]}}}},"availabilityRead":{"from":"2026-12-24","to":"2026-12-26","cells":[{"roomTypeId":412,"date":"2026-12-24","available":2},{"roomTypeId":412,"date":"2026-12-25","available":2},{"roomTypeId":412,"date":"2026-12-26","available":2},{"roomTypeId":413,"date":"2026-12-24","available":1},{"roomTypeId":413,"date":"2026-12-25","available":1},{"roomTypeId":413,"date":"2026-12-26","available":1}]},"ratesRead":{"from":"2026-12-24","to":"2026-12-26","currency":"INR","decimals":2,"cells":[{"ratePlanId":901,"date":"2026-12-24","rate":"4500.00","rateMinor":450000,"source":"MANUAL"},{"ratePlanId":901,"date":"2026-12-25","rate":"5200.00","rateMinor":520000,"source":"MANUAL"},{"ratePlanId":901,"date":"2026-12-26","rate":"5200.00","rateMinor":520000,"source":"MANUAL"},{"ratePlanId":904,"date":"2026-12-24","rate":"4000.00","rateMinor":400000,"source":"PLAN_DEFAULT"},{"ratePlanId":904,"date":"2026-12-25","rate":"4000.00","rateMinor":400000,"source":"PLAN_DEFAULT"},{"ratePlanId":904,"date":"2026-12-26","rate":"4000.00","rateMinor":400000,"source":"PLAN_DEFAULT"}]},"restrictionsRead":{"from":"2026-12-24","to":"2026-12-26","cells":[{"ratePlanId":901,"date":"2026-12-24","stopSell":null,"closedToArrival":false,"closedToDeparture":null,"minStayArrival":2,"minStayThrough":null,"maxStay":null},{"ratePlanId":901,"date":"2026-12-25","stopSell":null,"closedToArrival":false,"closedToDeparture":null,"minStayArrival":2,"minStayThrough":null,"maxStay":null},{"ratePlanId":901,"date":"2026-12-26","stopSell":null,"closedToArrival":false,"closedToDeparture":null,"minStayArrival":2,"minStayThrough":null,"maxStay":null}]},"bookingCreate":{"externalReference":"WEB-2026-000123","checkIn":"2026-12-20","checkOut":"2026-12-23","currency":"INR","guest":{"name":"Asha Verma","phone":"+919876543210","email":"asha@example.com","notes":"Late arrival, after 22:00"},"rooms":[{"roomTypeId":412,"ratePlanId":901,"adults":2,"children":1,"nightlyRate":"4500.00"},{"roomTypeId":412,"ratePlanId":901,"adults":2,"nightlyRate":"4500.00"}],"payment":{"amount":"9000.00","method":"ONLINE","reference":"pay_QwErTy123"},"notes":"Promo WINTER10 applied on the website"},"bookingCancel":{"reason":"Guest cancelled on the website"},"directBookingCancel":{"refund":"policy","reason":"Guest phoned the front desk to cancel"},"bookingView":{"bookingId":48213,"reference":"SB-7KQ2MX9D","externalReference":"WEB-2026-000123","status":"UPCOMING","checkIn":"2026-12-20","checkOut":"2026-12-23","nights":3,"currency":"INR","totalAmount":"27000.00","totalPaid":"9000.00","balanceDue":"18000.00","guest":{"name":"Asha Verma","phone":"+919876543210","email":"asha@example.com"},"rooms":[{"bookingRoomId":90001,"roomTypeId":412,"ratePlanId":901,"mealPlan":"CP","adults":2,"children":1,"nightlyRate":"4500.00","status":"UPCOMING"},{"bookingRoomId":90002,"roomTypeId":412,"ratePlanId":901,"mealPlan":"CP","adults":2,"children":0,"nightlyRate":"4500.00","status":"UPCOMING"}],"inventory":{"eventRecorded":true,"channelManager":true,"pushedBy":"inventory-drain"},"replay":false,"createdAt":"2026-12-10T09:14:03.201Z","cancelledAt":null},"writeAccepted":{"batchId":"7f1d2c4e-5a6b-4c8d-9e0f-112233445566","resource":"rates","requestedCells":121,"acceptedCells":34,"noopCells":87,"rejected":[],"pushedBy":"ari-projector","poll":"/api/v1/connect-api/v1/batches/7f1d2c4e-5a6b-4c8d-9e0f-112233445566"},"availabilityAccepted":{"batchId":"4a1f6e2d-8c3b-4d59-a7e0-2b9c5d8f1e63","resource":"availability","requestedCells":31,"acceptedCells":3,"noopCells":28,"rejected":[],"pushedBy":"inventory-drain","poll":"/api/v1/connect-api/v1/batches/4a1f6e2d-8c3b-4d59-a7e0-2b9c5d8f1e63"},"restrictionsAccepted":{"batchId":"c2d94b7a-6e15-4f08-b3a2-7d1e9f0c5a84","resource":"restrictions","requestedCells":4,"acceptedCells":4,"noopCells":0,"rejected":[],"pushedBy":"ari-projector","poll":"/api/v1/connect-api/v1/batches/c2d94b7a-6e15-4f08-b3a2-7d1e9f0c5a84","notices":[{"code":"ROOM_STILL_ON_SALE","level":"warning","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.","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).","roomTypeId":412,"ratePlanIds":[901],"otherRatePlanIds":[904],"dateFrom":"2026-12-31","dateTo":"2026-12-31","nights":1}]},"batchPending":{"batchId":"7f1d2c4e-5a6b-4c8d-9e0f-112233445566","resource":"rates","createdAt":"2026-12-01T09:14:03.201Z","requestedCells":121,"acceptedCells":34,"noopCells":87,"rejected":[],"status":"pending","pendingCells":12,"parkedCells":0,"lastError":null},"syncStatus":{"propertyId":61,"sandbox":false,"ariAuthoritative":true,"inventory":{"state":"IN_SYNC","pendingCells":0,"lastOkAt":"2026-12-01T09:13:20.000Z","lastError":null,"outOfSyncSince":null},"rates":{"dirtyCells":12,"parkedCells":0,"lastPushAt":"2026-12-01T09:14:31.000Z","lastErrorAt":null,"lastError":null,"driftCells":0,"driftSeenAt":null},"shield":{"level":"CLEAR","reason":null,"until":null},"newestPendingBatch":{"batchId":"7f1d2c4e-5a6b-4c8d-9e0f-112233445566","resource":"rates","createdAt":"2026-12-01T09:14:03.201Z","requestedCells":121,"acceptedCells":34,"noopCells":87,"rejected":[],"status":"pending","pendingCells":12,"parkedCells":0,"lastError":null}},"availabilityPreview":{"dryRun":true,"resource":"availability","verdict":"would-write","refusal":null,"requestedCells":31,"wouldChangeCells":3,"unchangedCells":28,"heldCells":0,"wouldRejectCells":0,"lane":false,"wouldChange":[{"roomTypeIds":[412],"dateFrom":"2026-12-24","dateTo":"2026-12-26","days":null,"cells":3,"available":2}],"unchanged":[{"roomTypeIds":[412],"dateFrom":"2026-12-01","dateTo":"2026-12-23","days":null,"cells":23,"available":5},{"roomTypeIds":[412],"dateFrom":"2026-12-27","dateTo":"2026-12-31","days":null,"cells":5,"available":5}],"held":[],"wouldReject":[],"spent":{"cells":31},"wouldSpend":{"changedCells":3},"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."},"ratesPreview":{"dryRun":true,"resource":"rates","verdict":"would-write","refusal":null,"requestedCells":121,"wouldChangeCells":34,"unchangedCells":87,"heldCells":0,"wouldRejectCells":0,"lane":false,"wouldChange":[{"ratePlanIds":[901],"dateFrom":"2026-12-04","dateTo":"2027-03-27","days":["fr","sa"],"cells":34,"rate":"5200.00","rateMinor":520000}],"unchanged":[{"ratePlanIds":[901],"dateFrom":"2026-12-01","dateTo":"2027-03-31","days":["mo","tu","we","th","su"],"cells":87,"rate":"4500.00","rateMinor":450000}],"held":[],"wouldReject":[],"spent":{"cells":121},"wouldSpend":{"changedCells":34},"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."},"restrictionsPreview":{"dryRun":true,"resource":"restrictions","verdict":"would-write","refusal":null,"requestedCells":4,"wouldChangeCells":4,"unchangedCells":0,"heldCells":0,"wouldRejectCells":0,"lane":false,"wouldChange":[{"ratePlanIds":[901],"dateFrom":"2026-12-24","dateTo":"2026-12-26","days":null,"cells":3,"closedToArrival":false,"minStayArrival":2},{"ratePlanIds":[901],"dateFrom":"2026-12-31","dateTo":"2026-12-31","days":null,"cells":1,"stopSell":true}],"unchanged":[],"held":[],"wouldReject":[],"notices":[{"code":"ROOM_STILL_ON_SALE","level":"warning","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.","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).","roomTypeId":412,"ratePlanIds":[901],"otherRatePlanIds":[904],"dateFrom":"2026-12-31","dateTo":"2026-12-31","nights":1}],"spent":{"cells":4},"wouldSpend":{"changedCells":4},"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."},"restrictionsDryRun":{"dryRun":true,"updates":[{"ratePlanId":901,"dateFrom":"2026-12-31","dateTo":"2026-12-31","stopSell":true}]},"writePreview":{"dryRun":true,"resource":"restrictions","verdict":"would-write","refusal":null,"requestedCells":1,"wouldChangeCells":1,"unchangedCells":0,"heldCells":0,"wouldRejectCells":0,"lane":false,"wouldChange":[{"ratePlanIds":[901],"dateFrom":"2026-12-31","dateTo":"2026-12-31","days":null,"cells":1,"stopSell":true}],"unchanged":[],"held":[],"wouldReject":[],"notices":[{"code":"ROOM_STILL_ON_SALE","level":"warning","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.","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).","roomTypeId":412,"ratePlanIds":[901],"otherRatePlanIds":[904],"dateFrom":"2026-12-31","dateTo":"2026-12-31","nights":1}],"spent":{"cells":1},"wouldSpend":{"changedCells":1},"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."},"writeAcceptedWithNotices":{"batchId":"0b7c4f52-91d3-4e0a-8c66-5a1f2e3d4c5b","resource":"restrictions","requestedCells":1,"acceptedCells":1,"noopCells":0,"rejected":[],"pushedBy":"ari-projector","poll":"/api/v1/connect-api/v1/batches/0b7c4f52-91d3-4e0a-8c66-5a1f2e3d4c5b","notices":[{"code":"ROOM_STILL_ON_SALE","level":"warning","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.","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).","roomTypeId":412,"ratePlanIds":[901],"otherRatePlanIds":[904],"dateFrom":"2026-12-31","dateTo":"2026-12-31","nights":1}]},"closeRoomType":{"roomTypeId":412,"dateFrom":"2026-12-24","dateTo":"2026-12-26"},"closeResult":{"action":"close","dryRun":false,"roomTypeId":412,"dateFrom":"2026-12-24","dateTo":"2026-12-26","nights":3,"count":{"changedNights":3,"unchangedNights":0},"ratePlans":[{"ratePlanId":901,"name":"Bed and breakfast","changedNights":3,"unchangedNights":0,"perOtaPlans":1},{"ratePlanId":904,"name":"Room only","changedNights":2,"unchangedNights":1,"perOtaPlans":0}],"notReached":[{"what":"ota-linked-rates","reason":"not-ours","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."}],"skippedNights":0,"batches":[{"resource":"availability","batchId":"3c2b1a09-8f7e-4d6c-b5a4-938271605f4e","poll":"/api/v1/connect-api/v1/batches/3c2b1a09-8f7e-4d6c-b5a4-938271605f4e"},{"resource":"restrictions","batchId":"9e8d7c6b-5a49-4382-a716-0f1e2d3c4b5a","poll":"/api/v1/connect-api/v1/batches/9e8d7c6b-5a49-4382-a716-0f1e2d3c4b5a"}]},"reopenRoomType":{"roomTypeId":412,"dateFrom":"2026-12-24","dateTo":"2026-12-26"},"reopenResult":{"action":"reopen","dryRun":false,"roomTypeId":412,"dateFrom":"2026-12-24","dateTo":"2026-12-26","nights":3,"count":{"changedNights":3,"unchangedNights":0},"ratePlans":[{"ratePlanId":901,"name":"Bed and breakfast","changedNights":3,"unchangedNights":0,"perOtaPlans":1},{"ratePlanId":904,"name":"Room only","changedNights":2,"unchangedNights":1,"perOtaPlans":0}],"notReached":[],"skippedNights":0,"batches":[{"resource":"restrictions","batchId":"5d4c3b2a-1908-4f7e-8d6c-b5a493827160","poll":"/api/v1/connect-api/v1/batches/5d4c3b2a-1908-4f7e-8d6c-b5a493827160"},{"resource":"availability","batchId":"6f5e4d3c-2b1a-4098-9f7e-6d5c4b3a2910","poll":"/api/v1/connect-api/v1/batches/6f5e4d3c-2b1a-4098-9f7e-6d5c4b3a2910"}]},"explain":{"asOf":"2026-11-19T17:29:00.000Z","propertyId":61,"date":"2026-11-21","sandbox":false,"sourceOfTruth":true,"summary":["Your software last sent a count of 0 for this night at 2026-11-10 17:15 UTC (batch 3c2b1a09-8f7e-4d6c-b5a4-938271605f4e).","Our record holds 0, set by your software.","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.","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.","1 booking(s) hold or held a room of this type on this night: 0 live, 1 cancelled.","Rate plan 901 (Bed and breakfast) is stop-sold on this night (your software, at 2026-11-10 17:16 UTC)."],"roomType":{"id":412,"name":"Deluxe Garden Room","linked":true},"count":{"lastSent":{"at":"2026-11-10T17:15:02.000Z","batchId":"3c2b1a09-8f7e-4d6c-b5a4-938271605f4e","keyId":14,"available":0},"record":{"available":0,"setBy":"software","setAt":"2026-11-10T17:15:02.000Z","movedSince":false},"channelManager":{"available":1,"seenAt":"2026-11-11T08:16:40.000Z","how":"delta"},"inSync":false,"queued":false,"pushes":[{"at":"2026-11-11T08:16:40.000Z","cause":"CANCEL","by":"channel","bookingId":145450,"value":null,"outcome":"not-needed","words":null},{"at":"2026-11-10T17:15:41.000Z","cause":"OVERRIDE_SET","by":"software-or-person","bookingId":null,"value":null,"outcome":"sent","words":null}],"closed":null},"bookings":[{"bookingId":145450,"channel":"Agoda","status":"CANCELLED","bookedAt":"2026-11-10T17:04:11.000Z","cancelledAt":"2026-11-11T08:16:38.000Z","moves":[{"at":"2026-11-10T17:04:12.000Z","cause":"BOOKING","outcome":"not-needed"},{"at":"2026-11-11T08:16:40.000Z","cause":"CANCEL","outcome":"not-needed"}]}],"plans":[{"ratePlanId":901,"name":"Bed and breakfast","linked":true,"price":{"lastSent":{"at":"2026-11-02T06:00:10.000Z","batchId":"7f1d2c4e-5a6b-4c8d-9e0f-112233445566","keyId":14,"rate":"4500.00","rateMinor":450000},"record":{"rate":"4500.00","rateMinor":450000,"source":"MANUAL","setBy":"software"},"channelManager":{"rate":"4500.00","rateMinor":450000,"seenAt":"2026-11-19T01:12:03.000Z"},"inSync":true},"stayRules":{"lastSent":{"at":"2026-11-10T17:16:20.000Z","batchId":"9e8d7c6b-5a49-4382-a716-0f1e2d3c4b5a","keyId":14,"values":{"stopSell":true}},"record":{"stopSell":true,"closedToArrival":null,"closedToDeparture":null,"minStayArrival":null,"minStayThrough":null,"maxStay":null,"stopSellSetBy":"software"},"channelManager":{"stopSell":true,"closedToArrival":false,"closedToDeparture":false,"minStayArrival":1,"minStayThrough":1,"maxStay":0,"seenAt":"2026-11-19T01:12:03.000Z"},"inSync":true},"send":{"lastLandedAt":"2026-11-10T17:17:05.000Z","queuedSince":null,"held":null,"driftResends":null},"family":{"parent":null,"perOtaPlans":[{"ratePlanId":null,"name":null,"channelId":"7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f","channelKind":"Agoda","mode":"follows-price"}]},"channels":[{"channelId":"2a9f4c1e-7b3d-4e8a-9c5f-0d1e2f3a4b5c","kind":"BookingCom","title":"Booking.com","active":true,"mapped":true,"through":"itself","starOnPlanIds":[],"readonlyRows":0},{"channelId":"7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f","kind":"Agoda","title":"Agoda","active":true,"mapped":true,"through":"per-ota-plan","starOnPlanIds":[],"readonlyRows":0},{"channelId":"c4e8b2a6-1d3f-4a5b-8c7d-9e0f1a2b3c4d","kind":"Goibibo","title":"MakeMyTrip","active":true,"mapped":false,"through":null,"starOnPlanIds":[],"readonlyRows":0}],"reach":"mapped"}],"channels":{"known":true,"seenAt":"2026-11-19T01:10:00.000Z","live":[{"channelId":"2a9f4c1e-7b3d-4e8a-9c5f-0d1e2f3a4b5c","kind":"BookingCom","title":"Booking.com"},{"channelId":"7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f","kind":"Agoda","title":"Agoda"},{"channelId":"c4e8b2a6-1d3f-4a5b-8c7d-9e0f1a2b3c4d","kind":"Goibibo","title":"MakeMyTrip"}]},"policies":[{"code":"FOLLOWS_OTA_MOVES","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."}],"searched":{"batches":50,"oldestBatchAt":"2026-10-28T06:00:09.000Z","inventoryEvents":30}},"sandboxFault":{"kind":"refuse","values":2,"message":"Rate is below the channel's minimum"},"sandboxFaultView":{"active":true,"kind":"refuse","remaining":2,"until":null,"message":"Rate is below the channel's minimum","setAt":"2026-11-23T09:30:12.000Z","watch":["Send a price or a stay rule (PUT /rates or PUT /restrictions) and keep its batchId.","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.","Your webhook receives channel.sync.alert with event value_refused (once for this fault).","Send the same value again: it is answered in rejected as held, with the notice VALUE_HELD, and is not sent again.","Send a different value for those nights: it lands, and the nights are no longer held."]},"sandboxFaultNone":{"active":false,"kind":null,"remaining":null,"until":null,"message":null,"setAt":null,"watch":["No fault is set: everything you send lands in our record within a minute."]},"sandboxBookingCreate":{"roomTypeId":412,"checkIn":"2026-12-24","nights":2,"rooms":1,"adults":2,"guestName":"Asha Verma","otaName":"Booking.com","paidByOta":false},"sandboxBooking":{"bookingId":90311,"reference":"SBX-9001-MXHI8W001F6D","channelBookingId":"sbx-1f6d0c2e-7b53-4a0e-9c5a-2d8f3b1e4c70","otaName":"Booking.com","status":"UPCOMING","guestName":"Asha Verma","checkIn":"2026-12-24","checkOut":"2026-12-26","nights":2,"rooms":1,"roomTypeId":412,"nightlyRate":4850,"total":9700,"currency":"INR","paidByOta":false,"oversold":false,"createdAt":"2026-12-10T12:00:00.000Z","webhook":{"eventType":"channel.booking.created","queued":true}},"sandboxBookingModify":{"nights":3,"guestName":"Asha Verma-Rao"},"sandboxBookingModified":{"bookingId":90311,"reference":"SBX-9001-MXHI8W001F6D","channelBookingId":"sbx-1f6d0c2e-7b53-4a0e-9c5a-2d8f3b1e4c70","otaName":"Booking.com","status":"UPCOMING","guestName":"Asha Verma-Rao","checkIn":"2026-12-24","checkOut":"2026-12-27","nights":3,"rooms":1,"roomTypeId":412,"nightlyRate":4966.67,"total":14900,"currency":"INR","paidByOta":false,"oversold":false,"createdAt":"2026-12-10T12:00:00.000Z","webhook":{"eventType":"channel.booking.modified","queued":true}},"sandboxBookingCancelled":{"bookingId":90311,"reference":"SBX-9001-MXHI8W001F6D","channelBookingId":"sbx-1f6d0c2e-7b53-4a0e-9c5a-2d8f3b1e4c70","otaName":"Booking.com","status":"CANCELLED","guestName":"Asha Verma-Rao","checkIn":"2026-12-24","checkOut":"2026-12-27","nights":3,"rooms":1,"roomTypeId":412,"nightlyRate":4966.67,"total":14900,"currency":"INR","paidByOta":false,"oversold":false,"createdAt":"2026-12-10T12:00:00.000Z","webhook":{"eventType":"channel.booking.cancelled","queued":true}},"sandboxNoShow":{"bookingId":90312,"reference":"SBX-9001-MXHIYLXC7B3E","channelBookingId":"sbx-7b3e94a1-0c5d-4f62-8e17-3a9d2c6b5f48","otaName":"Website","status":"UPCOMING","guestName":"Priya Nair","checkIn":"2026-12-24","checkOut":"2026-12-26","nights":2,"rooms":1,"roomTypeId":412,"nightlyRate":4850,"total":9700,"currency":"INR","paidByOta":true,"oversold":false,"createdAt":"2026-12-10T12:20:00.000Z","webhook":{"eventType":"direct.booking.modified","queued":true},"stayStatus":"NOSHOW"},"sandboxSyncEvent":{"type":"channel.sync.alert","event":"rate_error"},"sandboxSyncEventView":{"event":"rate_error","channelId":"b53ff702-be2d-44ee-8a7e-d1153f096dba","channelKind":"BookingCom","raisedAt":"2026-12-10T12:30:00.000Z","resolvedAt":null,"webhook":{"eventType":"channel.sync.alert","queued":true}},"channels":{"asOf":"2026-10-30T20:15:04.000Z","channels":[{"channelId":"7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f","kind":"BookingCom","title":"Booking.com — The Lantern House","seenAt":"2026-10-30T20:15:04.000Z","openIssues":[],"modifier":[{"action":"increase","type":"percent","value":18}],"markupPlan":null},{"channelId":"0a9b8c7d-6e5f-4a3b-2c1d-0e9f8a7b6c5d","kind":"Expedia","title":"Expedia — The Lantern House","seenAt":"2026-10-30T20:15:04.000Z","openIssues":[{"event":"rate_error","raisedAt":"2026-10-30T09:40:11.000Z"}],"modifier":[],"markupPlan":null}],"propertyIssues":[]},"modifierWrite":{"steps":[{"action":"increase","type":"percent","value":18},{"action":"decrease","type":"fixed","value":200}]},"modifierResult":{"channelId":"7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f","kind":"BookingCom","title":"Booking.com — The Lantern House","modifier":[{"action":"increase","type":"percent","value":18},{"action":"decrease","type":"fixed","value":200}],"changed":true,"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."},"ratesResendAccepted":{"from":"2026-11-12","to":"2027-11-12","cells":1098,"parkedLeft":0,"watch":"/api/v1/connect-api/v1/sync","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."},"fullSyncStarted":{"channelId":"7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f","started":true,"nextAt":"2026-12-10T13:04:31.000Z"},"fullSyncSandbox":{"channelId":"b53ff702-be2d-44ee-8a7e-d1153f096dba","started":false,"nextAt":null,"notice":"Nothing was sent: a sandbox has no real OTA. On a live hotel the same request starts a full sync."},"propertyFullSync":{"channels":[{"channelId":"7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f","started":true},{"channelId":"0a9b8c7d-6e5f-4a3b-2c1d-0e9f8a7b6c5d","started":false,"code":"RATE_LIMITED","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.","retryAt":"2026-12-10T12:44:10.000Z"}],"started":1},"propertyFullSyncNoneStarted":{"channels":[{"channelId":"7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f","started":false,"code":"RATE_LIMITED","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.","retryAt":"2026-12-10T13:04:31.000Z"},{"channelId":"0a9b8c7d-6e5f-4a3b-2c1d-0e9f8a7b6c5d","started":false,"code":"RATE_LIMITED","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.","retryAt":"2026-12-10T12:44:10.000Z"}],"started":0},"propertyFullSyncSandbox":{"channels":[],"started":0,"notice":"Nothing was sent: a sandbox has no real OTA. On a live hotel the same request starts a full sync."},"channelBooking":{"id":100001,"reference":"TEST-ZS-8K3Q2M","version":1,"status":"CONFIRMED","stayStatus":"UPCOMING","channel":{"otaName":"MakeMyTrip","otaReservationCode":"TEST-ZS-8K3Q2M","source":"CHANNEL_MANAGER","sourceGroup":"INDIRECT"},"stay":{"checkIn":"2026-12-24","checkOut":"2026-12-26","nights":2,"dayUse":false},"guest":{"fullName":"Asha Verma","firstName":"Asha","lastName":"Verma","phone":"+919876500000","email":"asha.verma@example.com","country":"IN","language":"en"},"guestNotes":"Late arrival around 22:00. Non-smoking room please. (test event)","occupancy":{"adults":2,"children":0},"rooms":[{"roomTypeId":412,"ratePlanId":901,"roomTypeName":"Deluxe Garden Room","mealPlan":"CP","mealPlanSource":"ota","mealPlanText":"CP · Breakfast included","mealPrice":null,"adults":2,"children":0,"checkIn":"2026-12-24","checkOut":"2026-12-26","nights":2,"dayUse":false,"ratePerNight":2700,"amount":5400,"nightlyRates":[{"date":"2026-12-24","amount":2600},{"date":"2026-12-25","amount":2800}],"commission":1350,"status":"UPCOMING"}],"amounts":{"currency":"INR","total":5400,"paid":0,"balanceDue":5400,"paymentCollect":"property"},"finance":{"otaName":"MakeMyTrip","amountBasis":"GROSS_TOTAL","currency":"INR","grossAmount":5400,"commissionAmount":1350,"taxAmount":648,"netPayoutAmount":4050,"taxIncludedInAmount":false},"cancellation":null,"createdAt":"2026-12-10T12:00:00.000Z","updatedAt":"2026-12-10T12:00:00.000Z"},"directBooking":{"id":100001,"reference":"TEST-WEB-4H7P9D","version":1,"status":"CONFIRMED","stayStatus":"UPCOMING","channel":{"otaName":"Website","otaReservationCode":"TEST-WEB-4H7P9D","source":"DIRECT_WEB","sourceGroup":"DIRECT"},"stay":{"checkIn":"2026-12-24","checkOut":"2026-12-26","nights":2,"dayUse":false},"guest":{"fullName":"Asha Verma","firstName":"Asha","lastName":"Verma","phone":"+919876500000","email":"asha.verma@example.com","country":"IN","language":"en"},"guestNotes":null,"occupancy":{"adults":2,"children":0},"rooms":[{"roomTypeId":412,"ratePlanId":901,"roomTypeName":"Deluxe Garden Room","mealPlan":"CP","mealPlanSource":null,"mealPlanText":null,"mealPrice":null,"adults":2,"children":0,"checkIn":"2026-12-24","checkOut":"2026-12-26","nights":2,"dayUse":false,"ratePerNight":2700,"amount":5400,"nightlyRates":null,"commission":null,"status":"UPCOMING"}],"amounts":{"currency":"INR","total":5400,"paid":1080,"balanceDue":4320,"paymentCollect":"property"},"finance":null,"cancellation":null,"createdAt":"2026-12-10T12:00:00.000Z","updatedAt":"2026-12-10T12:00:00.000Z"},"directBookingCancelled":{"booking":{"id":100001,"reference":"TEST-WEB-4H7P9D","version":1,"status":"CANCELLED","stayStatus":"CANCELLED","channel":{"otaName":"Website","otaReservationCode":"TEST-WEB-4H7P9D","source":"DIRECT_WEB","sourceGroup":"DIRECT"},"stay":{"checkIn":"2026-12-24","checkOut":"2026-12-26","nights":2,"dayUse":false},"guest":{"fullName":"Asha Verma","firstName":"Asha","lastName":"Verma","phone":"+919876500000","email":"asha.verma@example.com","country":"IN","language":"en"},"guestNotes":null,"occupancy":{"adults":2,"children":0},"rooms":[{"roomTypeId":412,"ratePlanId":901,"roomTypeName":"Deluxe Garden Room","mealPlan":"CP","mealPlanSource":null,"mealPlanText":null,"mealPrice":null,"adults":2,"children":0,"checkIn":"2026-12-24","checkOut":"2026-12-26","nights":2,"dayUse":false,"ratePerNight":2700,"amount":5400,"nightlyRates":null,"commission":null,"status":"CANCELLED"}],"amounts":{"currency":"INR","total":5400,"paid":1080,"balanceDue":4320,"paymentCollect":"property"},"finance":null,"cancellation":{"at":"2026-12-11T09:15:00.000Z","reason":"Cancelled by the hotel"},"createdAt":"2026-12-10T12:00:00.000Z","updatedAt":"2026-12-11T09:15:00.000Z"},"refund":{"requested":"policy","amount":1080,"currency":"INR","status":"PROCESSED"},"replay":false},"requestLog":{"since":"2026-12-09T12:05:00.000Z","retentionDays":7,"items":[{"id":"5820417","at":"2026-12-10T12:04:31.118Z","method":"GET","route":"/sync","status":200,"errorCode":null,"address":"203.0.113.24","durationMs":41,"requestId":"rq_mxhiep729f2c1a7e","propertyId":61,"keyId":14},{"id":"5820398","at":"2026-12-10T12:04:16.902Z","method":"PUT","route":"/rates","status":202,"errorCode":null,"address":"203.0.113.24","durationMs":187,"requestId":"rq_mxhiee864be07d31","propertyId":61,"keyId":14},{"id":"5820371","at":"2026-12-10T12:03:58.440Z","method":"PUT","route":"/rates","status":429,"errorCode":"RATE_LIMITED","address":"203.0.113.24","durationMs":6,"requestId":"rq_mxhidzzcc81a5e06","propertyId":61,"keyId":14}],"more":false,"nextCursor":null},"webhookEndpoint":{"id":7,"mode":"live","url":"https://example.com/zimmerstack/webhooks","description":"Bookings and channel alerts for our PMS","apiVersion":"2026-09-01","eventTypes":["channel.booking.created","channel.booking.modified","channel.booking.cancelled","channel.sync.alert","channel.sync.recovered"],"includeGuestContact":false,"status":"ACTIVE","statusReason":null,"secretVersion":1,"previousSecretExpiresAt":null,"notifyEmail":null,"createdAt":"2026-12-10T09:30:00.000Z","updatedAt":"2026-12-10T12:00:03.000Z","lastStoppedAt":null,"health":{"state":"healthy","consecutiveFailures":0,"failingSince":null,"lastSuccessAt":"2026-12-10T12:00:03.000Z","lastFailureAt":null,"lastErrorMessage":null}},"webhookEndpointCreate":{"url":"https://example.com/zimmerstack/webhooks","description":"Bookings and channel alerts for our PMS","dataAck":true},"webhookEndpointCreated":{"endpoint":{"id":7,"mode":"live","url":"https://example.com/zimmerstack/webhooks","description":"Bookings and channel alerts for our PMS","apiVersion":"2026-09-01","eventTypes":["channel.booking.created","channel.booking.modified","channel.booking.cancelled","channel.sync.alert","channel.sync.recovered"],"includeGuestContact":false,"status":"ACTIVE","statusReason":null,"secretVersion":1,"previousSecretExpiresAt":null,"notifyEmail":null,"createdAt":"2026-12-10T09:30:00.000Z","updatedAt":"2026-12-10T09:30:00.000Z","lastStoppedAt":null,"health":{"state":"healthy","consecutiveFailures":0,"failingSince":null,"lastSuccessAt":null,"lastFailureAt":null,"lastErrorMessage":null}},"secret":"whsec_…"},"webhookEndpointUpdate":{"eventTypes":["channel.booking.created","channel.booking.modified","channel.booking.cancelled","channel.sync.alert","channel.sync.recovered","direct.booking.created","direct.booking.modified","direct.booking.cancelled"],"includeGuestContact":true},"webhookEndpointUpdated":{"id":7,"mode":"live","url":"https://example.com/zimmerstack/webhooks","description":"Bookings and channel alerts for our PMS","apiVersion":"2026-09-01","eventTypes":["channel.booking.created","channel.booking.modified","channel.booking.cancelled","channel.sync.alert","channel.sync.recovered","direct.booking.created","direct.booking.modified","direct.booking.cancelled"],"includeGuestContact":true,"status":"ACTIVE","statusReason":null,"secretVersion":1,"previousSecretExpiresAt":null,"notifyEmail":null,"createdAt":"2026-12-10T09:30:00.000Z","updatedAt":"2026-12-10T12:10:00.000Z","lastStoppedAt":null,"health":{"state":"healthy","consecutiveFailures":0,"failingSince":null,"lastSuccessAt":"2026-12-10T12:00:03.000Z","lastFailureAt":null,"lastErrorMessage":null}},"webhookEndpointPaused":{"id":7,"mode":"live","url":"https://example.com/zimmerstack/webhooks","description":"Bookings and channel alerts for our PMS","apiVersion":"2026-09-01","eventTypes":["channel.booking.created","channel.booking.modified","channel.booking.cancelled","channel.sync.alert","channel.sync.recovered"],"includeGuestContact":false,"status":"PAUSED","statusReason":"Paused by the vendor","secretVersion":1,"previousSecretExpiresAt":null,"notifyEmail":null,"createdAt":"2026-12-10T09:30:00.000Z","updatedAt":"2026-12-10T12:30:00.000Z","lastStoppedAt":"2026-12-10T12:30:00.000Z","health":{"state":"paused","consecutiveFailures":0,"failingSince":null,"lastSuccessAt":"2026-12-10T12:00:03.000Z","lastFailureAt":null,"lastErrorMessage":null}},"webhookEndpointResumed":{"id":7,"mode":"live","url":"https://example.com/zimmerstack/webhooks","description":"Bookings and channel alerts for our PMS","apiVersion":"2026-09-01","eventTypes":["channel.booking.created","channel.booking.modified","channel.booking.cancelled","channel.sync.alert","channel.sync.recovered"],"includeGuestContact":false,"status":"ACTIVE","statusReason":null,"secretVersion":1,"previousSecretExpiresAt":null,"notifyEmail":null,"createdAt":"2026-12-10T09:30:00.000Z","updatedAt":"2026-12-10T12:40:00.000Z","lastStoppedAt":"2026-12-10T12:30:00.000Z","health":{"state":"healthy","consecutiveFailures":0,"failingSince":null,"lastSuccessAt":"2026-12-10T12:00:03.000Z","lastFailureAt":null,"lastErrorMessage":null},"heldEvents":3},"webhookSecretRotated":{"secret":"whsec_…","secretVersion":2,"previousExpiresAt":"2026-12-11T12:50:00.000Z"},"webhookTest":{"eventType":"channel.booking.created"},"webhookTestQueued":{"deliveryId":"48211","eventId":"e3a1f0c8-6d2b-4c57-b9a4-0f1e2d3c4b5a","eventType":"channel.booking.created"},"webhookRecover":{"since":"2026-12-09T00:00:00.000Z"},"webhookRecoverResult":{"reset":2,"created":5,"scanned":41,"truncated":false},"webhookDeliveries":{"items":[{"id":"48211","eventId":"e3a1f0c8-6d2b-4c57-b9a4-0f1e2d3c4b5a","eventType":"channel.booking.created","mode":"TEST","status":"DELIVERED","attempts":1,"nextAttemptAt":"2026-12-10T13:00:00.000Z","lastError":null,"occurredAt":"2026-12-10T13:00:00.000Z","deliveredAt":"2026-12-10T13:00:01.000Z","createdAt":"2026-12-10T13:00:00.000Z","payloadBytes":1651,"payloadAvailable":true},{"id":"48209","eventId":"5c0e7a1d-2b64-4f3a-9d18-7e6a4b3c2f10","eventType":"channel.booking.created","mode":"LIVE","status":"DELIVERED","attempts":1,"nextAttemptAt":"2026-12-10T12:00:02.000Z","lastError":null,"occurredAt":"2026-12-10T12:00:00.000Z","deliveredAt":"2026-12-10T12:00:03.000Z","createdAt":"2026-12-10T12:00:02.000Z","payloadBytes":1668,"payloadAvailable":true}],"nextCursor":null},"webhookDelivery":{"id":"48209","eventId":"5c0e7a1d-2b64-4f3a-9d18-7e6a4b3c2f10","eventType":"channel.booking.created","mode":"LIVE","status":"DELIVERED","attempts":1,"nextAttemptAt":"2026-12-10T12:00:02.000Z","lastError":null,"occurredAt":"2026-12-10T12:00:00.000Z","deliveredAt":"2026-12-10T12:00:03.000Z","createdAt":"2026-12-10T12:00:02.000Z","payloadBytes":1668,"payloadAvailable":true,"payload":{"id":"evt_5c0e7a1d-2b64-4f3a-9d18-7e6a4b3c2f10","type":"channel.booking.created","apiVersion":"2026-09-01","occurredAt":"2026-12-10T12:00:00.000Z","mode":"live","sequence":42,"property":{"id":61,"name":"The Lantern House","currency":"INR","timezone":"Asia/Kolkata"},"data":{"booking":{"id":100001,"reference":"TEST-ZS-8K3Q2M","version":1,"status":"CONFIRMED","stayStatus":"UPCOMING","channel":{"otaName":"MakeMyTrip","otaReservationCode":"TEST-ZS-8K3Q2M","source":"CHANNEL_MANAGER","sourceGroup":"INDIRECT"},"stay":{"checkIn":"2026-12-24","checkOut":"2026-12-26","nights":2,"dayUse":false},"guest":{"fullName":"Asha Verma","firstName":"Asha","lastName":"Verma","country":"IN","language":"en"},"guestNotes":"Late arrival around 22:00. Non-smoking room please. (test event)","occupancy":{"adults":2,"children":0},"rooms":[{"roomTypeId":412,"ratePlanId":901,"roomTypeName":"Deluxe Garden Room","mealPlan":"CP","mealPlanSource":"ota","mealPlanText":"CP · Breakfast included","mealPrice":null,"adults":2,"children":0,"checkIn":"2026-12-24","checkOut":"2026-12-26","nights":2,"dayUse":false,"ratePerNight":2700,"amount":5400,"nightlyRates":[{"date":"2026-12-24","amount":2600},{"date":"2026-12-25","amount":2800}],"commission":1350,"status":"UPCOMING"}],"amounts":{"currency":"INR","total":5400,"paid":0,"balanceDue":5400,"paymentCollect":"property"},"finance":{"otaName":"MakeMyTrip","amountBasis":"GROSS_TOTAL","currency":"INR","grossAmount":5400,"commissionAmount":1350,"taxAmount":648,"netPayoutAmount":4050,"taxIncludedInAmount":false},"cancellation":null,"createdAt":"2026-12-10T12:00:00.000Z","updatedAt":"2026-12-10T12:00:00.000Z"}},"changes":null,"previous":null},"attempts_log":[{"id":"91377","attemptNo":1,"startedAt":"2026-12-10T12:00:02.412Z","durationMs":318,"outcome":"SUCCESS","responseStatus":200,"responseBodySnippet":"ok","errorMessage":null,"resolvedIp":"203.0.113.80"}],"request":{"headers":{"content-type":"application/json; charset=utf-8","webhook-id":"evt_5c0e7a1d-2b64-4f3a-9d18-7e6a4b3c2f10","webhook-timestamp":"<unix seconds at send time>","webhook-signature":"v1,<base64 HMAC-SHA256>","x-zimmerstack-event":"channel.booking.created","x-zimmerstack-delivery":"dlv_48209","x-zimmerstack-api-version":"2026-09-01","idempotency-key":"evt_5c0e7a1d-2b64-4f3a-9d18-7e6a4b3c2f10"}}},"webhookRedelivered":{"id":"48209","eventId":"5c0e7a1d-2b64-4f3a-9d18-7e6a4b3c2f10","eventType":"channel.booking.created","mode":"LIVE","status":"PENDING","attempts":0,"nextAttemptAt":"2026-12-10T12:45:00.000Z","lastError":null,"occurredAt":"2026-12-10T12:00:00.000Z","deliveredAt":"2026-12-10T12:00:03.000Z","createdAt":"2026-12-10T12:00:02.000Z","payloadBytes":1668,"payloadAvailable":true},"errors":{"API_KEY_INVALID":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}},"API_KEY_REVOKED":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_REVOKED"}},"IP_NOT_ALLOWED":{"statuscode":403,"message":"This API key may not be used from this address. The property owner restricts it to an allowlist.","data":{"code":"IP_NOT_ALLOWED"}},"SCOPE_MISSING":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}},"PROPERTY_UNAVAILABLE":{"statuscode":409,"message":"This property is not available to the API any more. Contact the property owner.","data":{"code":"PROPERTY_UNAVAILABLE"}},"CHANNEL_MANAGER_DISABLED":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}},"PMS_NOT_AVAILABLE":{"statuscode":409,"message":"This property runs the channel manager only; there is no PMS to put a booking in.","data":{"code":"PMS_NOT_AVAILABLE"}},"VALIDATION":{"statuscode":400,"message":"updates[0].available: Expected number, received string","data":{"code":"VALIDATION","details":[{"path":["updates",0,"available"],"message":"Expected number, received string"}]}},"HORIZON":{"statuscode":400,"message":"updates[0]: 2028-06-01 is beyond the horizon (last writable night is 2028-02-24, today + 500 days)","data":{"code":"HORIZON"}},"TOO_MANY_CELLS":{"statuscode":400,"message":"a request may name at most 5000 cells (entity × night); split the calendar into several requests","data":{"code":"TOO_MANY_CELLS"}},"UNKNOWN_RATE_PLAN":{"statuscode":400,"message":"rate plan(s) 77 do not belong to this property (see GET /catalog)","data":{"code":"UNKNOWN_RATE_PLAN","details":{"ratePlanIds":[77]}}},"CURRENCY_MISMATCH":{"statuscode":400,"message":"rates must be sent in INR (got EUR)","data":{"code":"CURRENCY_MISMATCH","details":{"expected":"INR","got":"EUR"}}},"RATE_LIMITED":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}},"NOTHING_ACCEPTED":{"statuscode":422,"message":"exceptions are switched off for this property — move the base rate instead","data":{"code":"NOTHING_ACCEPTED","details":{"rejected":[{"cells":151,"error":"exceptions are switched off for this property — move the base rate instead"}]}}},"BATCH_NOT_FOUND":{"statuscode":404,"message":"Batch not found.","data":{"code":"BATCH_NOT_FOUND"}},"STAY_INVALID":{"statuscode":400,"message":"checkIn 2026-10-01 is in the past (today at the property is 2026-10-20)","data":{"code":"STAY_INVALID","details":{"today":"2026-10-20"}}},"OCCUPANCY_EXCEEDED":{"statuscode":400,"message":"rooms[0]: Deluxe takes at most 3 adults (got 4)","data":{"code":"OCCUPANCY_EXCEEDED","details":{"index":0,"roomTypeId":412,"maxAdults":3}}},"NO_AVAILABILITY":{"statuscode":409,"message":"room type 412 has 0 left on 2026-12-21; 1 requested","data":{"code":"NO_AVAILABILITY","details":{"roomTypeId":412,"date":"2026-12-21","available":0,"requested":1}}},"PAYMENT_NOT_ALLOWED":{"statuscode":403,"message":"This API key may not record payments. The property owner grants the bookings:payments scope.","data":{"code":"PAYMENT_NOT_ALLOWED","details":{"needed":"bookings:payments"}}},"PAYMENT_EXCEEDS_TOTAL":{"statuscode":400,"message":"payment.amount 30000.00 exceeds the stay total 27000.00","data":{"code":"PAYMENT_EXCEEDS_TOTAL","details":{"amount":"30000.00","total":"27000.00"}}},"TAXES_NOT_CONFIGURED":{"statuscode":409,"message":"This property has no confirmed tax lines, so a rate before taxes cannot be completed. Send nightlyRate as the guest pays it (leave nightlyRateIncludesTaxes out), or ask the hotel to confirm its taxes in admin, Policies, Taxes. Either way send the booking again with a new x-idempotency-key.","data":{"code":"TAXES_NOT_CONFIGURED","details":{"nightlyRateIncludesTaxes":false}}},"TAXES_INSIDE_RATES":{"statuscode":409,"message":"This property's taxes are inside its prices, so there is nothing to add to a rate before taxes. Send nightlyRate as the guest pays it (leave nightlyRateIncludesTaxes out), with a new x-idempotency-key.","data":{"code":"TAXES_INSIDE_RATES","details":{"nightlyRateIncludesTaxes":false}}},"BOOKING_NOT_FOUND":{"statuscode":404,"message":"Booking not found.","data":{"code":"BOOKING_NOT_FOUND"}},"PROPERTY_REQUIRED":{"statuscode":400,"message":"This is a company key, so each request names its hotel in the X-ZS-Property header, with the hotel's id. GET /properties lists your hotels.","data":{"code":"PROPERTY_REQUIRED","details":{"properties":[{"id":61,"name":"River Resort"},{"id":63,"name":"Lake View"}],"total":2}}},"PROPERTY_NOT_FOUND":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}},"ARI_NOT_AUTHORITATIVE":{"statuscode":409,"message":"This hotel is not live yet: our record of its prices and room counts is not what the booking sites are told, so what you send would be stored and not pushed. GET /readiness says what is missing and POST /go-live switches it on; to send values ahead of that, add the header X-ZS-Before-Go-Live: true.","data":{"code":"ARI_NOT_AUTHORITATIVE"}},"ROOM_TYPE_NOT_FOUND":{"statuscode":404,"message":"That room type doesn't exist.","data":{"code":"ROOM_TYPE_NOT_FOUND"}},"RATE_PLAN_NOT_FOUND":{"statuscode":404,"message":"That rate plan doesn't exist.","data":{"code":"RATE_PLAN_NOT_FOUND"}},"CATALOG_CONFLICT":{"statuscode":409,"message":"A room type with this name already exists.","data":{"code":"CATALOG_CONFLICT"}},"CHANNEL_MANAGER_ERROR":{"statuscode":502,"message":"The channel manager refused the delete. Nothing changed here; try again in a moment.","data":{"code":"CHANNEL_MANAGER_ERROR"}},"BOOKING_NOT_CANCELLABLE":{"statuscode":409,"message":"Booking already checked in. Ask the hotel to handle it at the desk.","data":{"code":"BOOKING_NOT_CANCELLABLE"}},"BOOKING_NOT_MODIFIABLE":{"statuscode":409,"message":"A cancelled booking cannot be modified from the sandbox.","data":{"code":"BOOKING_NOT_MODIFIABLE"}},"CATALOG_BUSY":{"statuscode":409,"message":"Another room-type or rate-plan write for this property is still running. Retry in a few seconds.","data":{"code":"CATALOG_BUSY"}},"ROUTE_NOT_FOUND":{"statuscode":404,"message":"No GET /api/v1/connect-api/v1/nope in the Connect API; the contract lists every route.","data":{"code":"ROUTE_NOT_FOUND"}},"PAYLOAD_TOO_LARGE":{"statuscode":413,"message":"The request body is larger than the API accepts. Split the updates array across requests.","data":{"code":"PAYLOAD_TOO_LARGE"}},"API_KEY_EXPIRED":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_EXPIRED"}},"SANDBOX_ONLY":{"statuscode":403,"message":"The sandbox routes answer only to a test key (zsk_test_…) on a sandbox property. This key is a live key.","data":{"code":"SANDBOX_ONLY"}},"MODULE_NOT_ENTITLED":{"statuscode":402,"message":"This property's plan does not include the PMS.","data":{"code":"MODULE_NOT_ENTITLED","details":{"module":"PMS"}}},"WRITES_FROZEN":{"statuscode":503,"message":"ZimmerStack has paused every write to the channel manager for now. Nothing was written. Retry after the Retry-After interval; reads and bookings are not affected.","data":{"code":"WRITES_FROZEN"}},"WRITES_SUSPENDED":{"statuscode":403,"message":"ZimmerStack has suspended writes for this integration: it kept sending after repeated notices. Reads and bookings still work. Contact ZimmerStack support to have it released.","data":{"code":"WRITES_SUSPENDED","details":{"level":"SUSPENDED","reason":"it kept sending after repeated notices"}}},"SHIELD_UNAVAILABLE":{"statuscode":503,"message":"The write could not be checked against this property's budgets right now. Nothing was written. Retry after the Retry-After interval.","data":{"code":"SHIELD_UNAVAILABLE"}},"CATALOG_LIMIT_REACHED":{"statuscode":409,"message":"This property holds 298 rate plans and may hold 300; this request would add 6. Delete what is unused, or ask ZimmerStack support to raise the limit.","data":{"code":"CATALOG_LIMIT_REACHED","details":{"entity":"ratePlans","limit":300,"current":298,"requested":6}}},"TOO_MANY_NEW_ENTITIES":{"statuscode":400,"message":"This request would create 34 new room types or rate plans; one request may create at most 20. Entities that already exist do not count. Split the new ones across requests.","data":{"code":"TOO_MANY_NEW_ENTITIES","details":{"limit":20,"requested":34}}},"RATE_OUT_OF_BAND":{"statuscode":422,"message":"rate plan 901 on 2026-12-01: 45 INR is below the band around this plan's standing price 4500 INR (lowest accepted 450) (and 29 more cells). Rates are sent in major units (4500, not 450000). If the price is meant, change the plan's standing price first (PUT /catalog/rate-plans defaultRate), or ask ZimmerStack support to lift the band for this property.","data":{"code":"RATE_OUT_OF_BAND","details":{"cells":30,"band":{"minPct":10,"maxPct":1000},"violations":[{"ratePlanId":901,"date":"2026-12-01","rateMinor":4500,"standingMinor":450000,"side":"below","boundMinor":45000}]}}},"CHANNEL_NOT_FOUND":{"statuscode":404,"message":"No connected channel with this id on this property. GET /channels lists them.","data":{"code":"CHANNEL_NOT_FOUND"}},"CHANNEL_SHARED":{"statuscode":409,"message":"This connection serves more than one property, so its modifier would move another hotel's prices too. It is set by the hotels' owner in ZimmerStack, not through this API. Nothing was changed.","data":{"code":"CHANNEL_SHARED"}},"MODIFIER_OUT_OF_BAND":{"statuscode":422,"message":"These steps would change what the channel is sent by +180%; a channel's modifier must stay between 50% lower and 100% higher. Nothing was changed.","data":{"code":"MODIFIER_OUT_OF_BAND","details":{"changePct":180,"maxDecreasePct":50,"maxIncreasePct":100}}},"CHANNEL_PAUSED":{"statuscode":409,"message":"This OTA connection is paused, so there is nothing to send. The hotel's owner starts selling on it in ZimmerStack first. Nothing was sent.","data":{"code":"CHANNEL_PAUSED"}},"IDEMPOTENCY_KEY_REUSED":{"statuscode":409,"code":"IDEMPOTENCY_KEY_REUSED","message":"This idempotency key was already used with a different request body."},"COMPANY_KEY_REQUIRED":{"statuscode":403,"message":"Hotels are added and removed with your company key. This key belongs to one hotel.","data":{"code":"COMPANY_KEY_REQUIRED"}},"BILLING_SETUP_REQUIRED":{"statuscode":409,"message":"Accept the price list and add your billing details on the Billing page of the partner portal first. Then send the request again under a new idempotency key.","data":{"code":"BILLING_SETUP_REQUIRED"}},"OWNER_HAS_ACCOUNT":{"statuscode":409,"message":"This owner already has an account you did not create. Ask them to enter your vendor code under Integrations.","data":{"code":"OWNER_HAS_ACCOUNT","details":{"addedByYou":false}}},"SANDBOX_LIMIT":{"statuscode":409,"message":"You hold 5 sandboxes, the most one company may have. Remove one first. Then send the request again under a new idempotency key.","data":{"code":"SANDBOX_LIMIT"}},"CONFIRMATION_MISMATCH":{"statuscode":400,"message":"Send confirm= with the hotel's exact name, as GET /properties prints it.","data":{"code":"CONFIRMATION_MISMATCH"}},"PROPERTY_NOT_REMOVABLE":{"statuscode":409,"message":"You did not add this hotel: its owner let you in. Ask the owner to remove your access under Integrations.","data":{"code":"PROPERTY_NOT_REMOVABLE","details":{"reason":"OWNER_ALLOWED"}}},"PROPERTY_NOT_CHANGEABLE":{"statuscode":409,"message":"You did not add this hotel: its owner let you in. Its name and address are the owner's to change.","data":{"code":"PROPERTY_NOT_CHANGEABLE","details":{"reason":"OWNER_ALLOWED"}}},"PROPERTY_BUSY":{"statuscode":503,"message":"This hotel, or another of yours, is still being added or removed. Retry shortly.","data":{"code":"PROPERTY_BUSY"}},"PRICE_UNAVAILABLE":{"statuscode":503,"message":"This hotel cannot be priced right now. Retry in a few minutes.","data":{"code":"PRICE_UNAVAILABLE"}},"CONNECT_LINK_NOT_FOUND":{"statuscode":404,"message":"Connect link not found.","data":{"code":"CONNECT_LINK_NOT_FOUND"}},"CHANNEL_NOT_AVAILABLE":{"statuscode":409,"message":"MakeMyTrip · Goibibo is available to hotels in India.","data":{"code":"CHANNEL_NOT_AVAILABLE","details":{"reason":"not_offered_here"}}},"LIVE_KEY_REQUIRED":{"statuscode":409,"message":"A connect link connects a real booking site, so it is made with a live key. To see what a link tells you when it ends, send yourself a test event (POST /webhook-endpoints/{endpointId}/test with eventType channel.connect.completed).","data":{"code":"LIVE_KEY_REQUIRED"}},"NOT_READY":{"statuscode":409,"message":"This hotel is not ready to go live: Your software has not sent the next 365 nights yet.","data":{"code":"NOT_READY","details":{"nights":{"from":"2026-11-23","to":"2027-11-22","count":365},"checks":[{"id":"nothing_stale","passed":false,"summary":"Your software has not sent the next 365 nights yet.","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: 40 rate-plan nights."}]}}},"KEY_NOT_FOUND":{"statuscode":404,"message":"No such key among the ones you created on this property.","data":{"code":"KEY_NOT_FOUND"}},"KEY_LIMIT":{"statuscode":409,"message":"A property may hold at most 5 active API keys. Revoke one first.","data":{"code":"KEY_LIMIT"}},"SUPPORT_TICKET_NOT_FOUND":{"statuscode":404,"message":"Support ticket not found.","data":{"code":"SUPPORT_TICKET_NOT_FOUND"}},"SUPPORT_TICKET_CLOSED":{"statuscode":409,"message":"This ticket is closed. Open a new one and name this ticket in it.","data":{"code":"SUPPORT_TICKET_CLOSED"}}},"autonomy":{"connectLinkCreate":{"propertyId":61,"channel":"bookingcom","expiresInHours":72,"reference":"onboarding-4471"},"connectLinkCreated":{"link":{"id":"3f2b6c1e-8a4d-4e7b-9c05-1d2e3f4a5b6c","propertyId":61,"channel":"bookingcom","channelName":"Booking.com","status":"pending","createdAt":"2026-11-23T09:30:00.000Z","expiresAt":"2026-11-26T09:30:00.000Z","openedAt":null,"connectedAt":null,"completedAt":null,"revokedAt":null,"channelId":null,"reference":"onboarding-4471","returnUrl":null,"createdByKey":{"id":12,"name":"Aarohan PMS, production","maskedKey":"zsk_live_aB3…"}},"url":"https://channels.zimmerstack.com/connect-link#zcl_…","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.","withdrawn":0},"connectLinkCompleted":{"id":"3f2b6c1e-8a4d-4e7b-9c05-1d2e3f4a5b6c","propertyId":61,"channel":"bookingcom","channelName":"Booking.com","status":"completed","createdAt":"2026-11-23T09:30:00.000Z","expiresAt":"2026-11-26T09:30:00.000Z","openedAt":"2026-11-23T11:02:10.000Z","connectedAt":"2026-11-23T11:14:41.000Z","completedAt":"2026-11-23T11:16:03.000Z","revokedAt":null,"channelId":"7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f","reference":"onboarding-4471","returnUrl":null,"createdByKey":{"id":12,"name":"Aarohan PMS, production","maskedKey":"zsk_live_aB3…"}},"channelMapping":{"propertyId":61,"channelId":"7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f","channel":"bookingcom","channelName":"Booking.com","confirmWord":"Booking.com","selling":true,"mapEveryLine":true,"usesPrimary":true,"lines":[{"lineId":"46777651::2001::2","otaRoom":{"code":"46777651","name":"Deluxe Double Room with Garden View"},"otaRate":{"code":"2001","name":"Standard Rate with breakfast"},"occupancy":2,"ratePlanId":901,"primary":true,"suggestedRatePlanId":null,"blocked":null},{"lineId":"46777651::2001::1","otaRoom":{"code":"46777651","name":"Deluxe Double Room with Garden View"},"otaRate":{"code":"2001","name":"Standard Rate with breakfast"},"occupancy":1,"ratePlanId":null,"primary":false,"suggestedRatePlanId":901,"blocked":null},{"lineId":"46777652::2002::4","otaRoom":{"code":"46777652","name":"Family Suite"},"otaRate":{"code":"2002","name":"Non-refundable Rate"},"occupancy":4,"ratePlanId":null,"primary":true,"suggestedRatePlanId":902,"blocked":null}],"ratePlans":[{"ratePlanId":901,"roomTypeId":412,"roomTypeName":"Deluxe Garden Room","name":"Bed and breakfast","occupancy":2},{"ratePlanId":904,"roomTypeId":412,"roomTypeName":"Deluxe Garden Room","name":"Room only","occupancy":2},{"ratePlanId":902,"roomTypeId":413,"roomTypeName":"Family Suite","name":"Room only, non-refundable","occupancy":4}]},"channelMappingWrite":{"lines":[{"lineId":"46777651::2001::2","ratePlanId":901,"primary":true},{"lineId":"46777651::2001::1","ratePlanId":901,"primary":false},{"lineId":"46777652::2002::4","ratePlanId":902}]},"channelMappingSaved":{"channelId":"7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f","changed":true,"mapped":3,"removed":0,"kept":0,"unmatched":[],"remaining":0,"waiting":false,"next":"Send POST /channels/{channelId}/full-sync for this connection so the newly matched rates receive their prices and room counts."},"channelDisconnect":{"confirm":"MakeMyTrip"},"channelDisconnected":{"channelId":"0a9b8c7d-6e5f-4a3b-2c1d-0e9f8a7b6c5d","done":true,"remaining":0,"waiting":false},"channelConsole":{"url":"https://…/auth/exchange?oauth_session_key=…&app_mode=headless&redirect_to=/channels&property_id=…","expiresInSeconds":900},"readinessNotReady":{"propertyId":61,"live":false,"ready":false,"nights":{"from":"2026-11-23","to":"2027-11-22","count":365},"passedBy":null,"checks":[{"id":"channel_manager","passed":true,"summary":"The hotel is on the channel manager.","action":null},{"id":"catalog_linked","passed":true,"summary":"Every room type and rate plan is on the channel manager (2 room types, 3 rate plans).","action":null},{"id":"prices_hold","passed":true,"summary":"A price your software sends stays until your software changes it.","action":null},{"id":"nothing_stale","passed":false,"summary":"Going live now would send 1,095 values nobody set, and 0 values differ from what the channel manager holds.","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).","details":{"recordMatches":{"passed":false,"waiting":1095,"waitingNobodySet":1095,"differs":0,"cellsRead":270,"lastReadAt":"2026-11-22T21:04:11.000Z"},"fullYearSent":{"passed":false,"ratePlanNightsMissing":1095,"roomTypeNightsMissing":730,"ratePlans":[{"ratePlanId":901,"nightsSet":0,"nightsMissing":365},{"ratePlanId":902,"nightsSet":0,"nightsMissing":365},{"ratePlanId":903,"nightsSet":0,"nightsMissing":365}],"roomTypes":[{"roomTypeId":412,"nightsSet":0,"nightsMissing":365},{"roomTypeId":413,"nightsSet":0,"nightsMissing":365}]}}}]},"goLive":{"propertyId":61,"live":true,"replay":false,"wentLiveAt":"2026-11-23T12:40:00.000Z","passedBy":"full_year_sent","next":["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.","What was waiting in our record is on its way: GET /sync shows it land.","Nights past the next 365 that your software never wrote are sent closed until it writes them."]},"hotelKeyCreate":{"name":"Aarohan PMS, The Lantern House","scopes":["ari:read","ari:write","channel-bookings:read"],"allowedCidrs":["203.0.113.0/24"]},"hotelKeyCreated":{"key":"zsk_live_…","view":{"id":87,"propertyId":61,"name":"Aarohan PMS, The Lantern House","maskedKey":"zsk_live_Qm7…","mode":"live","status":"ACTIVE","scopes":["ari:read","ari:write","channel-bookings:read"],"allowedCidrs":["203.0.113.0/24"],"createdAt":"2026-11-23T12:45:00.000Z","lastUsedAt":null,"lastUsedIp":null,"expiresAt":null,"retireAt":null,"rotatedToId":null,"revokedAt":null,"revokedReason":null}},"hotelKeyRevoke":{"reason":"The old server was switched off"},"channelMappingRefused":{"statuscode":400,"message":"Some lines of this matching cannot be saved; data.details.problems names each one. Nothing was changed.","data":{"code":"VALIDATION","details":{"problems":[{"code":"UNMAPPED","lineId":"46777652::2002::4"}]}}},"channelDisconnectRefused":{"statuscode":422,"message":"Send confirm: \"MakeMyTrip\" to disconnect it. Nothing was changed.","data":{"code":"CONFIRMATION_MISMATCH","details":{"expected":"MakeMyTrip"}}},"connectLinkRevoked":{"id":"3f2b6c1e-8a4d-4e7b-9c05-1d2e3f4a5b6c","propertyId":61,"channel":"bookingcom","channelName":"Booking.com","status":"revoked","createdAt":"2026-11-23T09:30:00.000Z","expiresAt":"2026-11-26T09:30:00.000Z","openedAt":null,"connectedAt":null,"completedAt":null,"revokedAt":"2026-11-23T10:05:00.000Z","channelId":null,"reference":"onboarding-4471","returnUrl":null,"createdByKey":{"id":12,"name":"Aarohan PMS, production","maskedKey":"zsk_live_aB3…"}},"hotelKeyRotated":{"key":"zsk_live_…","view":{"id":88,"propertyId":61,"name":"Aarohan PMS, The Lantern House","maskedKey":"zsk_live_Xr4…","mode":"live","status":"ACTIVE","scopes":["ari:read","ari:write","channel-bookings:read"],"allowedCidrs":["203.0.113.0/24"],"createdAt":"2026-11-24T08:00:00.000Z","lastUsedAt":null,"lastUsedIp":null,"expiresAt":null,"retireAt":null,"rotatedToId":null,"revokedAt":null,"revokedReason":null},"retired":{"id":87,"propertyId":61,"name":"Aarohan PMS, The Lantern House","maskedKey":"zsk_live_Qm7…","mode":"live","status":"ACTIVE","scopes":["ari:read","ari:write","channel-bookings:read"],"allowedCidrs":["203.0.113.0/24"],"createdAt":"2026-11-23T12:45:00.000Z","lastUsedAt":"2026-11-24T07:59:12.000Z","lastUsedIp":"203.0.113.24","expiresAt":null,"retireAt":"2026-11-25T08:00:00.000Z","rotatedToId":88,"revokedAt":null,"revokedReason":null}},"hotelKeyRevoked":{"id":87,"propertyId":61,"name":"Aarohan PMS, The Lantern House","maskedKey":"zsk_live_Qm7…","mode":"live","status":"REVOKED","scopes":["ari:read","ari:write","channel-bookings:read"],"allowedCidrs":["203.0.113.0/24"],"createdAt":"2026-11-23T12:45:00.000Z","lastUsedAt":"2026-11-24T07:59:12.000Z","lastUsedIp":"203.0.113.24","expiresAt":null,"retireAt":null,"rotatedToId":null,"revokedAt":"2026-11-24T08:05:00.000Z","revokedReason":"The old server was switched off"}},"longBudgetRefusals":{"day":{"statuscode":429,"message":"This property's daily budget of changed cells is used up (30000 of 30000). Nothing was written. Send only what changed, in ranges, and retry after the Retry-After interval; ask ZimmerStack support if this property needs more.","data":{"code":"RATE_LIMITED","scope":"cells-day","retryAfterSeconds":2410,"details":{"scope":"cells-day","used":30000,"budget":30000,"window":"day"}}},"modifierChanges":{"statuscode":429,"message":"This property's daily budget of channel price modifier changes is used up (6 of 6). Nothing was changed. Retry after the Retry-After interval; ask ZimmerStack support if this property needs more.","data":{"code":"RATE_LIMITED","scope":"modifier-changes-day","retryAfterSeconds":5120,"details":{"scope":"modifier-changes-day","used":6,"budget":6,"window":"day"}}},"fullSync":{"statuscode":429,"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.","data":{"code":"RATE_LIMITED","scope":"full-sync-hour","retryAfterSeconds":2379,"details":{"scope":"full-sync-hour","used":1,"budget":1,"window":"hour","channelId":"0a9b8c7d-6e5f-4a3b-2c1d-0e9f8a7b6c5d","retryAt":"2026-12-10T12:44:10.000Z"}}},"paused":{"statuscode":429,"message":"Writes for this integration are paused: the channel manager refused values it sent. Until the pause ends only a write that closes inventory is accepted (a lower availability count, stop-sell or closed-to-arrival/departure switched on). Retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"shield-pause","retryAfterSeconds":840,"details":{"scope":"shield-pause","level":"PAUSED","reason":"the channel manager refused values it sent","until":"2026-11-10T10:35:00.000Z"}}},"propertyRemovals":{"statuscode":429,"message":"Your company has removed as many hotels as one day allows (10 of 10). Nothing was changed. Try again later, or write to ZimmerStack support if you need more.","data":{"code":"RATE_LIMITED","scope":"vendor-property-removals-day","retryAfterSeconds":3600,"details":{"scope":"vendor-property-removals-day","used":10,"budget":10,"window":"day"}}},"supportTickets":{"statuscode":429,"message":"Your company has opened as many support tickets as one day allows (20). Retry after the Retry-After interval, or write to support by mail.","data":{"code":"RATE_LIMITED","scope":"partner-support-tickets-day","retryAfterSeconds":5400,"details":{"scope":"partner-support-tickets-day"}}}}}},"paths":{"/api/v1/connect-api/v1/properties":{"get":{"summary":"The properties this key may act on","description":"A company key: every hotel it may act on, with the id to name in the X-ZS-Property header; the one route a company key calls without that header. A hotel key: its own property, in the same shape. keyKind says which kind of key you hold.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Properties"},"example":{"keyKind":"company","properties":[{"id":61,"name":"The Lantern House","timezone":"Asia/Kolkata","currency":"INR","channelManager":true,"sandbox":false},{"id":62,"name":"Hill View Retreat","timezone":"Asia/Kolkata","currency":"INR","channelManager":true,"sandbox":false}]}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}},"post":{"summary":"Add a hotel (a software partner's company key)","description":"Scope properties:write, company keys only; X-ZS-Property is not read. Makes a channel-manager hotel with its own owner account and its room types, on your invoice, exactly as the partner portal's Add a hotel form does. The answer is the hotel in GET /properties' shape with where its billing stands. With a test key it makes one of your sandboxes from the same body instead. x-zimmerstack.properties has the whole flow.","parameters":[{"name":"x-idempotency-key","in":"header","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Required here. The same key never makes a second hotel: a retry answers the hotel the first request made (X-Idempotent-Replay: true, or replay: true in the body). Same key + different body is 409 IDEMPOTENCY_KEY_REUSED."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertyCreate"},"example":{"name":"Ganga Guest House","owner":{"name":"Meera Joshi","email":"meera@gangaguesthouse.example","phone":"+91 98765 43210"},"address":{"line1":"14 Assi Ghat Road","city":"Varanasi","state":"Uttar Pradesh","postalCode":"221005","country":"IN"},"taxId":"09ABCDE1234F1Z5","roomTypes":[{"ref":"rt-river","name":"River View Room","roomCount":6,"adults":2,"defaultRate":3200},{"ref":"rt-family","name":"Family Room","roomCount":2,"adults":4,"defaultRate":5400}]}}}},"responses":{"200":{"description":"This idempotency key had already added the hotel: the same hotel, replay: true","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertyCreated"},"example":{"id":63,"name":"Ganga Guest House","timezone":"Asia/Kolkata","currency":"INR","channelManager":false,"sandbox":false,"billing":{"state":"ACTIVE","reason":null,"message":"This hotel's billing has started: it is on your next monthly invoice."},"replay":true}}}},"201":{"description":"Added","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertyCreated"},"example":{"id":63,"name":"Ganga Guest House","timezone":"Asia/Kolkata","currency":"INR","channelManager":false,"sandbox":false,"billing":{"state":"ACTIVE","reason":null,"message":"This hotel's billing has started: it is on your next monthly invoice."},"replay":false}}}},"400":{"description":"data.code VALIDATION: a shape, a country, currency or time zone the country does not have, a GSTIN that is not one, a room type name or ref twice; a request ZimmerStack is holding (the message says so, data.details.reason: do not send it again, write to support); or IDEMPOTENCY_KEY_INVALID: the header is missing or malformed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":400,"message":"updates[0].available: Expected number, received string","data":{"code":"VALIDATION","details":[{"path":["updates",0,"available"],"message":"Expected number, received string"}]}}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED | API_KEY_EXPIRED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"COMPANY_KEY_REQUIRED: a hotel's own key was used; SCOPE_MISSING: the company key lacks properties:write; IP_NOT_ALLOWED as everywhere; or WRITES_SUSPENDED: ZimmerStack has suspended your company's writes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"Hotels are added and removed with your company key. This key belongs to one hotel.","data":{"code":"COMPANY_KEY_REQUIRED"}}}}},"409":{"description":"OWNER_HAS_ACCOUNT: the owner's email already has an account (data.details.addedByYou says whether you made it); BILLING_SETUP_REQUIRED: finish your billing setup in the partner portal first; SANDBOX_LIMIT: a test key and you already hold the most sandboxes; or IDEMPOTENCY_KEY_REUSED / IDEMPOTENCY_IN_FLIGHT","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This owner already has an account you did not create. Ask them to enter your vendor code under Integrations.","data":{"code":"OWNER_HAS_ACCOUNT","details":{"addedByYou":false}}}}}},"413":{"description":"Body larger than 1048576 bytes (x-zimmerstack.limits.maxBodyBytes); nothing was read","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":413,"message":"The request body is larger than the API accepts. Split the updates array across requests.","data":{"code":"PAYLOAD_TOO_LARGE"}}}}},"429":{"description":"A per-minute budget; partner-new-properties-hour: the most hotels a partner may add in an hour; or, with a test key, partner-new-sandboxes-hour: the most sandboxes it may make in an hour. Honour Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}},"503":{"description":"PROPERTY_BUSY: this hotel is still being added by an earlier request, retry with the same key; PRICE_UNAVAILABLE: it could not be priced just now; or WRITES_FROZEN as on every structure write. Nothing here is a verdict: honour Retry-After and send the same request again","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":503,"message":"This hotel, or another of yours, is still being added or removed. Retry shortly.","data":{"code":"PROPERTY_BUSY"}}}}}}}},"/api/v1/connect-api/v1/properties/{propertyId}":{"patch":{"summary":"Change a hotel","description":"Scope properties:write, company keys only; X-ZS-Property is not read. Changes the hotel's name and its address (line1, city, state, postalCode): send only the fields to change, at least one. Never its country, currency, time zone, owner or tax id: a body that names one is 400 VALIDATION. It changes the hotel's record in ZimmerStack, not the name of a listing on an OTA. Only a hotel you added; who pays for it is not asked. The answer is the hotel in GET /properties' shape with its address and changed, the fields whose stored value moved. With a test key it changes one of your sandboxes. x-zimmerstack.properties has the whole flow.","parameters":[{"name":"propertyId","in":"path","required":true,"schema":{"type":"integer"},"description":"The hotel's id, from GET /properties"},{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Send one. Same key + same body within 7 days replays the stored answer (X-Idempotent-Replay: true), so a request whose answer was lost can be sent again safely; a 429 or a 5xx is never stored, so the retry runs."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertyChange"},"example":{"name":"Ganga Riverside Guest House","address":{"line1":"16 Assi Ghat Road"}}}}},"responses":{"200":{"description":"Changed; or nothing to change, because everything sent was already stored (changed is empty)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertyChanged"},"example":{"id":63,"name":"Ganga Riverside Guest House","timezone":"Asia/Kolkata","currency":"INR","channelManager":false,"sandbox":false,"address":{"line1":"16 Assi Ghat Road","city":"Varanasi","state":"Uttar Pradesh","postalCode":"221005","country":"IN"},"changed":["name","address.line1"]}}}},"400":{"description":"data.code VALIDATION: no field to change was sent, a name or a part of the address outside its length, or a field this request never changes (country, currency, timezone, owner, taxId, roomTypes)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":400,"message":"updates[0].available: Expected number, received string","data":{"code":"VALIDATION","details":[{"path":["updates",0,"available"],"message":"Expected number, received string"}]}}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED | API_KEY_EXPIRED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"COMPANY_KEY_REQUIRED: a hotel's own key was used; SCOPE_MISSING: the company key lacks properties:write; IP_NOT_ALLOWED as everywhere; or WRITES_SUSPENDED: ZimmerStack has suspended your company's writes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"Hotels are added and removed with your company key. This key belongs to one hotel.","data":{"code":"COMPANY_KEY_REQUIRED"}}}}},"404":{"description":"No hotel with this id that this key may act on","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"PROPERTY_NOT_CHANGEABLE: not yours to change, data.details.reason is OWNER_ALLOWED (its owner let you in, and its owner changes it); or IDEMPOTENCY_KEY_REUSED / IDEMPOTENCY_IN_FLIGHT","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"You did not add this hotel: its owner let you in. Its name and address are the owner's to change.","data":{"code":"PROPERTY_NOT_CHANGEABLE","details":{"reason":"OWNER_ALLOWED"}}}}}},"413":{"description":"Body larger than 1048576 bytes (x-zimmerstack.limits.maxBodyBytes); nothing was read","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":413,"message":"The request body is larger than the API accepts. Split the updates array across requests.","data":{"code":"PAYLOAD_TOO_LARGE"}}}}},"429":{"description":"A per-minute budget. Honour Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}},"503":{"description":"ZimmerStack has paused every write to the channel manager (WRITES_FROZEN), or the write could not be checked against its budgets (SHIELD_UNAVAILABLE). Nothing was written; honour Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":503,"message":"ZimmerStack has paused every write to the channel manager for now. Nothing was written. Retry after the Retry-After interval; reads and bookings are not affected.","data":{"code":"WRITES_FROZEN"}}}}}}},"delete":{"summary":"Remove a hotel you added (a software partner's company key)","description":"Scope properties:write, company keys only; X-ZS-Property is not read. One call: the hotel's subscription is cancelled, then its channel connections, rate plans, room types and listing are taken off the channel manager, your keys stop reaching it and its logins close. Bookings and bills are kept. Only a hotel you added and pay for, that runs the channel manager alone. A repeat after it is gone answers 200 with replay: true. With a test key it deletes one of your sandboxes. x-zimmerstack.properties has the whole flow.","parameters":[{"name":"propertyId","in":"path","required":true,"schema":{"type":"integer"},"description":"The hotel's id, from GET /properties"},{"name":"confirm","in":"query","required":true,"schema":{"type":"string"},"description":"The hotel's exact name, as GET /properties prints it (URL-encoded). Asked so a wrong id never removes a hotel; not needed once the hotel is already gone"}],"responses":{"200":{"description":"Removed, and nothing is left on the channel manager; or already removed (replay: true)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertyRemoved"},"example":{"id":63,"name":"Ganga Guest House","removed":true,"replay":false,"sandbox":false,"access":"CLOSED","billing":{"state":"CANCELLED","cancelledAt":"2026-11-19T09:30:12.000Z"},"channelManager":{"state":"REMOVED","step":null,"stillConnected":null}}}}},"202":{"description":"Removed here; a step on the channel manager is still pending and ZimmerStack retries it. Nothing is needed from you","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertyRemoved"},"example":{"id":63,"name":"Ganga Guest House","removed":true,"replay":false,"sandbox":false,"access":"CLOSED","billing":{"state":"CANCELLED","cancelledAt":"2026-11-19T09:30:12.000Z"},"channelManager":{"state":"RETRYING","step":"RATE_PLANS","stillConnected":{"channels":0,"ratePlans":2,"roomTypes":2,"property":true}}}}}},"400":{"description":"confirm is missing or is not the hotel's exact name","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":400,"message":"Send confirm= with the hotel's exact name, as GET /properties prints it.","data":{"code":"CONFIRMATION_MISMATCH"}}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED | API_KEY_EXPIRED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"COMPANY_KEY_REQUIRED: a hotel's own key was used; SCOPE_MISSING: the company key lacks properties:write; IP_NOT_ALLOWED as everywhere; or WRITES_SUSPENDED: ZimmerStack has suspended your company's writes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"Hotels are added and removed with your company key. This key belongs to one hotel.","data":{"code":"COMPANY_KEY_REQUIRED"}}}}},"404":{"description":"No hotel with this id that this key may act on","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"Not yours to remove: data.details.reason is OWNER_ALLOWED (its owner removes your access) or NOT_BILLED_TO_YOU · OTHER_PRODUCTS · SHARES_ACCOUNT (write to ZimmerStack support)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"You did not add this hotel: its owner let you in. Ask the owner to remove your access under Integrations.","data":{"code":"PROPERTY_NOT_REMOVABLE","details":{"reason":"OWNER_ALLOWED"}}}}}},"429":{"description":"A per-minute budget, or vendor-property-removals-day: the most hotels your company may remove in a rolling day. Honour Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Your company has removed as many hotels as one day allows (10 of 10). Nothing was changed. Try again later, or write to ZimmerStack support if you need more.","data":{"code":"RATE_LIMITED","scope":"vendor-property-removals-day","retryAfterSeconds":3600,"details":{"scope":"vendor-property-removals-day","used":10,"budget":10,"window":"day"}}}}}},"503":{"description":"PROPERTY_BUSY: a hotel of yours is being added or removed right now and nothing was changed; or, with a Retry-After of an hour, this hotel's removal has started and could not finish: ZimmerStack has been told and finishes it. WRITES_FROZEN or SHIELD_UNAVAILABLE as on every structure write. Honour Retry-After and send it again: once the hotel is gone the answer is 200 with replay: true","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":503,"message":"This hotel, or another of yours, is still being added or removed. Retry shortly.","data":{"code":"PROPERTY_BUSY"}}}}}}}},"/api/v1/connect-api/v1/property":{"get":{"summary":"The property this key is for","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Property"},"example":{"id":61,"name":"The Lantern House","timezone":"Asia/Kolkata","currency":"INR","inventoryScope":"PMS_CM","sandbox":false,"horizonDays":500,"ariAuthoritative":true,"scopes":["bookings:read","bookings:write"],"products":{"channelManager":true,"pms":true},"limits":{"requestsPerMinute":120,"writesPerMinute":30,"maxUpdatesPerRequest":1000,"maxCellsPerRequest":5000,"bookingsPerMinute":20,"cellsPerHour":10000,"cellsPerDay":30000,"maxRoomTypes":18,"maxRatePlans":180,"ratePlansPerRoomType":null,"newEntitiesPerMinute":20},"usage":{"cellsThisHour":43,"cellsLast24h":1138},"shield":{"level":"CLEAR","reason":null,"until":null},"sync":{"state":"IN_SYNC","pendingCells":0}}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/limits":{"get":{"summary":"Every budget this key sits under, with what is left and when it refills","description":"No scope: any valid key reads its own. The key's, its property's and, for a company key, its company's budgets, each with its window, its quota, what is used and left and the seconds until it has room; the budgets over an hour and a day with this property's own figures and where the integration stands; and the per-request caps. A company key that names no hotel reads its company's budget and its address's. Reading reserves nothing. x-zimmerstack.limitsTable lists every row.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Limits"},"example":{"asOf":"2026-11-22T09:30:12.000Z","key":{"kind":"hotel","mode":"live","propertyId":61},"budgets":[{"scope":"requests","header":"key","per":"key","window":"60 s sliding","windowSeconds":60,"quota":120,"unit":"requests","used":3,"remaining":117,"resetSeconds":42,"counts":"every request on one key"},{"scope":"writes","header":"key-writes","per":"key","window":"60 s sliding","windowSeconds":60,"quota":30,"unit":"writes","used":1,"remaining":29,"resetSeconds":42,"counts":"every request on one key that is not a GET (PUT, POST and DELETE); a dry run (dryRun: true) is a write here"},{"scope":"cells","header":"cells","per":"property (all its keys)","window":"60 s sliding","windowSeconds":60,"quota":20000,"unit":"cells","used":730,"remaining":19270,"resetSeconds":42,"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"},{"scope":"property-bookings-day","header":null,"per":"property (all its keys)","window":"rolling 24 hours","windowSeconds":86400,"quota":500,"unit":"bookings","used":12,"remaining":488,"resetSeconds":61200,"counts":"POST /bookings per property per ROLLING 24 HOURS (not per minute); the owner can raise it per property"}],"shield":{"standing":{"level":"CLEAR","reason":null,"until":null},"budgets":[{"scope":"cells-hour","header":null,"per":"property (all its keys)","window":"one clock hour (UTC)","windowSeconds":3600,"quota":20440,"unit":"changed cells","used":43,"remaining":20397,"resetSeconds":1788,"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"},{"scope":"cells-day","header":null,"per":"property (all its keys)","window":"rolling 24 hours","windowSeconds":86400,"quota":61320,"unit":"changed cells","used":1138,"remaining":60182,"resetSeconds":40188,"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"}]},"caps":[{"scope":"maxUpdatesPerRequest","per":"request","quota":1000,"unit":"entries","counts":"entries in one updates array (400 TOO_MANY_UPDATES past it)"},{"scope":"maxCellsPerRequest","per":"request","quota":5000,"unit":"cells","counts":"cells (entity × night) one request may name after range expansion (400 TOO_MANY_CELLS past it)"}],"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."}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/catalog":{"get":{"summary":"Room types and rate plans with the numeric ids every write uses","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Catalog"},"example":{"currency":"INR","roomTypes":[{"id":412,"ref":"rt-deluxe","name":"Deluxe Garden Room","maxAdults":2,"maxChildren":1,"roomKind":"room","sync":"IN_SYNC"},{"id":413,"ref":null,"name":"Family Suite","maxAdults":4,"maxChildren":2,"roomKind":"room","sync":"IN_SYNC"}],"ratePlans":[{"id":901,"ref":"rp-bb","roomTypeId":412,"name":"Bed and breakfast","mealPlan":"CP","occupancy":2,"currency":"INR","refundable":true,"sync":"IN_SYNC"},{"id":902,"ref":null,"roomTypeId":413,"name":"Room only, non-refundable","mealPlan":"EP","occupancy":4,"currency":"INR","refundable":false,"sync":"PENDING"},{"id":904,"ref":"rp-ro","roomTypeId":412,"name":"Room only","mealPlan":"EP","occupancy":2,"currency":"INR","refundable":true,"sync":"IN_SYNC"}]}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/catalog/room-types":{"put":{"summary":"Create or change room types by your own ref","description":"Scope catalog:write. Up to 50 per request, each ref once. A ref seen before is updated where the fields differ; a new ref whose name the owner already used (with no ref) adopts that room type; anything else is created here and on the channel manager at once. roomCount is written at creation, and on a channel-manager-only hotel whenever it changes. The answer lists our id, the action and the sync status per entity, and where the property's channel manager stands.","parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Optional: same key + same body within 7 days replays the stored answer."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoomTypesUpsert"},"example":{"roomTypes":[{"ref":"rt-deluxe","name":"Deluxe Garden Room","roomCount":8,"adults":2,"children":1},{"ref":"rt-penthouse","name":"Penthouse","roomCount":1,"adults":3,"children":1}]}}}},"responses":{"200":{"description":"Saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogUpsertResult"},"example":{"items":[{"ref":"rt-deluxe","id":412,"action":"adopted","sync":"IN_SYNC","notice":null},{"ref":"rt-penthouse","id":414,"action":"created","sync":"IN_SYNC","notice":null}],"channelManager":{"enabled":true,"reason":null}}}}},"400":{"description":"data.code VALIDATION: a shape, a cap, a ref twice, guests below a plan's occupancy; or TOO_MANY_NEW_ENTITIES: more new room types than one request may create","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":400,"message":"updates[0].available: Expected number, received string","data":{"code":"VALIDATION","details":[{"path":["updates",0,"available"],"message":"Expected number, received string"}]}}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"CATALOG_CONFLICT: a name another room type holds; CATALOG_LIMIT_REACHED: the property holds as many room types as it may; or PROPERTY_UNAVAILABLE / CHANNEL_MANAGER_DISABLED as everywhere","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"A room type with this name already exists.","data":{"code":"CATALOG_CONFLICT"}}}}},"413":{"description":"Body larger than 1048576 bytes (x-zimmerstack.limits.maxBodyBytes); nothing was read","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":413,"message":"The request body is larger than the API accepts. Split the updates array across requests.","data":{"code":"PAYLOAD_TOO_LARGE"}}}}},"429":{"description":"A per-minute budget, or one of structure's own: structure-creates (new entities this minute) · structure-creates-day · structure-edits-day · vendor-structure-creates-day · vendor-remote-properties-day, or shield-pause while the integration is paused. Honour Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}},"503":{"description":"ZimmerStack has paused every write to the channel manager (WRITES_FROZEN), or the write could not be checked against its budgets (SHIELD_UNAVAILABLE). Nothing was written; honour Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":503,"message":"ZimmerStack has paused every write to the channel manager for now. Nothing was written. Retry after the Retry-After interval; reads and bookings are not affected.","data":{"code":"WRITES_FROZEN"}}}}}}}},"/api/v1/connect-api/v1/catalog/room-types/{roomTypeId}":{"delete":{"summary":"Delete a room type: the channel manager's copy first, then ours; its plans go with it","description":"Scope catalog:write. The address names the room type by our id (DELETE /catalog/room-types/414) or by your own ref with ref: in front (DELETE /catalog/room-types/ref:rt-penthouse); a ref is looked up among this hotel's own room types. On a hotel with a connected OTA the delete is refused with 409 CATALOG_CONFLICT until every match of the room type, and of each of its rate plans, is removed on every connected OTA. No request removes a match: a person does, in the partner portal or in the hotel's own ZimmerStack app. A room or a rate with no match keeps selling on the OTA with the OTA's own numbers, so its sale is stopped on the OTA first. Also refused (409) while an upcoming or in-house stay holds one of its rooms, or while rooms are assigned to it on a hotel that runs the ZimmerStack PMS. A sandbox has no OTA and never shows the refusal for a match. Nothing changes here when the channel manager refuses.","parameters":[{"name":"roomTypeId","in":"path","required":true,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"string","pattern":"^ref:[A-Za-z0-9._:-]{1,64}$"}]},"description":"Which room type. Either our id, a whole number (GET /catalog and the upsert's answer give it), or ref: followed by your own ref for it (ref:rt-penthouse). Only the first ref: is read as the mark, so ref:414 is the ref \"414\", never the id 414. A room type the hotel's owner made has no ref: name it by our id","examples":{"byId":{"summary":"By our id","value":414},"byRef":{"summary":"By your own ref","value":"ref:rt-penthouse"}}}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogDeleteResult"},"example":{"id":414,"deleted":true,"channelManagerDeleted":true,"deletedRatePlanIds":[903]}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"Not this property's, or already deleted: an id or a ref none of its room types holds, or text after ref: that is not a ref; on a company key, PROPERTY_NOT_FOUND when X-ZS-Property names a property it may not act on","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"That room type doesn't exist.","data":{"code":"ROOM_TYPE_NOT_FOUND"}}}}},"409":{"description":"A connected OTA still has a match to the room type or to one of its plans (the message names the OTAs when it can), a stay still holds one of its rooms, or rooms are still assigned to it","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"A room type with this name already exists.","data":{"code":"CATALOG_CONFLICT"}}}}},"429":{"description":"A per-minute budget, or structure-deletes-day: the property's deletions for the day, or shield-pause while the integration is paused. Honour Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}},"502":{"description":"The channel manager refused the delete; nothing changed here","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":502,"message":"The channel manager refused the delete. Nothing changed here; try again in a moment.","data":{"code":"CHANNEL_MANAGER_ERROR"}}}}},"503":{"description":"ZimmerStack has paused every write to the channel manager (WRITES_FROZEN), or the write could not be checked against its budgets (SHIELD_UNAVAILABLE). Nothing was written; honour Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":503,"message":"ZimmerStack has paused every write to the channel manager for now. Nothing was written. Retry after the Retry-After interval; reads and bookings are not affected.","data":{"code":"WRITES_FROZEN"}}}}}}}},"/api/v1/connect-api/v1/catalog/rate-plans":{"put":{"summary":"Create or change rate plans by your own ref","description":"Scope catalog:write. Up to 100 per request, each ref once; name the room type by our id (roomTypeId) or by the ref you gave it (roomTypeRef, in this request or an earlier one). A ref seen before is updated where the fields differ; a new ref whose name exists under the same room type (with no ref) adopts that plan; anything else is created here and on the channel manager at once, seeded at defaultRate when given. A plan never moves between room types.","parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Optional: same key + same body within 7 days replays the stored answer."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RatePlansUpsert"},"example":{"ratePlans":[{"ref":"rp-bb","roomTypeRef":"rt-deluxe","name":"Bed and breakfast","mealPlan":"CP","occupancy":2,"refundable":true,"defaultRate":"4500.00"},{"ref":"rp-ph-ro","roomTypeRef":"rt-penthouse","name":"Room only","mealPlan":"EP","occupancy":3,"refundable":false,"defaultRate":12000}]}}}},"responses":{"200":{"description":"Saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogUpsertResult"},"example":{"items":[{"ref":"rp-bb","id":901,"action":"adopted","sync":"IN_SYNC","notice":null},{"ref":"rp-ph-ro","id":903,"action":"created","sync":"IN_SYNC","notice":null}],"channelManager":{"enabled":true,"reason":null}}}}},"400":{"description":"data.code is one of VALIDATION | UNKNOWN_ROOM_TYPE (the room type is not this property's, or its ref was never sent) | TOO_MANY_NEW_ENTITIES (more new plans than one request may create)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":400,"message":"updates[0].available: Expected number, received string","data":{"code":"VALIDATION","details":[{"path":["updates",0,"available"],"message":"Expected number, received string"}]}}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"CATALOG_CONFLICT: a plan sent under another room type than it has, or an occupancy above the room's adults; CATALOG_LIMIT_REACHED: the property holds as many rate plans as it may; or PROPERTY_UNAVAILABLE / CHANNEL_MANAGER_DISABLED as everywhere","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"A room type with this name already exists.","data":{"code":"CATALOG_CONFLICT"}}}}},"413":{"description":"Body larger than 1048576 bytes (x-zimmerstack.limits.maxBodyBytes); nothing was read","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":413,"message":"The request body is larger than the API accepts. Split the updates array across requests.","data":{"code":"PAYLOAD_TOO_LARGE"}}}}},"429":{"description":"A per-minute budget, or one of structure's own: structure-creates (new entities this minute) · structure-creates-day · structure-edits-day · vendor-structure-creates-day · vendor-remote-properties-day, or shield-pause while the integration is paused. Honour Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}},"503":{"description":"ZimmerStack has paused every write to the channel manager (WRITES_FROZEN), or the write could not be checked against its budgets (SHIELD_UNAVAILABLE). Nothing was written; honour Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":503,"message":"ZimmerStack has paused every write to the channel manager for now. Nothing was written. Retry after the Retry-After interval; reads and bookings are not affected.","data":{"code":"WRITES_FROZEN"}}}}}}}},"/api/v1/connect-api/v1/catalog/rate-plans/{ratePlanId}":{"delete":{"summary":"Delete a rate plan: the channel manager's copy first, then ours","description":"Scope catalog:write. The address names the rate plan by our id (DELETE /catalog/rate-plans/903) or by your own ref with ref: in front (DELETE /catalog/rate-plans/ref:rp-ph-ro); a ref is looked up among this hotel's own rate plans. On a hotel with a connected OTA the delete is refused with 409 CATALOG_CONFLICT until every match of the rate plan is removed on every connected OTA. No request removes a match: a person does, in the partner portal or in the hotel's own ZimmerStack app. A rate with no match keeps selling on the OTA with the OTA's own numbers, so its sale is stopped on the OTA first. A sandbox has no OTA and never shows this refusal. Nothing changes here when the channel manager refuses.","parameters":[{"name":"ratePlanId","in":"path","required":true,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"string","pattern":"^ref:[A-Za-z0-9._:-]{1,64}$"}]},"description":"Which rate plan. Either our id, a whole number (GET /catalog and the upsert's answer give it), or ref: followed by your own ref for it (ref:rp-ph-ro). Only the first ref: is read as the mark, so ref:903 is the ref \"903\", never the id 903. A rate plan the hotel's owner made has no ref: name it by our id","examples":{"byId":{"summary":"By our id","value":903},"byRef":{"summary":"By your own ref","value":"ref:rp-ph-ro"}}}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogDeleteResult"},"example":{"id":903,"deleted":true,"channelManagerDeleted":true,"deletedRatePlanIds":[]}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"Not this property's, or already deleted: an id or a ref none of its rate plans holds, or text after ref: that is not a ref; on a company key, PROPERTY_NOT_FOUND when X-ZS-Property names a property it may not act on","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"That rate plan doesn't exist.","data":{"code":"RATE_PLAN_NOT_FOUND"}}}}},"409":{"description":"A connected OTA still has a match to this plan (the message names the OTAs when it can)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"A room type with this name already exists.","data":{"code":"CATALOG_CONFLICT"}}}}},"429":{"description":"A per-minute budget, or structure-deletes-day: the property's deletions for the day, or shield-pause while the integration is paused. Honour Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}},"502":{"description":"The channel manager refused the delete; nothing changed here","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":502,"message":"The channel manager refused the delete. Nothing changed here; try again in a moment.","data":{"code":"CHANNEL_MANAGER_ERROR"}}}}},"503":{"description":"ZimmerStack has paused every write to the channel manager (WRITES_FROZEN), or the write could not be checked against its budgets (SHIELD_UNAVAILABLE). Nothing was written; honour Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":503,"message":"ZimmerStack has paused every write to the channel manager for now. Nothing was written. Retry after the Retry-After interval; reads and bookings are not affected.","data":{"code":"WRITES_FROZEN"}}}}}}}},"/api/v1/connect-api/v1/availability":{"get":{"summary":"Availability as our record holds it","description":"Served from our record, never from the channel manager.","parameters":[{"name":"from","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"description":"Default: today in the property's timezone"},{"name":"to","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"description":"Default: from + 30 days; at most 500 days after from"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvailabilityRead"},"example":{"from":"2026-12-24","to":"2026-12-26","cells":[{"roomTypeId":412,"date":"2026-12-24","available":2},{"roomTypeId":412,"date":"2026-12-25","available":2},{"roomTypeId":412,"date":"2026-12-26","available":2},{"roomTypeId":413,"date":"2026-12-24","available":1},{"roomTypeId":413,"date":"2026-12-25","available":1},{"roomTypeId":413,"date":"2026-12-26","available":1}]}}}},"400":{"description":"Bad range (data.code RANGE_INVALID)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":400,"message":"updates[0].available: Expected number, received string","data":{"code":"VALIDATION","details":[{"path":["updates",0,"available"],"message":"Expected number, received string"}]}}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}},"put":{"summary":"Set absolute availability","description":"Each update sets the ABSOLUTE number of rooms for sale for one room type over a date range. Lands in our record and rides the inventory drain to the channels. An update names its room type by our id (roomTypeId) or by your own ref for it (roomTypeRef), exactly one; ids and refs may be mixed across the updates of one request. The example names by id; x-zimmerstack.samples.availabilityWriteByRef is the same request by ref, and it is answered the same (x-zimmerstack.refs).","parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Optional. Same key + same body within 7 days replays the stored answer (X-Idempotent-Replay: true); same key + different body is refused (409 IDEMPOTENCY_KEY_REUSED). A dry run stores nothing under the key."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvailabilityWrite"},"example":{"updates":[{"roomTypeId":412,"dateFrom":"2026-12-01","dateTo":"2026-12-31","available":5},{"roomTypeId":412,"dateFrom":"2026-12-24","dateTo":"2026-12-26","available":2}]}}}},"responses":{"200":{"description":"A dry run (dryRun: true in the body): nothing was written, queued or sent, and no idempotency key was stored. The answer says what the same request would do: what would change, what is unchanged, what is held, what would be refused, and the notices (x-zimmerstack.explain.dryRun).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WritePreview"},"example":{"dryRun":true,"resource":"availability","verdict":"would-write","refusal":null,"requestedCells":31,"wouldChangeCells":3,"unchangedCells":28,"heldCells":0,"wouldRejectCells":0,"lane":false,"wouldChange":[{"roomTypeIds":[412],"dateFrom":"2026-12-24","dateTo":"2026-12-26","days":null,"cells":3,"available":2}],"unchanged":[{"roomTypeIds":[412],"dateFrom":"2026-12-01","dateTo":"2026-12-23","days":null,"cells":23,"available":5},{"roomTypeIds":[412],"dateFrom":"2026-12-27","dateTo":"2026-12-31","days":null,"cells":5,"available":5}],"held":[],"wouldReject":[],"spent":{"cells":31},"wouldSpend":{"changedCells":3},"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."}}}},"202":{"description":"Accepted. The cells that differed from our record are written and queued; the push to the channels is asynchronous (typically seconds, minutes under load, bounded by the channel manager's budget, never lost). Poll `poll` or GET /sync. notices says what the write did not do (x-zimmerstack.explain.notices).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteAccepted"},"example":{"batchId":"4a1f6e2d-8c3b-4d59-a7e0-2b9c5d8f1e63","resource":"availability","requestedCells":31,"acceptedCells":3,"noopCells":28,"rejected":[],"pushedBy":"inventory-drain","poll":"/api/v1/connect-api/v1/batches/4a1f6e2d-8c3b-4d59-a7e0-2b9c5d8f1e63"}}}},"400":{"description":"data.code is one of VALIDATION | RANGE_INVALID | HORIZON | TOO_MANY_UPDATES | TOO_MANY_CELLS | UNKNOWN_ROOM_TYPE; an item that names both our id and your ref, or neither, is VALIDATION; a ref no room type or rate plan of this property has is the UNKNOWN_… code, with the refs in data.details.roomTypeRefs / ratePlanRefs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":400,"message":"updates[0].available: Expected number, received string","data":{"code":"VALIDATION","details":[{"path":["updates",0,"available"],"message":"Expected number, received string"}]}}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"SCOPE_MISSING or IP_NOT_ALLOWED as everywhere; or WRITES_SUSPENDED: ZimmerStack has suspended this integration's writes (x-zimmerstack.shield.standing)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE). Or CATALOG_CONFLICT: a ref the request names by (roomTypeRef, ratePlanRef) is held by more than one room type or rate plan of this hotel, so it names no single one; nothing was done, name it by our id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"413":{"description":"Body larger than 1048576 bytes (x-zimmerstack.limits.maxBodyBytes); nothing was read","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":413,"message":"The request body is larger than the API accepts. Split the updates array across requests.","data":{"code":"PAYLOAD_TOO_LARGE"}}}}},"422":{"description":"NOTHING_ACCEPTED: every group was refused by the property's rate policy (data.details.rejected says why). On PUT /rates also RATE_OUT_OF_BAND: a price far outside its plan's standing price, nothing written (x-zimmerstack.shield.priceBand)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":422,"message":"exceptions are switched off for this property — move the base rate instead","data":{"code":"NOTHING_ACCEPTED","details":{"rejected":[{"cells":151,"error":"exceptions are switched off for this property — move the base rate instead"}]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it: a per-minute budget (x-zimmerstack.rateLimits), or a long one (cells-hour · cells-day · vendor-cells-day), or shield-pause / shield-lane while the integration is paused (x-zimmerstack.shield). Honour Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"This property's daily budget of changed cells is used up (30000 of 30000). Nothing was written. Send only what changed, in ranges, and retry after the Retry-After interval; ask ZimmerStack support if this property needs more.","data":{"code":"RATE_LIMITED","scope":"cells-day","retryAfterSeconds":2410,"details":{"scope":"cells-day","used":30000,"budget":30000,"window":"day"}}}}}},"503":{"description":"ZimmerStack has paused every write to the channel manager (WRITES_FROZEN), or the write could not be checked against its budgets (SHIELD_UNAVAILABLE). Nothing was written; honour Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":503,"message":"ZimmerStack has paused every write to the channel manager for now. Nothing was written. Retry after the Retry-After interval; reads and bookings are not affected.","data":{"code":"WRITES_FROZEN"}}}}}}}},"/api/v1/connect-api/v1/rates":{"get":{"summary":"Rates as our record holds them (minor units)","description":"Served from our record, never from the channel manager.","parameters":[{"name":"from","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"description":"Default: today in the property's timezone"},{"name":"to","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"description":"Default: from + 30 days; at most 500 days after from"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RatesRead"},"example":{"from":"2026-12-24","to":"2026-12-26","currency":"INR","decimals":2,"cells":[{"ratePlanId":901,"date":"2026-12-24","rate":"4500.00","rateMinor":450000,"source":"MANUAL"},{"ratePlanId":901,"date":"2026-12-25","rate":"5200.00","rateMinor":520000,"source":"MANUAL"},{"ratePlanId":901,"date":"2026-12-26","rate":"5200.00","rateMinor":520000,"source":"MANUAL"},{"ratePlanId":904,"date":"2026-12-24","rate":"4000.00","rateMinor":400000,"source":"PLAN_DEFAULT"},{"ratePlanId":904,"date":"2026-12-25","rate":"4000.00","rateMinor":400000,"source":"PLAN_DEFAULT"},{"ratePlanId":904,"date":"2026-12-26","rate":"4000.00","rateMinor":400000,"source":"PLAN_DEFAULT"}]}}}},"400":{"description":"Bad range (data.code RANGE_INVALID)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":400,"message":"updates[0].available: Expected number, received string","data":{"code":"VALIDATION","details":[{"path":["updates",0,"available"],"message":"Expected number, received string"}]}}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}},"put":{"summary":"Set nightly sell prices","description":"Each update sets the price of one rate plan over a date range, optionally masked to weekdays (`days`). `currency` must equal the property's. Lands in our record and rides the ARI projector to the channels. An update names its rate plan by our id (ratePlanId) or by your own ref for it (ratePlanRef), exactly one; ids and refs may be mixed across the updates of one request. The example names by id; x-zimmerstack.samples.ratesWriteByRef is the same request by ref, and it is answered the same (x-zimmerstack.refs).","parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Optional. Same key + same body within 7 days replays the stored answer (X-Idempotent-Replay: true); same key + different body is refused (409 IDEMPOTENCY_KEY_REUSED). A dry run stores nothing under the key."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RatesWrite"},"example":{"updates":[{"ratePlanId":901,"dateFrom":"2026-12-01","dateTo":"2027-03-31","rate":"4500.00","currency":"INR"},{"ratePlanId":901,"dateFrom":"2026-12-01","dateTo":"2027-03-31","days":["fr","sa"],"rate":5200,"currency":"INR"}]}}}},"responses":{"200":{"description":"A dry run (dryRun: true in the body): nothing was written, queued or sent, and no idempotency key was stored. The answer says what the same request would do: what would change, what is unchanged, what is held, what would be refused, and the notices (x-zimmerstack.explain.dryRun).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WritePreview"},"example":{"dryRun":true,"resource":"rates","verdict":"would-write","refusal":null,"requestedCells":121,"wouldChangeCells":34,"unchangedCells":87,"heldCells":0,"wouldRejectCells":0,"lane":false,"wouldChange":[{"ratePlanIds":[901],"dateFrom":"2026-12-04","dateTo":"2027-03-27","days":["fr","sa"],"cells":34,"rate":"5200.00","rateMinor":520000}],"unchanged":[{"ratePlanIds":[901],"dateFrom":"2026-12-01","dateTo":"2027-03-31","days":["mo","tu","we","th","su"],"cells":87,"rate":"4500.00","rateMinor":450000}],"held":[],"wouldReject":[],"spent":{"cells":121},"wouldSpend":{"changedCells":34},"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."}}}},"202":{"description":"Accepted. The cells that differed from our record are written and queued; the push to the channels is asynchronous (typically seconds, minutes under load, bounded by the channel manager's budget, never lost). Poll `poll` or GET /sync. notices says what the write did not do (x-zimmerstack.explain.notices).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteAccepted"},"example":{"batchId":"7f1d2c4e-5a6b-4c8d-9e0f-112233445566","resource":"rates","requestedCells":121,"acceptedCells":34,"noopCells":87,"rejected":[],"pushedBy":"ari-projector","poll":"/api/v1/connect-api/v1/batches/7f1d2c4e-5a6b-4c8d-9e0f-112233445566"}}}},"400":{"description":"data.code is one of VALIDATION | RANGE_INVALID | HORIZON | TOO_MANY_UPDATES | TOO_MANY_CELLS | UNKNOWN_RATE_PLAN | CURRENCY_MISMATCH; an item that names both our id and your ref, or neither, is VALIDATION; a ref no room type or rate plan of this property has is the UNKNOWN_… code, with the refs in data.details.roomTypeRefs / ratePlanRefs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":400,"message":"updates[0].available: Expected number, received string","data":{"code":"VALIDATION","details":[{"path":["updates",0,"available"],"message":"Expected number, received string"}]}}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"SCOPE_MISSING or IP_NOT_ALLOWED as everywhere; or WRITES_SUSPENDED: ZimmerStack has suspended this integration's writes (x-zimmerstack.shield.standing)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE). Or CATALOG_CONFLICT: a ref the request names by (roomTypeRef, ratePlanRef) is held by more than one room type or rate plan of this hotel, so it names no single one; nothing was done, name it by our id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"413":{"description":"Body larger than 1048576 bytes (x-zimmerstack.limits.maxBodyBytes); nothing was read","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":413,"message":"The request body is larger than the API accepts. Split the updates array across requests.","data":{"code":"PAYLOAD_TOO_LARGE"}}}}},"422":{"description":"NOTHING_ACCEPTED: every group was refused by the property's rate policy (data.details.rejected says why). On PUT /rates also RATE_OUT_OF_BAND: a price far outside its plan's standing price, nothing written (x-zimmerstack.shield.priceBand)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":422,"message":"exceptions are switched off for this property — move the base rate instead","data":{"code":"NOTHING_ACCEPTED","details":{"rejected":[{"cells":151,"error":"exceptions are switched off for this property — move the base rate instead"}]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it: a per-minute budget (x-zimmerstack.rateLimits), or a long one (cells-hour · cells-day · vendor-cells-day), or shield-pause / shield-lane while the integration is paused (x-zimmerstack.shield). Honour Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"This property's daily budget of changed cells is used up (30000 of 30000). Nothing was written. Send only what changed, in ranges, and retry after the Retry-After interval; ask ZimmerStack support if this property needs more.","data":{"code":"RATE_LIMITED","scope":"cells-day","retryAfterSeconds":2410,"details":{"scope":"cells-day","used":30000,"budget":30000,"window":"day"}}}}}},"503":{"description":"ZimmerStack has paused every write to the channel manager (WRITES_FROZEN), or the write could not be checked against its budgets (SHIELD_UNAVAILABLE). Nothing was written; honour Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":503,"message":"ZimmerStack has paused every write to the channel manager for now. Nothing was written. Retry after the Retry-After interval; reads and bookings are not affected.","data":{"code":"WRITES_FROZEN"}}}}}}}},"/api/v1/connect-api/v1/restrictions":{"get":{"summary":"Restrictions as our record holds them","description":"null = we hold no opinion for that field on that night.","parameters":[{"name":"from","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"description":"Default: today in the property's timezone"},{"name":"to","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"description":"Default: from + 30 days; at most 500 days after from"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestrictionsRead"},"example":{"from":"2026-12-24","to":"2026-12-26","cells":[{"ratePlanId":901,"date":"2026-12-24","stopSell":null,"closedToArrival":false,"closedToDeparture":null,"minStayArrival":2,"minStayThrough":null,"maxStay":null},{"ratePlanId":901,"date":"2026-12-25","stopSell":null,"closedToArrival":false,"closedToDeparture":null,"minStayArrival":2,"minStayThrough":null,"maxStay":null},{"ratePlanId":901,"date":"2026-12-26","stopSell":null,"closedToArrival":false,"closedToDeparture":null,"minStayArrival":2,"minStayThrough":null,"maxStay":null}]}}}},"400":{"description":"Bad range (data.code RANGE_INVALID)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":400,"message":"updates[0].available: Expected number, received string","data":{"code":"VALIDATION","details":[{"path":["updates",0,"available"],"message":"Expected number, received string"}]}}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}},"put":{"summary":"Set stay restrictions","description":"Each update sets ANY subset of stopSell, closedToArrival, closedToDeparture, minStayArrival, minStayThrough, maxStay for one rate plan over a date range; fields you omit are left as they are. An update names its rate plan by our id (ratePlanId) or by your own ref for it (ratePlanRef), exactly one; ids and refs may be mixed across the updates of one request. The example names by id; x-zimmerstack.samples.restrictionsWriteByRef is the same request by ref, and it is answered the same (x-zimmerstack.refs).","parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Optional. Same key + same body within 7 days replays the stored answer (X-Idempotent-Replay: true); same key + different body is refused (409 IDEMPOTENCY_KEY_REUSED). A dry run stores nothing under the key."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestrictionsWrite"},"example":{"updates":[{"ratePlanId":901,"dateFrom":"2026-12-24","dateTo":"2026-12-26","minStayArrival":2,"closedToArrival":false},{"ratePlanId":901,"dateFrom":"2026-12-31","dateTo":"2026-12-31","stopSell":true}]}}}},"responses":{"200":{"description":"A dry run (dryRun: true in the body): nothing was written, queued or sent, and no idempotency key was stored. The answer says what the same request would do: what would change, what is unchanged, what is held, what would be refused, and the notices (x-zimmerstack.explain.dryRun).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WritePreview"},"example":{"dryRun":true,"resource":"restrictions","verdict":"would-write","refusal":null,"requestedCells":4,"wouldChangeCells":4,"unchangedCells":0,"heldCells":0,"wouldRejectCells":0,"lane":false,"wouldChange":[{"ratePlanIds":[901],"dateFrom":"2026-12-24","dateTo":"2026-12-26","days":null,"cells":3,"closedToArrival":false,"minStayArrival":2},{"ratePlanIds":[901],"dateFrom":"2026-12-31","dateTo":"2026-12-31","days":null,"cells":1,"stopSell":true}],"unchanged":[],"held":[],"wouldReject":[],"notices":[{"code":"ROOM_STILL_ON_SALE","level":"warning","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.","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).","roomTypeId":412,"ratePlanIds":[901],"otherRatePlanIds":[904],"dateFrom":"2026-12-31","dateTo":"2026-12-31","nights":1}],"spent":{"cells":4},"wouldSpend":{"changedCells":4},"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."}}}},"202":{"description":"Accepted. The cells that differed from our record are written and queued; the push to the channels is asynchronous (typically seconds, minutes under load, bounded by the channel manager's budget, never lost). Poll `poll` or GET /sync. notices says what the write did not do (x-zimmerstack.explain.notices).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteAccepted"},"example":{"batchId":"c2d94b7a-6e15-4f08-b3a2-7d1e9f0c5a84","resource":"restrictions","requestedCells":4,"acceptedCells":4,"noopCells":0,"rejected":[],"pushedBy":"ari-projector","poll":"/api/v1/connect-api/v1/batches/c2d94b7a-6e15-4f08-b3a2-7d1e9f0c5a84","notices":[{"code":"ROOM_STILL_ON_SALE","level":"warning","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.","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).","roomTypeId":412,"ratePlanIds":[901],"otherRatePlanIds":[904],"dateFrom":"2026-12-31","dateTo":"2026-12-31","nights":1}]}}}},"400":{"description":"data.code is one of VALIDATION | RANGE_INVALID | HORIZON | TOO_MANY_UPDATES | TOO_MANY_CELLS | UNKNOWN_RATE_PLAN; an item that names both our id and your ref, or neither, is VALIDATION; a ref no room type or rate plan of this property has is the UNKNOWN_… code, with the refs in data.details.roomTypeRefs / ratePlanRefs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":400,"message":"updates[0].available: Expected number, received string","data":{"code":"VALIDATION","details":[{"path":["updates",0,"available"],"message":"Expected number, received string"}]}}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"SCOPE_MISSING or IP_NOT_ALLOWED as everywhere; or WRITES_SUSPENDED: ZimmerStack has suspended this integration's writes (x-zimmerstack.shield.standing)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE). Or CATALOG_CONFLICT: a ref the request names by (roomTypeRef, ratePlanRef) is held by more than one room type or rate plan of this hotel, so it names no single one; nothing was done, name it by our id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"413":{"description":"Body larger than 1048576 bytes (x-zimmerstack.limits.maxBodyBytes); nothing was read","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":413,"message":"The request body is larger than the API accepts. Split the updates array across requests.","data":{"code":"PAYLOAD_TOO_LARGE"}}}}},"422":{"description":"NOTHING_ACCEPTED: every group was refused by the property's rate policy (data.details.rejected says why). On PUT /rates also RATE_OUT_OF_BAND: a price far outside its plan's standing price, nothing written (x-zimmerstack.shield.priceBand)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":422,"message":"exceptions are switched off for this property — move the base rate instead","data":{"code":"NOTHING_ACCEPTED","details":{"rejected":[{"cells":151,"error":"exceptions are switched off for this property — move the base rate instead"}]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it: a per-minute budget (x-zimmerstack.rateLimits), or a long one (cells-hour · cells-day · vendor-cells-day), or shield-pause / shield-lane while the integration is paused (x-zimmerstack.shield). Honour Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"This property's daily budget of changed cells is used up (30000 of 30000). Nothing was written. Send only what changed, in ranges, and retry after the Retry-After interval; ask ZimmerStack support if this property needs more.","data":{"code":"RATE_LIMITED","scope":"cells-day","retryAfterSeconds":2410,"details":{"scope":"cells-day","used":30000,"budget":30000,"window":"day"}}}}}},"503":{"description":"ZimmerStack has paused every write to the channel manager (WRITES_FROZEN), or the write could not be checked against its budgets (SHIELD_UNAVAILABLE). Nothing was written; honour Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":503,"message":"ZimmerStack has paused every write to the channel manager for now. Nothing was written. Retry after the Retry-After interval; reads and bookings are not affected.","data":{"code":"WRITES_FROZEN"}}}}}}}},"/api/v1/connect-api/v1/availability/close":{"post":{"summary":"Close a room type on these nights, everywhere","description":"Scope ari:write. Sets the room type's count to 0 and switches stop-sell on for every one of its rate plans, in one call: the count closes every rate of the room on every channel, the stop-sell keeps it closed when an OTA cancellation puts a room back. The answer names what was closed and what could not be reached. Remembered night by night so POST /availability/reopen undoes exactly it. Accepted on the safety lane while the integration is paused or out of budget. dryRun: true answers what it would do and does nothing. The room type is named by our id (roomTypeId) or by your own ref for it (roomTypeRef), exactly one (x-zimmerstack.refs). x-zimmerstack.explain.close.","parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Send one. Same key + same body within 7 days replays the stored answer (X-Idempotent-Replay: true), so a request whose answer was lost can be sent again safely; a 429 or a 5xx is never stored, so the retry runs."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloseRoomType"},"example":{"roomTypeId":412,"dateFrom":"2026-12-24","dateTo":"2026-12-26"}}}},"responses":{"200":{"description":"A dry run, or nothing had to change (every night was already closed on our record and on the channel manager)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloseResult"},"example":{"action":"close","dryRun":true,"roomTypeId":412,"dateFrom":"2026-12-24","dateTo":"2026-12-26","nights":3,"count":{"changedNights":3,"unchangedNights":0},"ratePlans":[{"ratePlanId":901,"name":"Bed and breakfast","changedNights":3,"unchangedNights":0,"perOtaPlans":1},{"ratePlanId":904,"name":"Room only","changedNights":2,"unchangedNights":1,"perOtaPlans":0}],"notReached":[{"what":"ota-linked-rates","reason":"not-ours","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."}],"skippedNights":0,"batches":[]}}}},"202":{"description":"Accepted: the count and the stop-sells are in our record and on their way; watch batches[] land with GET /batches/{batchId}","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloseResult"},"example":{"action":"close","dryRun":false,"roomTypeId":412,"dateFrom":"2026-12-24","dateTo":"2026-12-26","nights":3,"count":{"changedNights":3,"unchangedNights":0},"ratePlans":[{"ratePlanId":901,"name":"Bed and breakfast","changedNights":3,"unchangedNights":0,"perOtaPlans":1},{"ratePlanId":904,"name":"Room only","changedNights":2,"unchangedNights":1,"perOtaPlans":0}],"notReached":[{"what":"ota-linked-rates","reason":"not-ours","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."}],"skippedNights":0,"batches":[{"resource":"availability","batchId":"3c2b1a09-8f7e-4d6c-b5a4-938271605f4e","poll":"/api/v1/connect-api/v1/batches/3c2b1a09-8f7e-4d6c-b5a4-938271605f4e"},{"resource":"restrictions","batchId":"9e8d7c6b-5a49-4382-a716-0f1e2d3c4b5a","poll":"/api/v1/connect-api/v1/batches/9e8d7c6b-5a49-4382-a716-0f1e2d3c4b5a"}]}}}},"400":{"description":"data.code is one of VALIDATION | RANGE_INVALID | HORIZON | TOO_MANY_CELLS | UNKNOWN_ROOM_TYPE; an item that names both our id and your ref, or neither, is VALIDATION; a ref no room type or rate plan of this property has is the UNKNOWN_… code, with the refs in data.details.roomTypeRefs / ratePlanRefs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":400,"message":"updates[0].available: Expected number, received string","data":{"code":"VALIDATION","details":[{"path":["updates",0,"available"],"message":"Expected number, received string"}]}}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"SCOPE_MISSING or IP_NOT_ALLOWED as everywhere; or WRITES_SUSPENDED: ZimmerStack has suspended this integration's writes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE). Or CATALOG_CONFLICT: a ref the request names by (roomTypeRef, ratePlanRef) is held by more than one room type or rate plan of this hotel, so it names no single one; nothing was done, name it by our id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"413":{"description":"Body larger than 1048576 bytes (x-zimmerstack.limits.maxBodyBytes); nothing was read","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":413,"message":"The request body is larger than the API accepts. Split the updates array across requests.","data":{"code":"PAYLOAD_TOO_LARGE"}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}},"503":{"description":"ZimmerStack has paused every write to the channel manager (WRITES_FROZEN), or the write could not be checked against its budgets (SHIELD_UNAVAILABLE). Nothing was written; honour Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":503,"message":"ZimmerStack has paused every write to the channel manager for now. Nothing was written. Retry after the Retry-After interval; reads and bookings are not affected.","data":{"code":"WRITES_FROZEN"}}}}}}}},"/api/v1/connect-api/v1/availability/reopen":{"post":{"summary":"Reopen a room type that POST /availability/close closed","description":"Scope ari:write. Undoes the close on the nights named, and nothing else: lifts the stop-sell on the plans the close switched on (one stopped before the close stays stopped) and puts back the count each night held, or sets available when you name it. A night whose count changed after the close is left alone; a night the close had not closed is skipped. It opens inventory, so a paused integration is 429 RATE_LIMITED (data.scope shield-pause). dryRun: true answers what it would do. The room type is named by our id (roomTypeId) or by your own ref for it (roomTypeRef), exactly one (x-zimmerstack.refs). x-zimmerstack.explain.close.","parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Send one. Same key + same body within 7 days replays the stored answer (X-Idempotent-Replay: true), so a request whose answer was lost can be sent again safely; a 429 or a 5xx is never stored, so the retry runs."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReopenRoomType"},"example":{"roomTypeId":412,"dateFrom":"2026-12-24","dateTo":"2026-12-26"}}}},"responses":{"200":{"description":"A dry run, or nothing to reopen on these nights (skippedNights says how many the close had not closed)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloseResult"},"example":{"action":"reopen","dryRun":true,"roomTypeId":412,"dateFrom":"2026-12-24","dateTo":"2026-12-26","nights":3,"count":{"changedNights":3,"unchangedNights":0},"ratePlans":[{"ratePlanId":901,"name":"Bed and breakfast","changedNights":3,"unchangedNights":0,"perOtaPlans":1},{"ratePlanId":904,"name":"Room only","changedNights":2,"unchangedNights":1,"perOtaPlans":0}],"notReached":[],"skippedNights":0,"batches":[]}}}},"202":{"description":"Accepted: watch batches[] land","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloseResult"},"example":{"action":"reopen","dryRun":false,"roomTypeId":412,"dateFrom":"2026-12-24","dateTo":"2026-12-26","nights":3,"count":{"changedNights":3,"unchangedNights":0},"ratePlans":[{"ratePlanId":901,"name":"Bed and breakfast","changedNights":3,"unchangedNights":0,"perOtaPlans":1},{"ratePlanId":904,"name":"Room only","changedNights":2,"unchangedNights":1,"perOtaPlans":0}],"notReached":[],"skippedNights":0,"batches":[{"resource":"restrictions","batchId":"5d4c3b2a-1908-4f7e-8d6c-b5a493827160","poll":"/api/v1/connect-api/v1/batches/5d4c3b2a-1908-4f7e-8d6c-b5a493827160"},{"resource":"availability","batchId":"6f5e4d3c-2b1a-4098-9f7e-6d5c4b3a2910","poll":"/api/v1/connect-api/v1/batches/6f5e4d3c-2b1a-4098-9f7e-6d5c4b3a2910"}]}}}},"400":{"description":"data.code is one of VALIDATION | RANGE_INVALID | HORIZON | TOO_MANY_CELLS | UNKNOWN_ROOM_TYPE; an item that names both our id and your ref, or neither, is VALIDATION; a ref no room type or rate plan of this property has is the UNKNOWN_… code, with the refs in data.details.roomTypeRefs / ratePlanRefs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":400,"message":"updates[0].available: Expected number, received string","data":{"code":"VALIDATION","details":[{"path":["updates",0,"available"],"message":"Expected number, received string"}]}}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"SCOPE_MISSING or IP_NOT_ALLOWED as everywhere; or WRITES_SUSPENDED: ZimmerStack has suspended this integration's writes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE). Or CATALOG_CONFLICT: a ref the request names by (roomTypeRef, ratePlanRef) is held by more than one room type or rate plan of this hotel, so it names no single one; nothing was done, name it by our id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"413":{"description":"Body larger than 1048576 bytes (x-zimmerstack.limits.maxBodyBytes); nothing was read","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":413,"message":"The request body is larger than the API accepts. Split the updates array across requests.","data":{"code":"PAYLOAD_TOO_LARGE"}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}},"503":{"description":"ZimmerStack has paused every write to the channel manager (WRITES_FROZEN), or the write could not be checked against its budgets (SHIELD_UNAVAILABLE). Nothing was written; honour Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":503,"message":"ZimmerStack has paused every write to the channel manager for now. Nothing was written. Retry after the Retry-After interval; reads and bookings are not affected.","data":{"code":"WRITES_FROZEN"}}}}}}}},"/api/v1/connect-api/v1/explain":{"get":{"summary":"Explain this night","description":"Scope ari:read. One room type, optionally one rate plan, one night: what your software last sent, what our record holds and who set it, what the channel manager was last seen holding, every send we still hold a trace of, a held or refused value in the channel manager's words, the plan's per-OTA plans, which connections sell it, the rules in force and the bookings that moved the count (ids and times only), then the same in plain sentences (summary). From our record: no call to the channel manager. The room type is named by roomTypeId or by roomTypeRef, your own ref for it, exactly one; a rate plan by ratePlanId or by ratePlanRef, never both (x-zimmerstack.refs). x-zimmerstack.explain.night.","parameters":[{"name":"roomTypeId","in":"query","required":false,"schema":{"type":"integer","minimum":1},"description":"ZimmerStack room type id (GET /catalog). Name the room type by this or by roomTypeRef, exactly one: a request with neither, or with both, is 400 VALIDATION"},{"name":"roomTypeRef","in":"query","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9._:-]{1,64}$"},"description":"Your own ref for the room type, in the place of roomTypeId"},{"name":"ratePlanId","in":"query","required":false,"schema":{"type":"integer","minimum":1},"description":"One rate plan of that room type; omit it, and ratePlanRef, for every plan of the room"},{"name":"ratePlanRef","in":"query","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9._:-]{1,64}$"},"description":"Your own ref for that rate plan, in the place of ratePlanId; never both"},{"name":"date","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"description":"The night, in the property's calendar: from 30 days back to the last writable night"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Explain"},"example":{"asOf":"2026-11-19T17:29:00.000Z","propertyId":61,"date":"2026-11-21","sandbox":false,"sourceOfTruth":true,"summary":["Your software last sent a count of 0 for this night at 2026-11-10 17:15 UTC (batch 3c2b1a09-8f7e-4d6c-b5a4-938271605f4e).","Our record holds 0, set by your software.","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.","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.","1 booking(s) hold or held a room of this type on this night: 0 live, 1 cancelled.","Rate plan 901 (Bed and breakfast) is stop-sold on this night (your software, at 2026-11-10 17:16 UTC)."],"roomType":{"id":412,"name":"Deluxe Garden Room","linked":true},"count":{"lastSent":{"at":"2026-11-10T17:15:02.000Z","batchId":"3c2b1a09-8f7e-4d6c-b5a4-938271605f4e","keyId":14,"available":0},"record":{"available":0,"setBy":"software","setAt":"2026-11-10T17:15:02.000Z","movedSince":false},"channelManager":{"available":1,"seenAt":"2026-11-11T08:16:40.000Z","how":"delta"},"inSync":false,"queued":false,"pushes":[{"at":"2026-11-11T08:16:40.000Z","cause":"CANCEL","by":"channel","bookingId":145450,"value":null,"outcome":"not-needed","words":null},{"at":"2026-11-10T17:15:41.000Z","cause":"OVERRIDE_SET","by":"software-or-person","bookingId":null,"value":null,"outcome":"sent","words":null}],"closed":null},"bookings":[{"bookingId":145450,"channel":"Agoda","status":"CANCELLED","bookedAt":"2026-11-10T17:04:11.000Z","cancelledAt":"2026-11-11T08:16:38.000Z","moves":[{"at":"2026-11-10T17:04:12.000Z","cause":"BOOKING","outcome":"not-needed"},{"at":"2026-11-11T08:16:40.000Z","cause":"CANCEL","outcome":"not-needed"}]}],"plans":[{"ratePlanId":901,"name":"Bed and breakfast","linked":true,"price":{"lastSent":{"at":"2026-11-02T06:00:10.000Z","batchId":"7f1d2c4e-5a6b-4c8d-9e0f-112233445566","keyId":14,"rate":"4500.00","rateMinor":450000},"record":{"rate":"4500.00","rateMinor":450000,"source":"MANUAL","setBy":"software"},"channelManager":{"rate":"4500.00","rateMinor":450000,"seenAt":"2026-11-19T01:12:03.000Z"},"inSync":true},"stayRules":{"lastSent":{"at":"2026-11-10T17:16:20.000Z","batchId":"9e8d7c6b-5a49-4382-a716-0f1e2d3c4b5a","keyId":14,"values":{"stopSell":true}},"record":{"stopSell":true,"closedToArrival":null,"closedToDeparture":null,"minStayArrival":null,"minStayThrough":null,"maxStay":null,"stopSellSetBy":"software"},"channelManager":{"stopSell":true,"closedToArrival":false,"closedToDeparture":false,"minStayArrival":1,"minStayThrough":1,"maxStay":0,"seenAt":"2026-11-19T01:12:03.000Z"},"inSync":true},"send":{"lastLandedAt":"2026-11-10T17:17:05.000Z","queuedSince":null,"held":null,"driftResends":null},"family":{"parent":null,"perOtaPlans":[{"ratePlanId":null,"name":null,"channelId":"7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f","channelKind":"Agoda","mode":"follows-price"}]},"channels":[{"channelId":"2a9f4c1e-7b3d-4e8a-9c5f-0d1e2f3a4b5c","kind":"BookingCom","title":"Booking.com","active":true,"mapped":true,"through":"itself","starOnPlanIds":[],"readonlyRows":0},{"channelId":"7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f","kind":"Agoda","title":"Agoda","active":true,"mapped":true,"through":"per-ota-plan","starOnPlanIds":[],"readonlyRows":0},{"channelId":"c4e8b2a6-1d3f-4a5b-8c7d-9e0f1a2b3c4d","kind":"Goibibo","title":"MakeMyTrip","active":true,"mapped":false,"through":null,"starOnPlanIds":[],"readonlyRows":0}],"reach":"mapped"}],"channels":{"known":true,"seenAt":"2026-11-19T01:10:00.000Z","live":[{"channelId":"2a9f4c1e-7b3d-4e8a-9c5f-0d1e2f3a4b5c","kind":"BookingCom","title":"Booking.com"},{"channelId":"7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f","kind":"Agoda","title":"Agoda"},{"channelId":"c4e8b2a6-1d3f-4a5b-8c7d-9e0f1a2b3c4d","kind":"Goibibo","title":"MakeMyTrip"}]},"policies":[{"code":"FOLLOWS_OTA_MOVES","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."}],"searched":{"batches":50,"oldestBatchAt":"2026-10-28T06:00:09.000Z","inventoryEvents":30}}}}},"400":{"description":"data.code is one of VALIDATION | RANGE_INVALID | UNKNOWN_ROOM_TYPE | UNKNOWN_RATE_PLAN; an item that names both our id and your ref, or neither, is VALIDATION; a ref no room type or rate plan of this property has is the UNKNOWN_… code, with the refs in data.details.roomTypeRefs / ratePlanRefs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":400,"message":"updates[0].available: Expected number, received string","data":{"code":"VALIDATION","details":[{"path":["updates",0,"available"],"message":"Expected number, received string"}]}}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE). Or CATALOG_CONFLICT: a ref the request names by (roomTypeRef, ratePlanRef) is held by more than one room type or rate plan of this hotel, so it names no single one; nothing was done, name it by our id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/sandbox/faults":{"get":{"summary":"Sandbox: the fault in force on the pretend channel","description":"Test keys only (403 SANDBOX_ONLY), scope ari:read. active false when none is set or the last one ran out.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxFaultView"},"example":{"active":true,"kind":"refuse","remaining":2,"until":null,"message":"Rate is below the channel's minimum","setAt":"2026-11-23T09:30:12.000Z","watch":["Send a price or a stay rule (PUT /rates or PUT /restrictions) and keep its batchId.","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.","Your webhook receives channel.sync.alert with event value_refused (once for this fault).","Send the same value again: it is answered in rejected as held, with the notice VALUE_HELD, and is not sent again.","Send a different value for those nights: it lands, and the nights are no longer held."]}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}},"post":{"summary":"Sandbox: make the pretend channel refuse, throttle or go down","description":"Test keys only (403 SANDBOX_ONLY), scope ari:write. kind refuse: the next values (default 1) of prices or stay rules are refused with message, as the channel manager refuses inside a 200. kind throttle: \"too many requests\" for minutes (default 5). kind outage: no answer for minutes (default 10; the alert needs five failed attempts, one a minute). One fault at a time: a new one replaces it. The answer's watch says what to do next and what your software should see. x-zimmerstack.explain.sandboxFaults.","parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Send one. Same key + same body within 7 days replays the stored answer (X-Idempotent-Replay: true), so a request whose answer was lost can be sent again safely; a 429 or a 5xx is never stored, so the retry runs."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxFault"},"example":{"kind":"refuse","values":2,"message":"Rate is below the channel's minimum"}}}},"responses":{"200":{"description":"The fault is set","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxFaultView"},"example":{"active":true,"kind":"refuse","remaining":2,"until":null,"message":"Rate is below the channel's minimum","setAt":"2026-11-23T09:30:12.000Z","watch":["Send a price or a stay rule (PUT /rates or PUT /restrictions) and keep its batchId.","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.","Your webhook receives channel.sync.alert with event value_refused (once for this fault).","Send the same value again: it is answered in rejected as held, with the notice VALUE_HELD, and is not sent again.","Send a different value for those nights: it lands, and the nights are no longer held."]}}}},"400":{"description":"A field that does not belong to the kind, or out of its bounds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":400,"message":"updates[0].available: Expected number, received string","data":{"code":"VALIDATION","details":[{"path":["updates",0,"available"],"message":"Expected number, received string"}]}}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}},"delete":{"summary":"Sandbox: end the fault","description":"Test keys only (403 SANDBOX_ONLY), scope ari:write. The pretend channel answers normally from the next push; values already held stay held until a different value is sent. Ending nothing is not an error.","responses":{"200":{"description":"No fault is in force","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxFaultView"},"example":{"active":false,"kind":null,"remaining":null,"until":null,"message":null,"setAt":null,"watch":["No fault is set: everything you send lands in our record within a minute."]}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/sync":{"get":{"summary":"Has what you sent reached the channels?","description":"Poll this instead of asking the channel manager: inventory pipe state, rate cells still queued, the projector's last outcome and the newest batch still pending.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncStatus"},"example":{"propertyId":61,"sandbox":false,"ariAuthoritative":true,"inventory":{"state":"IN_SYNC","pendingCells":0,"lastOkAt":"2026-12-01T09:13:20.000Z","lastError":null,"outOfSyncSince":null},"rates":{"dirtyCells":12,"parkedCells":0,"lastPushAt":"2026-12-01T09:14:31.000Z","lastErrorAt":null,"lastError":null,"driftCells":0,"driftSeenAt":null},"shield":{"level":"CLEAR","reason":null,"until":null},"newestPendingBatch":{"batchId":"7f1d2c4e-5a6b-4c8d-9e0f-112233445566","resource":"rates","createdAt":"2026-12-01T09:14:03.201Z","requestedCells":121,"acceptedCells":34,"noopCells":87,"rejected":[],"status":"pending","pendingCells":12,"parkedCells":0,"lastError":null}}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/bookings":{"get":{"summary":"Bookings the API created on this property, newest first","description":"Scope bookings:read. Only bookings a key of this property created; front-desk and OTA bookings are never listed.","parameters":[{"name":"since","in":"query","required":false,"schema":{"type":"string","format":"date-time"},"description":"Created on or after this instant; default the last 7 days"},{"name":"externalReference","in":"query","required":false,"schema":{"type":"string","maxLength":64},"description":"Only the booking with your reservation id"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100},"description":"Default 50"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingsList"},"example":{"since":"2026-12-03T09:20:00.000Z","items":[{"bookingId":48213,"reference":"SB-7KQ2MX9D","externalReference":"WEB-2026-000123","status":"UPCOMING","checkIn":"2026-12-20","checkOut":"2026-12-23","nights":3,"currency":"INR","totalAmount":"27000.00","totalPaid":"9000.00","balanceDue":"18000.00","guest":{"name":"Asha Verma","phone":"+919876543210","email":"asha@example.com"},"rooms":[{"bookingRoomId":90001,"roomTypeId":412,"ratePlanId":901,"mealPlan":"CP","adults":2,"children":1,"nightlyRate":"4500.00","status":"UPCOMING"},{"bookingRoomId":90002,"roomTypeId":412,"ratePlanId":901,"mealPlan":"CP","adults":2,"children":0,"nightlyRate":"4500.00","status":"UPCOMING"}],"inventory":{"eventRecorded":true,"channelManager":true,"pushedBy":"inventory-drain"},"replay":false,"createdAt":"2026-12-10T09:14:03.201Z","cancelledAt":null}]}}}},"400":{"description":"Bad query (data.code VALIDATION)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":400,"message":"updates[0].available: Expected number, received string","data":{"code":"VALIDATION","details":[{"path":["updates",0,"available"],"message":"Expected number, received string"}]}}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}},"post":{"summary":"Create a booking in the PMS from your own booking engine","description":"Scope bookings:write (+ bookings:payments to record a payment). One entry in `rooms` per room. The stay is checked for availability under the property's inventory lock and written with its inventory event in one transaction; the channels update within seconds. A repeated externalReference answers 200 with the same booking (replay: true) while it is this key's and live; another key's reference, or one of your own cancelled bookings, is 409 EXTERNAL_REFERENCE_REUSED (send a new reference after a cancel). 1–90 nights, arrival from today to today + horizonDays, in the property's timezone.","parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Optional on top of externalReference: same key + same body within 7 days replays the stored answer."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingCreate"},"example":{"externalReference":"WEB-2026-000123","checkIn":"2026-12-20","checkOut":"2026-12-23","currency":"INR","guest":{"name":"Asha Verma","phone":"+919876543210","email":"asha@example.com","notes":"Late arrival, after 22:00"},"rooms":[{"roomTypeId":412,"ratePlanId":901,"adults":2,"children":1,"nightlyRate":"4500.00"},{"roomTypeId":412,"ratePlanId":901,"adults":2,"nightlyRate":"4500.00"}],"payment":{"amount":"9000.00","method":"ONLINE","reference":"pay_QwErTy123"},"notes":"Promo WINTER10 applied on the website"}}}},"responses":{"200":{"description":"Already created by an earlier call from this key with this externalReference, and still live (replay: true)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Booking"},"example":{"bookingId":48213,"reference":"SB-7KQ2MX9D","externalReference":"WEB-2026-000123","status":"UPCOMING","checkIn":"2026-12-20","checkOut":"2026-12-23","nights":3,"currency":"INR","totalAmount":"27000.00","totalPaid":"9000.00","balanceDue":"18000.00","guest":{"name":"Asha Verma","phone":"+919876543210","email":"asha@example.com"},"rooms":[{"bookingRoomId":90001,"roomTypeId":412,"ratePlanId":901,"mealPlan":"CP","adults":2,"children":1,"nightlyRate":"4500.00","status":"UPCOMING"},{"bookingRoomId":90002,"roomTypeId":412,"ratePlanId":901,"mealPlan":"CP","adults":2,"children":0,"nightlyRate":"4500.00","status":"UPCOMING"}],"inventory":{"eventRecorded":true,"channelManager":true,"pushedBy":"inventory-drain"},"replay":true,"createdAt":"2026-12-10T09:14:03.201Z","cancelledAt":null}}}},"201":{"description":"Created. The booking is in the PMS; inventory.pushedBy says how the channels learn.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Booking"},"example":{"bookingId":48213,"reference":"SB-7KQ2MX9D","externalReference":"WEB-2026-000123","status":"UPCOMING","checkIn":"2026-12-20","checkOut":"2026-12-23","nights":3,"currency":"INR","totalAmount":"27000.00","totalPaid":"9000.00","balanceDue":"18000.00","guest":{"name":"Asha Verma","phone":"+919876543210","email":"asha@example.com"},"rooms":[{"bookingRoomId":90001,"roomTypeId":412,"ratePlanId":901,"mealPlan":"CP","adults":2,"children":1,"nightlyRate":"4500.00","status":"UPCOMING"},{"bookingRoomId":90002,"roomTypeId":412,"ratePlanId":901,"mealPlan":"CP","adults":2,"children":0,"nightlyRate":"4500.00","status":"UPCOMING"}],"inventory":{"eventRecorded":true,"channelManager":true,"pushedBy":"inventory-drain"},"replay":false,"createdAt":"2026-12-10T09:14:03.201Z","cancelledAt":null}}}},"400":{"description":"data.code is one of VALIDATION | CURRENCY_MISMATCH | STAY_INVALID | UNKNOWN_ROOM_TYPE | UNKNOWN_RATE_PLAN | UNKNOWN_ROOM_TYPE_FOR_PLAN | OCCUPANCY_EXCEEDED | PAYMENT_EXCEEDS_TOTAL","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":400,"message":"checkIn 2026-10-01 is in the past (today at the property is 2026-10-20)","data":{"code":"STAY_INVALID","details":{"today":"2026-10-20"}}}}}},"401":{"description":"Missing, malformed, unknown or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"402":{"description":"The property's plan does not carry the PMS","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":402,"message":"This property's plan does not include the PMS.","data":{"code":"MODULE_NOT_ENTITLED","details":{"module":"PMS"}}}}}},"403":{"description":"SCOPE_MISSING (no bookings:write), IP_NOT_ALLOWED, or PAYMENT_NOT_ALLOWED (a payment without bookings:payments)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key may not record payments. The property owner grants the bookings:payments scope.","data":{"code":"PAYMENT_NOT_ALLOWED","details":{"needed":"bookings:payments"}}}}}},"409":{"description":"NO_AVAILABILITY (the night and the count are in details; nothing was written), EXTERNAL_REFERENCE_REUSED (another key's reference on this property, or your own cancelled booking's: send a new reference), TAXES_NOT_CONFIGURED (nightlyRateIncludesTaxes false at a hotel with no confirmed tax lines) or TAXES_INSIDE_RATES (false at a hotel whose taxes all sit inside its prices): send the rate as the guest pays it, under a new x-idempotency-key (a refusal is kept against its key for 7 days), PROPERTY_UNAVAILABLE, PMS_NOT_AVAILABLE","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"room type 412 has 0 left on 2026-12-21; 1 requested","data":{"code":"NO_AVAILABILITY","details":{"roomTypeId":412,"date":"2026-12-21","available":0,"requested":1}}}}}},"413":{"description":"Body larger than 1048576 bytes (x-zimmerstack.limits.maxBodyBytes); nothing was read","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":413,"message":"The request body is larger than the API accepts. Split the updates array across requests.","data":{"code":"PAYLOAD_TOO_LARGE"}}}}},"429":{"description":"data.scope is bookings · property-bookings · property-bookings-day (a rolling day) or one of the request budgets; honour Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/bookings/{bookingId}":{"get":{"summary":"One booking the API created","parameters":[{"name":"bookingId","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Booking"},"example":{"bookingId":48213,"reference":"SB-7KQ2MX9D","externalReference":"WEB-2026-000123","status":"UPCOMING","checkIn":"2026-12-20","checkOut":"2026-12-23","nights":3,"currency":"INR","totalAmount":"27000.00","totalPaid":"9000.00","balanceDue":"18000.00","guest":{"name":"Asha Verma","phone":"+919876543210","email":"asha@example.com"},"rooms":[{"bookingRoomId":90001,"roomTypeId":412,"ratePlanId":901,"mealPlan":"CP","adults":2,"children":1,"nightlyRate":"4500.00","status":"UPCOMING"},{"bookingRoomId":90002,"roomTypeId":412,"ratePlanId":901,"mealPlan":"CP","adults":2,"children":0,"nightlyRate":"4500.00","status":"UPCOMING"}],"inventory":{"eventRecorded":true,"channelManager":true,"pushedBy":"inventory-drain"},"replay":false,"createdAt":"2026-12-10T09:14:03.201Z","cancelledAt":null}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"No such booking on this property, or not one this key (or the key it was rotated from) created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"Booking not found.","data":{"code":"BOOKING_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/bookings/{bookingId}/cancel":{"post":{"summary":"Cancel a booking the API created; its nights re-open on the channels","description":"Scope bookings:write. Idempotent: an already-cancelled booking answers 200 with replay: true. A booking the desk has checked in is 409 BOOKING_NOT_CANCELLABLE.","parameters":[{"name":"bookingId","in":"path","required":true,"schema":{"type":"integer"}},{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Send one. Same key + same body within 7 days replays the stored answer (X-Idempotent-Replay: true), so a request whose answer was lost can be sent again safely; a 429 or a 5xx is never stored, so the retry runs."}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingCancel"},"example":{"reason":"Guest cancelled on the website"}}}},"responses":{"200":{"description":"Cancelled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Booking"},"example":{"bookingId":48213,"reference":"SB-7KQ2MX9D","externalReference":"WEB-2026-000123","status":"CANCELLED","checkIn":"2026-12-20","checkOut":"2026-12-23","nights":3,"currency":"INR","totalAmount":"27000.00","totalPaid":"9000.00","balanceDue":"18000.00","guest":{"name":"Asha Verma","phone":"+919876543210","email":"asha@example.com"},"rooms":[{"bookingRoomId":90001,"roomTypeId":412,"ratePlanId":901,"mealPlan":"CP","adults":2,"children":1,"nightlyRate":"4500.00","status":"CANCELLED"},{"bookingRoomId":90002,"roomTypeId":412,"ratePlanId":901,"mealPlan":"CP","adults":2,"children":0,"nightlyRate":"4500.00","status":"CANCELLED"}],"inventory":{"eventRecorded":true,"channelManager":true,"pushedBy":"inventory-drain"},"replay":false,"createdAt":"2026-12-10T09:14:03.201Z","cancelledAt":"2026-12-11T08:02:19.000Z"}}}},"401":{"description":"Missing, malformed, unknown or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks bookings:write, or the address is outside the allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"No such booking on this property, or not one this key (or the key it was rotated from) created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"Booking not found.","data":{"code":"BOOKING_NOT_FOUND"}}}}},"409":{"description":"Checked in or otherwise not cancellable from the API; PROPERTY_UNAVAILABLE; PMS_NOT_AVAILABLE","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"Booking already checked in. Ask the hotel to handle it at the desk.","data":{"code":"BOOKING_NOT_CANCELLABLE"}}}}},"429":{"description":"A request budget was exhausted; honour Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/requests":{"get":{"summary":"This key's own requests of the last 7 days","description":"Every key, whatever its scopes. Newest first: when, the route's pattern, the status, the error code, the address it came from, how long it took and the request id; never a body, a query or a guest's data. A hotel key reads the calls made with that key. A company key reads every call made with it across its hotels, or one hotel's when X-ZS-Property names it. Kept 7 days. A key's 429s past twenty in one minute are counted, not listed. Use it to answer \"did my push arrive\" yourself, and to look for an address that is not yours.","parameters":[{"name":"since","in":"query","required":false,"schema":{"type":"string","format":"date-time"},"description":"Default: the last 24 hours; at most 7 days back"},{"name":"status","in":"query","required":false,"schema":{"type":"string","pattern":"^([1-5]xx|[1-5]\\d\\d|errors)$"},"description":"One code (\"429\"), a family (\"2xx\", \"4xx\", \"5xx\") or \"errors\" (400 and above)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200},"description":"Default 50"},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"},"description":"The previous page's nextCursor"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestLog"},"example":{"since":"2026-12-09T12:05:00.000Z","retentionDays":7,"items":[{"id":"5820417","at":"2026-12-10T12:04:31.118Z","method":"GET","route":"/sync","status":200,"errorCode":null,"address":"203.0.113.24","durationMs":41,"requestId":"rq_mxhiep729f2c1a7e","propertyId":61,"keyId":14},{"id":"5820398","at":"2026-12-10T12:04:16.902Z","method":"PUT","route":"/rates","status":202,"errorCode":null,"address":"203.0.113.24","durationMs":187,"requestId":"rq_mxhiee864be07d31","propertyId":61,"keyId":14},{"id":"5820371","at":"2026-12-10T12:03:58.440Z","method":"PUT","route":"/rates","status":429,"errorCode":"RATE_LIMITED","address":"203.0.113.24","durationMs":6,"requestId":"rq_mxhidzzcc81a5e06","propertyId":61,"keyId":14}],"more":false,"nextCursor":null}}}},"400":{"description":"A since that is not an instant, a status that is not a code or a family, a limit out of range","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":400,"message":"updates[0].available: Expected number, received string","data":{"code":"VALIDATION","details":[{"path":["updates",0,"available"],"message":"Expected number, received string"}]}}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/channels":{"get":{"summary":"The connected channels and their open issues, from our record","description":"Scope ari:read. No channel-manager call: asOf is when the list was captured (the nightly settings sweep); open issues are live. Each channel carries its price modifier (x-zimmerstack.modifiers); a modifier set through this API shows at once.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Channels"},"example":{"asOf":"2026-10-30T20:15:04.000Z","channels":[{"channelId":"7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f","kind":"BookingCom","title":"Booking.com — The Lantern House","seenAt":"2026-10-30T20:15:04.000Z","openIssues":[],"modifier":[{"action":"increase","type":"percent","value":18}],"markupPlan":null},{"channelId":"0a9b8c7d-6e5f-4a3b-2c1d-0e9f8a7b6c5d","kind":"Expedia","title":"Expedia — The Lantern House","seenAt":"2026-10-30T20:15:04.000Z","openIssues":[{"event":"rate_error","raisedAt":"2026-10-30T09:40:11.000Z"}],"modifier":[],"markupPlan":null}],"propertyIssues":[]}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/channels/{channelId}/modifier":{"put":{"summary":"Set one channel's price modifier","description":"Scope channel-modifiers:write. Replaces the channel's steps with the list sent ([] removes them). Applied to the channel manager while the request runs, read back, then answered: 200 means the channel holds them. The channel manager then sends that channel every date again, so prices already there move within minutes; no re-send is needed. Steps the channel already holds answer changed: false and cost nothing.","parameters":[{"name":"channelId","in":"path","required":true,"schema":{"type":"string"},"description":"The channel's id, from GET /channels"},{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Optional. Same key + same request within 7 days replays the stored answer; a 429 or a 5xx is never stored, so the retry runs."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModifierWrite"},"example":{"steps":[{"action":"increase","type":"percent","value":18},{"action":"decrease","type":"fixed","value":200}]}}}},"responses":{"200":{"description":"The channel holds these steps","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModifierResult"},"example":{"channelId":"7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f","kind":"BookingCom","title":"Booking.com — The Lantern House","modifier":[{"action":"increase","type":"percent","value":18},{"action":"decrease","type":"fixed","value":200}],"changed":true,"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."}}}},"400":{"description":"Body shape (data.code VALIDATION): at most five steps, each increase or decrease, percent or fixed, a positive value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":400,"message":"updates[0].available: Expected number, received string","data":{"code":"VALIDATION","details":[{"path":["updates",0,"available"],"message":"Expected number, received string"}]}}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"SCOPE_MISSING (the key lacks channel-modifiers:write) or IP_NOT_ALLOWED; or WRITES_SUSPENDED: ZimmerStack has suspended this integration's writes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"No connected channel with this id on this property (CHANNEL_NOT_FOUND); or PROPERTY_NOT_FOUND as everywhere","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No connected channel with this id on this property. GET /channels lists them.","data":{"code":"CHANNEL_NOT_FOUND"}}}}},"409":{"description":"The connection serves more than one property (CHANNEL_SHARED); or CHANNEL_MANAGER_DISABLED / PROPERTY_UNAVAILABLE as everywhere","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This connection serves more than one property, so its modifier would move another hotel's prices too. It is set by the hotels' owner in ZimmerStack, not through this API. Nothing was changed.","data":{"code":"CHANNEL_SHARED"}}}}},"422":{"description":"The steps together would move prices outside the band (x-zimmerstack.modifiers.band); nothing changed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":422,"message":"These steps would change what the channel is sent by +180%; a channel's modifier must stay between 50% lower and 100% higher. Nothing was changed.","data":{"code":"MODIFIER_OUT_OF_BAND","details":{"changePct":180,"maxDecreasePct":50,"maxIncreasePct":100}}}}}},"429":{"description":"A budget was exhausted — data.scope names it: a per-minute budget, modifier-changes-day (the day's changes for this property), modifier-busy (another change to this channel is running), or shield-pause while the integration is paused. Honour Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"This property's daily budget of channel price modifier changes is used up (6 of 6). Nothing was changed. Retry after the Retry-After interval; ask ZimmerStack support if this property needs more.","data":{"code":"RATE_LIMITED","scope":"modifier-changes-day","retryAfterSeconds":5120,"details":{"scope":"modifier-changes-day","used":6,"budget":6,"window":"day"}}}}}},"502":{"description":"The channel manager did not take the modifier; nothing changed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":502,"message":"The channel manager refused the delete. Nothing changed here; try again in a moment.","data":{"code":"CHANNEL_MANAGER_ERROR"}}}}},"503":{"description":"ZimmerStack has paused every write to the channel manager (WRITES_FROZEN), or the write could not be checked against its budgets (SHIELD_UNAVAILABLE). Nothing was written; honour Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":503,"message":"ZimmerStack has paused every write to the channel manager for now. Nothing was written. Retry after the Retry-After interval; reads and bookings are not affected.","data":{"code":"WRITES_FROZEN"}}}}}}}},"/api/v1/connect-api/v1/rates/resend":{"post":{"summary":"Send the property's prices to the channels again","description":"Scope ari:write. Marks every rate-plan night of the writable horizon to be sent again, unchanged. The nights travel like any write: paced, coalesced, never lost. Not needed after a modifier change (the channel manager re-sends that channel every date itself); it is limited per property per day (data.scope rate-resends-day). No body.","parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Optional. Same key within 7 days replays the stored answer instead of sending again."}],"responses":{"202":{"description":"Marked; watch GET /sync","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RatesResendAccepted"},"example":{"from":"2026-11-12","to":"2027-11-12","cells":1098,"parkedLeft":0,"watch":"/api/v1/connect-api/v1/sync","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."}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"SCOPE_MISSING or IP_NOT_ALLOWED as everywhere; or WRITES_SUSPENDED: ZimmerStack has suspended this integration's writes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}},"503":{"description":"ZimmerStack has paused every write to the channel manager (WRITES_FROZEN), or the write could not be checked against its budgets (SHIELD_UNAVAILABLE). Nothing was written; honour Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":503,"message":"ZimmerStack has paused every write to the channel manager for now. Nothing was written. Retry after the Retry-After interval; reads and bookings are not affected.","data":{"code":"WRITES_FROZEN"}}}}}}}},"/api/v1/connect-api/v1/channels/{channelId}/full-sync":{"post":{"summary":"Full sync of one OTA connection: send that OTA everything again","description":"Scope ari:write. The channel manager sends this one OTA everything it holds again: room counts, prices and stay rules, for every date. Nothing new leaves our own record (x-zimmerstack.fullSync). Use it when an OTA shows something the channel manager does not hold. An OTA takes one full sync an hour for each connection (data.scope full-sync-hour); one the hotel's owner started in ZimmerStack counts too. A sandbox has no real OTA: it answers 200 with started false and a notice, and nothing is sent. No body.","parameters":[{"name":"channelId","in":"path","required":true,"schema":{"type":"string"},"description":"The connection's id, from GET /channels"},{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Optional. Same key within 7 days replays the stored answer instead of starting another full sync, so use a new key for each full sync you mean to start; a 429 or a 5xx is never stored, so the retry runs."}],"responses":{"200":{"description":"A sandbox: nothing was sent (started false; notice says why)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FullSyncResult"},"example":{"channelId":"b53ff702-be2d-44ee-8a7e-d1153f096dba","started":false,"nextAt":null,"notice":"Nothing was sent: a sandbox has no real OTA. On a live hotel the same request starts a full sync."}}}},"202":{"description":"The full sync started; nextAt says when this connection takes the next one","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FullSyncResult"},"example":{"channelId":"7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f","started":true,"nextAt":"2026-12-10T13:04:31.000Z"}}}},"400":{"description":"A body that carries a field (data.code VALIDATION): this request takes none","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":400,"message":"Unrecognized key: \"dryRun\"","data":{"code":"VALIDATION","details":[{"code":"unrecognized_keys","keys":["dryRun"],"path":[],"message":"Unrecognized key: \"dryRun\""}]}}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"SCOPE_MISSING (the key lacks ari:write) or IP_NOT_ALLOWED as everywhere; or WRITES_SUSPENDED: ZimmerStack has suspended this integration's writes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"No connected channel with this id on this property (CHANNEL_NOT_FOUND); or PROPERTY_NOT_FOUND as everywhere","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No connected channel with this id on this property. GET /channels lists them.","data":{"code":"CHANNEL_NOT_FOUND"}}}}},"409":{"description":"The connection is paused, so there is nothing to send until the hotel's owner starts selling on it (CHANNEL_PAUSED); or CHANNEL_MANAGER_DISABLED / PROPERTY_UNAVAILABLE / ARI_NOT_AUTHORITATIVE as everywhere. Kept under its idempotency key like every 4xx but a 429: send the next try with a new key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This OTA connection is paused, so there is nothing to send. The hotel's owner starts selling on it in ZimmerStack first. Nothing was sent.","data":{"code":"CHANNEL_PAUSED"}}}}},"429":{"description":"A budget was exhausted — data.scope names it: full-sync-hour (this connection had a full sync within the last hour; data.details.retryAt says when it takes the next one), a per-minute budget, or shield-pause while the integration is paused. Honour Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"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.","data":{"code":"RATE_LIMITED","scope":"full-sync-hour","retryAfterSeconds":2379,"details":{"scope":"full-sync-hour","used":1,"budget":1,"window":"hour","channelId":"0a9b8c7d-6e5f-4a3b-2c1d-0e9f8a7b6c5d","retryAt":"2026-12-10T12:44:10.000Z"}}}}}},"502":{"description":"The channel manager did not start the full sync; nothing was sent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":502,"message":"The channel manager did not start the full sync. Nothing was sent. Try again in a moment.","data":{"code":"CHANNEL_MANAGER_ERROR"}}}}},"503":{"description":"ZimmerStack has paused every write to the channel manager (WRITES_FROZEN), or the write could not be checked against its budgets (SHIELD_UNAVAILABLE). Nothing was written; honour Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":503,"message":"ZimmerStack has paused every write to the channel manager for now. Nothing was written. Retry after the Retry-After interval; reads and bookings are not affected.","data":{"code":"WRITES_FROZEN"}}}}}}}},"/api/v1/connect-api/v1/full-sync":{"post":{"summary":"Full sync of the hotel: send every OTA everything again","description":"Scope ari:write. The same full sync on every OTA connection of the hotel, one after another (x-zimmerstack.fullSync). The answer has one line for each connection: started true, or a code that says why not (RATE_LIMITED with retryAt: it had one within the last hour; CHANNEL_PAUSED; CHANNEL_NOT_FOUND; CHANNEL_MANAGER_ERROR). One connection that cannot go never stops the others. 202 when at least one started; 200 when none did (x-zimmerstack.samples.propertyFullSyncNoneStarted) and on a sandbox, which has no real OTA and sends nothing. No body.","parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Optional. Same key within 7 days replays the stored answer instead of starting another full sync, so use a new key for each full sync you mean to start; a 429 or a 5xx is never stored, so the retry runs."}],"responses":{"200":{"description":"None started: a sandbox (notice says why), a hotel with no OTA connection, or every connection refused, each line with its code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertyFullSyncResult"},"example":{"channels":[],"started":0,"notice":"Nothing was sent: a sandbox has no real OTA. On a live hotel the same request starts a full sync."}}}},"202":{"description":"At least one connection's full sync started; each line says which","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertyFullSyncResult"},"example":{"channels":[{"channelId":"7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f","started":true},{"channelId":"0a9b8c7d-6e5f-4a3b-2c1d-0e9f8a7b6c5d","started":false,"code":"RATE_LIMITED","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.","retryAt":"2026-12-10T12:44:10.000Z"}],"started":1}}}},"400":{"description":"A body that carries a field (data.code VALIDATION): this request takes none","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":400,"message":"Unrecognized key: \"dryRun\"","data":{"code":"VALIDATION","details":[{"code":"unrecognized_keys","keys":["dryRun"],"path":[],"message":"Unrecognized key: \"dryRun\""}]}}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"SCOPE_MISSING (the key lacks ari:write) or IP_NOT_ALLOWED as everywhere; or WRITES_SUSPENDED: ZimmerStack has suspended this integration's writes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}},"502":{"description":"The channel manager did not list the hotel's connections; nothing was sent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":502,"message":"The channel manager did not start the full sync. Nothing was sent. Try again in a moment.","data":{"code":"CHANNEL_MANAGER_ERROR"}}}}},"503":{"description":"ZimmerStack has paused every write to the channel manager (WRITES_FROZEN), or the write could not be checked against its budgets (SHIELD_UNAVAILABLE). Nothing was written; honour Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":503,"message":"ZimmerStack has paused every write to the channel manager for now. Nothing was written. Retry after the Retry-After interval; reads and bookings are not affected.","data":{"code":"WRITES_FROZEN"}}}}}}}},"/api/v1/connect-api/v1/channel-bookings":{"get":{"summary":"The OTA bookings the channel manager delivered, in the webhook's shape","description":"Scope channel-bookings:read. Oldest change first; since (default the last 7 days) is on the booking's last change so cancellations and modifications are listed again; while more is true, ask again with cursor = nextCursor, which resumes exactly after the last item even when many bookings changed in the same instant. nextCursor is returned on the last page too. Each booking says what its last event said (x-zimmerstack.channelBookings.matchesWebhook); guest contact follows x-zimmerstack.guestContact.","parameters":[{"name":"since","in":"query","required":false,"schema":{"type":"string","format":"date-time"},"description":"Changed on or after this instant (ISO 8601); default: the last 7 days"},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["CONFIRMED","CANCELLED"]},"description":"Only confirmed or only cancelled; default both"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100},"description":"Default 50"},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":200},"description":"The previous page's nextCursor; takes precedence over since. One this API did not issue is 400 VALIDATION"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelBookingsList"},"example":{"since":"2026-12-03T12:30:00.000Z","items":[{"id":100001,"reference":"TEST-ZS-8K3Q2M","version":1,"status":"CONFIRMED","stayStatus":"UPCOMING","channel":{"otaName":"MakeMyTrip","otaReservationCode":"TEST-ZS-8K3Q2M","source":"CHANNEL_MANAGER","sourceGroup":"INDIRECT"},"stay":{"checkIn":"2026-12-24","checkOut":"2026-12-26","nights":2,"dayUse":false},"guest":{"fullName":"Asha Verma","firstName":"Asha","lastName":"Verma","phone":"+919876500000","email":"asha.verma@example.com","country":"IN","language":"en"},"guestNotes":"Late arrival around 22:00. Non-smoking room please. (test event)","occupancy":{"adults":2,"children":0},"rooms":[{"roomTypeId":412,"ratePlanId":901,"roomTypeName":"Deluxe Garden Room","mealPlan":"CP","mealPlanSource":"ota","mealPlanText":"CP · Breakfast included","mealPrice":null,"adults":2,"children":0,"checkIn":"2026-12-24","checkOut":"2026-12-26","nights":2,"dayUse":false,"ratePerNight":2700,"amount":5400,"nightlyRates":[{"date":"2026-12-24","amount":2600},{"date":"2026-12-25","amount":2800}],"commission":1350,"status":"UPCOMING"}],"amounts":{"currency":"INR","total":5400,"paid":0,"balanceDue":5400,"paymentCollect":"property"},"finance":{"otaName":"MakeMyTrip","amountBasis":"GROSS_TOTAL","currency":"INR","grossAmount":5400,"commissionAmount":1350,"taxAmount":648,"netPayoutAmount":4050,"taxIncludedInAmount":false},"cancellation":null,"createdAt":"2026-12-10T12:00:00.000Z","updatedAt":"2026-12-10T12:00:00.000Z"}],"more":false,"nextCursor":"WyIyMDI2LTEyLTEwVDEyOjAwOjAwLjAwMFoiLDEwMDAwMV0"}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/channel-bookings/{bookingId}":{"get":{"summary":"One channel booking, the webhook's shape","description":"Scope channel-bookings:read. 404 for a booking that is not this property's or not a channel booking.","parameters":[{"name":"bookingId","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelBooking"},"example":{"id":100001,"reference":"TEST-ZS-8K3Q2M","version":1,"status":"CONFIRMED","stayStatus":"UPCOMING","channel":{"otaName":"MakeMyTrip","otaReservationCode":"TEST-ZS-8K3Q2M","source":"CHANNEL_MANAGER","sourceGroup":"INDIRECT"},"stay":{"checkIn":"2026-12-24","checkOut":"2026-12-26","nights":2,"dayUse":false},"guest":{"fullName":"Asha Verma","firstName":"Asha","lastName":"Verma","phone":"+919876500000","email":"asha.verma@example.com","country":"IN","language":"en"},"guestNotes":"Late arrival around 22:00. Non-smoking room please. (test event)","occupancy":{"adults":2,"children":0},"rooms":[{"roomTypeId":412,"ratePlanId":901,"roomTypeName":"Deluxe Garden Room","mealPlan":"CP","mealPlanSource":"ota","mealPlanText":"CP · Breakfast included","mealPrice":null,"adults":2,"children":0,"checkIn":"2026-12-24","checkOut":"2026-12-26","nights":2,"dayUse":false,"ratePerNight":2700,"amount":5400,"nightlyRates":[{"date":"2026-12-24","amount":2600},{"date":"2026-12-25","amount":2800}],"commission":1350,"status":"UPCOMING"}],"amounts":{"currency":"INR","total":5400,"paid":0,"balanceDue":5400,"paymentCollect":"property"},"finance":{"otaName":"MakeMyTrip","amountBasis":"GROSS_TOTAL","currency":"INR","grossAmount":5400,"commissionAmount":1350,"taxAmount":648,"netPayoutAmount":4050,"taxIncludedInAmount":false},"cancellation":null,"createdAt":"2026-12-10T12:00:00.000Z","updatedAt":"2026-12-10T12:00:00.000Z"}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"No channel booking with this id on this property; on a company key, PROPERTY_NOT_FOUND when X-ZS-Property names a property it may not act on","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"Booking not found.","data":{"code":"BOOKING_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/webhook-endpoints":{"get":{"summary":"Your company webhook endpoints (a software partner's company key)","description":"Scope webhooks:manage, company keys only; X-ZS-Property is not read. The endpoints of the key's own mode: a live key lists live ones, a test key test ones. x-zimmerstack.webhookEndpoints has the whole flow.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointList"},"example":{"items":[{"id":7,"mode":"live","url":"https://example.com/zimmerstack/webhooks","description":"Bookings and channel alerts for our PMS","apiVersion":"2026-09-01","eventTypes":["channel.booking.created","channel.booking.modified","channel.booking.cancelled","channel.sync.alert","channel.sync.recovered"],"includeGuestContact":false,"status":"ACTIVE","statusReason":null,"secretVersion":1,"previousSecretExpiresAt":null,"notifyEmail":null,"createdAt":"2026-12-10T09:30:00.000Z","updatedAt":"2026-12-10T12:00:03.000Z","lastStoppedAt":null,"health":{"state":"healthy","consecutiveFailures":0,"failingSince":null,"lastSuccessAt":"2026-12-10T12:00:03.000Z","lastFailureAt":null,"lastErrorMessage":null}}],"limit":3}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}},"post":{"summary":"Create a company webhook endpoint","description":"Scope webhooks:manage. The mode is the key's. The answer carries the signing secret, shown once. Guest contact is off unless includeGuestContact is true; with no eventTypes the endpoint takes the OTA booking events and both channel.sync events.","parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Send one. Same key + same body within 7 days replays the stored answer (X-Idempotent-Replay: true), so a request whose answer was lost can be sent again safely; a 429 or a 5xx is never stored, so the retry runs."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointCreate"},"example":{"url":"https://example.com/zimmerstack/webhooks","description":"Bookings and channel alerts for our PMS","dataAck":true}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointCreated"},"example":{"endpoint":{"id":7,"mode":"live","url":"https://example.com/zimmerstack/webhooks","description":"Bookings and channel alerts for our PMS","apiVersion":"2026-09-01","eventTypes":["channel.booking.created","channel.booking.modified","channel.booking.cancelled","channel.sync.alert","channel.sync.recovered"],"includeGuestContact":false,"status":"ACTIVE","statusReason":null,"secretVersion":1,"previousSecretExpiresAt":null,"notifyEmail":null,"createdAt":"2026-12-10T09:30:00.000Z","updatedAt":"2026-12-10T09:30:00.000Z","lastStoppedAt":null,"health":{"state":"healthy","consecutiveFailures":0,"failingSince":null,"lastSuccessAt":null,"lastFailureAt":null,"lastErrorMessage":null}},"secret":"whsec_…"}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"See x-zimmerstack.webhookEndpoints.refusals","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/webhook-endpoints/{endpointId}":{"get":{"summary":"One company webhook endpoint, with its health","description":"Scope webhooks:manage.","parameters":[{"name":"endpointId","in":"path","required":true,"schema":{"type":"integer"},"description":"The endpoint's id, from GET /webhook-endpoints"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpoint"},"example":{"id":7,"mode":"live","url":"https://example.com/zimmerstack/webhooks","description":"Bookings and channel alerts for our PMS","apiVersion":"2026-09-01","eventTypes":["channel.booking.created","channel.booking.modified","channel.booking.cancelled","channel.sync.alert","channel.sync.recovered"],"includeGuestContact":false,"status":"ACTIVE","statusReason":null,"secretVersion":1,"previousSecretExpiresAt":null,"notifyEmail":null,"createdAt":"2026-12-10T09:30:00.000Z","updatedAt":"2026-12-10T12:00:03.000Z","lastStoppedAt":null,"health":{"state":"healthy","consecutiveFailures":0,"failingSince":null,"lastSuccessAt":"2026-12-10T12:00:03.000Z","lastFailureAt":null,"lastErrorMessage":null}}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"See x-zimmerstack.webhookEndpoints.refusals","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}},"patch":{"summary":"Change an endpoint: its address, event types, notify email or the guest-contact switch","description":"Scope webhooks:manage. Send only what changes. includeGuestContact applies to every delivery made from now on. A new address starts a new health record.","parameters":[{"name":"endpointId","in":"path","required":true,"schema":{"type":"integer"},"description":"The endpoint's id, from GET /webhook-endpoints"},{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Send one. Same key + same body within 7 days replays the stored answer (X-Idempotent-Replay: true), so a request whose answer was lost can be sent again safely; a 429 or a 5xx is never stored, so the retry runs."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointUpdate"},"example":{"eventTypes":["channel.booking.created","channel.booking.modified","channel.booking.cancelled","channel.sync.alert","channel.sync.recovered","direct.booking.created","direct.booking.modified","direct.booking.cancelled"],"includeGuestContact":true}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpoint"},"example":{"id":7,"mode":"live","url":"https://example.com/zimmerstack/webhooks","description":"Bookings and channel alerts for our PMS","apiVersion":"2026-09-01","eventTypes":["channel.booking.created","channel.booking.modified","channel.booking.cancelled","channel.sync.alert","channel.sync.recovered","direct.booking.created","direct.booking.modified","direct.booking.cancelled"],"includeGuestContact":true,"status":"ACTIVE","statusReason":null,"secretVersion":1,"previousSecretExpiresAt":null,"notifyEmail":null,"createdAt":"2026-12-10T09:30:00.000Z","updatedAt":"2026-12-10T12:10:00.000Z","lastStoppedAt":null,"health":{"state":"healthy","consecutiveFailures":0,"failingSince":null,"lastSuccessAt":"2026-12-10T12:00:03.000Z","lastFailureAt":null,"lastErrorMessage":null}}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"See x-zimmerstack.webhookEndpoints.refusals","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}},"delete":{"summary":"Delete an endpoint","description":"Scope webhooks:manage. Its deliveries and their log go with it.","parameters":[{"name":"endpointId","in":"path","required":true,"schema":{"type":"integer"},"description":"The endpoint's id, from GET /webhook-endpoints"}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointDeleted"},"example":{"id":7,"deleted":true}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"See x-zimmerstack.webhookEndpoints.refusals","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/webhook-endpoints/{endpointId}/pause":{"post":{"summary":"Pause an endpoint: its events are held, not dropped","description":"Scope webhooks:manage.","parameters":[{"name":"endpointId","in":"path","required":true,"schema":{"type":"integer"},"description":"The endpoint's id, from GET /webhook-endpoints"},{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Send one. Same key + same body within 7 days replays the stored answer (X-Idempotent-Replay: true), so a request whose answer was lost can be sent again safely; a 429 or a 5xx is never stored, so the retry runs."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpoint"},"example":{"id":7,"mode":"live","url":"https://example.com/zimmerstack/webhooks","description":"Bookings and channel alerts for our PMS","apiVersion":"2026-09-01","eventTypes":["channel.booking.created","channel.booking.modified","channel.booking.cancelled","channel.sync.alert","channel.sync.recovered"],"includeGuestContact":false,"status":"PAUSED","statusReason":"Paused by the vendor","secretVersion":1,"previousSecretExpiresAt":null,"notifyEmail":null,"createdAt":"2026-12-10T09:30:00.000Z","updatedAt":"2026-12-10T12:30:00.000Z","lastStoppedAt":"2026-12-10T12:30:00.000Z","health":{"state":"paused","consecutiveFailures":0,"failingSince":null,"lastSuccessAt":"2026-12-10T12:00:03.000Z","lastFailureAt":null,"lastErrorMessage":null}}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"See x-zimmerstack.webhookEndpoints.refusals","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/webhook-endpoints/{endpointId}/resume":{"post":{"summary":"Resume an endpoint: what the pause held goes out, oldest first","description":"Scope webhooks:manage. The answer is the endpoint with heldEvents, how many are being sent.","parameters":[{"name":"endpointId","in":"path","required":true,"schema":{"type":"integer"},"description":"The endpoint's id, from GET /webhook-endpoints"},{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Send one. Same key + same body within 7 days replays the stored answer (X-Idempotent-Replay: true), so a request whose answer was lost can be sent again safely; a 429 or a 5xx is never stored, so the retry runs."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointResumed"},"example":{"id":7,"mode":"live","url":"https://example.com/zimmerstack/webhooks","description":"Bookings and channel alerts for our PMS","apiVersion":"2026-09-01","eventTypes":["channel.booking.created","channel.booking.modified","channel.booking.cancelled","channel.sync.alert","channel.sync.recovered"],"includeGuestContact":false,"status":"ACTIVE","statusReason":null,"secretVersion":1,"previousSecretExpiresAt":null,"notifyEmail":null,"createdAt":"2026-12-10T09:30:00.000Z","updatedAt":"2026-12-10T12:40:00.000Z","lastStoppedAt":"2026-12-10T12:30:00.000Z","health":{"state":"healthy","consecutiveFailures":0,"failingSince":null,"lastSuccessAt":"2026-12-10T12:00:03.000Z","lastFailureAt":null,"lastErrorMessage":null},"heldEvents":3}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"See x-zimmerstack.webhookEndpoints.refusals","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/webhook-endpoints/{endpointId}/rotate-secret":{"post":{"summary":"Rotate the signing secret","description":"Scope webhooks:manage. The new secret is in this answer only; both secrets sign until previousExpiresAt (24 hours).","parameters":[{"name":"endpointId","in":"path","required":true,"schema":{"type":"integer"},"description":"The endpoint's id, from GET /webhook-endpoints"},{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Send one. Same key + same body within 7 days replays the stored answer (X-Idempotent-Replay: true), so a request whose answer was lost can be sent again safely; a 429 or a 5xx is never stored, so the retry runs."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSecretRotated"},"example":{"secret":"whsec_…","secretVersion":2,"previousExpiresAt":"2026-12-11T12:50:00.000Z"}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"See x-zimmerstack.webhookEndpoints.refusals","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/webhook-endpoints/{endpointId}/test":{"post":{"summary":"Send a test event of any type","description":"Scope webhooks:manage. eventType is any type an endpoint can receive, or zimmerstack.ping (the default). The endpoint must be active.","parameters":[{"name":"endpointId","in":"path","required":true,"schema":{"type":"integer"},"description":"The endpoint's id, from GET /webhook-endpoints"},{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Send one. Same key + same body within 7 days replays the stored answer (X-Idempotent-Replay: true), so a request whose answer was lost can be sent again safely; a 429 or a 5xx is never stored, so the retry runs."}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookTest"},"example":{"eventType":"channel.booking.created"}}}},"responses":{"202":{"description":"Queued: data.deliveryId and data.eventId name the delivery in the log","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookTestQueued"},"example":{"deliveryId":"48211","eventId":"e3a1f0c8-6d2b-4c57-b9a4-0f1e2d3c4b5a","eventType":"channel.booking.created"}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"See x-zimmerstack.webhookEndpoints.refusals","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"See x-zimmerstack.webhookEndpoints.refusals","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/webhook-endpoints/{endpointId}/recover":{"post":{"summary":"Recover since: queue again what the endpoint missed","description":"Scope webhooks:manage. Every subscribed event since the instant that failed or never had a delivery, at most 90 days back and 10,000 events a run.","parameters":[{"name":"endpointId","in":"path","required":true,"schema":{"type":"integer"},"description":"The endpoint's id, from GET /webhook-endpoints"},{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Send one. Same key + same body within 7 days replays the stored answer (X-Idempotent-Replay: true), so a request whose answer was lost can be sent again safely; a 429 or a 5xx is never stored, so the retry runs."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookRecover"},"example":{"since":"2026-12-09T00:00:00.000Z"}}}},"responses":{"202":{"description":"Queued","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookRecoverResult"},"example":{"reset":2,"created":5,"scanned":41,"truncated":false}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"See x-zimmerstack.webhookEndpoints.refusals","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"See x-zimmerstack.webhookEndpoints.refusals","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/webhook-endpoints/{endpointId}/deliveries":{"get":{"summary":"The delivery log, newest first","description":"Scope webhooks:manage. Filter with status, eventType, mode, from and to; page with cursor = nextCursor.","parameters":[{"name":"endpointId","in":"path","required":true,"schema":{"type":"integer"},"description":"The endpoint's id, from GET /webhook-endpoints"},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["PENDING","DELIVERED","FAILED"]}},{"name":"eventType","in":"query","required":false,"schema":{"type":"string"}},{"name":"mode","in":"query","required":false,"schema":{"type":"string","enum":["LIVE","TEST"]},"description":"TEST: the deliveries a test event made"},{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"},"description":"The previous page's nextCursor"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100},"description":"Default 50"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDeliveryList"},"example":{"items":[{"id":"48211","eventId":"e3a1f0c8-6d2b-4c57-b9a4-0f1e2d3c4b5a","eventType":"channel.booking.created","mode":"TEST","status":"DELIVERED","attempts":1,"nextAttemptAt":"2026-12-10T13:00:00.000Z","lastError":null,"occurredAt":"2026-12-10T13:00:00.000Z","deliveredAt":"2026-12-10T13:00:01.000Z","createdAt":"2026-12-10T13:00:00.000Z","payloadBytes":1651,"payloadAvailable":true},{"id":"48209","eventId":"5c0e7a1d-2b64-4f3a-9d18-7e6a4b3c2f10","eventType":"channel.booking.created","mode":"LIVE","status":"DELIVERED","attempts":1,"nextAttemptAt":"2026-12-10T12:00:02.000Z","lastError":null,"occurredAt":"2026-12-10T12:00:00.000Z","deliveredAt":"2026-12-10T12:00:03.000Z","createdAt":"2026-12-10T12:00:02.000Z","payloadBytes":1668,"payloadAvailable":true}],"nextCursor":null}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"See x-zimmerstack.webhookEndpoints.refusals","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/webhook-endpoints/{endpointId}/deliveries/{deliveryId}":{"get":{"summary":"One delivery: the body as sent, guest contact masked, and every attempt","description":"Scope webhooks:manage. Each attempt carries the status your receiver answered and the first 2 KB of its body. payload is the event as it was sent, except that a guest's phone and email are always masked in this read, whatever the endpoint's guest-contact switch was when the delivery was made: reading a delivery leaves no line on the hotel's list of who read guest contact, so it never carries it. The bookings reads carry contact (x-zimmerstack.guestContact).","parameters":[{"name":"endpointId","in":"path","required":true,"schema":{"type":"integer"},"description":"The endpoint's id, from GET /webhook-endpoints"},{"name":"deliveryId","in":"path","required":true,"schema":{"type":"string"},"description":"The delivery's id, from the delivery log"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDeliveryDetail"},"example":{"id":"48209","eventId":"5c0e7a1d-2b64-4f3a-9d18-7e6a4b3c2f10","eventType":"channel.booking.created","mode":"LIVE","status":"DELIVERED","attempts":1,"nextAttemptAt":"2026-12-10T12:00:02.000Z","lastError":null,"occurredAt":"2026-12-10T12:00:00.000Z","deliveredAt":"2026-12-10T12:00:03.000Z","createdAt":"2026-12-10T12:00:02.000Z","payloadBytes":1668,"payloadAvailable":true,"payload":{"id":"evt_5c0e7a1d-2b64-4f3a-9d18-7e6a4b3c2f10","type":"channel.booking.created","apiVersion":"2026-09-01","occurredAt":"2026-12-10T12:00:00.000Z","mode":"live","sequence":42,"property":{"id":61,"name":"The Lantern House","currency":"INR","timezone":"Asia/Kolkata"},"data":{"booking":{"id":100001,"reference":"TEST-ZS-8K3Q2M","version":1,"status":"CONFIRMED","stayStatus":"UPCOMING","channel":{"otaName":"MakeMyTrip","otaReservationCode":"TEST-ZS-8K3Q2M","source":"CHANNEL_MANAGER","sourceGroup":"INDIRECT"},"stay":{"checkIn":"2026-12-24","checkOut":"2026-12-26","nights":2,"dayUse":false},"guest":{"fullName":"Asha Verma","firstName":"Asha","lastName":"Verma","country":"IN","language":"en"},"guestNotes":"Late arrival around 22:00. Non-smoking room please. (test event)","occupancy":{"adults":2,"children":0},"rooms":[{"roomTypeId":412,"ratePlanId":901,"roomTypeName":"Deluxe Garden Room","mealPlan":"CP","mealPlanSource":"ota","mealPlanText":"CP · Breakfast included","mealPrice":null,"adults":2,"children":0,"checkIn":"2026-12-24","checkOut":"2026-12-26","nights":2,"dayUse":false,"ratePerNight":2700,"amount":5400,"nightlyRates":[{"date":"2026-12-24","amount":2600},{"date":"2026-12-25","amount":2800}],"commission":1350,"status":"UPCOMING"}],"amounts":{"currency":"INR","total":5400,"paid":0,"balanceDue":5400,"paymentCollect":"property"},"finance":{"otaName":"MakeMyTrip","amountBasis":"GROSS_TOTAL","currency":"INR","grossAmount":5400,"commissionAmount":1350,"taxAmount":648,"netPayoutAmount":4050,"taxIncludedInAmount":false},"cancellation":null,"createdAt":"2026-12-10T12:00:00.000Z","updatedAt":"2026-12-10T12:00:00.000Z"}},"changes":null,"previous":null},"attempts_log":[{"id":"91377","attemptNo":1,"startedAt":"2026-12-10T12:00:02.412Z","durationMs":318,"outcome":"SUCCESS","responseStatus":200,"responseBodySnippet":"ok","errorMessage":null,"resolvedIp":"203.0.113.80"}],"request":{"headers":{"content-type":"application/json; charset=utf-8","webhook-id":"evt_5c0e7a1d-2b64-4f3a-9d18-7e6a4b3c2f10","webhook-timestamp":"<unix seconds at send time>","webhook-signature":"v1,<base64 HMAC-SHA256>","x-zimmerstack-event":"channel.booking.created","x-zimmerstack-delivery":"dlv_48209","x-zimmerstack-api-version":"2026-09-01","idempotency-key":"evt_5c0e7a1d-2b64-4f3a-9d18-7e6a4b3c2f10"}}}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"See x-zimmerstack.webhookEndpoints.refusals","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/webhook-endpoints/{endpointId}/deliveries/{deliveryId}/redeliver":{"post":{"summary":"Send one delivery again","description":"Scope webhooks:manage. The same event, the same id and sequence. 410 WEBHOOK_PAYLOAD_EXPIRED once the event is older than 90 days; 403 WEBHOOK_ACCESS_ENDED when the hotel has since ended your access.","parameters":[{"name":"endpointId","in":"path","required":true,"schema":{"type":"integer"},"description":"The endpoint's id, from GET /webhook-endpoints"},{"name":"deliveryId","in":"path","required":true,"schema":{"type":"string"},"description":"The delivery's id, from the delivery log"},{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Send one. Same key + same body within 7 days replays the stored answer (X-Idempotent-Replay: true), so a request whose answer was lost can be sent again safely; a 429 or a 5xx is never stored, so the retry runs."}],"responses":{"202":{"description":"Queued again","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDelivery"},"example":{"id":"48209","eventId":"5c0e7a1d-2b64-4f3a-9d18-7e6a4b3c2f10","eventType":"channel.booking.created","mode":"LIVE","status":"PENDING","attempts":0,"nextAttemptAt":"2026-12-10T12:45:00.000Z","lastError":null,"occurredAt":"2026-12-10T12:00:00.000Z","deliveredAt":"2026-12-10T12:00:03.000Z","createdAt":"2026-12-10T12:00:02.000Z","payloadBytes":1668,"payloadAvailable":true}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"See x-zimmerstack.webhookEndpoints.refusals","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"See x-zimmerstack.webhookEndpoints.refusals","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"See x-zimmerstack.webhookEndpoints.refusals","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/status":{"get":{"summary":"The components and the incidents that touch your hotels","description":"No scope: any valid key. The components (the API, bookings coming in, prices and availability going out, each booking site), each operational or named in an open incident; the open incidents that touch your hotels and the ones resolved in the last week; the published availability target. A hotel's key reads its own hotel's; a company key reads one hotel's with X-ZS-Property and all its hotels' without. x-zimmerstack.status has the whole flow.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Status"},"example":{"asOf":"2026-11-22T04:05:00.000Z","overall":"degraded","components":[{"id":"api","name":"The API","kind":"platform","covers":"Requests to the Connect API are answered.","state":"operational","incidentIds":[]},{"id":"bookings_in","name":"Bookings coming in","kind":"platform","covers":"Bookings made on the booking sites reach ZimmerStack and are sent on to you.","state":"operational","incidentIds":[]},{"id":"ari_out","name":"Prices and availability going out","kind":"platform","covers":"The prices, stay rules and room counts you send reach the booking sites.","state":"degraded","incidentIds":[37]},{"id":"ota:bookingcom","name":"Booking.com","kind":"booking_site","covers":"Booking.com: bookings from it, and prices and availability to it.","state":"operational","incidentIds":[]},{"id":"ota:gommt","name":"MakeMyTrip · Goibibo","kind":"booking_site","covers":"MakeMyTrip · Goibibo: bookings from it, and prices and availability to it.","state":"operational","incidentIds":[]},{"id":"ota:agoda","name":"Agoda","kind":"booking_site","covers":"Agoda: bookings from it, and prices and availability to it.","state":"operational","incidentIds":[]},{"id":"ota:expedia","name":"Expedia","kind":"booking_site","covers":"Expedia: bookings from it, and prices and availability to it.","state":"operational","incidentIds":[]},{"id":"ota:tripcom","name":"Trip.com","kind":"booking_site","covers":"Trip.com: bookings from it, and prices and availability to it.","state":"operational","incidentIds":[]},{"id":"ota:yatra","name":"Yatra","kind":"booking_site","covers":"Yatra: bookings from it, and prices and availability to it.","state":"operational","incidentIds":[]},{"id":"ota:hostelworld","name":"Hostelworld","kind":"booking_site","covers":"Hostelworld: bookings from it, and prices and availability to it.","state":"operational","incidentIds":[]},{"id":"ota:airbnb","name":"Airbnb","kind":"booking_site","covers":"Airbnb: bookings from it, and prices and availability to it.","state":"operational","incidentIds":[]}],"incidents":{"open":[{"id":37,"component":"ari_out","componentName":"Prices and availability going out","severity":"degraded","status":"identified","title":"Prices and availability are reaching the booking sites late","startedAt":"2026-11-22T03:40:00.000Z","updatedAt":"2026-11-22T04:02:00.000Z","resolvedAt":null,"properties":{"all":false,"count":2,"ids":[61,62],"truncated":false},"updates":[{"at":"2026-11-22T04:02:00.000Z","status":"identified","severity":"degraded","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."},{"at":"2026-11-22T03:40:00.000Z","status":"investigating","severity":"degraded","message":"Changes you send are accepted and kept, but are reaching the booking sites up to 20 minutes late. We are looking into it."}]}],"recent":[]},"uptimeTarget":{"percent":99.9,"window":"calendar month","credits":false,"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."},"page":null}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/billing":{"get":{"summary":"Your bills at a glance: what is owed, your quota, money paid ahead (a software partner's company key)","description":"Scope billing:read, company keys only; X-ZS-Property is not read. What is owed, the one-time onboarding fee, your property quota and what opens the next level, what is left of money paid ahead, the days of an unpaid invoice, and what the channel manager charged above its limits (at cost). Read-only. x-zimmerstack.billing has the whole flow.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Billing"},"example":{"billed":true,"currency":"INR","outstanding":{"amount":"3765.38","amountMinor":376538,"openInvoices":1,"oldestDueAt":"2027-01-10T18:29:59.999Z"},"onboardingFee":{"state":"PAID","amount":"50.00","currency":"USD","invoiceNumber":"ZS/26-27/0398"},"quota":{"applies":true,"why":"ACTIVE","startsOn":"2027-01-01","properties":{"allowed":10,"used":4,"free":6},"next":{"properties":20,"payAhead":"54.00","payAheadMinor":5400,"currency":"USD"},"setByZimmerStack":false,"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)."},"paidAhead":{"amount":"0.00","amountMinor":0,"currency":"INR"},"unpaidInvoiceDays":{"applies":true,"dueDay":10,"pauseDay":25,"endAfterDays":5,"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.","unpaid":[{"invoiceNumber":"ZS/26-27/0441","dueAt":"2027-01-10T18:29:59.999Z","pauseAt":"2027-01-24T18:30:00.000Z","endAt":"2027-01-29T18:30:00.000Z","automatic":true}]},"atCost":{"currency":"USD","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.","invoicing":"BY_ZIMMERSTACK","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.","recorded":"3.00","recordedMinor":300,"items":[{"month":"2027-01","property":{"id":62,"name":"Hill View Retreat"},"kind":"room_types","what":"3 room types above the 20 included","held":23,"included":20,"quantity":3,"allowedLimit":26,"unitPrice":"1.00","amount":"3.00","amountMinor":300,"status":"RECORDED","standing":"ADDED_BY_ZIMMERSTACK","invoiceNumber":null}]}}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"COMPANY_KEY_REQUIRED: a hotel's own key was used; SCOPE_MISSING: the company key lacks billing:read; IP_NOT_ALLOWED as everywhere","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"Hotels are added and removed with your company key. This key belongs to one hotel.","data":{"code":"COMPANY_KEY_REQUIRED"}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/billing/invoices":{"get":{"summary":"Your issued invoices, each before and after tax","description":"Scope billing:read. The 24 most recent issued invoices, newest first: number, what it is for, period, currency, status, due date, the amount before tax, the tax and the total, what is paid and still owed, and its lines; then your recent payments. Drafts and voided invoices are never listed.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingInvoices"},"example":{"billed":true,"items":[{"id":"inv_8f3k2m9q","number":"ZS/26-27/0441","about":"MONTH","periodStart":"2027-01-01","periodEnd":"2027-01-31","currency":"INR","status":"OPEN","issuedAt":"2027-01-03T04:30:00.000Z","dueAt":"2027-01-10T18:29:59.999Z","paidAt":null,"overdue":true,"beforeTax":"3191.00","beforeTaxMinor":319100,"tax":"574.38","taxMinor":57438,"total":"3765.38","totalMinor":376538,"paid":"0.00","credited":"0.00","balance":"3765.38","balanceMinor":376538,"lines":[{"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)","hotel":null,"quantity":1,"kind":"RECURRING","total":"941.30","totalMinor":94130}]}],"payments":[{"receivedAt":"2026-12-08T09:12:44.000Z","amount":"5229.43","amountMinor":522943,"currency":"INR","method":"RAZORPAY","invoiceNumber":"ZS/26-27/0398"}]}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"COMPANY_KEY_REQUIRED: a hotel's own key was used; SCOPE_MISSING: the company key lacks billing:read; IP_NOT_ALLOWED as everywhere","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"Hotels are added and removed with your company key. This key belongs to one hotel.","data":{"code":"COMPANY_KEY_REQUIRED"}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/billing/next-invoice":{"get":{"summary":"What your next monthly invoice is made of, hotel by hotel","description":"Scope billing:read. For each hotel you pay for: the rooms counted, the room band, how many of your hotels share it, the price list, the unit price and the amount, read today. The invoice reads rooms, prices and the exchange rate again on the day it is made.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingNextInvoice"},"example":{"billed":true,"asOf":"2027-01-12T06:00:00.000Z","month":"2027-02","counting":"LIVE_ON_FIRST","currency":"INR","lines":[{"hotel":"The Lantern House","propertyId":61,"module":"CM","priced":"PRICE_LIST","priceList":{"id":1,"name":"Channel manager API","currency":"USD"},"band":"Hotel","rooms":24,"declaredRooms":null,"hotelsInBand":3,"unit":"HOTEL","quantity":1,"unitPrice":"797.71","unitPriceMinor":79771,"amount":"797.71","amountMinor":79771,"conversion":{"fromCurrency":"USD","listUnitPrice":"9.00","rate":"88.6344","rateDate":"2027-01-08"}},{"hotel":"Ganga Guest House","propertyId":63,"module":"CM","priced":"PRICE_LIST","priceList":{"id":1,"name":"Channel manager API","currency":"USD"},"band":"Homestay & VR","rooms":8,"declaredRooms":6,"hotelsInBand":1,"unit":"ROOM","quantity":8,"unitPrice":"88.63","unitPriceMinor":8863,"amount":"709.04","amountMinor":70904,"conversion":{"fromCurrency":"USD","listUnitPrice":"1.00","rate":"88.6344","rateDate":"2027-01-08"}}],"beforeTax":"1506.75","beforeTaxMinor":150675,"taxAddedOnTop":true,"paidAhead":{"amount":"0.00","amountMinor":0},"notes":[],"conversionMissing":null,"atCost":{"invoicing":"BY_ZIMMERSTACK","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.","lines":[{"month":"2027-01","property":{"id":62,"name":"Hill View Retreat"},"kind":"room_types","what":"3 room types above the 20 included","usdAmount":"3.00","usdAmountMinor":300,"amount":null,"amountMinor":null}],"conversion":null,"conversionMissing":null,"beforeTax":"0.00","beforeTaxMinor":0}}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"COMPANY_KEY_REQUIRED: a hotel's own key was used; SCOPE_MISSING: the company key lacks billing:read; IP_NOT_ALLOWED as everywhere","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"Hotels are added and removed with your company key. This key belongs to one hotel.","data":{"code":"COMPANY_KEY_REQUIRED"}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/support-tickets":{"get":{"summary":"Your support tickets, newest first (a software partner's company key)","description":"Scope support:write, company keys only; X-ZS-Property is not read. The tickets of the key's own mode. Filter with status; page with cursor = nextCursor.","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["OPEN","ANSWERED","CLOSED"]},"description":"OPEN: waiting for ZimmerStack · ANSWERED: waiting for you · CLOSED"},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"},"description":"The previous page's nextCursor"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100},"description":"Default 50"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportTicketList"},"example":{"items":[{"id":1042,"subject":"Bookings from Booking.com stopped arriving on two hotels","severity":"many_hotels","status":"OPEN","mode":"live","properties":{"all":false,"ids":[61,62]},"openedAt":"2026-11-22T04:05:12.000Z","lastMessageAt":"2026-11-22T08:52:31.000Z","firstReply":{"target":"Within 60 minutes, 9:00 to 21:00 IST, every day. Opened outside those hours: by 10:00 IST.","dueAt":"2026-11-22T05:05:12.000Z","repliedAt":"2026-11-22T04:31:40.000Z"},"closedAt":null,"closedBy":null}],"nextCursor":null}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"COMPANY_KEY_REQUIRED: a hotel's own key was used; SCOPE_MISSING: the company key lacks support:write; IP_NOT_ALLOWED as everywhere","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"Hotels are added and removed with your company key. This key belongs to one hotel.","data":{"code":"COMPANY_KEY_REQUIRED"}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}},"post":{"summary":"Open a support ticket","description":"Scope support:write. Name the severity, a subject, what you see, and the hotels affected. We attach what our records show at that moment and return it with the ticket. Opens whatever your integration's standing. x-zimmerstack.support has the levels and the first-reply times.","parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Send one. Same key + same body within 7 days replays the stored answer (X-Idempotent-Replay: true), so a request whose answer was lost can be sent again safely; a 429 or a 5xx is never stored, so the retry runs."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportTicketCreate"},"example":{"severity":"many_hotels","subject":"Bookings from Booking.com stopped arriving on two hotels","message":"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.","propertyIds":[61,62]}}}},"responses":{"201":{"description":"Opened","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportTicket"},"example":{"id":1042,"subject":"Bookings from Booking.com stopped arriving on two hotels","severity":"many_hotels","status":"OPEN","mode":"live","properties":{"all":false,"ids":[61,62]},"openedAt":"2026-11-22T04:05:12.000Z","lastMessageAt":"2026-11-22T04:05:12.000Z","firstReply":{"target":"Within 60 minutes, 9:00 to 21:00 IST, every day. Opened outside those hours: by 10:00 IST.","dueAt":"2026-11-22T05:05:12.000Z","repliedAt":null},"closedAt":null,"closedBy":null,"messages":[{"id":3310,"author":"partner","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.","createdAt":"2026-11-22T04:05:12.000Z"}],"diagnostic":{"takenAt":"2026-11-22T04:05:12.000Z","windowHours":24,"requests":{"refused":3,"byCode":[{"status":429,"errorCode":"RATE_LIMITED","count":3,"lastAt":"2026-11-22T03:58:40.000Z"}],"lastRefused":[{"requestId":"rq_mi8x3k2a9f2c1a7e","at":"2026-11-22T03:58:40.000Z","method":"PUT","route":"/rates","status":429,"errorCode":"RATE_LIMITED","propertyId":61}]},"hotels":[{"propertyId":61,"inventory":{"pendingCells":0,"outOfSyncSince":null,"lastOkAt":"2026-11-22T04:03:55.000Z"},"rates":{"waitingCells":0,"refusedCells":0,"lastPushAt":"2026-11-22T03:59:02.000Z","lastErrorAt":null,"consecutiveFailures":0},"channelIssues":[{"event":"disconnect_channel","count":1,"since":"2026-11-22T03:41:18.000Z"}],"shield":{"level":"CLEAR","until":null},"usage":{"cellsChanged":1138,"refusals":0,"refusedByChannelManager":0}}],"hotelsNotShown":0,"partner":{"shield":{"level":"CLEAR","until":null},"usage":{"cellsChanged":20914,"refusals":0,"refusedByChannelManager":0}},"webhooks":[{"endpointId":7,"status":"ACTIVE","consecutiveFailures":0,"failingSince":null,"lastSuccessAt":"2026-11-22T03:39:50.000Z","lastFailureAt":null,"deliveries":{"delivered":212,"failed":0,"pending":0},"lastFailed":[]}],"incomplete":[]}}}}},"400":{"description":"A shape, a hotel this key may not act on (data.details.unknown), or a severity that does not fit the hotels named","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":400,"message":"updates[0].available: Expected number, received string","data":{"code":"VALIDATION","details":[{"path":["updates",0,"available"],"message":"Expected number, received string"}]}}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"COMPANY_KEY_REQUIRED: a hotel's own key was used; SCOPE_MISSING: the company key lacks support:write; IP_NOT_ALLOWED as everywhere","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"Hotels are added and removed with your company key. This key belongs to one hotel.","data":{"code":"COMPANY_KEY_REQUIRED"}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A per-minute budget, or partner-support-tickets-day: the most tickets your company may open in a rolling day. Honour Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Your company has opened as many support tickets as one day allows (20). Retry after the Retry-After interval, or write to support by mail.","data":{"code":"RATE_LIMITED","scope":"partner-support-tickets-day","retryAfterSeconds":5400,"details":{"scope":"partner-support-tickets-day"}}}}}}}}},"/api/v1/connect-api/v1/support-tickets/{ticketId}":{"get":{"summary":"One ticket: the thread and the diagnostic","description":"Scope support:write. The messages oldest first, and what we attached when it opened.","parameters":[{"name":"ticketId","in":"path","required":true,"schema":{"type":"integer"},"description":"The ticket's id, from GET /support-tickets"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportTicket"},"example":{"id":1042,"subject":"Bookings from Booking.com stopped arriving on two hotels","severity":"many_hotels","status":"OPEN","mode":"live","properties":{"all":false,"ids":[61,62]},"openedAt":"2026-11-22T04:05:12.000Z","lastMessageAt":"2026-11-22T04:05:12.000Z","firstReply":{"target":"Within 60 minutes, 9:00 to 21:00 IST, every day. Opened outside those hours: by 10:00 IST.","dueAt":"2026-11-22T05:05:12.000Z","repliedAt":null},"closedAt":null,"closedBy":null,"messages":[{"id":3310,"author":"partner","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.","createdAt":"2026-11-22T04:05:12.000Z"}],"diagnostic":{"takenAt":"2026-11-22T04:05:12.000Z","windowHours":24,"requests":{"refused":3,"byCode":[{"status":429,"errorCode":"RATE_LIMITED","count":3,"lastAt":"2026-11-22T03:58:40.000Z"}],"lastRefused":[{"requestId":"rq_mi8x3k2a9f2c1a7e","at":"2026-11-22T03:58:40.000Z","method":"PUT","route":"/rates","status":429,"errorCode":"RATE_LIMITED","propertyId":61}]},"hotels":[{"propertyId":61,"inventory":{"pendingCells":0,"outOfSyncSince":null,"lastOkAt":"2026-11-22T04:03:55.000Z"},"rates":{"waitingCells":0,"refusedCells":0,"lastPushAt":"2026-11-22T03:59:02.000Z","lastErrorAt":null,"consecutiveFailures":0},"channelIssues":[{"event":"disconnect_channel","count":1,"since":"2026-11-22T03:41:18.000Z"}],"shield":{"level":"CLEAR","until":null},"usage":{"cellsChanged":1138,"refusals":0,"refusedByChannelManager":0}}],"hotelsNotShown":0,"partner":{"shield":{"level":"CLEAR","until":null},"usage":{"cellsChanged":20914,"refusals":0,"refusedByChannelManager":0}},"webhooks":[{"endpointId":7,"status":"ACTIVE","consecutiveFailures":0,"failingSince":null,"lastSuccessAt":"2026-11-22T03:39:50.000Z","lastFailureAt":null,"deliveries":{"delivered":212,"failed":0,"pending":0},"lastFailed":[]}],"incomplete":[]}}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"No such ticket of yours in this key's mode","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"Support ticket not found.","data":{"code":"SUPPORT_TICKET_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/support-tickets/{ticketId}/messages":{"post":{"summary":"Reply on a ticket","description":"Scope support:write. The ticket waits for ZimmerStack again from then.","parameters":[{"name":"ticketId","in":"path","required":true,"schema":{"type":"integer"},"description":"The ticket's id, from GET /support-tickets"},{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Send one. Same key + same body within 7 days replays the stored answer (X-Idempotent-Replay: true), so a request whose answer was lost can be sent again safely; a 429 or a 5xx is never stored, so the retry runs."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportMessageCreate"},"example":{"message":"It started again at 14:20 IST on hotel 61 only."}}}},"responses":{"201":{"description":"Added: the ticket with its thread","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportTicket"},"example":{"id":1042,"subject":"Bookings from Booking.com stopped arriving on two hotels","severity":"many_hotels","status":"OPEN","mode":"live","properties":{"all":false,"ids":[61,62]},"openedAt":"2026-11-22T04:05:12.000Z","lastMessageAt":"2026-11-22T08:52:31.000Z","firstReply":{"target":"Within 60 minutes, 9:00 to 21:00 IST, every day. Opened outside those hours: by 10:00 IST.","dueAt":"2026-11-22T05:05:12.000Z","repliedAt":"2026-11-22T04:31:40.000Z"},"closedAt":null,"closedBy":null,"messages":[{"id":3310,"author":"partner","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.","createdAt":"2026-11-22T04:05:12.000Z"},{"id":3311,"author":"zimmerstack","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.","createdAt":"2026-11-22T04:31:40.000Z"},{"id":3312,"author":"partner","body":"It started again at 14:20 IST on hotel 61 only.","createdAt":"2026-11-22T08:52:31.000Z"}],"diagnostic":{"takenAt":"2026-11-22T04:05:12.000Z","windowHours":24,"requests":{"refused":3,"byCode":[{"status":429,"errorCode":"RATE_LIMITED","count":3,"lastAt":"2026-11-22T03:58:40.000Z"}],"lastRefused":[{"requestId":"rq_mi8x3k2a9f2c1a7e","at":"2026-11-22T03:58:40.000Z","method":"PUT","route":"/rates","status":429,"errorCode":"RATE_LIMITED","propertyId":61}]},"hotels":[{"propertyId":61,"inventory":{"pendingCells":0,"outOfSyncSince":null,"lastOkAt":"2026-11-22T04:03:55.000Z"},"rates":{"waitingCells":0,"refusedCells":0,"lastPushAt":"2026-11-22T03:59:02.000Z","lastErrorAt":null,"consecutiveFailures":0},"channelIssues":[{"event":"disconnect_channel","count":1,"since":"2026-11-22T03:41:18.000Z"}],"shield":{"level":"CLEAR","until":null},"usage":{"cellsChanged":1138,"refusals":0,"refusedByChannelManager":0}}],"hotelsNotShown":0,"partner":{"shield":{"level":"CLEAR","until":null},"usage":{"cellsChanged":20914,"refusals":0,"refusedByChannelManager":0}},"webhooks":[{"endpointId":7,"status":"ACTIVE","consecutiveFailures":0,"failingSince":null,"lastSuccessAt":"2026-11-22T03:39:50.000Z","lastFailureAt":null,"deliveries":{"delivered":212,"failed":0,"pending":0},"lastFailed":[]}],"incomplete":[]}}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"No such ticket of yours in this key's mode","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"Support ticket not found.","data":{"code":"SUPPORT_TICKET_NOT_FOUND"}}}}},"409":{"description":"The ticket is closed: open a new one and name this one in it","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This ticket is closed. Open a new one and name this ticket in it.","data":{"code":"SUPPORT_TICKET_CLOSED"}}}}},"429":{"description":"A per-minute budget, or partner-support-messages-hour: the most messages your company may add in a rolling hour. Honour Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/connect-api/v1/support-tickets/{ticketId}/close":{"post":{"summary":"Close your own ticket","description":"Scope support:write. The problem is gone on your side. Closing a closed ticket answers it as it is.","parameters":[{"name":"ticketId","in":"path","required":true,"schema":{"type":"integer"},"description":"The ticket's id, from GET /support-tickets"},{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Send one. Same key + same body within 7 days replays the stored answer (X-Idempotent-Replay: true), so a request whose answer was lost can be sent again safely; a 429 or a 5xx is never stored, so the retry runs."}],"responses":{"200":{"description":"Closed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportTicket"},"example":{"id":1042,"subject":"Bookings from Booking.com stopped arriving on two hotels","severity":"many_hotels","status":"CLOSED","mode":"live","properties":{"all":false,"ids":[61,62]},"openedAt":"2026-11-22T04:05:12.000Z","lastMessageAt":"2026-11-22T08:52:31.000Z","firstReply":{"target":"Within 60 minutes, 9:00 to 21:00 IST, every day. Opened outside those hours: by 10:00 IST.","dueAt":"2026-11-22T05:05:12.000Z","repliedAt":"2026-11-22T04:31:40.000Z"},"closedAt":"2026-11-22T10:15:00.000Z","closedBy":"partner","messages":[{"id":3310,"author":"partner","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.","createdAt":"2026-11-22T04:05:12.000Z"},{"id":3311,"author":"zimmerstack","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.","createdAt":"2026-11-22T04:31:40.000Z"},{"id":3312,"author":"partner","body":"It started again at 14:20 IST on hotel 61 only.","createdAt":"2026-11-22T08:52:31.000Z"}],"diagnostic":{"takenAt":"2026-11-22T04:05:12.000Z","windowHours":24,"requests":{"refused":3,"byCode":[{"status":429,"errorCode":"RATE_LIMITED","count":3,"lastAt":"2026-11-22T03:58:40.000Z"}],"lastRefused":[{"requestId":"rq_mi8x3k2a9f2c1a7e","at":"2026-11-22T03:58:40.000Z","method":"PUT","route":"/rates","status":429,"errorCode":"RATE_LIMITED","propertyId":61}]},"hotels":[{"propertyId":61,"inventory":{"pendingCells":0,"outOfSyncSince":null,"lastOkAt":"2026-11-22T04:03:55.000Z"},"rates":{"waitingCells":0,"refusedCells":0,"lastPushAt":"2026-11-22T03:59:02.000Z","lastErrorAt":null,"consecutiveFailures":0},"channelIssues":[{"event":"disconnect_channel","count":1,"since":"2026-11-22T03:41:18.000Z"}],"shield":{"level":"CLEAR","until":null},"usage":{"cellsChanged":1138,"refusals":0,"refusedByChannelManager":0}}],"hotelsNotShown":0,"partner":{"shield":{"level":"CLEAR","until":null},"usage":{"cellsChanged":20914,"refusals":0,"refusedByChannelManager":0}},"webhooks":[{"endpointId":7,"status":"ACTIVE","consecutiveFailures":0,"failingSince":null,"lastSuccessAt":"2026-11-22T03:39:50.000Z","lastFailureAt":null,"deliveries":{"delivered":212,"failed":0,"pending":0},"lastFailed":[]}],"incomplete":[]}}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"No such ticket of yours in this key's mode","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"Support ticket not found.","data":{"code":"SUPPORT_TICKET_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/sandbox/bookings/{bookingId}/no-show":{"post":{"summary":"Sandbox: a website booking's no-show, or its undo (the real direct.booking.modified)","description":"Test keys only (403 SANDBOX_ONLY), scope ari:write. On a booking simulated with otaName \"Website\": the stay and its rooms go NOSHOW and the nights come back on the sandbox's availability; { undo: true } makes them UPCOMING and taken again. The booking is not cancelled. 409 BOOKING_NOT_MODIFIABLE for an OTA booking or a cancelled one. A repeat answers webhook.queued: false.","parameters":[{"name":"bookingId","in":"path","required":true,"schema":{"type":"integer"}},{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Send one. Same key + same body within 7 days replays the stored answer (X-Idempotent-Replay: true), so a request whose answer was lost can be sent again safely; a 429 or a 5xx is never stored, so the retry runs."}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxNoShow"},"example":{"undo":false}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxBooking"},"example":{"bookingId":90312,"reference":"SBX-9001-MXHIYLXC7B3E","channelBookingId":"sbx-7b3e94a1-0c5d-4f62-8e17-3a9d2c6b5f48","otaName":"Website","status":"UPCOMING","guestName":"Priya Nair","checkIn":"2026-12-24","checkOut":"2026-12-26","nights":2,"rooms":1,"roomTypeId":412,"nightlyRate":4850,"total":9700,"currency":"INR","paidByOta":true,"oversold":false,"createdAt":"2026-12-10T12:20:00.000Z","webhook":{"eventType":"direct.booking.modified","queued":true},"stayStatus":"NOSHOW"}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/sandbox/sync-events":{"post":{"summary":"Sandbox: a channel problem, or its end (the real channel.sync.alert / channel.sync.recovered)","description":"Test keys only (403 SANDBOX_ONLY), scope ari:write. type channel.sync.alert raises a pretend problem (event, default rate_error) on one of the sandbox's pretend channels; GET /channels lists it. type channel.sync.recovered clears the newest open one (of that event, when named) and carries the alert's own event, channelId and raisedAt. 400 VALIDATION when there is none to clear.","parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Send one. Same key + same body within 7 days replays the stored answer (X-Idempotent-Replay: true), so a request whose answer was lost can be sent again safely; a 429 or a 5xx is never stored, so the retry runs."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxSyncEvent"},"example":{"type":"channel.sync.alert","event":"rate_error"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxSyncEventView"},"example":{"event":"rate_error","channelId":"b53ff702-be2d-44ee-8a7e-d1153f096dba","channelKind":"BookingCom","raisedAt":"2026-12-10T12:30:00.000Z","resolvedAt":null,"webhook":{"eventType":"channel.sync.alert","queued":true}}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/events":{"get":{"summary":"The hotel's ordered event log","description":"Scope channel-bookings:read (channel.booking.*, channel.sync.*) or direct-bookings:read (direct.booking.*); each opens its own family. Oldest first, from the event after the sequence you pass. Each item is the webhook's own envelope with its sequence. Keep nextAfter as your place. x-zimmerstack.events has the whole flow.","parameters":[{"name":"after","in":"query","required":false,"schema":{"type":"integer","minimum":0},"description":"The last sequence you applied; 0 or absent reads from the beginning of what is kept"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100},"description":"Default 50"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventsList"},"example":{"items":[],"more":false,"nextAfter":41,"earliestSequence":1,"retentionDays":90}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/direct-bookings":{"get":{"summary":"The bookings guests made on the hotel's own website, in the webhook's shape","description":"Scope direct-bookings:read. The bookings of the ZimmerStack booking engine on this property: the pull beside the direct.booking.* webhooks (x-zimmerstack.directBookings). Oldest change first; since (default the last 7 days) is on the booking's last change so a cancellation is listed again; while more is true, ask again with cursor = nextCursor. A booking deleted in ZimmerStack stays listed, as CANCELLED. Read it before a full availability push.","parameters":[{"name":"since","in":"query","required":false,"schema":{"type":"string","format":"date-time"},"description":"Changed on or after this instant (ISO 8601); default: the last 7 days"},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["CONFIRMED","CANCELLED"]},"description":"Only confirmed or only cancelled; default both"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100},"description":"Default 50"},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":200},"description":"The previous page's nextCursor; takes precedence over since. One this API did not issue is 400 VALIDATION"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelBookingsList"},"example":{"since":"2026-12-03T12:30:00.000Z","items":[{"id":100001,"reference":"TEST-WEB-4H7P9D","version":1,"status":"CONFIRMED","stayStatus":"UPCOMING","channel":{"otaName":"Website","otaReservationCode":"TEST-WEB-4H7P9D","source":"DIRECT_WEB","sourceGroup":"DIRECT"},"stay":{"checkIn":"2026-12-24","checkOut":"2026-12-26","nights":2,"dayUse":false},"guest":{"fullName":"Asha Verma","firstName":"Asha","lastName":"Verma","phone":"+919876500000","email":"asha.verma@example.com","country":"IN","language":"en"},"guestNotes":null,"occupancy":{"adults":2,"children":0},"rooms":[{"roomTypeId":412,"ratePlanId":901,"roomTypeName":"Deluxe Garden Room","mealPlan":"CP","mealPlanSource":null,"mealPlanText":null,"mealPrice":null,"adults":2,"children":0,"checkIn":"2026-12-24","checkOut":"2026-12-26","nights":2,"dayUse":false,"ratePerNight":2700,"amount":5400,"nightlyRates":null,"commission":null,"status":"UPCOMING"}],"amounts":{"currency":"INR","total":5400,"paid":1080,"balanceDue":4320,"paymentCollect":"property"},"finance":null,"cancellation":null,"createdAt":"2026-12-10T12:00:00.000Z","updatedAt":"2026-12-10T12:00:00.000Z"}],"more":false,"nextCursor":"WyIyMDI2LTEyLTEwVDEyOjAwOjAwLjAwMFoiLDEwMDAwMV0"}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/direct-bookings/{bookingId}":{"get":{"summary":"One website booking, the webhook's shape","description":"Scope direct-bookings:read. 404 for a booking that is not this property's or was not made on its website.","parameters":[{"name":"bookingId","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelBooking"},"example":{"id":100001,"reference":"TEST-WEB-4H7P9D","version":1,"status":"CONFIRMED","stayStatus":"UPCOMING","channel":{"otaName":"Website","otaReservationCode":"TEST-WEB-4H7P9D","source":"DIRECT_WEB","sourceGroup":"DIRECT"},"stay":{"checkIn":"2026-12-24","checkOut":"2026-12-26","nights":2,"dayUse":false},"guest":{"fullName":"Asha Verma","firstName":"Asha","lastName":"Verma","phone":"+919876500000","email":"asha.verma@example.com","country":"IN","language":"en"},"guestNotes":null,"occupancy":{"adults":2,"children":0},"rooms":[{"roomTypeId":412,"ratePlanId":901,"roomTypeName":"Deluxe Garden Room","mealPlan":"CP","mealPlanSource":null,"mealPlanText":null,"mealPrice":null,"adults":2,"children":0,"checkIn":"2026-12-24","checkOut":"2026-12-26","nights":2,"dayUse":false,"ratePerNight":2700,"amount":5400,"nightlyRates":null,"commission":null,"status":"UPCOMING"}],"amounts":{"currency":"INR","total":5400,"paid":1080,"balanceDue":4320,"paymentCollect":"property"},"finance":null,"cancellation":null,"createdAt":"2026-12-10T12:00:00.000Z","updatedAt":"2026-12-10T12:00:00.000Z"}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"No website booking with this id on this property; on a company key, PROPERTY_NOT_FOUND when X-ZS-Property names a property it may not act on","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"Booking not found.","data":{"code":"BOOKING_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/direct-bookings/{bookingId}/cancel":{"post":{"summary":"Cancel a website booking and refund it: per its policy, in full, or not at all","description":"Scope direct-bookings:cancel (granted on its own, never by default). The whole booking, while it is UPCOMING: the nights go back on sale, the guest gets the usual cancellation message and direct.booking.cancelled says \"Cancelled by the hotel\". refund decides the money (x-zimmerstack.directBookings.cancel); the answer says what the guest gets back and its status. Idempotent: an already-cancelled booking answers 200 with replay: true and moves no money.","parameters":[{"name":"bookingId","in":"path","required":true,"schema":{"type":"integer"}},{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Send one. Same key + same body within 7 days replays the stored answer (X-Idempotent-Replay: true), so a timed-out cancel can be retried safely; a 429 or a 5xx is never stored, so the retry runs."}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectBookingCancel"},"example":{"refund":"policy","reason":"Guest phoned the front desk to cancel"}}}},"responses":{"200":{"description":"Cancelled, or already cancelled (replay: true)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectBookingCancelResult"},"example":{"booking":{"id":100001,"reference":"TEST-WEB-4H7P9D","version":1,"status":"CANCELLED","stayStatus":"CANCELLED","channel":{"otaName":"Website","otaReservationCode":"TEST-WEB-4H7P9D","source":"DIRECT_WEB","sourceGroup":"DIRECT"},"stay":{"checkIn":"2026-12-24","checkOut":"2026-12-26","nights":2,"dayUse":false},"guest":{"fullName":"Asha Verma","firstName":"Asha","lastName":"Verma","phone":"+919876500000","email":"asha.verma@example.com","country":"IN","language":"en"},"guestNotes":null,"occupancy":{"adults":2,"children":0},"rooms":[{"roomTypeId":412,"ratePlanId":901,"roomTypeName":"Deluxe Garden Room","mealPlan":"CP","mealPlanSource":null,"mealPlanText":null,"mealPrice":null,"adults":2,"children":0,"checkIn":"2026-12-24","checkOut":"2026-12-26","nights":2,"dayUse":false,"ratePerNight":2700,"amount":5400,"nightlyRates":null,"commission":null,"status":"CANCELLED"}],"amounts":{"currency":"INR","total":5400,"paid":1080,"balanceDue":4320,"paymentCollect":"property"},"finance":null,"cancellation":{"at":"2026-12-11T09:15:00.000Z","reason":"Cancelled by the hotel"},"createdAt":"2026-12-10T12:00:00.000Z","updatedAt":"2026-12-11T09:15:00.000Z"},"refund":{"requested":"policy","amount":1080,"currency":"INR","status":"PROCESSED"},"replay":false}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"No website booking with this id on this property; on a company key, PROPERTY_NOT_FOUND when X-ZS-Property names a property it may not act on","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"Booking not found.","data":{"code":"BOOKING_NOT_FOUND"}}}}},"409":{"description":"Checked in, checked out or a no-show: the hotel handles it at the desk","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"Booking already checked in. Ask the hotel to handle it at the desk.","data":{"code":"BOOKING_NOT_CANCELLABLE"}}}}},"429":{"description":"data.scope direct-cancels (10 per key per minute) or property-direct-cancels-day (50 per property per rolling day); honour Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/sandbox/bookings":{"get":{"summary":"Simulated OTA bookings on the sandbox, newest first","description":"Scope ari:read, test keys only (403 SANDBOX_ONLY on a live key).","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxBookingsList"},"example":{"bookings":[{"bookingId":90311,"reference":"SBX-9001-MXHI8W001F6D","channelBookingId":"sbx-1f6d0c2e-7b53-4a0e-9c5a-2d8f3b1e4c70","otaName":"Booking.com","status":"UPCOMING","guestName":"Asha Verma","checkIn":"2026-12-24","checkOut":"2026-12-26","nights":2,"rooms":1,"roomTypeId":412,"nightlyRate":4850,"total":9700,"currency":"INR","paidByOta":false,"oversold":false,"createdAt":"2026-12-10T12:00:00.000Z","webhook":{"eventType":"channel.booking.created","queued":false}}]}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}},"post":{"summary":"Simulate an OTA booking on the sandbox: the booking, the inventory, the real webhook","description":"Scope ari:write, test keys only (403 SANDBOX_ONLY on a live key). Creates a channel booking on the sandbox exactly as the channel manager would: the booking row, the room type's availability moved down for every night, the inventory event, and the channel.booking.created webhook queued to every endpoint registered on the sandbox. A sold-out night does not refuse (an OTA oversells; the PMS is told): the booking lands with oversold: true. The room type is named by our id (roomTypeId) or by your own ref for it (roomTypeRef), exactly one (x-zimmerstack.refs).","parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Optional: same key + same body within 7 days replays the stored answer."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxBookingCreate"},"example":{"roomTypeId":412,"checkIn":"2026-12-24","nights":2,"rooms":1,"adults":2,"guestName":"Asha Verma","otaName":"Booking.com","paidByOta":false}}}},"responses":{"201":{"description":"Created; webhook.queued says the event is in the outbox","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxBooking"},"example":{"bookingId":90311,"reference":"SBX-9001-MXHI8W001F6D","channelBookingId":"sbx-1f6d0c2e-7b53-4a0e-9c5a-2d8f3b1e4c70","otaName":"Booking.com","status":"UPCOMING","guestName":"Asha Verma","checkIn":"2026-12-24","checkOut":"2026-12-26","nights":2,"rooms":1,"roomTypeId":412,"nightlyRate":4850,"total":9700,"currency":"INR","paidByOta":false,"oversold":false,"createdAt":"2026-12-10T12:00:00.000Z","webhook":{"eventType":"channel.booking.created","queued":true}}}}},"400":{"description":"data.code is one of VALIDATION | UNKNOWN_ROOM_TYPE | STAY_INVALID; an item that names both our id and your ref, or neither, is VALIDATION; a ref no room type or rate plan of this property has is the UNKNOWN_… code, with the refs in data.details.roomTypeRefs / ratePlanRefs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":400,"message":"checkIn 2026-10-01 is in the past (today at the property is 2026-10-20)","data":{"code":"STAY_INVALID","details":{"today":"2026-10-20"}}}}}},"401":{"description":"Missing, malformed, unknown or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"SANDBOX_ONLY (a live key), SCOPE_MISSING (no ari:write), or IP_NOT_ALLOWED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"The sandbox routes answer only to a test key (zsk_test_…) on a sandbox property. This key is a live key.","data":{"code":"SANDBOX_ONLY"}}}}},"409":{"description":"CATALOG_CONFLICT: the roomTypeRef is held by more than one room type of the sandbox, so it names no single one; nothing was made, name it by our id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"More than one room type of this hotel has the ref rt-deluxe, so the ref names no single one. Name the room type by its id: GET /catalog lists each with its id.","data":{"code":"CATALOG_CONFLICT","details":{"roomTypeRefs":["rt-deluxe"]}}}}}},"413":{"description":"Body larger than 1048576 bytes (x-zimmerstack.limits.maxBodyBytes); nothing was read","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":413,"message":"The request body is larger than the API accepts. Split the updates array across requests.","data":{"code":"PAYLOAD_TOO_LARGE"}}}}},"429":{"description":"One of the request budgets; honour Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/sandbox/bookings/{bookingId}/cancel":{"post":{"summary":"The channel cancels a simulated booking: availability back, the real cancelled webhook","description":"Scope ari:write, test keys only (403 SANDBOX_ONLY on a live key). Idempotent: an already-cancelled booking answers 200 with webhook.queued false.","parameters":[{"name":"bookingId","in":"path","required":true,"schema":{"type":"integer"}},{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Send one. Same key + same body within 7 days replays the stored answer (X-Idempotent-Replay: true), so a request whose answer was lost can be sent again safely; a 429 or a 5xx is never stored, so the retry runs."}],"responses":{"200":{"description":"Cancelled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxBooking"},"example":{"bookingId":90311,"reference":"SBX-9001-MXHI8W001F6D","channelBookingId":"sbx-1f6d0c2e-7b53-4a0e-9c5a-2d8f3b1e4c70","otaName":"Booking.com","status":"CANCELLED","guestName":"Asha Verma-Rao","checkIn":"2026-12-24","checkOut":"2026-12-27","nights":3,"rooms":1,"roomTypeId":412,"nightlyRate":4966.67,"total":14900,"currency":"INR","paidByOta":false,"oversold":false,"createdAt":"2026-12-10T12:00:00.000Z","webhook":{"eventType":"channel.booking.cancelled","queued":true}}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"SANDBOX_ONLY (a live key), SCOPE_MISSING (no ari:write), or IP_NOT_ALLOWED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"The sandbox routes answer only to a test key (zsk_test_…) on a sandbox property. This key is a live key.","data":{"code":"SANDBOX_ONLY"}}}}},"404":{"description":"No simulated booking with this id on the sandbox; on a company key, PROPERTY_NOT_FOUND when X-ZS-Property names a property it may not act on","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"Booking not found.","data":{"code":"BOOKING_NOT_FOUND"}}}}},"409":{"description":"Not an UPCOMING booking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"Booking already checked in. Ask the hotel to handle it at the desk.","data":{"code":"BOOKING_NOT_CANCELLABLE"}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/sandbox/bookings/{bookingId}/modify":{"post":{"summary":"The channel sends a modified revision: new dates, length, rooms or guest; the real modified webhook","description":"Scope ari:write, test keys only (403 SANDBOX_ONLY on a live key). At least one field. The old nights go back on the sandbox's availability, the new ones come off; channel.booking.modified carries changes and previous.","parameters":[{"name":"bookingId","in":"path","required":true,"schema":{"type":"integer"}},{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Send one. Same key + same body within 7 days replays the stored answer (X-Idempotent-Replay: true), so a request whose answer was lost can be sent again safely; a 429 or a 5xx is never stored, so the retry runs."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxBookingModify"},"example":{"nights":3,"guestName":"Asha Verma-Rao"}}}},"responses":{"200":{"description":"Modified; the webhook is queued","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxBooking"},"example":{"bookingId":90311,"reference":"SBX-9001-MXHI8W001F6D","channelBookingId":"sbx-1f6d0c2e-7b53-4a0e-9c5a-2d8f3b1e4c70","otaName":"Booking.com","status":"UPCOMING","guestName":"Asha Verma-Rao","checkIn":"2026-12-24","checkOut":"2026-12-27","nights":3,"rooms":1,"roomTypeId":412,"nightlyRate":4966.67,"total":14900,"currency":"INR","paidByOta":false,"oversold":false,"createdAt":"2026-12-10T12:00:00.000Z","webhook":{"eventType":"channel.booking.modified","queued":true}}}}},"400":{"description":"data.code is one of VALIDATION | STAY_INVALID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":400,"message":"checkIn 2026-10-01 is in the past (today at the property is 2026-10-20)","data":{"code":"STAY_INVALID","details":{"today":"2026-10-20"}}}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"SANDBOX_ONLY (a live key), SCOPE_MISSING (no ari:write), or IP_NOT_ALLOWED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"The sandbox routes answer only to a test key (zsk_test_…) on a sandbox property. This key is a live key.","data":{"code":"SANDBOX_ONLY"}}}}},"404":{"description":"No simulated booking with this id on the sandbox; on a company key, PROPERTY_NOT_FOUND when X-ZS-Property names a property it may not act on","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"Booking not found.","data":{"code":"BOOKING_NOT_FOUND"}}}}},"409":{"description":"Not an UPCOMING booking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"A cancelled booking cannot be modified from the sandbox.","data":{"code":"BOOKING_NOT_MODIFIABLE"}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/batches/{batchId}":{"get":{"summary":"One accepted write and whether it has landed","parameters":[{"name":"batchId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchStatus"},"example":{"batchId":"7f1d2c4e-5a6b-4c8d-9e0f-112233445566","resource":"rates","createdAt":"2026-12-01T09:14:03.201Z","requestedCells":121,"acceptedCells":34,"noopCells":87,"rejected":[],"status":"pending","pendingCells":12,"parkedCells":0,"lastError":null}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"No such batch on this property; on a company key, PROPERTY_NOT_FOUND when X-ZS-Property names a property it may not act on","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"Batch not found.","data":{"code":"BATCH_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/connect-links":{"get":{"summary":"Your one-time connect links (a software partner's company key)","description":"Scope channels:connect, company keys only; X-ZS-Property is not read. Newest first. x-zimmerstack.connectLinks has the whole flow.","parameters":[{"name":"propertyId","in":"query","required":false,"schema":{"type":"integer"},"description":"Only this hotel's links"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100},"description":"1 to 100; default 50"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectLinkList"},"example":{"items":[{"id":"3f2b6c1e-8a4d-4e7b-9c05-1d2e3f4a5b6c","propertyId":61,"channel":"bookingcom","channelName":"Booking.com","status":"completed","createdAt":"2026-11-23T09:30:00.000Z","expiresAt":"2026-11-26T09:30:00.000Z","openedAt":"2026-11-23T11:02:10.000Z","connectedAt":"2026-11-23T11:14:41.000Z","completedAt":"2026-11-23T11:16:03.000Z","revokedAt":null,"channelId":"7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f","reference":"onboarding-4471","returnUrl":null,"createdByKey":{"id":12,"name":"Aarohan PMS, production","maskedKey":"zsk_live_aB3…"}}]}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}},"post":{"summary":"Make a one-time connect link for one hotel and one booking site (the last step of connecting it)","description":"A link alone does not connect a booking site, except Airbnb: the booking site must first accept our connectivity partner for the hotel, at the booking site itself, and no API call does that (x-zimmerstack.connectLinks.flow). Scope channels:connect; a live key. The answer carries the link's url, shown once, and hotelStep, what the hotel does at the booking site first (every booking site but Airbnb). Send hotelStep to the hotel first and the url once that step is done; the hotel's own person then types the hotel's id at the booking site on our hosted page, matches and starts selling. The body takes no booking-site detail and no room match. A second link for the same hotel and booking site withdraws an earlier one nobody opened.","parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Send one. Same key + same body within 7 days replays the stored answer (X-Idempotent-Replay: true), so a request whose answer was lost can be sent again safely; a 429 or a 5xx is never stored, so the retry runs."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectLinkCreate"},"example":{"propertyId":61,"channel":"bookingcom","expiresInHours":72,"reference":"onboarding-4471"}}}},"responses":{"201":{"description":"Created. url is in this answer only","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectLinkCreated"},"example":{"link":{"id":"3f2b6c1e-8a4d-4e7b-9c05-1d2e3f4a5b6c","propertyId":61,"channel":"bookingcom","channelName":"Booking.com","status":"pending","createdAt":"2026-11-23T09:30:00.000Z","expiresAt":"2026-11-26T09:30:00.000Z","openedAt":null,"connectedAt":null,"completedAt":null,"revokedAt":null,"channelId":null,"reference":"onboarding-4471","returnUrl":null,"createdByKey":{"id":12,"name":"Aarohan PMS, production","maskedKey":"zsk_live_aB3…"}},"url":"https://channels.zimmerstack.com/connect-link#zcl_…","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.","withdrawn":0}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"PROPERTY_NOT_FOUND: not a hotel this key may act on","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"CHANNEL_NOT_AVAILABLE, CHANNEL_MANAGER_DISABLED or LIVE_KEY_REQUIRED: x-zimmerstack.connectLinks.refusals","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"MakeMyTrip · Goibibo is available to hotels in India.","data":{"code":"CHANNEL_NOT_AVAILABLE","details":{"reason":"not_offered_here"}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/connect-links/{linkId}":{"get":{"summary":"Where one connect link stands","description":"Scope channels:connect. pending, opened, completed, expired or revoked, with the connection's id once the page saved one.","parameters":[{"name":"linkId","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"The link's id, from POST /connect-links"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectLink"},"example":{"id":"3f2b6c1e-8a4d-4e7b-9c05-1d2e3f4a5b6c","propertyId":61,"channel":"bookingcom","channelName":"Booking.com","status":"completed","createdAt":"2026-11-23T09:30:00.000Z","expiresAt":"2026-11-26T09:30:00.000Z","openedAt":"2026-11-23T11:02:10.000Z","connectedAt":"2026-11-23T11:14:41.000Z","completedAt":"2026-11-23T11:16:03.000Z","revokedAt":null,"channelId":"7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f","reference":"onboarding-4471","returnUrl":null,"createdByKey":{"id":12,"name":"Aarohan PMS, production","maskedKey":"zsk_live_aB3…"}}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"CONNECT_LINK_NOT_FOUND: no such link of yours","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"Connect link not found.","data":{"code":"CONNECT_LINK_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/connect-links/{linkId}/revoke":{"post":{"summary":"Withdraw a connect link","description":"Scope channels:connect. The link no longer opens, and an open page stops at its next step. A link already finished, run out or withdrawn answers as it stands.","parameters":[{"name":"linkId","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"The link's id, from POST /connect-links"},{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Send one. Same key + same body within 7 days replays the stored answer (X-Idempotent-Replay: true), so a request whose answer was lost can be sent again safely; a 429 or a 5xx is never stored, so the retry runs."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectLink"},"example":{"id":"3f2b6c1e-8a4d-4e7b-9c05-1d2e3f4a5b6c","propertyId":61,"channel":"bookingcom","channelName":"Booking.com","status":"revoked","createdAt":"2026-11-23T09:30:00.000Z","expiresAt":"2026-11-26T09:30:00.000Z","openedAt":null,"connectedAt":null,"completedAt":null,"revokedAt":"2026-11-23T10:05:00.000Z","channelId":null,"reference":"onboarding-4471","returnUrl":null,"createdByKey":{"id":12,"name":"Aarohan PMS, production","maskedKey":"zsk_live_aB3…"}}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"CONNECT_LINK_NOT_FOUND: no such link of yours","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"Connect link not found.","data":{"code":"CONNECT_LINK_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/properties/{propertyId}/channels/{channelId}/mapping":{"get":{"summary":"One OTA connection's mapping: the booking site's rooms and rates beside the hotel's rate plans","description":"Scope channels:connect, company keys only, a live key; X-ZS-Property is not read. The booking site's rooms and rates are read again, live, so it takes a few seconds. One line for each rate of each room, with what is matched to it now and a suggestion where nothing is. x-zimmerstack.channelConnections has the rules.","parameters":[{"name":"propertyId","in":"path","required":true,"schema":{"type":"integer"},"description":"The hotel, by its id from GET /properties"},{"name":"channelId","in":"path","required":true,"schema":{"type":"string"},"description":"The connection's id, from GET /channels (with X-ZS-Property naming the hotel)"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelMapping"},"example":{"propertyId":61,"channelId":"7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f","channel":"bookingcom","channelName":"Booking.com","confirmWord":"Booking.com","selling":true,"mapEveryLine":true,"usesPrimary":true,"lines":[{"lineId":"46777651::2001::2","otaRoom":{"code":"46777651","name":"Deluxe Double Room with Garden View"},"otaRate":{"code":"2001","name":"Standard Rate with breakfast"},"occupancy":2,"ratePlanId":901,"primary":true,"suggestedRatePlanId":null,"blocked":null},{"lineId":"46777651::2001::1","otaRoom":{"code":"46777651","name":"Deluxe Double Room with Garden View"},"otaRate":{"code":"2001","name":"Standard Rate with breakfast"},"occupancy":1,"ratePlanId":null,"primary":false,"suggestedRatePlanId":901,"blocked":null},{"lineId":"46777652::2002::4","otaRoom":{"code":"46777652","name":"Family Suite"},"otaRate":{"code":"2002","name":"Non-refundable Rate"},"occupancy":4,"ratePlanId":null,"primary":true,"suggestedRatePlanId":902,"blocked":null}],"ratePlans":[{"ratePlanId":901,"roomTypeId":412,"roomTypeName":"Deluxe Garden Room","name":"Bed and breakfast","occupancy":2},{"ratePlanId":904,"roomTypeId":412,"roomTypeName":"Deluxe Garden Room","name":"Room only","occupancy":2},{"ratePlanId":902,"roomTypeId":413,"roomTypeName":"Family Suite","name":"Room only, non-refundable","occupancy":4}]}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"PROPERTY_NOT_FOUND: not a hotel this key may act on; or CHANNEL_NOT_FOUND: no such connection on this hotel","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"LIVE_KEY_REQUIRED, CHANNEL_NOT_AVAILABLE, CHANNEL_MANAGER_DISABLED or PROPERTY_UNAVAILABLE: x-zimmerstack.channelConnections.refusals","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"A connect link connects a real booking site, so it is made with a live key. To see what a link tells you when it ends, send yourself a test event (POST /webhook-endpoints/{endpointId}/test with eventType channel.connect.completed).","data":{"code":"LIVE_KEY_REQUIRED"}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}},"502":{"description":"CHANNEL_MANAGER_ERROR: the channel manager or the booking site did not answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"summary":"Save one OTA connection's mapping (re-map its rooms and rate plans)","description":"Scope channels:connect; a live key. The body is the WHOLE matching: a line that can be matched and is left out is unmatched. Checked as the screen's Save is; a matching that breaks a rule is 400 VALIDATION with data.details.problems, and nothing is changed. A save that changed something sends no price by itself: follow it with POST /channels/{channelId}/full-sync. Airbnb saves one listing per request: send the same body again until remaining is 0. x-zimmerstack.channelConnections.saveMapping.","parameters":[{"name":"propertyId","in":"path","required":true,"schema":{"type":"integer"},"description":"The hotel, by its id from GET /properties"},{"name":"channelId","in":"path","required":true,"schema":{"type":"string"},"description":"The connection's id, from GET /channels (with X-ZS-Property naming the hotel)"},{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Send one. Same key + same body within 7 days replays the stored answer (X-Idempotent-Replay: true), so a request whose answer was lost can be sent again safely; a 429 or a 5xx is never stored, so the retry runs."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelMappingWrite"},"example":{"lines":[{"lineId":"46777651::2001::2","ratePlanId":901,"primary":true},{"lineId":"46777651::2001::1","ratePlanId":901,"primary":false},{"lineId":"46777652::2002::4","ratePlanId":902}]}}}},"responses":{"200":{"description":"Saved (changed false when the connection already held this matching)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelMappingSaved"},"example":{"channelId":"7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f","changed":true,"mapped":3,"removed":0,"kept":0,"unmatched":[],"remaining":0,"waiting":false,"next":"Send POST /channels/{channelId}/full-sync for this connection so the newly matched rates receive their prices and room counts."}}}},"400":{"description":"VALIDATION: a malformed body, a rate plan the hotel does not have, or lines that break a rule of the booking site (data.details.problems)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":400,"message":"Some lines of this matching cannot be saved; data.details.problems names each one. Nothing was changed.","data":{"code":"VALIDATION","details":{"problems":[{"code":"UNMAPPED","lineId":"46777652::2002::4"}]}}}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"PROPERTY_NOT_FOUND or CHANNEL_NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"LIVE_KEY_REQUIRED, CHANNEL_NOT_AVAILABLE, CHANNEL_MANAGER_DISABLED or PROPERTY_UNAVAILABLE: x-zimmerstack.channelConnections.refusals","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"A connect link connects a real booking site, so it is made with a live key. To see what a link tells you when it ends, send yourself a test event (POST /webhook-endpoints/{endpointId}/test with eventType channel.connect.completed).","data":{"code":"LIVE_KEY_REQUIRED"}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}},"502":{"description":"CHANNEL_MANAGER_ERROR: the channel manager did not accept the new matching (data.details.reasons when it said why); nothing was changed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/connect-api/v1/properties/{propertyId}/channels/{channelId}/disconnect":{"post":{"summary":"Disconnect one OTA connection of a hotel","description":"Scope channels:connect; a live key. confirm is the booking site's brand word. The connection is paused, then removed: the booking site stops receiving prices and availability, and its bookings stop reaching you. The hotel's listing at the booking site is not closed by this. Airbnb unlinks one listing per request first: done false, send it again. x-zimmerstack.channelConnections.disconnect.","parameters":[{"name":"propertyId","in":"path","required":true,"schema":{"type":"integer"},"description":"The hotel, by its id from GET /properties"},{"name":"channelId","in":"path","required":true,"schema":{"type":"string"},"description":"The connection's id, from GET /channels (with X-ZS-Property naming the hotel)"},{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Send one. Same key + same body within 7 days replays the stored answer (X-Idempotent-Replay: true), so a request whose answer was lost can be sent again safely; a 429 or a 5xx is never stored, so the retry runs."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelDisconnect"},"example":{"confirm":"MakeMyTrip"}}}},"responses":{"200":{"description":"Disconnected (done true), or one more Airbnb listing unlinked (done false: send it again)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelDisconnected"},"example":{"channelId":"0a9b8c7d-6e5f-4a3b-2c1d-0e9f8a7b6c5d","done":true,"remaining":0,"waiting":false}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"PROPERTY_NOT_FOUND or CHANNEL_NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"LIVE_KEY_REQUIRED, CHANNEL_NOT_AVAILABLE, CHANNEL_MANAGER_DISABLED or PROPERTY_UNAVAILABLE: x-zimmerstack.channelConnections.refusals","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"A connect link connects a real booking site, so it is made with a live key. To see what a link tells you when it ends, send yourself a test event (POST /webhook-endpoints/{endpointId}/test with eventType channel.connect.completed).","data":{"code":"LIVE_KEY_REQUIRED"}}}}},"422":{"description":"CONFIRMATION_MISMATCH: confirm is not the booking site's brand word; data.details.expected is","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":422,"message":"Send confirm: \"MakeMyTrip\" to disconnect it. Nothing was changed.","data":{"code":"CONFIRMATION_MISMATCH","details":{"expected":"MakeMyTrip"}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}},"502":{"description":"CHANNEL_MANAGER_ERROR: the channel manager did not disconnect it; nothing was changed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/connect-api/v1/properties/{propertyId}/channel-console":{"post":{"summary":"Open the channel console for one hotel (a 15-minute address, shown once)","description":"Scope channels:connect; a live key. Answers the address of the channel console for this one hotel, to open in a browser or an iframe: every connection, its settings, mapping and messages. The address works once and is in this answer only; a replay of the request answers url: null. No body. x-zimmerstack.channelConnections.console.","parameters":[{"name":"propertyId","in":"path","required":true,"schema":{"type":"integer"},"description":"The hotel, by its id from GET /properties"},{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Send one. Same key + same body within 7 days replays the stored answer (X-Idempotent-Replay: true), so a request whose answer was lost can be sent again safely; a 429 or a 5xx is never stored, so the retry runs."}],"responses":{"201":{"description":"A session was opened. url is in this answer only","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelConsole"},"example":{"url":"https://…/auth/exchange?oauth_session_key=…&app_mode=headless&redirect_to=/channels&property_id=…","expiresInSeconds":900}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"PROPERTY_NOT_FOUND: not a hotel this key may act on","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"LIVE_KEY_REQUIRED, CHANNEL_NOT_AVAILABLE, CHANNEL_MANAGER_DISABLED or PROPERTY_UNAVAILABLE: x-zimmerstack.channelConnections.refusals","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"A connect link connects a real booking site, so it is made with a live key. To see what a link tells you when it ends, send yourself a test event (POST /webhook-endpoints/{endpointId}/test with eventType channel.connect.completed).","data":{"code":"LIVE_KEY_REQUIRED"}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}},"502":{"description":"CHANNEL_MANAGER_ERROR: the channel manager did not open a session; try again in a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/connect-api/v1/readiness":{"get":{"summary":"Is this hotel ready for your software to be its source of truth?","description":"No scope: any key reads where its hotel stands. Four checks, each passed or not, with a sentence and what to do. Read from our record: no channel-manager call, so ask as often as you like. x-zimmerstack.goLive explains each check.","parameters":[{"name":"X-ZS-Property","in":"header","required":false,"schema":{"type":"integer"},"description":"A company key names the hotel here; a hotel's own key needs no header"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Readiness"},"example":{"propertyId":61,"live":false,"ready":false,"nights":{"from":"2026-11-23","to":"2027-11-22","count":365},"passedBy":null,"checks":[{"id":"channel_manager","passed":true,"summary":"The hotel is on the channel manager.","action":null},{"id":"catalog_linked","passed":true,"summary":"Every room type and rate plan is on the channel manager (2 room types, 3 rate plans).","action":null},{"id":"prices_hold","passed":true,"summary":"A price your software sends stays until your software changes it.","action":null},{"id":"nothing_stale","passed":false,"summary":"Going live now would send 1,095 values nobody set, and 0 values differ from what the channel manager holds.","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).","details":{"recordMatches":{"passed":false,"waiting":1095,"waitingNobodySet":1095,"differs":0,"cellsRead":270,"lastReadAt":"2026-11-22T21:04:11.000Z"},"fullYearSent":{"passed":false,"ratePlanNightsMissing":1095,"roomTypeNightsMissing":730,"ratePlans":[{"ratePlanId":901,"nightsSet":0,"nightsMissing":365},{"ratePlanId":902,"nightsSet":0,"nightsMissing":365},{"ratePlanId":903,"nightsSet":0,"nightsMissing":365}],"roomTypes":[{"roomTypeId":412,"nightsSet":0,"nightsMissing":365},{"roomTypeId":413,"nightsSet":0,"nightsMissing":365}]}}}]}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/go-live":{"post":{"summary":"Make your software this hotel's source of truth","description":"Scope ari:write. Switches the hotel on when GET /readiness is ready: from then on what you send is pushed to its booking sites. Not ready is 409 NOT_READY with the checks that did not pass; that refusal is not kept under an idempotency key, so the same request runs again once they pass. Already live answers 200 with replay: true.","parameters":[{"name":"X-ZS-Property","in":"header","required":false,"schema":{"type":"integer"},"description":"A company key names the hotel here; a hotel's own key needs no header"},{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Send one. Same key + same body within 7 days replays the stored answer (X-Idempotent-Replay: true), so a request whose answer was lost can be sent again safely; a 429 or a 5xx is never stored, so the retry runs."}],"responses":{"200":{"description":"Live (replay: true when it already was)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoLiveResult"},"example":{"propertyId":61,"live":true,"replay":false,"wentLiveAt":"2026-11-23T12:40:00.000Z","passedBy":"full_year_sent","next":["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.","What was waiting in our record is on its way: GET /sync shows it land.","Nights past the next 365 that your software never wrote are sent closed until it writes them."]}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"NOT_READY: data.details.checks lists what did not pass, each with what to do. Also CHANNEL_MANAGER_DISABLED, as on every channel-manager route","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not ready to go live: Your software has not sent the next 365 nights yet.","data":{"code":"NOT_READY","details":{"nights":{"from":"2026-11-23","to":"2027-11-22","count":365},"checks":[{"id":"nothing_stale","passed":false,"summary":"Your software has not sent the next 365 nights yet.","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: 40 rate-plan nights."}]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/properties/{propertyId}/keys":{"get":{"summary":"The keys you made on a hotel (a software partner's company key)","description":"Scope keys:manage, company keys only; X-ZS-Property is not read. Only the keys you made: the hotel's own keys are its owner's. x-zimmerstack.hotelKeys has the rules.","parameters":[{"name":"propertyId","in":"path","required":true,"schema":{"type":"integer"},"description":"The hotel, by its id from GET /properties"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HotelKeyList"},"example":{"items":[{"id":87,"propertyId":61,"name":"Aarohan PMS, The Lantern House","maskedKey":"zsk_live_Qm7…","mode":"live","status":"ACTIVE","scopes":["ari:read","ari:write","channel-bookings:read"],"allowedCidrs":["203.0.113.0/24"],"createdAt":"2026-11-23T12:45:00.000Z","lastUsedAt":null,"lastUsedIp":null,"expiresAt":null,"retireAt":null,"rotatedToId":null,"revokedAt":null,"revokedReason":null}],"limit":5}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}},"post":{"summary":"Mint a key on a hotel","description":"Scope keys:manage. The answer carries the secret, shown once. Any scope a hotel's own key may hold; never a company key's own scopes.","parameters":[{"name":"propertyId","in":"path","required":true,"schema":{"type":"integer"},"description":"The hotel, by its id from GET /properties"},{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Send one. Same key + same body within 7 days replays the stored answer (X-Idempotent-Replay: true), so a request whose answer was lost can be sent again safely; a 429 or a 5xx is never stored, so the retry runs."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HotelKeyCreate"},"example":{"name":"Aarohan PMS, The Lantern House","scopes":["ari:read","ari:write","channel-bookings:read"],"allowedCidrs":["203.0.113.0/24"]}}}},"responses":{"201":{"description":"Created. key is in this answer only","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HotelKeyCreated"},"example":{"key":"zsk_live_…","view":{"id":87,"propertyId":61,"name":"Aarohan PMS, The Lantern House","maskedKey":"zsk_live_Qm7…","mode":"live","status":"ACTIVE","scopes":["ari:read","ari:write","channel-bookings:read"],"allowedCidrs":["203.0.113.0/24"],"createdAt":"2026-11-23T12:45:00.000Z","lastUsedAt":null,"lastUsedIp":null,"expiresAt":null,"retireAt":null,"rotatedToId":null,"revokedAt":null,"revokedReason":null}}}}},"400":{"description":"SCOPES_INVALID, ALLOWED_CIDRS_INVALID or VALIDATION","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"X-ZS-Property names a property this key may not act on (PROPERTY_NOT_FOUND): for a company key, one outside its hotels; for a hotel key, any other property. A company key without the header is 400 PROPERTY_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No property with this id that this key may act on (see GET /properties).","data":{"code":"PROPERTY_NOT_FOUND"}}}}},"409":{"description":"KEY_LIMIT; or what the scopes need is missing on this hotel (CHANNEL_MANAGER_DISABLED, PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"A property may hold at most 5 active API keys. Revoke one first.","data":{"code":"KEY_LIMIT"}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/properties/{propertyId}/keys/{keyId}/rotate":{"post":{"summary":"Rotate a key you made on a hotel","description":"Scope keys:manage. A new key with the same name, scopes, addresses and expiry, its secret shown once; the old key keeps answering for 24 hours.","parameters":[{"name":"propertyId","in":"path","required":true,"schema":{"type":"integer"},"description":"The hotel, by its id from GET /properties"},{"name":"keyId","in":"path","required":true,"schema":{"type":"integer"},"description":"The key's id, from GET /properties/{propertyId}/keys"},{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Send one. Same key + same body within 7 days replays the stored answer (X-Idempotent-Replay: true), so a request whose answer was lost can be sent again safely; a 429 or a 5xx is never stored, so the retry runs."}],"responses":{"200":{"description":"Rotated. key is in this answer only","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HotelKeyRotated"},"example":{"key":"zsk_live_…","view":{"id":88,"propertyId":61,"name":"Aarohan PMS, The Lantern House","maskedKey":"zsk_live_Xr4…","mode":"live","status":"ACTIVE","scopes":["ari:read","ari:write","channel-bookings:read"],"allowedCidrs":["203.0.113.0/24"],"createdAt":"2026-11-24T08:00:00.000Z","lastUsedAt":null,"lastUsedIp":null,"expiresAt":null,"retireAt":null,"rotatedToId":null,"revokedAt":null,"revokedReason":null},"retired":{"id":87,"propertyId":61,"name":"Aarohan PMS, The Lantern House","maskedKey":"zsk_live_Qm7…","mode":"live","status":"ACTIVE","scopes":["ari:read","ari:write","channel-bookings:read"],"allowedCidrs":["203.0.113.0/24"],"createdAt":"2026-11-23T12:45:00.000Z","lastUsedAt":"2026-11-24T07:59:12.000Z","lastUsedIp":"203.0.113.24","expiresAt":null,"retireAt":"2026-11-25T08:00:00.000Z","rotatedToId":88,"revokedAt":null,"revokedReason":null}}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"KEY_NOT_FOUND: not a key you made on this hotel","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No such key among the ones you created on this property.","data":{"code":"KEY_NOT_FOUND"}}}}},"409":{"description":"KEY_REVOKED or KEY_ALREADY_ROTATING","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}},"/api/v1/connect-api/v1/properties/{propertyId}/keys/{keyId}/revoke":{"post":{"summary":"Revoke a key you made on a hotel","description":"Scope keys:manage. The key stops at once: its next request is 401 API_KEY_REVOKED. A key already revoked answers as it stands.","parameters":[{"name":"propertyId","in":"path","required":true,"schema":{"type":"integer"},"description":"The hotel, by its id from GET /properties"},{"name":"keyId","in":"path","required":true,"schema":{"type":"integer"},"description":"The key's id, from GET /properties/{propertyId}/keys"},{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{10,64}$"},"description":"Send one. Same key + same body within 7 days replays the stored answer (X-Idempotent-Replay: true), so a request whose answer was lost can be sent again safely; a 429 or a 5xx is never stored, so the retry runs."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HotelKeyRevoke"},"example":{"reason":"The old server was switched off"}}}},"responses":{"200":{"description":"Revoked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HotelKey"},"example":{"id":87,"propertyId":61,"name":"Aarohan PMS, The Lantern House","maskedKey":"zsk_live_Qm7…","mode":"live","status":"REVOKED","scopes":["ari:read","ari:write","channel-bookings:read"],"allowedCidrs":["203.0.113.0/24"],"createdAt":"2026-11-23T12:45:00.000Z","lastUsedAt":"2026-11-24T07:59:12.000Z","lastUsedIp":"203.0.113.24","expiresAt":null,"retireAt":null,"rotatedToId":null,"revokedAt":"2026-11-24T08:05:00.000Z","revokedReason":"The old server was switched off"}}}},"400":{"description":"REASON_REQUIRED or VALIDATION","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, malformed, unknown or revoked key (data.code API_KEY_INVALID | API_KEY_REVOKED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":401,"message":"Unauthorized","data":{"code":"API_KEY_INVALID"}}}}},"403":{"description":"The key lacks the scope this route needs (SCOPE_MISSING, details.needed / details.held), or the request came from outside the key's address allowlist (IP_NOT_ALLOWED)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":403,"message":"This API key does not have the bookings:write scope. The property owner grants scopes when creating or editing a key.","data":{"code":"SCOPE_MISSING","details":{"needed":"bookings:write","held":["ari:read","ari:write"]}}}}}},"404":{"description":"KEY_NOT_FOUND: not a key you made on this hotel","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":404,"message":"No such key among the ones you created on this property.","data":{"code":"KEY_NOT_FOUND"}}}}},"409":{"description":"The property is deleted or demo (PROPERTY_UNAVAILABLE); on a channel-manager route its channel manager is off (CHANNEL_MANAGER_DISABLED; data.details.reason is not_on_channel_manager, a hotel never put on it: send its room types and rate plans or press Finish setup in the Channels app, or switched_off, which only the hotel's owner undoes), or the hotel is not live yet (ARI_NOT_AUTHORITATIVE: GET /readiness says what is missing, POST /go-live switches it on, and a request that carries X-ZS-Before-Go-Live: true is stored ahead of that); on a booking route it has no PMS (PMS_NOT_AVAILABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":409,"message":"This hotel is not on the channel manager yet. Send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there.","data":{"code":"CHANNEL_MANAGER_DISABLED","details":{"reason":"not_on_channel_manager","next":["PUT /catalog/room-types","PUT /catalog/rate-plans","or press Finish setup in the Channels app"]}}}}}},"429":{"description":"A budget was exhausted — data.scope names it (api-address · ip · ip-auth · key-auth · global-unauthenticated · requests · writes · property · property-writes · cells · company · global · bookings · property-bookings · direct-cancels, or one of the long budgets of x-zimmerstack.shield); honour Retry-After and pace on the RateLimit header (x-zimmerstack.rateLimits). GET /limits answers every one with what is left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"statuscode":429,"message":"Too many requests on this API key. Slow down and retry after the Retry-After interval.","data":{"code":"RATE_LIMITED","scope":"writes","retryAfterSeconds":17}}}}}}}}},"components":{"securitySchemes":{"connectApiKey":{"type":"http","scheme":"bearer","bearerFormat":"zsk_live_… (zsk_test_… on a sandbox)"}},"schemas":{"Error":{"type":"object","properties":{"statuscode":{"type":"integer"},"message":{"type":"string","description":"Human-readable, may change; branch on data.code"},"data":{"type":"object","properties":{"code":{"type":"string","enum":["API_KEY_INVALID","API_KEY_REVOKED","API_KEY_EXPIRED","CONNECT_API_NOT_CONFIGURED","IP_NOT_ALLOWED","SCOPE_MISSING","PROPERTY_UNAVAILABLE","CHANNEL_MANAGER_DISABLED","PMS_NOT_AVAILABLE","VALIDATION","RANGE_INVALID","HORIZON","TOO_MANY_UPDATES","TOO_MANY_CELLS","UNKNOWN_ROOM_TYPE","UNKNOWN_RATE_PLAN","CURRENCY_MISMATCH","RATE_LIMITED","NOTHING_ACCEPTED","BATCH_NOT_FOUND","IDEMPOTENCY_KEY_INVALID","IDEMPOTENCY_KEY_REUSED","IDEMPOTENCY_IN_FLIGHT","STAY_INVALID","UNKNOWN_ROOM_TYPE_FOR_PLAN","OCCUPANCY_EXCEEDED","NO_AVAILABILITY","EXTERNAL_REFERENCE_REUSED","PAYMENT_NOT_ALLOWED","PAYMENT_EXCEEDS_TOTAL","TAXES_NOT_CONFIGURED","TAXES_INSIDE_RATES","BOOKING_NOT_FOUND","BOOKING_NOT_CANCELLABLE","MODULE_NOT_ENTITLED","SANDBOX_ONLY","ROOM_TYPE_NOT_FOUND","RATE_PLAN_NOT_FOUND","CATALOG_CONFLICT","CATALOG_BUSY","CHANNEL_MANAGER_ERROR","WEBHOOK_ENDPOINT_NOT_FOUND","WEBHOOK_DELIVERY_NOT_FOUND","WEBHOOK_ENDPOINT_LIMIT","WEBHOOK_ENDPOINT_NOT_ACTIVE","WEBHOOK_ENDPOINT_SUSPENDED","WEBHOOK_PAYLOAD_EXPIRED","WEBHOOK_ACCESS_ENDED","WEBHOOKS_UNAVAILABLE","PROPERTY_REQUIRED","PROPERTY_NOT_FOUND","ARI_NOT_AUTHORITATIVE","ROUTE_NOT_FOUND","PAYLOAD_TOO_LARGE","AUTH_BACKEND_UNAVAILABLE","BOOKING_NOT_MODIFIABLE","SANDBOX_NOT_FOUND","SANDBOX_INCOMPLETE","WRITES_FROZEN","WRITES_SUSPENDED","SHIELD_UNAVAILABLE","CATALOG_LIMIT_REACHED","TOO_MANY_NEW_ENTITIES","RATE_OUT_OF_BAND","CHANNEL_NOT_FOUND","CHANNEL_SHARED","MODIFIER_OUT_OF_BAND","CHANNEL_PAUSED","COMPANY_KEY_REQUIRED","BILLING_SETUP_REQUIRED","OWNER_HAS_ACCOUNT","SANDBOX_LIMIT","CONFIRMATION_MISMATCH","PROPERTY_NOT_REMOVABLE","PROPERTY_NOT_CHANGEABLE","PROPERTY_BUSY","PRICE_UNAVAILABLE","CONNECT_LINK_NOT_FOUND","CONNECT_LINKS_UNAVAILABLE","CHANNEL_NOT_AVAILABLE","LIVE_KEY_REQUIRED","NOT_READY","KEY_NOT_FOUND","KEY_LIMIT","KEY_REVOKED","KEY_ALREADY_ROTATING","SCOPES_INVALID","ALLOWED_CIDRS_INVALID","REASON_REQUIRED","SUPPORT_TICKET_NOT_FOUND","SUPPORT_TICKET_CLOSED"]},"details":{}},"required":["code"],"additionalProperties":false}},"required":["statuscode","message","data"],"additionalProperties":false},"Property":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"timezone":{"type":"string","description":"IANA; every date in this API is a calendar date in this zone"},"currency":{"type":"string","description":"ISO 4217; every rate must be sent in it"},"decimals":{"description":"Digits after the decimal point this currency's prices carry (ISO 4217): 2 for rupees, euros and dollars, 0 for yen. Every amount this API reads back as a decimal string has exactly this many (§2.10)","type":"integer"},"inventoryScope":{"type":"string","enum":["PMS_CM","CM_ONLY","PMS_CUTOVER","OWNER_SITE"]},"sandbox":{"type":"boolean","description":"true when this key is a zsk_test_ key on the owner's sandbox: nothing you send reaches a channel, and POST /sandbox/bookings simulates an OTA booking"},"horizonDays":{"type":"integer","description":"last writable night = today + horizonDays"},"ariAuthoritative":{"type":"boolean"},"scopes":{"type":"array","items":{"type":"string"},"description":"what THIS key may do: ari:read · ari:write · bookings:read · bookings:write · bookings:payments"},"products":{"type":"object","properties":{"channelManager":{"type":"boolean","description":"the ARI routes need it"},"pms":{"type":"boolean","description":"the booking routes need it"}},"required":["channelManager","pms"],"additionalProperties":false},"limits":{"type":"object","properties":{"requestsPerMinute":{"type":"integer"},"writesPerMinute":{"type":"integer"},"maxUpdatesPerRequest":{"type":"integer"},"maxCellsPerRequest":{"type":"integer"},"bookingsPerMinute":{"type":"integer"},"cellsPerHour":{"type":"integer","description":"Changed cells this property may take per clock hour (UTC), all its keys together. A cell that already holds the value sent is not counted"},"cellsPerDay":{"type":"integer","description":"Changed cells this property may take per rolling 24 hours"},"maxRoomTypes":{"type":"integer","description":"Room types this property may hold"},"maxRatePlans":{"type":"integer","description":"Rate plans this property may hold"},"ratePlansPerRoomType":{"description":"A vacation rental: rate plans this property may hold per room type, counted over the whole property. null on a hotel, where maxRatePlans is the rule","type":["integer","null"]},"newEntitiesPerMinute":{"type":"integer","description":"New room types or rate plans one request, and one minute, may create"}},"required":["requestsPerMinute","writesPerMinute","maxUpdatesPerRequest","maxCellsPerRequest","bookingsPerMinute","cellsPerHour","cellsPerDay","maxRoomTypes","maxRatePlans","ratePlansPerRoomType","newEntitiesPerMinute"],"additionalProperties":false},"usage":{"type":"object","properties":{"cellsThisHour":{"type":"integer","description":"Changed cells counted against cellsPerHour so far this clock hour"},"cellsLast24h":{"type":"integer","description":"Changed cells counted against cellsPerDay over the last 24 hours"}},"required":["cellsThisHour","cellsLast24h"],"description":"What this property has used of its long budgets (§6.6)","additionalProperties":false},"shield":{"type":"object","properties":{"level":{"type":"string","enum":["CLEAR","WATCH","PAUSED","SUSPENDED"],"description":"CLEAR nothing held against the integration · WATCH noted, nothing refused · PAUSED only writes that close inventory are accepted · SUSPENDED every write refused until ZimmerStack releases it"},"reason":{"description":"Why, when the level is not CLEAR","type":["string","null"]},"until":{"description":"When a pause ends on its own (ISO instant); null = until released, or not paused","type":["string","null"]}},"required":["level","reason","until"],"description":"Where this integration stands with the channel shield. Reads and bookings are never affected","additionalProperties":false},"sync":{"type":"object","properties":{"state":{"type":"string","enum":["IN_SYNC","PENDING","OUT_OF_SYNC","DISABLED"]},"pendingCells":{"type":"integer"}},"required":["state","pendingCells"],"additionalProperties":false}},"required":["id","name","timezone","currency","inventoryScope","sandbox","horizonDays","ariAuthoritative","scopes","products","limits","usage","shield","sync"],"additionalProperties":false},"Limits":{"type":"object","properties":{"asOf":{"type":"string","description":"ISO 8601 instant the windows were read"},"key":{"type":"object","properties":{"kind":{"type":"string","enum":["hotel","company"]},"mode":{"type":"string","enum":["live","test"]},"propertyId":{"description":"The hotel these budgets are for; null on a company key that named none","type":["integer","null"]}},"required":["kind","mode","propertyId"],"additionalProperties":false},"budgets":{"type":"array","items":{"type":"object","properties":{"scope":{"type":"string","description":"The budget's name: data.scope on the 429 that names it"},"header":{"description":"Its name in the RateLimit-Policy / RateLimit headers; null when it is not reported there","type":["string","null"]},"per":{"type":"string","description":"Whose traffic is counted together"},"window":{"type":"string","description":"The window in words: 60 s sliding, one clock hour (UTC), rolling 24 hours"},"windowSeconds":{"type":["integer","null"]},"quota":{"type":"integer","description":"The most the window holds, for THIS key, property and company"},"unit":{"type":"string","description":"What is counted: requests, writes, cells, bookings…"},"used":{"description":"Counted in the window now; null when this route cannot read it","type":["integer","null"]},"remaining":{"description":"What is left; null with used","type":["integer","null"]},"resetSeconds":{"description":"Seconds until it has room again when nothing is left; otherwise until the oldest counted item leaves the window. 0 when nothing is counted","type":["integer","null"]},"counts":{"type":"string","description":"What is counted, in a sentence"}},"required":["scope","header","per","window","windowSeconds","quota","unit","used","remaining","resetSeconds","counts"],"additionalProperties":false},"description":"The budgets the key guard and the routes measure: a minute, or a rolling day"},"shield":{"anyOf":[{"type":"object","properties":{"standing":{"type":"object","properties":{"level":{"type":"string","enum":["CLEAR","WATCH","PAUSED","SUSPENDED"]},"reason":{"type":["string","null"]},"until":{"type":["string","null"]}},"required":["level","reason","until"],"additionalProperties":false},"budgets":{"type":"array","items":{"type":"object","properties":{"scope":{"type":"string","description":"The budget's name: data.scope on the 429 that names it"},"header":{"description":"Its name in the RateLimit-Policy / RateLimit headers; null when it is not reported there","type":["string","null"]},"per":{"type":"string","description":"Whose traffic is counted together"},"window":{"type":"string","description":"The window in words: 60 s sliding, one clock hour (UTC), rolling 24 hours"},"windowSeconds":{"type":["integer","null"]},"quota":{"type":"integer","description":"The most the window holds, for THIS key, property and company"},"unit":{"type":"string","description":"What is counted: requests, writes, cells, bookings…"},"used":{"description":"Counted in the window now; null when this route cannot read it","type":["integer","null"]},"remaining":{"description":"What is left; null with used","type":["integer","null"]},"resetSeconds":{"description":"Seconds until it has room again when nothing is left; otherwise until the oldest counted item leaves the window. 0 when nothing is counted","type":["integer","null"]},"counts":{"type":"string","description":"What is counted, in a sentence"}},"required":["scope","header","per","window","windowSeconds","quota","unit","used","remaining","resetSeconds","counts"],"additionalProperties":false},"description":"The budgets over an hour and a day, with this property's own quotas"}},"required":["standing","budgets"],"additionalProperties":false},{"type":"null"}],"description":"Where the integration stands and its long budgets; null on a company key that named no hotel"},"caps":{"type":"array","items":{"type":"object","properties":{"scope":{"type":"string"},"per":{"type":"string"},"quota":{"type":"integer"},"unit":{"type":"string"},"counts":{"type":"string"}},"required":["scope","per","quota","unit","counts"],"additionalProperties":false},"description":"The most one request may carry, and the most of a thing that may exist"},"note":{"type":"string"}},"required":["asOf","key","budgets","shield","caps","note"],"additionalProperties":false},"Catalog":{"type":"object","properties":{"currency":{"type":"string","description":"ISO 4217; the property's, and the one every rate and booking is sent in"},"decimals":{"description":"Digits after the decimal point this currency's prices carry (§2.10)","type":"integer"},"roomTypes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"The number every availability write and every booking room names as roomTypeId"},"ref":{"description":"Your own id for it, when your system wrote it through PUT /catalog/room-types; null otherwise","type":["string","null"]},"name":{"type":"string","description":"As the owner named it in ZimmerStack"},"maxAdults":{"description":"Most adults one room takes; null = not set","type":["integer","null"]},"maxChildren":{"description":"Most children one room takes; null = not set","type":["integer","null"]},"roomKind":{"type":"string","description":"\"room\" unless the owner chose another kind of unit"},"sync":{"type":"string","enum":["IN_SYNC","PENDING","SENDING","FAILED","DRIFTED","NOT_LINKED","DISABLED"],"description":"IN_SYNC the channel manager has it · PENDING / SENDING on its way · FAILED stopped retrying (the owner's screen offers Retry) · DRIFTED someone changed it inside the channel manager · NOT_LINKED saved here, never added there · DISABLED the property is not connected"}},"required":["id","ref","name","maxAdults","maxChildren","roomKind","sync"],"additionalProperties":false},"description":"Every room type on the property, stable ids, in the order they were created"},"ratePlans":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"The number rate and restriction writes name as ratePlanId; optional on a booking room"},"ref":{"description":"Your own id for it, when your system wrote it through PUT /catalog/rate-plans; null otherwise","type":["string","null"]},"roomTypeId":{"type":"integer","description":"The room type this plan sells; a booking may only pair the two"},"name":{"type":"string","description":"As the owner named it"},"mealPlan":{"anyOf":[{"type":"string","enum":["EP","CP","MAP","AP"]},{"type":"null"}],"description":"EP room only · CP breakfast · MAP half board · AP full board; null = not set"},"occupancy":{"description":"The occupancy this plan is priced for; null = any","type":["integer","null"]},"currency":{"type":"string"},"defaultRate":{"description":"The plan's standing price in major units, as a decimal string with the currency's own decimals (\"4500.50\"): the same field PUT /catalog/rate-plans takes, and the price every date of the plan opens for booking at. null = it follows the room type's base rate, which only a plan made on the hotel's own screens can do","type":["string","null"]},"refundable":{"type":"boolean","description":"false = a non-refundable plan"},"sync":{"type":"string","enum":["IN_SYNC","PENDING","SENDING","FAILED","DRIFTED","NOT_LINKED","DISABLED"],"description":"IN_SYNC the channel manager has it · PENDING / SENDING on its way · FAILED stopped retrying (the owner's screen offers Retry) · DRIFTED someone changed it inside the channel manager · NOT_LINKED saved here, never added there · DISABLED the property is not connected"}},"required":["id","ref","roomTypeId","name","mealPlan","occupancy","currency","refundable","sync"],"additionalProperties":false},"description":"Every rate plan, each under one room type"}},"required":["currency","roomTypes","ratePlans"],"additionalProperties":false},"Properties":{"type":"object","properties":{"keyKind":{"type":"string","enum":["company","property"],"description":"company: a software vendor's key, the hotel named in X-ZS-Property on every request. property: one hotel's own key, no header needed."},"properties":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"The id a company key names in the X-ZS-Property header"},"name":{"type":"string"},"timezone":{"type":"string"},"currency":{"type":"string"},"channelManager":{"type":"boolean","description":"The property publishes to its channels"},"sandbox":{"type":"boolean","description":"A sandbox: everything lands locally, nothing reaches a channel"}},"required":["id","name","timezone","currency","channelManager","sandbox"],"additionalProperties":false},"description":"A company key: every property it may act on. A hotel key: its one property."}},"required":["keyKind","properties"],"additionalProperties":false},"PropertyCreate":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120,"description":"The hotel's name, as its guests know it"},"owner":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"email":{"type":"string","maxLength":254,"format":"email","description":"The owner's own address. The sign-in details are sent here, never to you"},"phone":{"type":"string","minLength":7,"maxLength":32,"description":"Digits, with an optional + and spaces, dots, dashes or brackets"}},"required":["name","email","phone"],"additionalProperties":false,"description":"The person who owns the hotel's account"},"address":{"type":"object","properties":{"line1":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":80},"state":{"type":"string","maxLength":80},"postalCode":{"type":"string","maxLength":16},"country":{"type":"string","pattern":"^[A-Za-z]{2}$","description":"ISO 3166-1 alpha-2, for example IN, LK, PT"}},"required":["line1","city","country"],"additionalProperties":false},"currency":{"description":"ISO 4217: what the hotel sells in. Default: the country's own currency. A hotel in India sells in INR","type":"string","pattern":"^[A-Za-z]{3}$"},"timezone":{"description":"An IANA zone of the hotel's country. Default: the country's main zone","type":"string","minLength":1,"maxLength":64},"taxId":{"description":"India only: the hotel's GSTIN when it is registered under GST. Leave it out when it is not, and for a hotel in any other country","type":"string","minLength":1,"maxLength":15},"roomTypes":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"ref":{"description":"Your own id for this room type. Send the same ref to PUT /catalog/room-types later and it updates this one instead of making a second","type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9._:-]+$"},"name":{"type":"string","minLength":1,"maxLength":80,"description":"Shown to the owner and sent to the channel manager as the title; each name once per request"},"roomCount":{"type":"integer","minimum":1,"maximum":50,"description":"Sellable rooms of this type"},"adults":{"description":"Most adults one room takes; default 2","type":"integer","minimum":1,"maximum":10},"defaultRate":{"anyOf":[{"type":"number","minimum":0},{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$"}],"description":"The nightly price new dates open at, in MAJOR units of the hotel's currency (e.g. 4500 or \"4500.00\")"}},"required":["name","roomCount","defaultRate"],"additionalProperties":false},"description":"At least one. Each is born with one room-only rate plan at its defaultRate"}},"required":["name","owner","address","roomTypes"],"additionalProperties":false},"PropertyCreated":{"type":"object","properties":{"id":{"type":"integer","description":"The id your company key names in the X-ZS-Property header from now on"},"name":{"type":"string","description":"As stored. A sandbox's name ends in (sandbox) and is at most 60 characters"},"timezone":{"type":"string"},"currency":{"type":"string"},"channelManager":{"type":"boolean","description":"The property publishes to its channels. A new hotel is put on the channel manager when its billing starts, usually before this answer; while it is false, PUT /catalog/room-types with the same refs tries again. Always true for a sandbox"},"sandbox":{"type":"boolean","description":"true when a test key made it: everything lands locally, nothing reaches a channel and nothing is billed"},"billing":{"type":"object","properties":{"state":{"type":"string","enum":["ACTIVE","WAITING","NOT_BILLED"],"description":"ACTIVE: its billing has started, it is on your next monthly invoice · WAITING: the hotel is live, its billing has not started yet · NOT_BILLED: a sandbox"},"reason":{"anyOf":[{"type":"string","enum":["SETUP","OVERDUE","UNPAID_LIMIT","REVIEW"]},{"type":"null"}],"description":"Why billing waits; null otherwise. SETUP: your billing setup is not complete · OVERDUE: one of your invoices is overdue · UNPAID_LIMIT: you have added as many hotels as you may before your first paid invoice · REVIEW: ZimmerStack starts it"},"message":{"type":"string","description":"The same in one sentence, with what to do next; may change, branch on state and reason"}},"required":["state","reason","message"],"additionalProperties":false},"replay":{"type":"boolean","description":"true: an earlier request with this X-Idempotency-Key already added this hotel; nothing new was made"}},"required":["id","name","timezone","currency","channelManager","sandbox","billing","replay"],"additionalProperties":false},"PropertyChange":{"type":"object","properties":{"name":{"description":"The hotel's new name, as its guests know it. A sandbox's name keeps its ending, (sandbox)","type":"string","minLength":1,"maxLength":120},"address":{"description":"Only the parts you send change. The country is not one of them: it never changes by this request","type":"object","properties":{"line1":{"description":"The first line of the address","type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":80},"state":{"description":"An empty string clears it","type":"string","maxLength":80},"postalCode":{"description":"An empty string clears it","type":"string","maxLength":16}},"additionalProperties":false}},"additionalProperties":false},"PropertyChanged":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string","description":"As stored now. A sandbox's name ends in (sandbox)"},"timezone":{"type":"string"},"currency":{"type":"string"},"channelManager":{"type":"boolean","description":"The property publishes to its channels. Not changed by this request"},"sandbox":{"type":"boolean"},"address":{"type":"object","properties":{"line1":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"postalCode":{"type":["string","null"]},"country":{"description":"ISO 3166-1 alpha-2. Never changed by this request","type":["string","null"]}},"required":["line1","city","state","postalCode","country"],"description":"The hotel's address as stored now. A part the record does not hold is null","additionalProperties":false},"changed":{"type":"array","items":{"type":"string"},"description":"The fields whose stored value this request changed, by the names you send (name, address.line1, address.city, address.state, address.postalCode). Empty when everything you sent was already stored"}},"required":["id","name","timezone","currency","channelManager","sandbox","address","changed"],"additionalProperties":false},"PropertyRemoved":{"type":"object","properties":{"id":{"type":"integer"},"name":{"description":"The hotel's name; null only for a sandbox removed before its name was recorded","type":["string","null"]},"removed":{"type":"boolean","const":true},"replay":{"type":"boolean","description":"true: it was already removed before this request; the rest of the answer is where it stands now"},"sandbox":{"type":"boolean"},"access":{"type":"string","const":"CLOSED","description":"Nobody signs in to the hotel's account any more and no key reaches it"},"billing":{"type":"object","properties":{"state":{"type":"string","enum":["CANCELLED","NOT_BILLED"],"description":"CANCELLED: the hotel's subscription is cancelled · NOT_BILLED: a sandbox, never billed"},"cancelledAt":{"description":"ISO 8601 instant the subscription was cancelled; null for a sandbox","type":["string","null"]}},"required":["state","cancelledAt"],"additionalProperties":false},"channelManager":{"type":"object","properties":{"state":{"type":"string","enum":["REMOVED","RETRYING","NOT_CONNECTED"],"description":"REMOVED: its channel connections, rate plans, room types and listing are gone from the channel manager · RETRYING: a step is still pending; ZimmerStack retries it and nothing is needed from you · NOT_CONNECTED: it was never on the channel manager"},"step":{"anyOf":[{"type":"string","enum":["CHANNELS","RATE_PLANS","ROOM_TYPES","PROPERTY"]},{"type":"null"}],"description":"While RETRYING, the step that is pending, in the order they run: the channel connections, then the rate plans, then the room types, then the property. null otherwise, and on a replay"},"stillConnected":{"anyOf":[{"type":"object","properties":{"channels":{"type":"integer"},"ratePlans":{"type":["integer","null"]},"roomTypes":{"type":["integer","null"]},"property":{"type":"boolean"}},"required":["channels","ratePlans","roomTypes","property"],"additionalProperties":false},{"type":"null"}],"description":"While RETRYING, what was still on the channel manager when this request ended; null otherwise, and on a replay"}},"required":["state","step","stillConnected"],"additionalProperties":false}},"required":["id","name","removed","replay","sandbox","access","billing","channelManager"],"additionalProperties":false},"RoomTypesUpsert":{"type":"object","properties":{"roomTypes":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"ref":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9._:-]+$","description":"Your own id for this entity: the upsert key, stable across sends (1–64 of A–Z a–z 0–9 . _ : -)"},"name":{"type":"string","minLength":1,"maxLength":80,"description":"Shown to the owner and sent to the channel manager as the title"},"roomCount":{"type":"integer","minimum":1,"maximum":200,"description":"Sellable rooms of this type. On a channel-manager-only hotel a later change is written too, to the channel manager first; a count below the rooms holding upcoming stays is refused. The count does not cap a night: an availability above it is accepted with a warning, reaches the booking sites, and is what a price by rooms counts for that month. On a hotel that runs our PMS the count comes from its room list and a different value is not written (the answer's notice says so)"},"adults":{"type":"integer","minimum":1,"maximum":12,"description":"Most adults one room takes"},"children":{"description":"Most children one room takes; default 0","type":"integer","minimum":0,"maximum":8}},"required":["ref","name","roomCount","adults"],"additionalProperties":false},"description":"Each ref once per request"}},"required":["roomTypes"],"additionalProperties":false},"RatePlansUpsert":{"type":"object","properties":{"ratePlans":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"ref":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9._:-]+$","description":"Your own id for this entity: the upsert key, stable across sends (1–64 of A–Z a–z 0–9 . _ : -)"},"roomTypeId":{"description":"The room type this plan sells (GET /catalog); or name it by roomTypeRef","type":"integer","exclusiveMinimum":0},"roomTypeRef":{"description":"The room type by the ref you gave it, in this request or an earlier one","type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9._:-]+$"},"name":{"type":"string","minLength":1,"maxLength":80,"description":"Shown to the owner and sent to the channel manager as the title"},"mealPlan":{"description":"EP room only · CP breakfast · MAP half board · AP full board; null = not set","anyOf":[{"type":"string","enum":["EP","CP","MAP","AP"]},{"type":"null"}]},"occupancy":{"description":"The occupancy this plan is priced for; null = the room type's default","anyOf":[{"type":"integer","minimum":1,"maximum":12},{"type":"null"}]},"refundable":{"description":"false = a non-refundable plan; default true","type":"boolean"},"defaultRate":{"description":"The plan's standing price in MAJOR units, a number or a decimal string (4500 or \"4500.50\"), like every rate here: what every date of the plan opens for booking at, mirrored to the channel manager. REQUIRED when the plan is new: a request that would create a plan without it is 400 VALIDATION and writes nothing. On a plan you already sent, omit it to leave the price as it is. null (follow the room type's base rate) is accepted only where the hotel has typed a base rate in ZimmerStack, and is 400 VALIDATION otherwise. Kept to the currency's own decimals (§2.10)","anyOf":[{"anyOf":[{"type":"number","minimum":0},{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$"}]},{"type":"null"}]},"defaultRateMinor":{"description":"Deprecated: the same standing price in hundredths of the major unit (450050 is 4500.50). Send defaultRate instead; never both","anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":100000000},{"type":"null"}]}},"required":["ref","name"],"additionalProperties":false},"description":"Each ref once per request"}},"required":["ratePlans"],"additionalProperties":false},"CatalogUpsertResult":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"ref":{"type":"string"},"id":{"type":"integer","description":"The ZimmerStack id: what every availability, rate and booking write names from now on"},"action":{"type":"string","enum":["created","updated","adopted","unchanged"],"description":"created: new here and on the channel manager · updated: fields changed · adopted: an entity the owner had already made with this name is now yours by ref · unchanged: nothing differed"},"sync":{"type":"string","enum":["IN_SYNC","PENDING","SENDING","FAILED","DRIFTED","NOT_LINKED","DISABLED"],"description":"IN_SYNC the channel manager has it · PENDING / SENDING on its way · FAILED stopped retrying (the owner's screen offers Retry) · DRIFTED someone changed it inside the channel manager · NOT_LINKED saved here, never added there · DISABLED the property is not connected"},"notice":{"description":"Saved, but something to know (for example the property is not on the channel manager yet); null when nothing","type":["string","null"]}},"required":["ref","id","action","sync","notice"],"additionalProperties":false},"description":"One per entity sent, in the order sent"},"channelManager":{"type":"object","properties":{"enabled":{"type":"boolean","description":"The property publishes to its channels"},"reason":{"description":"Why not, when enabled is false (for example: a room type still has no rate plan)","type":["string","null"]}},"required":["enabled","reason"],"description":"Where the property stands after this write; a sandbox always says enabled","additionalProperties":false},"rounded":{"description":"Standing prices this request sent that could not be kept exactly as sent, each with what was kept and why (§2.10). Absent when every price was kept as sent","type":"array","items":{"type":"object","properties":{"field":{"type":"string","description":"Where in the request the amount sat, for example \"updates[3].rate\""},"sent":{"type":"string","description":"The amount as it was sent"},"kept":{"type":"string","description":"The amount as it is kept, in major units with the currency's own decimals"},"reason":{"type":"string","description":"Why, in a sentence; may change, do not branch on it"}},"required":["field","sent","kept","reason"],"additionalProperties":false}}},"required":["items","channelManager"],"additionalProperties":false},"CatalogDeleteResult":{"type":"object","properties":{"id":{"type":"integer"},"deleted":{"type":"boolean","const":true},"channelManagerDeleted":{"type":"boolean","description":"The channel manager's copy is gone too (a sandbox has none)"},"deletedRatePlanIds":{"type":"array","items":{"type":"integer"},"description":"For a room type: the plans that went with it"}},"required":["id","deleted","channelManagerDeleted","deletedRatePlanIds"],"additionalProperties":false},"RangeQuery":{"type":"object","properties":{"from":{"description":"default: today in the property's timezone","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"description":"default: from + 30 days; at most 500 days after from","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"additionalProperties":false},"AvailabilityRead":{"type":"object","properties":{"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Hotel-local calendar date, YYYY-MM-DD"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Hotel-local calendar date, YYYY-MM-DD"},"cells":{"type":"array","items":{"type":"object","properties":{"roomTypeId":{"type":"integer"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Hotel-local calendar date, YYYY-MM-DD"},"available":{"type":"integer"}},"required":["roomTypeId","date","available"],"additionalProperties":false}}},"required":["from","to","cells"],"additionalProperties":false},"AvailabilityWrite":{"type":"object","properties":{"updates":{"minItems":1,"type":"array","items":{"type":"object","properties":{"roomTypeId":{"description":"ZimmerStack room type id (GET /catalog). Name the room type by this or by roomTypeRef, exactly one","type":"integer","exclusiveMinimum":0},"roomTypeRef":{"description":"Your own ref for the room type: the one you gave it in PUT /catalog/room-types or POST /properties (GET /catalog reads it back). Name the room type by this or by roomTypeId, exactly one. A room type the hotel's owner made has no ref of yours: name it by roomTypeId","type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9._:-]+$"},"dateFrom":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Hotel-local calendar date, YYYY-MM-DD"},"dateTo":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Hotel-local calendar date, YYYY-MM-DD"},"available":{"type":"integer","minimum":0,"maximum":10000,"description":"ABSOLUTE count of rooms of this type for sale on each night of the range"}},"required":["dateFrom","dateTo","available"],"additionalProperties":false}},"dryRun":{"description":"true: decide everything a real write decides (what would change, what is unchanged, what is held, what would be refused, the notices) and write nothing. Answers 200 with the preview instead of 202. Default false","type":"boolean"}},"required":["updates"],"additionalProperties":false},"RatesRead":{"type":"object","properties":{"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Hotel-local calendar date, YYYY-MM-DD"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Hotel-local calendar date, YYYY-MM-DD"},"currency":{"type":"string","description":"ISO 4217: the property's currency, the one every rate here is in"},"decimals":{"description":"Digits after the decimal point this currency's prices carry (ISO 4217): 2, 0 or 3 (§2.10)","type":"integer"},"cells":{"type":"array","items":{"type":"object","properties":{"ratePlanId":{"type":"integer"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Hotel-local calendar date, YYYY-MM-DD"},"rate":{"description":"The price in MAJOR units, as a decimal string with the currency's own decimals: \"4500.50\" in rupees, \"4500\" in yen. The same value PUT /rates takes","type":"string"},"rateMinor":{"type":"integer","description":"The same price in HUNDREDTHS of the major unit (450050 is 4500.50), for every currency. That is the ISO 4217 minor unit only where the currency has two decimals: prefer rate"},"source":{"type":"string","enum":["MANUAL","BASE","ENGINE","CHANNEX_SEED","PLAN_DEFAULT","STANDING"]}},"required":["ratePlanId","date","rateMinor","source"],"additionalProperties":false}}},"required":["from","to","currency","cells"],"additionalProperties":false},"RatesWrite":{"type":"object","properties":{"updates":{"minItems":1,"type":"array","items":{"type":"object","properties":{"ratePlanId":{"description":"ZimmerStack rate plan id (GET /catalog). Name the rate plan by this or by ratePlanRef, exactly one","type":"integer","exclusiveMinimum":0},"ratePlanRef":{"description":"Your own ref for the rate plan: the one you gave it in PUT /catalog/rate-plans (GET /catalog reads it back). Name the rate plan by this or by ratePlanId, exactly one. A rate plan the hotel's owner made has no ref of yours, and neither has the one POST /properties makes for each room type: name it by ratePlanId","type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9._:-]+$"},"dateFrom":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Hotel-local calendar date, YYYY-MM-DD"},"dateTo":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Hotel-local calendar date, YYYY-MM-DD"},"days":{"maxItems":7,"type":"array","items":{"type":"string","enum":["mo","tu","we","th","fr","sa","su"],"description":"mo tu we th fr sa su"}},"rate":{"anyOf":[{"type":"number","minimum":0},{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$"}],"description":"Nightly sell price in MAJOR units, a number or a decimal string (4500, 4500.5 or \"4500.50\"), 1 to 21474836. Kept exactly, to the currency's own decimals (GET /property decimals): two for rupees, euros and dollars, none for yen. A number with more decimals than the currency has is rounded to them and named in the answer's rounded list; so is a fraction in a currency that has none. A decimal string takes at most two decimals: one with more is refused (400 VALIDATION)"},"currency":{"type":"string","minLength":3,"maxLength":3,"description":"ISO 4217; must equal the property's currency (GET /property)"}},"required":["dateFrom","dateTo","rate","currency"],"additionalProperties":false}},"dryRun":{"description":"true: decide everything a real write decides (what would change, what is unchanged, what is held, what would be refused, the notices) and write nothing. Answers 200 with the preview instead of 202. Default false","type":"boolean"}},"required":["updates"],"additionalProperties":false},"RestrictionsRead":{"type":"object","properties":{"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Hotel-local calendar date, YYYY-MM-DD"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Hotel-local calendar date, YYYY-MM-DD"},"cells":{"type":"array","items":{"type":"object","properties":{"ratePlanId":{"type":"integer"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Hotel-local calendar date, YYYY-MM-DD"},"stopSell":{"type":["boolean","null"]},"closedToArrival":{"type":["boolean","null"]},"closedToDeparture":{"type":["boolean","null"]},"minStayArrival":{"type":["integer","null"]},"minStayThrough":{"type":["integer","null"]},"maxStay":{"type":["integer","null"]}},"required":["ratePlanId","date","stopSell","closedToArrival","closedToDeparture","minStayArrival","minStayThrough","maxStay"],"additionalProperties":false}}},"required":["from","to","cells"],"additionalProperties":false},"RestrictionsWrite":{"type":"object","properties":{"updates":{"minItems":1,"type":"array","items":{"type":"object","properties":{"ratePlanId":{"description":"ZimmerStack rate plan id (GET /catalog). Name the rate plan by this or by ratePlanRef, exactly one","type":"integer","exclusiveMinimum":0},"ratePlanRef":{"description":"Your own ref for the rate plan: the one you gave it in PUT /catalog/rate-plans (GET /catalog reads it back). Name the rate plan by this or by ratePlanId, exactly one. A rate plan the hotel's owner made has no ref of yours, and neither has the one POST /properties makes for each room type: name it by ratePlanId","type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9._:-]+$"},"dateFrom":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Hotel-local calendar date, YYYY-MM-DD"},"dateTo":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Hotel-local calendar date, YYYY-MM-DD"},"days":{"maxItems":7,"type":"array","items":{"type":"string","enum":["mo","tu","we","th","fr","sa","su"],"description":"mo tu we th fr sa su"}},"stopSell":{"type":"boolean"},"closedToArrival":{"type":"boolean"},"closedToDeparture":{"type":"boolean"},"minStayArrival":{"type":"integer","minimum":1,"maximum":365},"minStayThrough":{"type":"integer","minimum":1,"maximum":365},"maxStay":{"type":"integer","minimum":0,"maximum":365}},"required":["dateFrom","dateTo"],"additionalProperties":false}},"dryRun":{"description":"true: decide everything a real write decides (what would change, what is unchanged, what is held, what would be refused, the notices) and write nothing. Answers 200 with the preview instead of 202. Default false","type":"boolean"}},"required":["updates"],"additionalProperties":false},"WriteAccepted":{"type":"object","properties":{"batchId":{"type":"string","format":"uuid"},"resource":{"type":"string","enum":["availability","rates","restrictions"]},"requestedCells":{"type":"integer","description":"distinct cells after per-request coalescing (last write wins)"},"acceptedCells":{"type":"integer","description":"cells that differed from our record and were written; they will be pushed"},"noopCells":{"type":"integer","description":"cells that already held the requested value; nothing written, nothing pushed"},"rejected":{"type":"array","items":{"type":"object","properties":{"cells":{"type":"integer"},"error":{"type":"string"}},"required":["cells","error"],"additionalProperties":false},"description":"groups our record refused (e.g. a plan whose policy forbids exceptions)"},"pushedBy":{"type":"string","enum":["inventory-drain","ari-projector"]},"poll":{"type":"string","description":"GET path to watch this batch land"},"warnings":{"description":"Accepted, but worth a look: an availability above the room type's room count (an oversell the channels will sell). Absent when there is nothing to say","type":"array","items":{"type":"object","properties":{"roomTypeId":{"type":"integer"},"units":{"type":"integer","description":"Rooms of this type in our record"},"requested":{"type":"integer","description":"The highest count this request set for it"},"message":{"type":"string"}},"required":["roomTypeId","units","requested","message"],"additionalProperties":false}},"priceWarnings":{"description":"Accepted, but far outside the plan's standing price, on a property whose price band only warns (§6.6). At most 20; absent when there is nothing to say","type":"array","items":{"type":"object","properties":{"ratePlanId":{"type":"integer"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Hotel-local calendar date, YYYY-MM-DD"},"rateMinor":{"type":"integer","description":"The price this request set, in hundredths of the major unit"},"standingMinor":{"type":"integer","description":"The plan's standing price, in hundredths of the major unit"},"rate":{"description":"The same price in major units, as a decimal string (\"4500.50\")","type":"string"},"standing":{"description":"The plan's standing price in major units, as a decimal string","type":"string"},"message":{"type":"string"}},"required":["ratePlanId","date","rateMinor","standingMinor","message"],"additionalProperties":false}},"rounded":{"description":"Prices this request sent that could not be kept exactly as sent, each with what was kept and why (§2.10): more decimals than the currency has, or a fraction in a currency that has none. At most 20; absent when every price was kept as sent","type":"array","items":{"type":"object","properties":{"field":{"type":"string","description":"Where in the request the amount sat, for example \"updates[3].rate\""},"sent":{"type":"string","description":"The amount as it was sent"},"kept":{"type":"string","description":"The amount as it is kept, in major units with the currency's own decimals"},"reason":{"type":"string","description":"Why, in a sentence; may change, do not branch on it"}},"required":["field","sent","kept","reason"],"additionalProperties":false}},"roundedCount":{"description":"How many of the request's prices were rounded in all; present with rounded","type":"integer"},"lane":{"description":"true when the write was taken through the safety lane: the integration is paused or over a budget, and this write only closed inventory (§6.6)","type":"boolean"},"heldUntilGoLive":{"description":"true on PUT /rates and PUT /restrictions for a hotel that is not live yet (§2.15): the values are in our record and are pushed when the hotel goes live (POST /go-live), not before. Absent on a live hotel, and on PUT /availability: a room count is sent at once, live or not","type":"boolean"},"notices":{"description":"What this write did not do, or will not go on doing, one plain sentence each with a stable code and what to do (§2.20). Warnings first. At most 20; absent when there is nothing to say","type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["NOT_SOURCE_OF_TRUTH","ROOM_TYPE_NOT_LINKED","PLAN_NOT_LINKED","PLAN_NOT_MAPPED","ROOM_STILL_ON_SALE","OTA_LINKED_RATES_NOT_REACHED","STAY_RULES_FROM_ANOTHER_PLAN","PER_OTA_PLANS_FOLLOW","PER_OTA_PLAN_FOLLOWS_PARENT","VALUE_HELD","COUNT_WAS_REFUSED","COUNT_ZERO_IS_NOT_STOP_SELL","STOP_SELL_IS_NOT_A_COUNT","COUNT_OPEN_BUT_PLANS_STOPPED","NEW_DATES_OPEN_CLOSED","FAR_NIGHTS_NEED_A_COUNT","ENGINE_WILL_REPRICE","ENGINE_WILL_RECOUNT","DRIFT_REPAIR_OFF"],"description":"Stable: branch on it. A code you do not know is a notice added later; show its message"},"level":{"type":"string","enum":["warning","info"],"description":"warning: our record shows what you sent does not do the whole job (something still sells, nothing is sent, a rule will undo it) · info: how it works, said so the next surprise is not one"},"message":{"type":"string","description":"What is going on, in a sentence a person can read; may change, do not branch on it"},"action":{"type":"string","description":"What to do about it, naming the call"},"roomTypeId":{"description":"The room type it is about","type":"integer"},"ratePlanIds":{"description":"The rate plans it is about (the ones you wrote)","type":"array","items":{"type":"integer"}},"otherRatePlanIds":{"description":"Other plans it names: the ones still selling, the plan that carries the star, the per-OTA plans","type":"array","items":{"type":"integer"}},"channels":{"description":"The connected channels it is about","type":"array","items":{"type":"object","properties":{"channelId":{"type":"string"},"kind":{"type":"string","description":"BookingCom, Expedia, Agoda, Goibibo, AirBNB, …"}},"required":["channelId","kind"],"additionalProperties":false}},"dateFrom":{"description":"The first night it is about","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"dateTo":{"description":"The last night it is about","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"nights":{"description":"How many nights between dateFrom and dateTo it is about (they need not be consecutive)","type":"integer"}},"required":["code","level","message","action"],"additionalProperties":false}},"noticesOmitted":{"description":"How many more notices there were past the 20 listed; present only when some were left out","type":"integer"}},"required":["batchId","resource","requestedCells","acceptedCells","noopCells","rejected","pushedBy","poll"],"additionalProperties":false},"BatchStatus":{"type":"object","properties":{"batchId":{"type":"string","format":"uuid"},"resource":{"type":"string","enum":["availability","rates","restrictions"]},"createdAt":{"type":"string"},"requestedCells":{"type":"integer"},"acceptedCells":{"type":"integer"},"noopCells":{"type":"integer"},"rejected":{"type":"array","items":{"type":"object","properties":{"cells":{"type":"integer"},"error":{"type":"string"}},"required":["cells","error"],"additionalProperties":false}},"status":{"type":"string","enum":["landed","pending","failed"]},"pendingCells":{"type":"integer"},"parkedCells":{"type":"integer","description":"Cells of this batch the channel manager refused: held, not re-sent (§6.6). More than 0 reads failed"},"lastError":{"description":"Why it has not landed. For a refused value: the channel manager's own words. While it waits on a sender that is failing: one fixed sentence that says what kind of failure it is. null when nothing is wrong","type":["string","null"]},"unreachable":{"description":"Cells written to our record that reach no channel, by room type or rate plan. Not-linked cells are not counted as pending (they are sent nowhere); not-mapped ones are sent and counted like any other","type":"array","items":{"type":"object","properties":{"roomTypeId":{"description":"The room type, on an availability batch","type":"integer"},"ratePlanId":{"description":"The rate plan, on a rates or restrictions batch","type":"integer"},"cells":{"type":"integer","description":"How many of the batch's cells are this room type's or plan's"},"status":{"type":"string","enum":["not-linked","not-mapped"],"description":"not-linked: the room type or plan has no link to the channel manager, so nothing was sent for it (GET /catalog shows its sync state); the batch reads failed. not-mapped: linked and sent, but no connected channel that is switched on sells the plan, by what was last read of the hotel's connections (nightly): nothing sells or stops because of it. A not-mapped plan does not fail the batch"},"message":{"type":"string"}},"required":["cells","status","message"],"additionalProperties":false}}},"required":["batchId","resource","createdAt","requestedCells","acceptedCells","noopCells","rejected","status","pendingCells","parkedCells","lastError"],"additionalProperties":false},"SyncStatus":{"type":"object","properties":{"propertyId":{"type":"integer"},"sandbox":{"type":"boolean","description":"true on a sandbox property (a zsk_test_ key): pushes land in our record and stop there, so IN_SYNC means recorded"},"ariAuthoritative":{"type":"boolean","description":"false = the hotel is not live yet and nothing is pushed: GET /readiness says what is missing, POST /go-live switches it on"},"inventory":{"type":"object","properties":{"state":{"type":"string","enum":["IN_SYNC","PENDING","OUT_OF_SYNC","DISABLED"]},"pendingCells":{"type":"integer"},"lastOkAt":{"type":["string","null"]},"lastError":{"description":"Why the last try failed, as one of these fixed sentences: The channel manager is limiting updates for now. They go out by themselves as the limit allows. · The channel manager did not answer. We keep trying; nothing is needed from you. · The channel manager refused our access for this hotel. We are looking at it; nothing is needed from you. · The channel manager did not accept the update. We keep trying, and we are looking at it. · The update could not be sent. We keep trying. null when nothing is wrong","type":["string","null"]},"outOfSyncSince":{"type":["string","null"]}},"required":["state","pendingCells","lastOkAt","lastError","outOfSyncSince"],"additionalProperties":false},"rates":{"type":"object","properties":{"dirtyCells":{"type":"integer","description":"rate/restriction cells waiting for the projector"},"parkedCells":{"type":"integer","description":"rate/restriction cells the channel manager refused: held, no longer re-sent, their batch reads failed. Send a corrected value for those nights (§6.6)"},"lastPushAt":{"type":["string","null"]},"lastErrorAt":{"type":["string","null"]},"lastError":{"description":"Why the last try failed, as one of these fixed sentences: The channel manager is limiting updates for now. They go out by themselves as the limit allows. · The channel manager did not answer. We keep trying; nothing is needed from you. · The channel manager refused our access for this hotel. We are looking at it; nothing is needed from you. · The channel manager did not accept the update. We keep trying, and we are looking at it. · The update could not be sent. We keep trying. null when nothing is wrong","type":["string","null"]},"driftCells":{"description":"Nights where the last read of the channel manager found it holding something other than our record (a price or stay rule changed in its own screen or on an OTA extranet). 0 = the last read agreed. The cells are pushed as channel.drift.detected","type":"integer"},"driftSeenAt":{"description":"When that read found them; null when nothing differs","type":["string","null"]}},"required":["dirtyCells","parkedCells","lastPushAt","lastErrorAt","lastError"],"additionalProperties":false},"shield":{"type":"object","properties":{"level":{"type":"string","enum":["CLEAR","WATCH","PAUSED","SUSPENDED"],"description":"CLEAR nothing held against the integration · WATCH noted, nothing refused · PAUSED only writes that close inventory are accepted · SUSPENDED every write refused until ZimmerStack releases it"},"reason":{"description":"Why, when the level is not CLEAR","type":["string","null"]},"until":{"description":"When a pause ends on its own (ISO instant); null = until released, or not paused","type":["string","null"]}},"required":["level","reason","until"],"description":"Where this integration stands with the channel shield. Reads and bookings are never affected","additionalProperties":false},"newestPendingBatch":{"anyOf":[{"type":"object","properties":{"batchId":{"type":"string","format":"uuid"},"resource":{"type":"string","enum":["availability","rates","restrictions"]},"createdAt":{"type":"string"},"requestedCells":{"type":"integer"},"acceptedCells":{"type":"integer"},"noopCells":{"type":"integer"},"rejected":{"type":"array","items":{"type":"object","properties":{"cells":{"type":"integer"},"error":{"type":"string"}},"required":["cells","error"],"additionalProperties":false}},"status":{"type":"string","enum":["landed","pending","failed"]},"pendingCells":{"type":"integer"},"parkedCells":{"type":"integer","description":"Cells of this batch the channel manager refused: held, not re-sent (§6.6). More than 0 reads failed"},"lastError":{"description":"Why it has not landed. For a refused value: the channel manager's own words. While it waits on a sender that is failing: one fixed sentence that says what kind of failure it is. null when nothing is wrong","type":["string","null"]},"unreachable":{"description":"Cells written to our record that reach no channel, by room type or rate plan. Not-linked cells are not counted as pending (they are sent nowhere); not-mapped ones are sent and counted like any other","type":"array","items":{"type":"object","properties":{"roomTypeId":{"description":"The room type, on an availability batch","type":"integer"},"ratePlanId":{"description":"The rate plan, on a rates or restrictions batch","type":"integer"},"cells":{"type":"integer","description":"How many of the batch's cells are this room type's or plan's"},"status":{"type":"string","enum":["not-linked","not-mapped"],"description":"not-linked: the room type or plan has no link to the channel manager, so nothing was sent for it (GET /catalog shows its sync state); the batch reads failed. not-mapped: linked and sent, but no connected channel that is switched on sells the plan, by what was last read of the hotel's connections (nightly): nothing sells or stops because of it. A not-mapped plan does not fail the batch"},"message":{"type":"string"}},"required":["cells","status","message"],"additionalProperties":false}}},"required":["batchId","resource","createdAt","requestedCells","acceptedCells","noopCells","rejected","status","pendingCells","parkedCells","lastError"],"additionalProperties":false},{"type":"null"}]}},"required":["propertyId","sandbox","ariAuthoritative","inventory","rates","shield","newestPendingBatch"],"additionalProperties":false},"BookingCreate":{"type":"object","properties":{"externalReference":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]*$","description":"Your own reservation id; unique per property. A retried POST with the same value returns the same booking while it is live and yours; after a cancel, a new stay needs a new reference (409 EXTERNAL_REFERENCE_REUSED otherwise)"},"checkIn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Hotel-local calendar date, YYYY-MM-DD"},"checkOut":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Exclusive: the checkout day is not a night"},"currency":{"type":"string","minLength":3,"maxLength":3,"description":"ISO 4217; must equal the property's (GET /property)"},"guest":{"type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":120,"description":"Full name as the guest typed it"},"phone":{"allOf":[{"type":"string"},{"type":"string","pattern":"^\\+?\\d{7,15}$"}],"description":"Guest phone, digits with an optional leading +"},"email":{"type":"string","maxLength":254,"format":"email","description":"Guest email, when you have it; we write to it only if the owner switches our confirmation on"},"notes":{"type":"string","maxLength":2000,"description":"Special requests for the desk; shown in the PMS, never sent anywhere"}},"required":["name","phone"],"additionalProperties":false,"description":"Who booked; found or created in the PMS by phone"},"rooms":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"roomTypeId":{"type":"integer","exclusiveMinimum":0,"description":"ZimmerStack room type id: roomTypes[].id from GET /catalog, never guessed"},"ratePlanId":{"type":"integer","exclusiveMinimum":0,"description":"Optional: the plan the guest booked, ratePlans[].id from GET /catalog; must belong to roomTypeId. Decides the meal plan; omitted = room only (EP)"},"adults":{"type":"integer","minimum":1,"maximum":20,"description":"Adults in this room; at most the room type's maxAdults"},"children":{"type":"integer","minimum":0,"maximum":10,"description":"Children in this room; default 0; at most the room type's maxChildren"},"nightlyRate":{"anyOf":[{"type":"number","minimum":0},{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$"}],"description":"The nightly price YOU charged for this room, MAJOR units (e.g. 4500 or \"4500.00\"), 1 to 21474836, taxes as you sold them"}},"required":["roomTypeId","adults","nightlyRate"],"additionalProperties":false},"description":"One entry per ROOM; two rooms of the same type are two entries"},"nightlyRateIncludesTaxes":{"type":"boolean","description":"How to read nightlyRate at a hotel outside India that has confirmed its tax lines. true (the default): the rate is what the guest paid online; it is split into the hotel's lines and totalAmount does not move, except for a line the hotel collects at the property itself (a city tax per person), which is added and paid at the hotel. false: the rate is as the hotel sells it at its desk; the lines the hotel adds on top are added and totalAmount grows, while lines the hotel keeps inside its prices stay inside. Read totalAmount and taxes in the answer. false is refused with 409 TAXES_NOT_CONFIGURED at a hotel with no confirmed lines (every hotel in India) and with 409 TAXES_INSIDE_RATES at a hotel that adds nothing on top; true, or omitting the field, changes nothing at a hotel with no confirmed lines"},"payment":{"type":"object","properties":{"amount":{"anyOf":[{"type":"number","minimum":0},{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$"}],"description":"What you collected so far, MAJOR units; 0 = nothing collected (pay at hotel); never more than the stay's total"},"method":{"type":"string","enum":["ONLINE","CARD","UPI","NETBANKING","CASH"],"description":"How you collected it"},"reference":{"type":"string","maxLength":120,"description":"Your gateway's payment or transaction id"}},"required":["amount","method"],"additionalProperties":false,"description":"Omit when nothing was collected; an amount above 0 needs the bookings:payments scope"},"notes":{"type":"string","maxLength":2000,"description":"Booking-level remarks for the desk (promo code, source page)"}},"required":["externalReference","checkIn","checkOut","currency","guest","rooms"],"additionalProperties":false},"BookingCancel":{"type":"object","properties":{"reason":{"type":"string","maxLength":500,"description":"Why; kept on the booking's activity log"}},"additionalProperties":false},"BookingsQuery":{"type":"object","properties":{"since":{"type":"string","format":"date-time","description":"Created on or after this instant (ISO 8601); default: the last 7 days"},"externalReference":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]*$","description":"Your own reservation id; unique per property. A retried POST with the same value returns the same booking while it is live and yours; after a cancel, a new stay needs a new reference (409 EXTERNAL_REFERENCE_REUSED otherwise)"},"limit":{"type":"integer","minimum":1,"maximum":100,"description":"1 to 100; default 50"}},"additionalProperties":false},"Booking":{"type":"object","properties":{"bookingId":{"type":"integer"},"reference":{"type":"string"},"externalReference":{"type":["string","null"]},"status":{"type":"string","enum":["UPCOMING","INHOUSE","COMPLETED","CANCELLED","NOSHOW"]},"checkIn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Hotel-local calendar date, YYYY-MM-DD"},"checkOut":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Hotel-local calendar date, YYYY-MM-DD"},"nights":{"type":"integer"},"currency":{"type":"string"},"totalAmount":{"type":"string","description":"MAJOR units, two decimals: the whole stay"},"totalPaid":{"type":"string","description":"MAJOR units, two decimals: collected so far"},"balanceDue":{"type":"string","description":"MAJOR units, two decimals: owed at the hotel"},"guest":{"type":"object","properties":{"name":{"type":"string"},"phone":{"type":"string"},"email":{"type":["string","null"]}},"required":["name","phone","email"],"additionalProperties":false},"rooms":{"type":"array","items":{"type":"object","properties":{"bookingRoomId":{"type":"integer"},"roomTypeId":{"type":"integer"},"ratePlanId":{"type":["integer","null"]},"mealPlan":{"type":"string","enum":["EP","CP","MAP","AP"]},"adults":{"type":"integer"},"children":{"type":"integer"},"nightlyRate":{"type":"string","description":"MAJOR units, two decimals"},"status":{"type":"string","enum":["UPCOMING","CHECKEDIN","CHECKEDOUT","CANCELLED","NOSHOW"]}},"required":["bookingRoomId","roomTypeId","ratePlanId","mealPlan","adults","children","nightlyRate","status"],"additionalProperties":false}},"inventory":{"type":"object","properties":{"eventRecorded":{"type":"boolean"},"channelManager":{"type":"boolean","description":"false = this property has no channel manager; nothing is pushed"},"pushedBy":{"type":"string","const":"inventory-drain"}},"required":["eventRecorded","channelManager","pushedBy"],"additionalProperties":false},"replay":{"type":"boolean"},"createdAt":{"type":"string"},"cancelledAt":{"type":["string","null"]},"taxes":{"type":"object","properties":{"nightlyRateIncludesTaxes":{"type":"boolean","description":"How the nightly rate was read when the booking was made: true = it was split into the lines; false = lines the hotel adds on top were added to the total"},"lines":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"The line's filing code as the hotel set it up (for example TH-VAT)"},"name":{"type":"string","description":"The line's name as the hotel's bill prints it"},"kind":{"type":"string","enum":["TAX","FEE","PASS_THROUGH"],"description":"TAX is owed to an authority; FEE is the hotel's own charge (a service charge); PASS_THROUGH is held for someone else"},"includedInRate":{"type":"boolean","description":"true: inside the nightly rate; false: added on top of it"},"amount":{"type":"string","description":"MAJOR units, two decimals, for the whole stay; 0.00 when the desk waived the line"}},"required":["code","name","kind","includedInRate","amount"],"additionalProperties":false},"description":"The hotel's own tax lines on this booking, in the order the hotel applies them"},"includedInRates":{"type":"string","description":"MAJOR units, two decimals: the part of the lines that sits inside the nightly rates"},"addedToTotal":{"type":"string","description":"MAJOR units, two decimals: the part of the lines added on top; already inside totalAmount"}},"required":["nightlyRateIncludesTaxes","lines","includedInRates","addedToTotal"],"description":"The hotel's own tax lines on this booking. Present only where the hotel has confirmed them (outside India); absent on every other booking","additionalProperties":false}},"required":["bookingId","reference","externalReference","status","checkIn","checkOut","nights","currency","totalAmount","totalPaid","balanceDue","guest","rooms","inventory","replay","createdAt","cancelledAt"],"additionalProperties":false},"BookingsList":{"type":"object","properties":{"since":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"bookingId":{"type":"integer"},"reference":{"type":"string"},"externalReference":{"type":["string","null"]},"status":{"type":"string","enum":["UPCOMING","INHOUSE","COMPLETED","CANCELLED","NOSHOW"]},"checkIn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Hotel-local calendar date, YYYY-MM-DD"},"checkOut":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Hotel-local calendar date, YYYY-MM-DD"},"nights":{"type":"integer"},"currency":{"type":"string"},"totalAmount":{"type":"string","description":"MAJOR units, two decimals: the whole stay"},"totalPaid":{"type":"string","description":"MAJOR units, two decimals: collected so far"},"balanceDue":{"type":"string","description":"MAJOR units, two decimals: owed at the hotel"},"guest":{"type":"object","properties":{"name":{"type":"string"},"phone":{"type":"string"},"email":{"type":["string","null"]}},"required":["name","phone","email"],"additionalProperties":false},"rooms":{"type":"array","items":{"type":"object","properties":{"bookingRoomId":{"type":"integer"},"roomTypeId":{"type":"integer"},"ratePlanId":{"type":["integer","null"]},"mealPlan":{"type":"string","enum":["EP","CP","MAP","AP"]},"adults":{"type":"integer"},"children":{"type":"integer"},"nightlyRate":{"type":"string","description":"MAJOR units, two decimals"},"status":{"type":"string","enum":["UPCOMING","CHECKEDIN","CHECKEDOUT","CANCELLED","NOSHOW"]}},"required":["bookingRoomId","roomTypeId","ratePlanId","mealPlan","adults","children","nightlyRate","status"],"additionalProperties":false}},"inventory":{"type":"object","properties":{"eventRecorded":{"type":"boolean"},"channelManager":{"type":"boolean","description":"false = this property has no channel manager; nothing is pushed"},"pushedBy":{"type":"string","const":"inventory-drain"}},"required":["eventRecorded","channelManager","pushedBy"],"additionalProperties":false},"replay":{"type":"boolean"},"createdAt":{"type":"string"},"cancelledAt":{"type":["string","null"]},"taxes":{"type":"object","properties":{"nightlyRateIncludesTaxes":{"type":"boolean","description":"How the nightly rate was read when the booking was made: true = it was split into the lines; false = lines the hotel adds on top were added to the total"},"lines":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"The line's filing code as the hotel set it up (for example TH-VAT)"},"name":{"type":"string","description":"The line's name as the hotel's bill prints it"},"kind":{"type":"string","enum":["TAX","FEE","PASS_THROUGH"],"description":"TAX is owed to an authority; FEE is the hotel's own charge (a service charge); PASS_THROUGH is held for someone else"},"includedInRate":{"type":"boolean","description":"true: inside the nightly rate; false: added on top of it"},"amount":{"type":"string","description":"MAJOR units, two decimals, for the whole stay; 0.00 when the desk waived the line"}},"required":["code","name","kind","includedInRate","amount"],"additionalProperties":false},"description":"The hotel's own tax lines on this booking, in the order the hotel applies them"},"includedInRates":{"type":"string","description":"MAJOR units, two decimals: the part of the lines that sits inside the nightly rates"},"addedToTotal":{"type":"string","description":"MAJOR units, two decimals: the part of the lines added on top; already inside totalAmount"}},"required":["nightlyRateIncludesTaxes","lines","includedInRates","addedToTotal"],"description":"The hotel's own tax lines on this booking. Present only where the hotel has confirmed them (outside India); absent on every other booking","additionalProperties":false}},"required":["bookingId","reference","externalReference","status","checkIn","checkOut","nights","currency","totalAmount","totalPaid","balanceDue","guest","rooms","inventory","replay","createdAt","cancelledAt"],"additionalProperties":false}}},"required":["since","items"],"additionalProperties":false},"SandboxBookingCreate":{"type":"object","properties":{"roomTypeId":{"description":"ZimmerStack room type id (GET /catalog). Name the room type by this or by roomTypeRef, exactly one","type":"integer","exclusiveMinimum":0},"roomTypeRef":{"description":"Your own ref for the room type: the one you gave it in PUT /catalog/room-types or POST /properties (GET /catalog reads it back). Name the room type by this or by roomTypeId, exactly one. A room type the hotel's owner made has no ref of yours: name it by roomTypeId","type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9._:-]+$"},"checkIn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Arrival, YYYY-MM-DD in the property's timezone; today or later, within the horizon"},"nights":{"type":"integer","minimum":1,"maximum":30,"description":"1–30; checkout = checkIn + nights"},"rooms":{"description":"Rooms of this type the guest books (1–5); default 1","type":"integer","minimum":1,"maximum":5},"adults":{"description":"Adults per room; default 2","type":"integer","minimum":1,"maximum":6},"guestName":{"description":"The guest's name; default a fictional one","type":"string","minLength":1,"maxLength":120},"otaName":{"description":"The channel the booking pretends to arrive from; default Booking.com. \"Website\" simulates a booking on the hotel's own website (our booking engine): it sends direct.booking.created and is listed by GET /direct-bookings, not GET /channel-bookings","type":"string","enum":["Booking.com","Expedia","Agoda","Airbnb","MakeMyTrip","Goibibo","Website"]},"paidByOta":{"description":"true = the channel collected the money (for Website: the guest paid online), so totalPaid equals the total; default false (pay at the property)","type":"boolean"},"arrivesCancelled":{"description":"true = a cancellation that arrives with no booking before it (docs §2.4): the booking is recorded CANCELLED, no night is taken, and the one event sent is channel.booking.cancelled, with no created before it. What a hotel that moved from another channel manager sees when a guest cancels an older booking. Not for Website","type":"boolean"}},"required":["checkIn","nights"],"additionalProperties":false},"SandboxBookingModify":{"type":"object","properties":{"checkIn":{"description":"New arrival, YYYY-MM-DD in the property's timezone; today or later","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"nights":{"description":"New length of stay, 1–30","type":"integer","minimum":1,"maximum":30},"rooms":{"description":"New number of rooms, 1–5","type":"integer","minimum":1,"maximum":5},"adults":{"description":"New adults per room","type":"integer","minimum":1,"maximum":6},"guestName":{"description":"The guest renamed, as a channel sometimes does","type":"string","minLength":1,"maxLength":120}},"additionalProperties":false},"Channels":{"type":"object","properties":{"asOf":{"description":"When the connection list was last captured; null when never","type":["string","null"]},"channels":{"type":"array","items":{"type":"object","properties":{"channelId":{"type":"string","description":"The channel manager's id for this connection"},"kind":{"type":"string","description":"The channel: BookingCom, Expedia, Agoda, Airbnb, GoMMT, …"},"title":{"description":"The connection's title in the channel manager","type":["string","null"]},"seenAt":{"type":"string","description":"When our record last saw this connection (the nightly settings sweep)"},"openIssues":{"type":"array","items":{"type":"object","properties":{"event":{"type":"string","description":"One of: disconnect_channel · inventory_out_of_sync · rates_out_of_sync · cm_linked_not_enabled · booking_unmapped_room · ari_drift · sync_error · sync_warning · rate_error · settings_changed · booking_unmapped_rate · ota_overbooking"},"raisedAt":{"type":"string"}},"required":["event","raisedAt"],"additionalProperties":false},"description":"The open problems of this connection. A problem that can end is listed until it ends; a report of one failed update is listed for 72 hours. Never a note of ZimmerStack's own checks"},"modifier":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"action":{"type":"string","enum":["increase","decrease"],"description":"Raise or lower what this channel is sent"},"type":{"type":"string","enum":["percent","fixed"],"description":"percent of the price, or a fixed amount in MAJOR units of the property's currency"},"value":{"type":"number","exclusiveMinimum":0,"maximum":1000000,"description":"How much: 18 with type percent is 18 %; 200 with type fixed is 200.00 in the property's currency. Always positive: choose decrease instead of a minus sign. Two decimals at most"},"amount":{"description":"On a fixed step: the same amount in major units as a decimal string with the currency's own decimals (\"200.00\"). Absent on a percent step","type":"string"}},"required":["action","type","value"],"additionalProperties":false}},{"type":"null"}],"description":"This channel's price modifier (§2.8): the steps the channel manager applies, in order, to every price it sends this channel. [] = prices go as they are. null = the channel holds a rule set by hand in the channel manager that this API cannot express; PUT /channels/{channelId}/modifier replaces it"},"markupPlan":{"anyOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["markup","manual"],"description":"markup: this channel sells a copy of each plan priced a fixed step from it · manual: this channel has prices of its own for some nights"},"direction":{"type":"string","enum":["increase","decrease"]},"percent":{"description":"Percent of the price, when the step is a percentage","type":["number","null"]},"amount":{"description":"MAJOR units, when the step is a fixed amount","type":["number","null"]}},"required":["mode","direction","percent","amount"],"additionalProperties":false},{"type":"null"}],"description":"A separate adjustment the owner set for this channel in the ZimmerStack Channels app, applied before the modifier. Read-only here; null = none"}},"required":["channelId","kind","title","seenAt","openIssues","modifier","markupPlan"],"additionalProperties":false}},"propertyIssues":{"type":"array","items":{"type":"object","properties":{"event":{"type":"string"},"raisedAt":{"type":"string"}},"required":["event","raisedAt"],"additionalProperties":false},"description":"Open problems not tied to one connection (for example room counts not going out), by the same rule and the same names as openIssues"}},"required":["asOf","channels","propertyIssues"],"additionalProperties":false},"RequestLog":{"type":"object","properties":{"since":{"type":"string","description":"The instant the list starts at, as applied"},"retentionDays":{"type":"integer","description":"How many days a request stays readable"},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The log entry's id"},"at":{"type":"string","description":"When the request arrived (ISO 8601, UTC)"},"method":{"type":"string","description":"GET, PUT, POST or DELETE"},"route":{"type":"string","description":"The route's pattern, for example \"/bookings/:bookingId\": never the address as sent, so no booking or guest id is kept"},"status":{"type":"integer","description":"The HTTP status of the answer"},"errorCode":{"description":"data.code of a refusal (RATE_LIMITED, VALIDATION, …); null on a success","type":["string","null"]},"address":{"description":"The address the request came from. One you do not recognise is the first sign of a leaked key","type":["string","null"]},"durationMs":{"type":"integer","description":"How long the answer took, in milliseconds"},"requestId":{"description":"The X-Request-Id the answer carried: quote it to support","type":["string","null"]},"propertyId":{"description":"The hotel the request was about; null on a company key's call that names none (GET /properties)","type":["integer","null"]},"keyId":{"description":"The key the request ran as; for a company key, its id on that hotel","type":["integer","null"]}},"required":["id","at","method","route","status","errorCode","address","durationMs","requestId","propertyId","keyId"],"additionalProperties":false},"description":"Newest first. Facts about each call only: never a body, a query or a guest's data"},"more":{"type":"boolean","description":"More requests matched than limit: ask again with cursor = nextCursor"},"nextCursor":{"description":"Pass as cursor for the next, older, page; null when there is no more","type":["string","null"]}},"required":["since","retentionDays","items","more","nextCursor"],"additionalProperties":false},"ModifierWrite":{"type":"object","properties":{"steps":{"maxItems":5,"type":"array","items":{"type":"object","properties":{"action":{"type":"string","enum":["increase","decrease"],"description":"Raise or lower what this channel is sent"},"type":{"type":"string","enum":["percent","fixed"],"description":"percent of the price, or a fixed amount in MAJOR units of the property's currency"},"value":{"anyOf":[{"type":"number","exclusiveMinimum":0},{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$"}],"description":"How much, a number or a decimal string: 18 with type percent is 18 %; 200 or \"200.00\" with type fixed is 200.00 in the property's currency. Always positive: choose decrease instead of a minus sign. A fixed amount is kept to the currency's own decimals (§2.10); a percentage to two"},"amount":{"description":"What a read prints beside a fixed step. Leave it out, or send it back unchanged: when present it must equal value","type":"string","pattern":"^\\d+(\\.\\d{1,2})?$"}},"required":["action","type","value"],"additionalProperties":false},"description":"The whole modifier, in the order it is applied; replaces what the channel holds. At most 5 steps. An empty list removes it: prices go to the channel as they are"}},"required":["steps"],"additionalProperties":false},"ModifierResult":{"type":"object","properties":{"channelId":{"type":"string"},"kind":{"type":"string","description":"The channel: BookingCom, Expedia, Agoda, Airbnb, GoMMT, …"},"title":{"type":["string","null"]},"modifier":{"type":"array","items":{"type":"object","properties":{"action":{"type":"string","enum":["increase","decrease"],"description":"Raise or lower what this channel is sent"},"type":{"type":"string","enum":["percent","fixed"],"description":"percent of the price, or a fixed amount in MAJOR units of the property's currency"},"value":{"type":"number","exclusiveMinimum":0,"maximum":1000000,"description":"How much: 18 with type percent is 18 %; 200 with type fixed is 200.00 in the property's currency. Always positive: choose decrease instead of a minus sign. Two decimals at most"},"amount":{"description":"On a fixed step: the same amount in major units as a decimal string with the currency's own decimals (\"200.00\"). Absent on a percent step","type":"string"}},"required":["action","type","value"],"additionalProperties":false},"description":"What the channel holds now"},"changed":{"type":"boolean","description":"false when the channel already held exactly these steps: nothing was sent to the channel manager and nothing was counted"},"notice":{"type":"string","description":"When it takes effect. Always: \"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.\""},"currency":{"description":"ISO 4217: the currency a fixed step's amount is in, the property's","type":"string"},"decimals":{"description":"Digits after the decimal point that currency carries (§2.10)","type":"integer"},"rounded":{"description":"Fixed amounts this request sent that could not be kept exactly as sent, each with what was kept and why (§2.10). Absent when every amount was kept as sent","type":"array","items":{"type":"object","properties":{"field":{"type":"string","description":"Where in the request the amount sat, for example \"updates[3].rate\""},"sent":{"type":"string","description":"The amount as it was sent"},"kept":{"type":"string","description":"The amount as it is kept, in major units with the currency's own decimals"},"reason":{"type":"string","description":"Why, in a sentence; may change, do not branch on it"}},"required":["field","sent","kept","reason"],"additionalProperties":false}}},"required":["channelId","kind","title","modifier","changed","notice"],"additionalProperties":false},"RatesResendAccepted":{"type":"object","properties":{"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Hotel-local calendar date, YYYY-MM-DD"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Hotel-local calendar date, YYYY-MM-DD"},"cells":{"type":"integer","description":"Rate-plan nights marked to be sent again. They travel like any write: watch rates.dirtyCells on GET /sync fall to 0"},"parkedLeft":{"type":"integer","description":"Nights left out because the channel manager refused their value earlier (rates.parkedCells on GET /sync): send a corrected value for those"},"watch":{"type":"string","description":"GET path that says when it has landed"},"notice":{"type":"string"}},"required":["from","to","cells","parkedLeft","watch","notice"],"additionalProperties":false},"FullSyncResult":{"type":"object","properties":{"channelId":{"type":"string","description":"The OTA connection, as GET /channels names it"},"started":{"type":"boolean","description":"true: the channel manager is sending this OTA everything it holds again. false only on a sandbox, where nothing is sent"},"nextAt":{"description":"When this connection takes its next full sync (ISO 8601): one hour after this one started. null on a sandbox","type":["string","null"]},"notice":{"description":"Only on a sandbox: \"Nothing was sent: a sandbox has no real OTA. On a live hotel the same request starts a full sync.\"","type":"string"}},"required":["channelId","started","nextAt"],"additionalProperties":false},"PropertyFullSyncResult":{"type":"object","properties":{"channels":{"type":"array","items":{"type":"object","properties":{"channelId":{"type":"string","description":"The OTA connection, as GET /channels names it"},"started":{"type":"boolean","description":"true: a full sync started on this connection"},"code":{"description":"Only when started is false. RATE_LIMITED: this connection had a full sync within the last hour · CHANNEL_PAUSED: the connection is paused · CHANNEL_NOT_FOUND: the connection is no longer this hotel's · CHANNEL_MANAGER_ERROR: the channel manager did not start it","type":"string","enum":["RATE_LIMITED","CHANNEL_PAUSED","CHANNEL_NOT_FOUND","CHANNEL_MANAGER_ERROR"]},"message":{"description":"The same, in a sentence; may change, branch on code","type":"string"},"retryAt":{"description":"Only with RATE_LIMITED: when this connection takes its next full sync (ISO 8601)","type":"string"}},"required":["channelId","started"],"additionalProperties":false},"description":"One line for each OTA connection of the hotel, in the order they were tried. Empty on a sandbox and on a hotel with no connection"},"started":{"type":"integer","description":"How many connections a full sync started on. The status is 202 when it is 1 or more, 200 when it is 0"},"notice":{"description":"Only on a sandbox: \"Nothing was sent: a sandbox has no real OTA. On a live hotel the same request starts a full sync.\"","type":"string"}},"required":["channels","started"],"additionalProperties":false},"ChannelBookingsQuery":{"type":"object","properties":{"since":{"description":"Changed (created, modified or cancelled) on or after this instant (ISO 8601); default: the last 7 days","type":"string","format":"date-time"},"status":{"description":"Only confirmed (live) or only cancelled bookings; default both","type":"string","enum":["CONFIRMED","CANCELLED"]},"limit":{"description":"1 to 100; default 50","type":"integer","minimum":1,"maximum":100},"cursor":{"description":"The previous page's nextCursor: resume exactly after its last item, even when many bookings changed in the same instant. Takes precedence over since","type":"string","minLength":1,"maxLength":200}},"additionalProperties":false},"ChannelBookingsList":{"type":"object","properties":{"since":{"type":"string","description":"The instant the list starts at, echoed"},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"reference":{"type":"string"},"version":{"type":"integer","description":"Our own counter of this booking's events: 1 on its first event, one more on each later one. A higher version is a later state whatever order deliveries arrived in. On a read it is the booking's current version (0: no event since versions began)"},"status":{"type":"string","enum":["CONFIRMED","CANCELLED"]},"stayStatus":{"type":"string"},"channel":{"type":"object","properties":{"otaName":{"type":"string","description":"The OTA the guest booked on: \"BookingCom\", \"MakeMyTrip\", \"Goibibo\", \"Agoda\", \"Expedia\", \"AirBNB\", \"Hostelworld\", \"GoogleHotelARI\", \"OpenShopping\", or \"unknown\". A MakeMyTrip booking says \"MakeMyTrip\" since 25 Nov 2026 (before: \"Goibibo\"). \"Website\" on a booking made on the hotel's own website. A sandbox booking keeps the name it was made with. Accept a name you do not know"},"otaReservationCode":{"type":"string"},"source":{"type":"string"},"sourceGroup":{"type":"string"}},"required":["otaName","otaReservationCode","source","sourceGroup"],"additionalProperties":false},"stay":{"type":"object","properties":{"checkIn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"checkOut":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"nights":{"type":"integer"},"dayUse":{"type":"boolean"}},"required":["checkIn","checkOut","nights","dayUse"],"additionalProperties":false},"guest":{"type":"object","properties":{"fullName":{"type":"string"},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]},"country":{"type":["string","null"]},"language":{"type":["string","null"]},"contactWithheld":{"type":"string","enum":["retention","unavailable"],"description":"Present when phone and email are null because of a rule, not because the booking has none: \"retention\" = the stay checked out more than 30 days ago (API reads and webhooks alike, a recovered or redelivered event included); \"unavailable\" = an API read that could not be logged just now, ask again. Absent otherwise"}},"required":["fullName","firstName","lastName","country","language"],"additionalProperties":false},"guestNotes":{"type":["string","null"]},"occupancy":{"type":"object","properties":{"adults":{"type":"integer"},"children":{"type":"integer"}},"required":["adults","children"],"additionalProperties":false},"rooms":{"type":"array","items":{"type":"object","properties":{"roomTypeId":{"type":"integer"},"roomTypeName":{"type":"string"},"ratePlanId":{"type":["integer","null"]},"mealPlan":{"type":"string","enum":["EP","CP","MAP","AP"]},"mealPlanSource":{"anyOf":[{"type":"string","enum":["ota","ratePlan","default"]},{"type":"null"}],"description":"Where mealPlan came from. \"ota\": the OTA said it. \"ratePlan\": the OTA said nothing, so it is the meal of the hotel's own rate plan. \"default\": nobody said, so EP. Null on bookings from before 25 Nov 2026"},"mealPlanText":{"description":"The OTA's own words about the meal, as it sent them (at most 500 characters). Show them to the desk. Null when the OTA sent none","type":["string","null"]},"mealPrice":{"anyOf":[{"type":"object","properties":{"amount":{"type":"number","description":"Major units of currency, with two decimals"},"currency":{"type":"string","description":"ISO 4217. The currency the OTA's words name; when they name none, the booking's own"},"basis":{"type":"string","enum":["PER_PERSON_PER_NIGHT","PER_ROOM_PER_NIGHT","PER_PERSON_PER_STAY","PER_STAY","UNKNOWN"],"description":"What the price counts. UNKNOWN when the OTA's words do not say"}},"required":["amount","currency","basis"],"additionalProperties":false},{"type":"null"}],"description":"A price the OTA's words state for one meal the guest can add, for example breakfast on a room-only rate. It is not inside the room's price. Null when the words state none, or more than one"},"adults":{"type":"integer"},"children":{"type":"integer"},"checkIn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"checkOut":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"nights":{"type":"integer"},"dayUse":{"type":"boolean"},"ratePerNight":{"type":"number"},"amount":{"type":"number"},"nightlyRates":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"The night, as a hotel-local date"},"amount":{"type":"number","description":"The OTA's price for this night, in amounts.currency"}},"required":["date","amount"],"additionalProperties":false}},{"type":"null"}],"description":"The OTA's price for each night of this room, in date order. A tax the OTA lists apart is not inside them. Null when the OTA sent none, and on bookings from before 25 Nov 2026"},"commission":{"description":"The OTA's commission on this room as the OTA sent it, in finance.currency. Null when the OTA sent none for the room","type":["number","null"]},"status":{"type":"string"}},"required":["roomTypeId","roomTypeName","mealPlan","adults","children","checkIn","checkOut","nights","dayUse","ratePerNight","amount","status"],"additionalProperties":false}},"amounts":{"type":"object","properties":{"currency":{"type":"string"},"total":{"type":"number"},"paid":{"type":"number"},"balanceDue":{"type":"number"},"paymentCollect":{"type":"string","enum":["ota","property","unknown"]},"receivedCurrency":{"type":"string","description":"ISO 4217. Present only when the OTA sent the booking in another currency than the property's: the amounts in this booking (total, paid, balanceDue, each room's ratePerNight and amount) are then in THIS currency as the OTA sent them, not converted. Absent otherwise"}},"required":["currency","total","paid","balanceDue","paymentCollect"],"additionalProperties":false},"finance":{"anyOf":[{"type":"object","properties":{"otaName":{"type":"string"},"amountBasis":{"type":"string"},"currency":{"type":["string","null"]},"grossAmount":{"type":["number","null"]},"commissionAmount":{"type":["number","null"]},"taxAmount":{"type":["number","null"]},"netPayoutAmount":{"type":["number","null"]},"feeAmount":{"description":"The OTA's own fee on top of its commission, where it sent one; null when it named none. Informational: netPayoutAmount is gross minus commission and does not subtract it","type":["number","null"]},"paymentType":{"description":"How the guest pays, in the OTA's own word (for example \"credit_card\"); null when the OTA sent none. A label only","type":["string","null"]},"virtualCard":{"type":"boolean","description":"true when the OTA pays the property with a virtual card it issues: the guest does not pay the desk for the room. true or false only; the card itself is never sent"},"taxIncludedInAmount":{"description":"true: taxAmount is inside amounts.total. false: it is on top of it. Null when the OTA does not say","type":["boolean","null"]}},"required":["otaName","amountBasis","currency","grossAmount","commissionAmount","taxAmount","netPayoutAmount"],"additionalProperties":false},{"type":"null"}]},"taxes":{"type":"object","properties":{"lines":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string","enum":["TAX","FEE","PASS_THROUGH"]},"includedInRate":{"type":"boolean"},"amount":{"type":"number"}},"required":["code","name","kind","includedInRate","amount"],"additionalProperties":false}},"includedInRates":{"type":"number"},"addedToTotal":{"type":"number"}},"required":["lines","includedInRates","addedToTotal"],"description":"The hotel's own tax lines on this booking. Present only where the hotel has confirmed its taxes (outside India) and the booking has been assessed; absent on every other booking","additionalProperties":false},"cancellation":{"anyOf":[{"type":"object","properties":{"at":{"type":"string"},"reason":{"type":["string","null"]}},"required":["at","reason"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","reference","status","stayStatus","channel","stay","guest","guestNotes","occupancy","rooms","amounts","finance","cancellation","createdAt","updatedAt"],"additionalProperties":false},"description":"Oldest change first — exactly the booking object the webhooks carry"},"more":{"type":"boolean","description":"More rows matched than limit: ask again with cursor = nextCursor"},"nextCursor":{"description":"Pass as cursor to resume exactly after this page. Returned on every page, the last one included (since 22 Nov 2026; null before that when there was no more): keep it and ask with it next time, so nothing is read twice and nothing is skipped","type":["string","null"]}},"required":["since","items","more","nextCursor"],"additionalProperties":false},"ChannelBookingEvent":{"type":"object","properties":{"type":{"type":"string","enum":["channel.booking.created","channel.booking.modified","channel.booking.cancelled"]},"apiVersion":{"type":"string"},"occurredAt":{"type":"string"},"property":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"currency":{"type":"string"},"timezone":{"type":"string"}},"required":["id","name","currency","timezone"],"additionalProperties":false},"data":{"type":"object","properties":{"booking":{"$ref":"#/components/schemas/ChannelBooking"}},"required":["booking"],"additionalProperties":false},"changes":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"previous":{"anyOf":[{"type":"object","properties":{"stay":{"type":"object","properties":{"checkIn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"checkOut":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"nights":{"type":"integer"},"dayUse":{"type":"boolean"}},"required":["checkIn","checkOut","nights","dayUse"],"additionalProperties":false},"amounts":{"type":"object","properties":{"currency":{"type":"string"},"total":{"type":"number"},"paid":{"type":"number"},"balanceDue":{"type":"number"},"paymentCollect":{"type":"string","enum":["ota","property","unknown"]},"receivedCurrency":{"type":"string","description":"ISO 4217. Present only when the OTA sent the booking in another currency than the property's: the amounts in this booking (total, paid, balanceDue, each room's ratePerNight and amount) are then in THIS currency as the OTA sent them, not converted. Absent otherwise"}},"required":["currency","total","paid","balanceDue","paymentCollect"],"additionalProperties":false},"rooms":{"type":"array","items":{"type":"object","properties":{"roomTypeId":{"type":"integer"},"roomTypeName":{"type":"string"},"ratePlanId":{"type":["integer","null"]},"mealPlan":{"type":"string","enum":["EP","CP","MAP","AP"]},"mealPlanSource":{"anyOf":[{"type":"string","enum":["ota","ratePlan","default"]},{"type":"null"}],"description":"Where mealPlan came from. \"ota\": the OTA said it. \"ratePlan\": the OTA said nothing, so it is the meal of the hotel's own rate plan. \"default\": nobody said, so EP. Null on bookings from before 25 Nov 2026"},"mealPlanText":{"description":"The OTA's own words about the meal, as it sent them (at most 500 characters). Show them to the desk. Null when the OTA sent none","type":["string","null"]},"mealPrice":{"anyOf":[{"type":"object","properties":{"amount":{"type":"number","description":"Major units of currency, with two decimals"},"currency":{"type":"string","description":"ISO 4217. The currency the OTA's words name; when they name none, the booking's own"},"basis":{"type":"string","enum":["PER_PERSON_PER_NIGHT","PER_ROOM_PER_NIGHT","PER_PERSON_PER_STAY","PER_STAY","UNKNOWN"],"description":"What the price counts. UNKNOWN when the OTA's words do not say"}},"required":["amount","currency","basis"],"additionalProperties":false},{"type":"null"}],"description":"A price the OTA's words state for one meal the guest can add, for example breakfast on a room-only rate. It is not inside the room's price. Null when the words state none, or more than one"},"adults":{"type":"integer"},"children":{"type":"integer"},"checkIn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"checkOut":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"nights":{"type":"integer"},"dayUse":{"type":"boolean"},"ratePerNight":{"type":"number"},"amount":{"type":"number"},"nightlyRates":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"The night, as a hotel-local date"},"amount":{"type":"number","description":"The OTA's price for this night, in amounts.currency"}},"required":["date","amount"],"additionalProperties":false}},{"type":"null"}],"description":"The OTA's price for each night of this room, in date order. A tax the OTA lists apart is not inside them. Null when the OTA sent none, and on bookings from before 25 Nov 2026"},"commission":{"description":"The OTA's commission on this room as the OTA sent it, in finance.currency. Null when the OTA sent none for the room","type":["number","null"]},"status":{"type":"string"}},"required":["roomTypeId","roomTypeName","mealPlan","adults","children","checkIn","checkOut","nights","dayUse","ratePerNight","amount","status"],"additionalProperties":false}},"occupancy":{"type":"object","properties":{"adults":{"type":"integer"},"children":{"type":"integer"}},"required":["adults","children"],"additionalProperties":false},"guest":{"type":"object","properties":{"fullName":{"type":"string"}},"required":["fullName"],"additionalProperties":false},"status":{"type":"string","enum":["CONFIRMED","CANCELLED"]}},"additionalProperties":false},{"type":"null"}]},"truncated":{"type":"boolean"},"id":{"type":"string"},"mode":{"type":"string","enum":["live","test"]},"sequence":{"type":"integer","description":"The event's place in this hotel's log: one higher than the hotel's last event, across every type. The same number rides the webhook"}},"required":["type","apiVersion","occurredAt","property","data","changes","previous","id","mode","sequence"],"additionalProperties":false},"DirectBookingEvent":{"type":"object","properties":{"type":{"type":"string","enum":["direct.booking.created","direct.booking.modified","direct.booking.cancelled"]},"apiVersion":{"type":"string"},"occurredAt":{"type":"string"},"property":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"currency":{"type":"string"},"timezone":{"type":"string"}},"required":["id","name","currency","timezone"],"additionalProperties":false},"data":{"type":"object","properties":{"booking":{"$ref":"#/components/schemas/ChannelBooking"}},"required":["booking"],"additionalProperties":false},"changes":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"previous":{"anyOf":[{"type":"object","properties":{"stay":{"type":"object","properties":{"checkIn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"checkOut":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"nights":{"type":"integer"},"dayUse":{"type":"boolean"}},"required":["checkIn","checkOut","nights","dayUse"],"additionalProperties":false},"amounts":{"type":"object","properties":{"currency":{"type":"string"},"total":{"type":"number"},"paid":{"type":"number"},"balanceDue":{"type":"number"},"paymentCollect":{"type":"string","enum":["ota","property","unknown"]},"receivedCurrency":{"type":"string","description":"ISO 4217. Present only when the OTA sent the booking in another currency than the property's: the amounts in this booking (total, paid, balanceDue, each room's ratePerNight and amount) are then in THIS currency as the OTA sent them, not converted. Absent otherwise"}},"required":["currency","total","paid","balanceDue","paymentCollect"],"additionalProperties":false},"rooms":{"type":"array","items":{"type":"object","properties":{"roomTypeId":{"type":"integer"},"roomTypeName":{"type":"string"},"ratePlanId":{"type":["integer","null"]},"mealPlan":{"type":"string","enum":["EP","CP","MAP","AP"]},"mealPlanSource":{"anyOf":[{"type":"string","enum":["ota","ratePlan","default"]},{"type":"null"}],"description":"Where mealPlan came from. \"ota\": the OTA said it. \"ratePlan\": the OTA said nothing, so it is the meal of the hotel's own rate plan. \"default\": nobody said, so EP. Null on bookings from before 25 Nov 2026"},"mealPlanText":{"description":"The OTA's own words about the meal, as it sent them (at most 500 characters). Show them to the desk. Null when the OTA sent none","type":["string","null"]},"mealPrice":{"anyOf":[{"type":"object","properties":{"amount":{"type":"number","description":"Major units of currency, with two decimals"},"currency":{"type":"string","description":"ISO 4217. The currency the OTA's words name; when they name none, the booking's own"},"basis":{"type":"string","enum":["PER_PERSON_PER_NIGHT","PER_ROOM_PER_NIGHT","PER_PERSON_PER_STAY","PER_STAY","UNKNOWN"],"description":"What the price counts. UNKNOWN when the OTA's words do not say"}},"required":["amount","currency","basis"],"additionalProperties":false},{"type":"null"}],"description":"A price the OTA's words state for one meal the guest can add, for example breakfast on a room-only rate. It is not inside the room's price. Null when the words state none, or more than one"},"adults":{"type":"integer"},"children":{"type":"integer"},"checkIn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"checkOut":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"nights":{"type":"integer"},"dayUse":{"type":"boolean"},"ratePerNight":{"type":"number"},"amount":{"type":"number"},"nightlyRates":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"The night, as a hotel-local date"},"amount":{"type":"number","description":"The OTA's price for this night, in amounts.currency"}},"required":["date","amount"],"additionalProperties":false}},{"type":"null"}],"description":"The OTA's price for each night of this room, in date order. A tax the OTA lists apart is not inside them. Null when the OTA sent none, and on bookings from before 25 Nov 2026"},"commission":{"description":"The OTA's commission on this room as the OTA sent it, in finance.currency. Null when the OTA sent none for the room","type":["number","null"]},"status":{"type":"string"}},"required":["roomTypeId","roomTypeName","mealPlan","adults","children","checkIn","checkOut","nights","dayUse","ratePerNight","amount","status"],"additionalProperties":false}},"occupancy":{"type":"object","properties":{"adults":{"type":"integer"},"children":{"type":"integer"}},"required":["adults","children"],"additionalProperties":false},"guest":{"type":"object","properties":{"fullName":{"type":"string"}},"required":["fullName"],"additionalProperties":false},"status":{"type":"string","enum":["CONFIRMED","CANCELLED"]},"stayStatus":{"type":"string"}},"additionalProperties":false},{"type":"null"}]},"truncated":{"type":"boolean"},"id":{"type":"string"},"mode":{"type":"string","enum":["live","test"]},"sequence":{"type":"integer","description":"The event's place in this hotel's log: one higher than the hotel's last event, across every type. The same number rides the webhook"}},"required":["type","apiVersion","occurredAt","property","data","changes","previous","id","mode","sequence"],"additionalProperties":false},"ChannelSyncEvent":{"type":"object","properties":{"type":{"type":"string","enum":["channel.sync.alert","channel.sync.recovered"]},"apiVersion":{"type":"string"},"occurredAt":{"type":"string"},"property":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"currency":{"type":"string"},"timezone":{"type":"string"}},"required":["id","name","currency","timezone"],"additionalProperties":false},"data":{"type":"object","properties":{"sync":{"type":"object","properties":{"event":{"type":"string"},"channelId":{"type":["string","null"]},"channelKind":{"type":["string","null"]},"message":{"type":["string","null"]},"raisedAt":{"type":"string"},"resolvedAt":{"type":["string","null"]}},"required":["event","channelId","channelKind","message","raisedAt","resolvedAt"],"additionalProperties":false}},"required":["sync"],"additionalProperties":false},"changes":{"type":"null"},"previous":{"type":"null"},"id":{"type":"string"},"mode":{"type":"string","enum":["live","test"]},"sequence":{"type":"integer","description":"The event's place in this hotel's log: one higher than the hotel's last event, across every type. The same number rides the webhook"}},"required":["type","apiVersion","occurredAt","property","data","changes","previous","id","mode","sequence"],"additionalProperties":false},"ChannelDriftEvent":{"type":"object","properties":{"type":{"type":"string","enum":["channel.drift.detected","channel.drift.healed"]},"apiVersion":{"type":"string"},"occurredAt":{"type":"string"},"property":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"currency":{"type":"string"},"timezone":{"type":"string"}},"required":["id","name","currency","timezone"],"additionalProperties":false},"data":{"type":"object","properties":{"drift":{"type":"object","properties":{"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"cellCount":{"type":"integer"},"resentCount":{"type":"integer"},"healing":{"type":"boolean"},"cells":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["rate","restriction","availability"]},"ratePlanId":{"type":"integer"},"roomTypeId":{"type":"integer"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"field":{"type":"string"},"yours":{"type":["number","boolean","null"]},"channel":{"type":["number","boolean","null"]},"resent":{"type":"boolean"}},"required":["kind","date","field","yours","channel"],"additionalProperties":false}},"truncated":{"type":"boolean"}},"required":["from","to","cellCount","cells","truncated"],"additionalProperties":false}},"required":["drift"],"additionalProperties":false},"changes":{"type":"null"},"previous":{"type":"null"},"id":{"type":"string"},"mode":{"type":"string","enum":["live","test"]},"sequence":{"type":"integer","description":"The event's place in this hotel's log: one higher than the hotel's last event, across every type. The same number rides the webhook"}},"required":["type","apiVersion","occurredAt","property","data","changes","previous","id","mode","sequence"],"additionalProperties":false},"ChannelConnectEvent":{"type":"object","properties":{"type":{"type":"string","enum":["channel.connect.completed","channel.connect.expired"]},"apiVersion":{"type":"string"},"occurredAt":{"type":"string"},"property":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"currency":{"type":"string"},"timezone":{"type":"string"}},"required":["id","name","currency","timezone"],"additionalProperties":false},"data":{"type":"object","properties":{"connect":{"type":"object","properties":{"linkId":{"type":"string"},"channel":{"type":"string"},"channelName":{"type":"string"},"channelId":{"type":["string","null"]},"selling":{"type":"boolean"},"opened":{"type":"boolean"},"futureBookings":{"type":"string","enum":["pulled","failed","none"]}},"required":["linkId","channel","channelName","channelId","selling"],"additionalProperties":false}},"required":["connect"],"additionalProperties":false},"changes":{"type":"null"},"previous":{"type":"null"},"id":{"type":"string"},"mode":{"type":"string","enum":["live","test"]},"sequence":{"type":"integer","description":"The event's place in this hotel's log: one higher than the hotel's last event, across every type. The same number rides the webhook"}},"required":["type","apiVersion","occurredAt","property","data","changes","previous","id","mode","sequence"],"additionalProperties":false},"LoggedEvent":{"description":"One event of a hotel's log: the webhook's own envelope, with its sequence. Tell them apart by type: channel.booking.* and direct.booking.* carry data.booking, channel.sync.* carries data.sync, channel.drift.* carries data.drift, channel.connect.* carries data.connect. A later edition may add a type: skip one you do not know and keep its sequence as your place","anyOf":[{"$ref":"#/components/schemas/ChannelBookingEvent"},{"$ref":"#/components/schemas/DirectBookingEvent"},{"$ref":"#/components/schemas/ChannelSyncEvent"},{"$ref":"#/components/schemas/ChannelDriftEvent"},{"$ref":"#/components/schemas/ChannelConnectEvent"}]},"EventsList":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/LoggedEvent"},"description":"Oldest first. Each item is the webhook's own envelope for that event (id, type, occurredAt, mode, sequence, property, data, changes, previous): see the webhook contract"},"more":{"type":"boolean","description":"More events follow: ask again with after = nextAfter"},"nextAfter":{"type":"integer","description":"The sequence of the last item, or the after you sent when the page is empty. Keep it: it is your place in the log"},"earliestSequence":{"description":"The lowest sequence still kept for this hotel (events are kept 90 days); null when the log is empty. If it is more than one above your after, events in between are no longer kept: reconcile with GET /channel-bookings and GET /direct-bookings","type":["integer","null"]},"retentionDays":{"type":"integer","description":"How long an event stays in the log"}},"required":["items","more","nextAfter","earliestSequence","retentionDays"],"additionalProperties":false},"SandboxNoShow":{"type":"object","properties":{"undo":{"description":"true: the hotel undoes the no-show (the nights are taken again). Default false: the guest did not arrive","type":"boolean"}},"additionalProperties":false},"SandboxSyncEvent":{"type":"object","properties":{"type":{"type":"string","enum":["channel.sync.alert","channel.sync.recovered"],"description":"alert: a problem is raised · recovered: the newest open simulated problem is cleared"},"event":{"description":"Which problem. On an alert, default rate_error. On recovered, clear the newest open problem of this kind; absent, the newest open one of any kind","type":"string","enum":["rate_error","sync_error","disconnect_channel","settings_changed","inventory_out_of_sync"]}},"required":["type"],"additionalProperties":false},"SandboxSyncEventView":{"type":"object","properties":{"event":{"type":"string","description":"The problem: rate_error, sync_error, disconnect_channel, settings_changed or inventory_out_of_sync"},"channelId":{"description":"The pretend channel the problem is on (GET /channels lists it); null for inventory_out_of_sync, which is the property's","type":["string","null"]},"channelKind":{"type":["string","null"]},"raisedAt":{"type":"string"},"resolvedAt":{"type":["string","null"]},"webhook":{"type":"object","properties":{"eventType":{"type":"string","enum":["channel.sync.alert","channel.sync.recovered"]},"queued":{"type":"boolean","description":"The event is in the outbox; every endpoint on the sandbox that takes it receives it within seconds"}},"required":["eventType","queued"],"additionalProperties":false}},"required":["event","channelId","channelKind","raisedAt","resolvedAt","webhook"],"additionalProperties":false},"WebhookEndpoint":{"type":"object","properties":{"id":{"type":"integer"},"mode":{"type":"string","enum":["live","test"],"description":"live: the events of the hotels you may act on · test: your sandboxes'. A key manages the endpoints of its own mode"},"url":{"type":"string"},"description":{"type":["string","null"]},"apiVersion":{"type":"string"},"eventTypes":{"type":"array","items":{"type":"string"}},"includeGuestContact":{"type":"boolean"},"status":{"type":"string","enum":["ACTIVE","PAUSED","SUSPENDED"]},"statusReason":{"type":["string","null"]},"secretVersion":{"type":"integer"},"previousSecretExpiresAt":{"description":"While set, deliveries are also signed with the secret before the last rotation","type":["string","null"]},"notifyEmail":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"lastStoppedAt":{"description":"When it was last paused or suspended: where a recover usually starts","type":["string","null"]},"health":{"type":"object","properties":{"state":{"type":"string","enum":["healthy","failing","paused","suspended"]},"consecutiveFailures":{"type":"integer"},"failingSince":{"type":["string","null"]},"lastSuccessAt":{"type":["string","null"]},"lastFailureAt":{"type":["string","null"]},"lastErrorMessage":{"type":["string","null"]}},"required":["state","consecutiveFailures","failingSince","lastSuccessAt","lastFailureAt","lastErrorMessage"],"additionalProperties":false}},"required":["id","mode","url","description","apiVersion","eventTypes","includeGuestContact","status","statusReason","secretVersion","previousSecretExpiresAt","notifyEmail","createdAt","updatedAt","lastStoppedAt","health"],"additionalProperties":false},"WebhookEndpointList":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"mode":{"type":"string","enum":["live","test"],"description":"live: the events of the hotels you may act on · test: your sandboxes'. A key manages the endpoints of its own mode"},"url":{"type":"string"},"description":{"type":["string","null"]},"apiVersion":{"type":"string"},"eventTypes":{"type":"array","items":{"type":"string"}},"includeGuestContact":{"type":"boolean"},"status":{"type":"string","enum":["ACTIVE","PAUSED","SUSPENDED"]},"statusReason":{"type":["string","null"]},"secretVersion":{"type":"integer"},"previousSecretExpiresAt":{"description":"While set, deliveries are also signed with the secret before the last rotation","type":["string","null"]},"notifyEmail":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"lastStoppedAt":{"description":"When it was last paused or suspended: where a recover usually starts","type":["string","null"]},"health":{"type":"object","properties":{"state":{"type":"string","enum":["healthy","failing","paused","suspended"]},"consecutiveFailures":{"type":"integer"},"failingSince":{"type":["string","null"]},"lastSuccessAt":{"type":["string","null"]},"lastFailureAt":{"type":["string","null"]},"lastErrorMessage":{"type":["string","null"]}},"required":["state","consecutiveFailures","failingSince","lastSuccessAt","lastFailureAt","lastErrorMessage"],"additionalProperties":false}},"required":["id","mode","url","description","apiVersion","eventTypes","includeGuestContact","status","statusReason","secretVersion","previousSecretExpiresAt","notifyEmail","createdAt","updatedAt","lastStoppedAt","health"],"additionalProperties":false}},"limit":{"type":"integer","description":"The most endpoints a partner may have, both modes together"}},"required":["items","limit"],"additionalProperties":false},"WebhookEndpointCreate":{"type":"object","properties":{"url":{"type":"string","minLength":1,"maxLength":2000,"description":"https only, a public address; checked now and again at every send"},"description":{"type":"string","maxLength":200},"eventTypes":{"description":"The event types to receive; default the OTA booking events and both channel.sync events","minItems":1,"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":60}},"includeGuestContact":{"description":"true: deliveries carry the guest's phone and email. Default false; change it at any time","type":"boolean"},"notifyEmail":{"description":"Where a failing endpoint is reported; default the partner's account email","type":"string","maxLength":254},"dataAck":{"type":"boolean","const":true,"description":"Must be true: you confirm that guest booking details will be sent to this address"}},"required":["url","dataAck"],"additionalProperties":false},"WebhookEndpointCreated":{"type":"object","properties":{"endpoint":{"type":"object","properties":{"id":{"type":"integer"},"mode":{"type":"string","enum":["live","test"],"description":"live: the events of the hotels you may act on · test: your sandboxes'. A key manages the endpoints of its own mode"},"url":{"type":"string"},"description":{"type":["string","null"]},"apiVersion":{"type":"string"},"eventTypes":{"type":"array","items":{"type":"string"}},"includeGuestContact":{"type":"boolean"},"status":{"type":"string","enum":["ACTIVE","PAUSED","SUSPENDED"]},"statusReason":{"type":["string","null"]},"secretVersion":{"type":"integer"},"previousSecretExpiresAt":{"description":"While set, deliveries are also signed with the secret before the last rotation","type":["string","null"]},"notifyEmail":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"lastStoppedAt":{"description":"When it was last paused or suspended: where a recover usually starts","type":["string","null"]},"health":{"type":"object","properties":{"state":{"type":"string","enum":["healthy","failing","paused","suspended"]},"consecutiveFailures":{"type":"integer"},"failingSince":{"type":["string","null"]},"lastSuccessAt":{"type":["string","null"]},"lastFailureAt":{"type":["string","null"]},"lastErrorMessage":{"type":["string","null"]}},"required":["state","consecutiveFailures","failingSince","lastSuccessAt","lastFailureAt","lastErrorMessage"],"additionalProperties":false}},"required":["id","mode","url","description","apiVersion","eventTypes","includeGuestContact","status","statusReason","secretVersion","previousSecretExpiresAt","notifyEmail","createdAt","updatedAt","lastStoppedAt","health"],"additionalProperties":false},"secret":{"description":"The signing secret (whsec_…). Shown in this answer only: store it now. null on a replay of the same request (X-Idempotent-Replay: true): we keep no copy to show again, so rotate the secret if the first answer was lost","type":["string","null"]}},"required":["endpoint","secret"],"additionalProperties":false},"WebhookEndpointUpdate":{"type":"object","properties":{"url":{"type":"string","minLength":1,"maxLength":2000},"description":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"eventTypes":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":60}},"includeGuestContact":{"description":"The guest-contact switch: applies to every delivery made from now on","type":"boolean"},"notifyEmail":{"anyOf":[{"type":"string","maxLength":254},{"type":"null"}]}},"additionalProperties":false},"WebhookSecretRotated":{"type":"object","properties":{"secret":{"description":"The new signing secret. Shown in this answer only. null on a replay of the same request (X-Idempotent-Replay: true): rotate again if the first answer was lost","type":["string","null"]},"secretVersion":{"type":"integer"},"previousExpiresAt":{"type":"string","description":"Until then deliveries are signed with both secrets, so you can switch without losing one"}},"required":["secret","secretVersion","previousExpiresAt"],"additionalProperties":false},"WebhookTest":{"type":"object","properties":{"eventType":{"description":"Any event type an endpoint can receive, or zimmerstack.ping; default zimmerstack.ping","type":"string","enum":["channel.booking.created","channel.booking.modified","channel.booking.cancelled","direct.booking.created","direct.booking.modified","direct.booking.cancelled","channel.sync.alert","channel.sync.recovered","channel.drift.detected","channel.drift.healed","channel.connect.completed","channel.connect.expired","platform.incident.opened","platform.incident.updated","platform.incident.resolved","support.ticket.replied","support.ticket.closed","zimmerstack.ping"]}},"additionalProperties":false},"WebhookRecover":{"type":"object","properties":{"since":{"type":"string","format":"date-time","description":"Queue again every subscribed event since this instant (ISO 8601); at most 90 days back"}},"required":["since"],"additionalProperties":false},"WebhookRecoverResult":{"type":"object","properties":{"reset":{"type":"integer","description":"Failed deliveries queued again"},"created":{"type":"integer","description":"Events that had no delivery and now have one"},"scanned":{"type":"integer"},"truncated":{"type":"boolean","description":"More events than one run queues: run it again for the rest"}},"required":["reset","created","scanned","truncated"],"additionalProperties":false},"WebhookDeliveryList":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"eventId":{"type":"string"},"eventType":{"type":"string"},"mode":{"type":"string","enum":["LIVE","TEST"]},"status":{"type":"string","enum":["PENDING","DELIVERED","FAILED"]},"attempts":{"type":"integer"},"nextAttemptAt":{"type":"string"},"lastError":{"type":["string","null"]},"occurredAt":{"type":"string"},"deliveredAt":{"type":["string","null"]},"createdAt":{"type":"string"},"payloadBytes":{"type":"integer"},"payloadAvailable":{"type":"boolean","description":"false once the stored body has been dropped (14 days); a redeliver rebuilds it from the event while that is kept (90 days)"}},"required":["id","eventId","eventType","mode","status","attempts","nextAttemptAt","lastError","occurredAt","deliveredAt","createdAt","payloadBytes","payloadAvailable"],"additionalProperties":false}},"nextCursor":{"type":["string","null"]}},"required":["items","nextCursor"],"additionalProperties":false},"WebhookDelivery":{"type":"object","properties":{"id":{"type":"string"},"eventId":{"type":"string"},"eventType":{"type":"string"},"mode":{"type":"string","enum":["LIVE","TEST"]},"status":{"type":"string","enum":["PENDING","DELIVERED","FAILED"]},"attempts":{"type":"integer"},"nextAttemptAt":{"type":"string"},"lastError":{"type":["string","null"]},"occurredAt":{"type":"string"},"deliveredAt":{"type":["string","null"]},"createdAt":{"type":"string"},"payloadBytes":{"type":"integer"},"payloadAvailable":{"type":"boolean","description":"false once the stored body has been dropped (14 days); a redeliver rebuilds it from the event while that is kept (90 days)"}},"required":["id","eventId","eventType","mode","status","attempts","nextAttemptAt","lastError","occurredAt","deliveredAt","createdAt","payloadBytes","payloadAvailable"],"additionalProperties":false},"WebhookDeliveryDetail":{"type":"object","properties":{"id":{"type":"string"},"eventId":{"type":"string"},"eventType":{"type":"string"},"mode":{"type":"string","enum":["LIVE","TEST"]},"status":{"type":"string","enum":["PENDING","DELIVERED","FAILED"]},"attempts":{"type":"integer"},"nextAttemptAt":{"type":"string"},"lastError":{"type":["string","null"]},"occurredAt":{"type":"string"},"deliveredAt":{"type":["string","null"]},"createdAt":{"type":"string"},"payloadBytes":{"type":"integer"},"payloadAvailable":{"type":"boolean","description":"false once the stored body has been dropped (14 days); a redeliver rebuilds it from the event while that is kept (90 days)"},"payload":{"description":"The event as it was sent (the webhook's envelope), with a guest's phone and email masked in this read; null once the stored body has been dropped (payloadAvailable: false)"},"attempts_log":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"attemptNo":{"type":"integer","description":"1 for the first send, one more for each retry"},"startedAt":{"type":"string"},"durationMs":{"type":"integer"},"outcome":{"type":"string","description":"SUCCESS, HTTP_ERROR, TIMEOUT, CONNECTION_ERROR, TLS_ERROR or BLOCKED_URL; more may come"},"responseStatus":{"description":"The HTTP status your receiver answered; null when it never answered","type":["integer","null"]},"responseBodySnippet":{"description":"The first 2 KB of what your receiver answered","type":["string","null"]},"errorMessage":{"type":["string","null"]},"resolvedIp":{"description":"The address your URL resolved to for this attempt","type":["string","null"]}},"required":["id","attemptNo","startedAt","durationMs","outcome","responseStatus","responseBodySnippet","errorMessage","resolvedIp"],"additionalProperties":false},"description":"Every attempt, oldest first"},"request":{"type":"object","properties":{"headers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"description":"The headers the delivery carried; the timestamp and the signature are shown as placeholders"}},"required":["headers"],"additionalProperties":false}},"required":["id","eventId","eventType","mode","status","attempts","nextAttemptAt","lastError","occurredAt","deliveredAt","createdAt","payloadBytes","payloadAvailable","payload","attempts_log","request"],"additionalProperties":false},"WebhookEndpointResumed":{"type":"object","properties":{"id":{"type":"integer"},"mode":{"type":"string","enum":["live","test"],"description":"live: the events of the hotels you may act on · test: your sandboxes'. A key manages the endpoints of its own mode"},"url":{"type":"string"},"description":{"type":["string","null"]},"apiVersion":{"type":"string"},"eventTypes":{"type":"array","items":{"type":"string"}},"includeGuestContact":{"type":"boolean"},"status":{"type":"string","enum":["ACTIVE","PAUSED","SUSPENDED"]},"statusReason":{"type":["string","null"]},"secretVersion":{"type":"integer"},"previousSecretExpiresAt":{"description":"While set, deliveries are also signed with the secret before the last rotation","type":["string","null"]},"notifyEmail":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"lastStoppedAt":{"description":"When it was last paused or suspended: where a recover usually starts","type":["string","null"]},"health":{"type":"object","properties":{"state":{"type":"string","enum":["healthy","failing","paused","suspended"]},"consecutiveFailures":{"type":"integer"},"failingSince":{"type":["string","null"]},"lastSuccessAt":{"type":["string","null"]},"lastFailureAt":{"type":["string","null"]},"lastErrorMessage":{"type":["string","null"]}},"required":["state","consecutiveFailures","failingSince","lastSuccessAt","lastFailureAt","lastErrorMessage"],"additionalProperties":false},"heldEvents":{"type":"integer","description":"How many events the pause held; they are being sent now, oldest first"}},"required":["id","mode","url","description","apiVersion","eventTypes","includeGuestContact","status","statusReason","secretVersion","previousSecretExpiresAt","notifyEmail","createdAt","updatedAt","lastStoppedAt","health","heldEvents"],"additionalProperties":false},"WebhookEndpointDeleted":{"type":"object","properties":{"id":{"type":"integer"},"deleted":{"type":"boolean","const":true}},"required":["id","deleted"],"additionalProperties":false},"WebhookTestQueued":{"type":"object","properties":{"deliveryId":{"type":"string","description":"The delivery in the log: GET /webhook-endpoints/{endpointId}/deliveries/{deliveryId} says what your receiver answered"},"eventId":{"type":"string"},"eventType":{"type":"string","description":"The type that was sent"}},"required":["deliveryId","eventId","eventType"],"additionalProperties":false},"Status":{"type":"object","properties":{"asOf":{"type":"string"},"overall":{"type":"string","enum":["operational","degraded","partial_outage","major_outage"],"description":"The worst state of any component for your hotels; operational when nothing is open"},"components":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"api · bookings_in · ari_out · ota:<booking site>"},"name":{"type":"string"},"kind":{"type":"string","enum":["platform","booking_site"]},"covers":{"type":"string"},"state":{"type":"string","enum":["operational","degraded","partial_outage","major_outage"]},"incidentIds":{"type":"array","items":{"type":"integer"}}},"required":["id","name","kind","covers","state","incidentIds"],"additionalProperties":false}},"incidents":{"type":"object","properties":{"open":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"The same id the platform.incident.* webhooks carry"},"component":{"type":"string"},"componentName":{"type":"string"},"severity":{"type":"string","enum":["degraded","partial_outage","major_outage"],"description":"degraded: working, slower or later than usual · partial_outage: not working for some hotels or requests · major_outage: not working"},"status":{"type":"string","enum":["investigating","identified","monitoring","resolved"]},"title":{"type":"string"},"startedAt":{"type":"string"},"updatedAt":{"type":"string"},"resolvedAt":{"type":["string","null"]},"properties":{"type":"object","properties":{"all":{"type":"boolean","description":"true: it touches every hotel"},"count":{"type":"integer"},"ids":{"type":"array","items":{"type":"integer"}},"truncated":{"type":"boolean"}},"required":["all","count","ids","truncated"],"description":"Which of YOUR hotels it touches","additionalProperties":false},"updates":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string"},"status":{"type":"string","enum":["investigating","identified","monitoring","resolved"]},"severity":{"type":"string","enum":["degraded","partial_outage","major_outage"]},"message":{"type":"string"}},"required":["at","status","severity","message"],"additionalProperties":false},"description":"What we said, newest first"}},"required":["id","component","componentName","severity","status","title","startedAt","updatedAt","resolvedAt","properties","updates"],"additionalProperties":false}},"recent":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"The same id the platform.incident.* webhooks carry"},"component":{"type":"string"},"componentName":{"type":"string"},"severity":{"type":"string","enum":["degraded","partial_outage","major_outage"],"description":"degraded: working, slower or later than usual · partial_outage: not working for some hotels or requests · major_outage: not working"},"status":{"type":"string","enum":["investigating","identified","monitoring","resolved"]},"title":{"type":"string"},"startedAt":{"type":"string"},"updatedAt":{"type":"string"},"resolvedAt":{"type":["string","null"]},"properties":{"type":"object","properties":{"all":{"type":"boolean","description":"true: it touches every hotel"},"count":{"type":"integer"},"ids":{"type":"array","items":{"type":"integer"}},"truncated":{"type":"boolean"}},"required":["all","count","ids","truncated"],"description":"Which of YOUR hotels it touches","additionalProperties":false},"updates":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string"},"status":{"type":"string","enum":["investigating","identified","monitoring","resolved"]},"severity":{"type":"string","enum":["degraded","partial_outage","major_outage"]},"message":{"type":"string"}},"required":["at","status","severity","message"],"additionalProperties":false},"description":"What we said, newest first"}},"required":["id","component","componentName","severity","status","title","startedAt","updatedAt","resolvedAt","properties","updates"],"additionalProperties":false},"description":"Resolved in the last 7 days, so a consumer that missed the end still sees it ended"}},"required":["open","recent"],"additionalProperties":false},"uptimeTarget":{"type":"object","properties":{"percent":{"type":"number"},"window":{"type":"string"},"credits":{"type":"boolean"},"what":{"type":"string"}},"required":["percent","window","credits","what"],"description":"The availability we publish and report against. A target: it carries no service credits","additionalProperties":false},"page":{"description":"The address of the hosted status page once there is one; null until then, and this read is the status","type":["string","null"]}},"required":["asOf","overall","components","incidents","uptimeTarget","page"],"additionalProperties":false},"Billing":{"type":"object","properties":{"billed":{"type":"boolean","description":"true: ZimmerStack bills you for your hotels. false: it bills each hotel directly, and the rest of this answer is empty"},"currency":{"description":"ISO 4217: the currency your invoices are in","type":["string","null"]},"outstanding":{"type":"object","properties":{"amount":{"type":"string","description":"What is owed on issued invoices, in major units as a decimal string (\"944.00\")"},"amountMinor":{"type":"integer","description":"The same, in hundredths of the major unit"},"openInvoices":{"type":"integer"},"oldestDueAt":{"type":["string","null"]}},"required":["amount","amountMinor","openInvoices","oldestDueAt"],"additionalProperties":false},"onboardingFee":{"type":"object","properties":{"state":{"type":"string","enum":["NOT_ASKED","WAIVED","LIVE_BEFORE","DUE","BILLING","PAID"],"description":"NOT_ASKED · WAIVED · LIVE_BEFORE (you were live before it began) · DUE (pay it in the portal before a live key or a hotel) · BILLING (its invoice is being issued) · PAID"},"amount":{"type":"string","description":"The one-time fee, in major units as a decimal string (\"944.00\")"},"currency":{"type":"string","const":"USD"},"invoiceNumber":{"type":["string","null"]}},"required":["state","amount","currency","invoiceNumber"],"additionalProperties":false},"quota":{"type":"object","properties":{"applies":{"type":"boolean","description":"Whether the quota is in force for you today; when false the numbers are what would apply"},"why":{"type":"string","enum":["ACTIVE","NOT_STARTED","OUTSIDE_RULES","NOT_A_VENDOR"]},"startsOn":{"type":"string","description":"YYYY-MM-DD: the day the quota and the unpaid-invoice days begin"},"properties":{"type":"object","properties":{"allowed":{"type":"integer","description":"How many hotels you may have live"},"used":{"type":"integer","description":"How many you have"},"free":{"type":"integer","description":"How many you may still add"}},"required":["allowed","used","free"],"additionalProperties":false},"next":{"anyOf":[{"type":"object","properties":{"properties":{"type":"integer","description":"The next level"},"payAhead":{"type":"string","description":"About what paying ahead opens it today, in US dollars; the portal's Pay ahead bills the exact amount in your currency, in major units as a decimal string (\"944.00\")"},"payAheadMinor":{"type":"integer","description":"The same, in hundredths of the major unit"},"currency":{"type":"string","const":"USD"}},"required":["properties","payAhead","payAheadMinor","currency"],"additionalProperties":false},{"type":"null"}],"description":"What opens the next level; null at the top of the ladder, where ZimmerStack sets it by hand: ask with a support ticket"},"setByZimmerStack":{"type":"boolean","description":"true when ZimmerStack set your quota by hand"},"rule":{"type":"string"}},"required":["applies","why","startsOn","properties","next","setByZimmerStack","rule"],"additionalProperties":false},"paidAhead":{"type":"object","properties":{"amount":{"type":"string","description":"What is left of the money you paid ahead, before tax, in major units as a decimal string (\"944.00\")"},"amountMinor":{"type":"integer","description":"The same, in hundredths of the major unit"},"currency":{"type":["string","null"]}},"required":["amount","amountMinor","currency"],"additionalProperties":false},"unpaidInvoiceDays":{"type":"object","properties":{"applies":{"type":"boolean"},"dueDay":{"type":"integer","description":"A monthly invoice is due by the end of this day of its month"},"pauseDay":{"type":"integer","description":"Still unpaid on this day: your hotels' booking-site connections are paused"},"endAfterDays":{"type":"integer","description":"This many days after the pause the hotels' service is ended (the month's last day when that is sooner)"},"rule":{"type":"string"},"unpaid":{"type":"array","items":{"type":"object","properties":{"invoiceNumber":{"type":["string","null"]},"dueAt":{"type":"string"},"pauseAt":{"type":"string"},"endAt":{"type":"string"},"automatic":{"type":"boolean","description":"false: issued too late in the month for the pause to happen by itself; ZimmerStack decides it by hand"}},"required":["invoiceNumber","dueAt","pauseAt","endAt","automatic"],"additionalProperties":false},"description":"Your unpaid monthly invoices under these rules, oldest first, each with its own instants"}},"required":["applies","dueDay","pauseDay","endAfterDays","rule","unpaid"],"additionalProperties":false},"atCost":{"type":"object","properties":{"currency":{"type":"string","const":"USD"},"what":{"type":"string"},"invoicing":{"type":"string","enum":["BY_ZIMMERSTACK","AUTOMATIC"],"description":"How a recorded line reaches an invoice today. BY_ZIMMERSTACK: recorded, and added to one of your invoices by our team. AUTOMATIC: your next monthly invoice carries it by itself, one line for each, at cost"},"rule":{"type":"string","description":"The same, in a sentence"},"recorded":{"type":"string","description":"Recorded and on no invoice yet, in major units as a decimal string (\"944.00\")"},"recordedMinor":{"type":"integer","description":"The same, in hundredths of the major unit"},"items":{"type":"array","items":{"type":"object","properties":{"month":{"type":"string","description":"YYYY-MM"},"property":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"kind":{"type":"string","enum":["room_types","rate_plans","rate_plans_per_room_type"]},"what":{"type":"string","description":"In words: \"3 room types above the 20 included\""},"held":{"type":"integer"},"included":{"type":"integer"},"quantity":{"type":"integer"},"allowedLimit":{"type":"integer","description":"The limit ZimmerStack allowed this hotel"},"unitPrice":{"type":"string"},"amount":{"type":"string"},"amountMinor":{"type":"integer"},"status":{"type":"string","enum":["RECORDED","INVOICED","WAIVED"],"description":"RECORDED: on no invoice yet · INVOICED: on one of your invoices · WAIVED: not charged"},"standing":{"type":"string","enum":["ON_INVOICE","ON_NEXT_INVOICE","ADDED_BY_ZIMMERSTACK","NOT_CHARGED"],"description":"Where the line stands for you. ON_INVOICE: on the issued invoice named in invoiceNumber · ON_NEXT_INVOICE: on your next monthly invoice (it is on the one being prepared, or will be put on it by itself) · ADDED_BY_ZIMMERSTACK: recorded; our team adds it to one of your invoices · NOT_CHARGED: waived"},"invoiceNumber":{"description":"The invoice it is on, once that invoice is issued (GET /billing/invoices lists it); null until then","type":["string","null"]}},"required":["month","property","kind","what","held","included","quantity","allowedLimit","unitPrice","amount","amountMinor","status","standing","invoiceNumber"],"additionalProperties":false}}},"required":["currency","what","invoicing","rule","recorded","recordedMinor","items"],"description":"What the channel manager charges above its included room types and rate plans for a hotel whose limit ZimmerStack raised: passed on at cost, nothing added","additionalProperties":false}},"required":["billed","currency","outstanding","onboardingFee","quota","paidAhead","unpaidInvoiceDays","atCost"],"additionalProperties":false},"BillingInvoices":{"type":"object","properties":{"billed":{"type":"boolean"},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The invoice's public id"},"number":{"type":["string","null"]},"about":{"type":"string","enum":["MONTH","ONBOARDING_FEE","PAID_AHEAD"],"description":"A month's hotels, the one-time onboarding fee, or money paid ahead"},"periodStart":{"type":"string","description":"YYYY-MM-DD"},"periodEnd":{"type":"string","description":"YYYY-MM-DD"},"currency":{"type":"string"},"status":{"type":"string","description":"OPEN · PARTIALLY_PAID · PAID (drafts and voided invoices are never listed)"},"issuedAt":{"type":["string","null"]},"dueAt":{"type":["string","null"]},"paidAt":{"type":["string","null"]},"overdue":{"type":"boolean"},"beforeTax":{"type":"string","description":"The invoice before tax, in major units as a decimal string (\"944.00\")"},"beforeTaxMinor":{"type":"integer","description":"The same, in hundredths of the major unit"},"tax":{"type":"string","description":"Tax, in major units as a decimal string (\"944.00\")"},"taxMinor":{"type":"integer","description":"The same, in hundredths of the major unit"},"total":{"type":"string","description":"The invoice after tax, in major units as a decimal string (\"944.00\")"},"totalMinor":{"type":"integer","description":"The same, in hundredths of the major unit"},"paid":{"type":"string","description":"Paid so far, in major units as a decimal string (\"944.00\")"},"credited":{"type":"string","description":"Credited by credit notes, in major units as a decimal string (\"944.00\")"},"balance":{"type":"string","description":"Still owed, in major units as a decimal string (\"944.00\")"},"balanceMinor":{"type":"integer","description":"The same, in hundredths of the major unit"},"lines":{"type":"array","items":{"type":"object","properties":{"description":{"type":"string"},"hotel":{"type":["string","null"]},"quantity":{"type":"integer"},"kind":{"type":"string"},"total":{"type":"string"},"totalMinor":{"type":"integer"}},"required":["description","hotel","quantity","kind","total","totalMinor"],"additionalProperties":false}}},"required":["id","number","about","periodStart","periodEnd","currency","status","issuedAt","dueAt","paidAt","overdue","beforeTax","beforeTaxMinor","tax","taxMinor","total","totalMinor","paid","credited","balance","balanceMinor","lines"],"additionalProperties":false},"description":"The 24 most recent issued invoices, newest first"},"payments":{"type":"array","items":{"type":"object","properties":{"receivedAt":{"type":"string"},"amount":{"type":"string"},"amountMinor":{"type":"integer"},"currency":{"type":"string"},"method":{"type":"string"},"invoiceNumber":{"type":["string","null"]}},"required":["receivedAt","amount","amountMinor","currency","method","invoiceNumber"],"additionalProperties":false}}},"required":["billed","items","payments"],"additionalProperties":false},"BillingNextInvoice":{"type":"object","properties":{"billed":{"type":"boolean"},"asOf":{"type":"string","description":"When this was read. The invoice reads rooms, prices and the exchange rate again on the day it is made"},"month":{"description":"YYYY-MM: the month the invoice is for","type":["string","null"]},"counting":{"type":"string","enum":["LIVE_ON_FIRST","DAYS_LIVE"],"description":"LIVE_ON_FIRST: every hotel live on the 1st, in full for the month starting · DAYS_LIVE: each hotel for the days it was live"},"currency":{"type":["string","null"]},"lines":{"type":"array","items":{"type":"object","properties":{"hotel":{"type":"string"},"propertyId":{"type":["integer","null"]},"module":{"type":"string","description":"CM = the channel manager"},"priced":{"type":"string","enum":["PRICE_LIST","AGREED_PRICE","FIXED"],"description":"PRICE_LIST: read from a price list on bill day · AGREED_PRICE: a fixed price agreed with you · FIXED: this line keeps its own price"},"priceList":{"anyOf":[{"type":"object","properties":{"id":{"type":["integer","null"]},"name":{"type":"string"},"currency":{"type":"string"}},"required":["id","name","currency"],"additionalProperties":false},{"type":"null"}]},"band":{"description":"The room band the hotel falls in, as the price list names it","type":["string","null"]},"rooms":{"description":"Rooms counted for the price: what the hotel declared, or the most it has on sale on one night when that is more","type":["integer","null"]},"declaredRooms":{"description":"Present only when it has more rooms on sale than it declared","type":["integer","null"]},"hotelsInBand":{"description":"How many of your hotels are in the same room band: what picks a volume price","type":["integer","null"]},"unit":{"type":"string","enum":["ROOM","HOTEL"]},"quantity":{"type":"integer"},"unitPrice":{"type":"string"},"unitPriceMinor":{"type":"integer"},"amount":{"type":"string"},"amountMinor":{"type":"integer"},"conversion":{"anyOf":[{"type":"object","properties":{"fromCurrency":{"type":"string"},"listUnitPrice":{"type":"string"},"rate":{"type":"string"},"rateDate":{"type":"string"}},"required":["fromCurrency","listUnitPrice","rate","rateDate"],"additionalProperties":false},{"type":"null"}],"description":"When the list is in another currency: its own unit price and the latest rate on file today"}},"required":["hotel","propertyId","module","priced","priceList","band","rooms","declaredRooms","hotelsInBand","unit","quantity","unitPrice","unitPriceMinor","amount","amountMinor","conversion"],"additionalProperties":false}},"beforeTax":{"type":"string"},"beforeTaxMinor":{"type":"integer"},"taxAddedOnTop":{"type":"boolean","description":"true: GST is added on top (a partner in India). false: nothing is added to these prices"},"paidAhead":{"type":"object","properties":{"amount":{"type":"string"},"amountMinor":{"type":"integer"}},"required":["amount","amountMinor"],"description":"Money you paid ahead that an invoice can still take off. It comes off only as far as your quota level stays covered, so the invoice says how much","additionalProperties":false},"notes":{"type":"array","items":{"type":"string"},"description":"Hotels or lines that are not on it today, each with why"},"conversionMissing":{"anyOf":[{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"}},"required":["from","to"],"additionalProperties":false},{"type":"null"}]},"atCost":{"type":"object","properties":{"invoicing":{"type":"string","enum":["BY_ZIMMERSTACK","AUTOMATIC"],"description":"BY_ZIMMERSTACK: our team adds these lines to an invoice by hand, so they are not counted in this answer's amounts. AUTOMATIC: this invoice carries each of them as a line of its own"},"rule":{"type":"string"},"lines":{"type":"array","items":{"type":"object","properties":{"month":{"type":"string","description":"YYYY-MM: the month the channel manager counted it for"},"property":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"kind":{"type":"string","enum":["room_types","rate_plans","rate_plans_per_room_type"]},"what":{"type":"string","description":"In words: \"3 room types above the 20 included\""},"usdAmount":{"type":"string","description":"The charge itself, in US dollars"},"usdAmountMinor":{"type":"integer"},"amount":{"description":"AUTOMATIC: the same in this invoice's currency at the latest rate on file today, before tax; null when no rate is on file. BY_ZIMMERSTACK: null, the amount is on the invoice once our team has added the line","type":["string","null"]},"amountMinor":{"type":["integer","null"]}},"required":["month","property","kind","what","usdAmount","usdAmountMinor","amount","amountMinor"],"additionalProperties":false}},"conversion":{"anyOf":[{"type":"object","properties":{"fromCurrency":{"type":"string","const":"USD"},"rate":{"type":"string"},"rateDate":{"type":"string"}},"required":["fromCurrency","rate","rateDate"],"additionalProperties":false},{"type":"null"}],"description":"AUTOMATIC, and the invoice is not in US dollars: the latest rate on file today. The invoice reads the rate again on the day it is made"},"conversionMissing":{"anyOf":[{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"}},"required":["from","to"],"additionalProperties":false},{"type":"null"}]},"beforeTax":{"type":"string","description":"AUTOMATIC: what these lines add to this invoice before tax, beside beforeTax above (which is the hotel lines alone). BY_ZIMMERSTACK: 0.00"},"beforeTaxMinor":{"type":"integer"}},"required":["invoicing","rule","lines","conversion","conversionMissing","beforeTax","beforeTaxMinor"],"description":"The channel manager's charges above its included room types and rate plans that are recorded and on no invoice yet, at cost","additionalProperties":false}},"required":["billed","asOf","month","counting","currency","lines","beforeTax","beforeTaxMinor","taxAddedOnTop","paidAhead","notes","conversionMissing","atCost"],"additionalProperties":false},"SupportTicketCreate":{"type":"object","properties":{"severity":{"type":"string","enum":["many_hotels","one_hotel","question"],"description":"many_hotels: two or more of your hotels, or all, cannot take bookings or send prices and rooms · one_hotel: one hotel cannot · question: anything else. A test key's ticket is always question"},"subject":{"type":"string","minLength":1,"maxLength":200,"pattern":"\\S","description":"One line: what is wrong, or what you are asking"},"message":{"type":"string","minLength":1,"maxLength":5000,"pattern":"\\S","description":"What you see, since when, and what you expected. Never paste a key, a secret or a guest's details: we already attach what our records show"},"propertyIds":{"description":"The hotels affected, by their ids from GET /properties. Exactly one for one_hotel; two or more (or allProperties) for many_hotels; optional for question","maxItems":200,"type":"array","items":{"type":"integer","exclusiveMinimum":0}},"allProperties":{"description":"true: every hotel this key may act on is affected. Not together with propertyIds","type":"boolean"}},"required":["severity","subject","message"],"additionalProperties":false},"SupportMessageCreate":{"type":"object","properties":{"message":{"type":"string","minLength":1,"maxLength":5000,"pattern":"\\S","description":"Your reply. The ticket waits for ZimmerStack again from then"}},"required":["message"],"additionalProperties":false},"SupportTicket":{"type":"object","properties":{"id":{"type":"integer","description":"Quote it in any mail about the ticket"},"subject":{"type":"string"},"severity":{"type":"string","enum":["many_hotels","one_hotel","question"]},"status":{"type":"string","enum":["OPEN","ANSWERED","CLOSED"],"description":"OPEN: waiting for ZimmerStack · ANSWERED: we replied, waiting for you · CLOSED"},"mode":{"type":"string","enum":["live","test"],"description":"The mode of the key that opened it. A key reads the tickets of its own mode"},"properties":{"type":"object","properties":{"all":{"type":"boolean"},"ids":{"type":"array","items":{"type":"integer"}}},"required":["all","ids"],"description":"The hotels you said are affected","additionalProperties":false},"openedAt":{"type":"string"},"lastMessageAt":{"type":"string"},"firstReply":{"type":"object","properties":{"target":{"type":"string","description":"The first-reply target of this severity, in words"},"dueAt":{"description":"The instant the first reply is due, for many_hotels; null where the target is a working day","type":["string","null"]},"repliedAt":{"type":["string","null"]}},"required":["target","dueAt","repliedAt"],"description":"When ZimmerStack first answers (x-zimmerstack.support.severities)","additionalProperties":false},"closedAt":{"type":["string","null"]},"closedBy":{"anyOf":[{"type":"string","enum":["partner","zimmerstack"]},{"type":"null"}]},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"author":{"type":"string","enum":["partner","zimmerstack"]},"body":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","author","body","createdAt"],"additionalProperties":false},"description":"The thread, oldest first"},"diagnostic":{"anyOf":[{"type":"object","properties":{"takenAt":{"type":"string"},"windowHours":{"type":"integer"},"requests":{"anyOf":[{"type":"object","properties":{"refused":{"type":"integer","description":"Your calls answered 400 or above in the window"},"byCode":{"type":"array","items":{"type":"object","properties":{"status":{"type":"integer"},"errorCode":{"type":["string","null"]},"count":{"type":"integer"},"lastAt":{"type":["string","null"]}},"required":["status","errorCode","count","lastAt"],"additionalProperties":false}},"lastRefused":{"type":"array","items":{"type":"object","properties":{"requestId":{"type":["string","null"]},"at":{"type":"string"},"method":{"type":"string"},"route":{"type":"string"},"status":{"type":"integer"},"errorCode":{"type":["string","null"]},"propertyId":{"type":["integer","null"]}},"required":["requestId","at","method","route","status","errorCode","propertyId"],"additionalProperties":false}}},"required":["refused","byCode","lastRefused"],"additionalProperties":false},{"type":"null"}]},"hotels":{"type":"array","items":{"type":"object","properties":{"propertyId":{"type":"integer"},"inventory":{"type":"object","properties":{"pendingCells":{"type":"integer"},"outOfSyncSince":{"type":["string","null"]},"lastOkAt":{"type":["string","null"]}},"required":["pendingCells","outOfSyncSince","lastOkAt"],"additionalProperties":false},"rates":{"type":"object","properties":{"waitingCells":{"type":"integer"},"refusedCells":{"type":"integer"},"lastPushAt":{"type":["string","null"]},"lastErrorAt":{"type":["string","null"]},"consecutiveFailures":{"type":"integer"}},"required":["waitingCells","refusedCells","lastPushAt","lastErrorAt","consecutiveFailures"],"additionalProperties":false},"channelIssues":{"type":"array","items":{"type":"object","properties":{"event":{"type":"string"},"count":{"type":"integer"},"since":{"type":["string","null"]}},"required":["event","count","since"],"additionalProperties":false}},"shield":{"type":"object","properties":{"level":{"type":"string"},"until":{"type":["string","null"]}},"required":["level","until"],"additionalProperties":false},"usage":{"type":"object","properties":{"cellsChanged":{"type":"integer"},"refusals":{"type":"integer"},"refusedByChannelManager":{"type":"integer"}},"required":["cellsChanged","refusals","refusedByChannelManager"],"additionalProperties":false}},"required":["propertyId","inventory","rates","channelIssues","shield","usage"],"additionalProperties":false}},"hotelsNotShown":{"type":"integer"},"partner":{"anyOf":[{"type":"object","properties":{"shield":{"type":"object","properties":{"level":{"type":"string"},"until":{"type":["string","null"]}},"required":["level","until"],"additionalProperties":false},"usage":{"type":"object","properties":{"cellsChanged":{"type":"integer"},"refusals":{"type":"integer"},"refusedByChannelManager":{"type":"integer"}},"required":["cellsChanged","refusals","refusedByChannelManager"],"additionalProperties":false}},"required":["shield","usage"],"additionalProperties":false},{"type":"null"}]},"webhooks":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"endpointId":{"type":"integer"},"status":{"type":"string"},"consecutiveFailures":{"type":"integer"},"failingSince":{"type":["string","null"]},"lastSuccessAt":{"type":["string","null"]},"lastFailureAt":{"type":["string","null"]},"deliveries":{"type":"object","properties":{"delivered":{"type":"integer"},"failed":{"type":"integer"},"pending":{"type":"integer"}},"required":["delivered","failed","pending"],"additionalProperties":false},"lastFailed":{"type":"array","items":{"type":"object","properties":{"deliveryId":{"type":"string"},"eventType":{"type":"string"},"attempts":{"type":"integer"},"at":{"type":"string"}},"required":["deliveryId","eventType","attempts","at"],"additionalProperties":false}}},"required":["endpointId","status","consecutiveFailures","failingSince","lastSuccessAt","lastFailureAt","deliveries","lastFailed"],"additionalProperties":false}},{"type":"null"}]},"incomplete":{"type":"array","items":{"type":"string"},"description":"Parts that could not be read at that moment"}},"required":["takenAt","windowHours","requests","hotels","hotelsNotShown","partner","webhooks","incomplete"],"additionalProperties":false},{"type":"null"}]}},"required":["id","subject","severity","status","mode","properties","openedAt","lastMessageAt","firstReply","closedAt","closedBy","messages","diagnostic"],"additionalProperties":false},"SupportTicketList":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"Quote it in any mail about the ticket"},"subject":{"type":"string"},"severity":{"type":"string","enum":["many_hotels","one_hotel","question"]},"status":{"type":"string","enum":["OPEN","ANSWERED","CLOSED"],"description":"OPEN: waiting for ZimmerStack · ANSWERED: we replied, waiting for you · CLOSED"},"mode":{"type":"string","enum":["live","test"],"description":"The mode of the key that opened it. A key reads the tickets of its own mode"},"properties":{"type":"object","properties":{"all":{"type":"boolean"},"ids":{"type":"array","items":{"type":"integer"}}},"required":["all","ids"],"description":"The hotels you said are affected","additionalProperties":false},"openedAt":{"type":"string"},"lastMessageAt":{"type":"string"},"firstReply":{"type":"object","properties":{"target":{"type":"string","description":"The first-reply target of this severity, in words"},"dueAt":{"description":"The instant the first reply is due, for many_hotels; null where the target is a working day","type":["string","null"]},"repliedAt":{"type":["string","null"]}},"required":["target","dueAt","repliedAt"],"description":"When ZimmerStack first answers (x-zimmerstack.support.severities)","additionalProperties":false},"closedAt":{"type":["string","null"]},"closedBy":{"anyOf":[{"type":"string","enum":["partner","zimmerstack"]},{"type":"null"}]}},"required":["id","subject","severity","status","mode","properties","openedAt","lastMessageAt","firstReply","closedAt","closedBy"],"additionalProperties":false}},"nextCursor":{"type":["string","null"]}},"required":["items","nextCursor"],"additionalProperties":false},"ChannelBooking":{"type":"object","properties":{"id":{"type":"integer"},"reference":{"type":"string"},"version":{"type":"integer","description":"Our own counter of this booking's events: 1 on its first event, one more on each later one. A higher version is a later state whatever order deliveries arrived in. On a read it is the booking's current version (0: no event since versions began)"},"status":{"type":"string","enum":["CONFIRMED","CANCELLED"]},"stayStatus":{"type":"string"},"channel":{"type":"object","properties":{"otaName":{"type":"string","description":"The OTA the guest booked on: \"BookingCom\", \"MakeMyTrip\", \"Goibibo\", \"Agoda\", \"Expedia\", \"AirBNB\", \"Hostelworld\", \"GoogleHotelARI\", \"OpenShopping\", or \"unknown\". A MakeMyTrip booking says \"MakeMyTrip\" since 25 Nov 2026 (before: \"Goibibo\"). \"Website\" on a booking made on the hotel's own website. A sandbox booking keeps the name it was made with. Accept a name you do not know"},"otaReservationCode":{"type":"string"},"source":{"type":"string"},"sourceGroup":{"type":"string"}},"required":["otaName","otaReservationCode","source","sourceGroup"],"additionalProperties":false},"stay":{"type":"object","properties":{"checkIn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"checkOut":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"nights":{"type":"integer"},"dayUse":{"type":"boolean"}},"required":["checkIn","checkOut","nights","dayUse"],"additionalProperties":false},"guest":{"type":"object","properties":{"fullName":{"type":"string"},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]},"country":{"type":["string","null"]},"language":{"type":["string","null"]},"contactWithheld":{"type":"string","enum":["retention","unavailable"],"description":"Present when phone and email are null because of a rule, not because the booking has none: \"retention\" = the stay checked out more than 30 days ago (API reads and webhooks alike, a recovered or redelivered event included); \"unavailable\" = an API read that could not be logged just now, ask again. Absent otherwise"}},"required":["fullName","firstName","lastName","country","language"],"additionalProperties":false},"guestNotes":{"type":["string","null"]},"occupancy":{"type":"object","properties":{"adults":{"type":"integer"},"children":{"type":"integer"}},"required":["adults","children"],"additionalProperties":false},"rooms":{"type":"array","items":{"type":"object","properties":{"roomTypeId":{"type":"integer"},"roomTypeName":{"type":"string"},"ratePlanId":{"type":["integer","null"]},"mealPlan":{"type":"string","enum":["EP","CP","MAP","AP"]},"mealPlanSource":{"anyOf":[{"type":"string","enum":["ota","ratePlan","default"]},{"type":"null"}],"description":"Where mealPlan came from. \"ota\": the OTA said it. \"ratePlan\": the OTA said nothing, so it is the meal of the hotel's own rate plan. \"default\": nobody said, so EP. Null on bookings from before 25 Nov 2026"},"mealPlanText":{"description":"The OTA's own words about the meal, as it sent them (at most 500 characters). Show them to the desk. Null when the OTA sent none","type":["string","null"]},"mealPrice":{"anyOf":[{"type":"object","properties":{"amount":{"type":"number","description":"Major units of currency, with two decimals"},"currency":{"type":"string","description":"ISO 4217. The currency the OTA's words name; when they name none, the booking's own"},"basis":{"type":"string","enum":["PER_PERSON_PER_NIGHT","PER_ROOM_PER_NIGHT","PER_PERSON_PER_STAY","PER_STAY","UNKNOWN"],"description":"What the price counts. UNKNOWN when the OTA's words do not say"}},"required":["amount","currency","basis"],"additionalProperties":false},{"type":"null"}],"description":"A price the OTA's words state for one meal the guest can add, for example breakfast on a room-only rate. It is not inside the room's price. Null when the words state none, or more than one"},"adults":{"type":"integer"},"children":{"type":"integer"},"checkIn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"checkOut":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"nights":{"type":"integer"},"dayUse":{"type":"boolean"},"ratePerNight":{"type":"number"},"amount":{"type":"number"},"nightlyRates":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"The night, as a hotel-local date"},"amount":{"type":"number","description":"The OTA's price for this night, in amounts.currency"}},"required":["date","amount"],"additionalProperties":false}},{"type":"null"}],"description":"The OTA's price for each night of this room, in date order. A tax the OTA lists apart is not inside them. Null when the OTA sent none, and on bookings from before 25 Nov 2026"},"commission":{"description":"The OTA's commission on this room as the OTA sent it, in finance.currency. Null when the OTA sent none for the room","type":["number","null"]},"status":{"type":"string"}},"required":["roomTypeId","roomTypeName","mealPlan","adults","children","checkIn","checkOut","nights","dayUse","ratePerNight","amount","status"],"additionalProperties":false}},"amounts":{"type":"object","properties":{"currency":{"type":"string"},"total":{"type":"number"},"paid":{"type":"number"},"balanceDue":{"type":"number"},"paymentCollect":{"type":"string","enum":["ota","property","unknown"]},"receivedCurrency":{"type":"string","description":"ISO 4217. Present only when the OTA sent the booking in another currency than the property's: the amounts in this booking (total, paid, balanceDue, each room's ratePerNight and amount) are then in THIS currency as the OTA sent them, not converted. Absent otherwise"}},"required":["currency","total","paid","balanceDue","paymentCollect"],"additionalProperties":false},"finance":{"anyOf":[{"type":"object","properties":{"otaName":{"type":"string"},"amountBasis":{"type":"string"},"currency":{"type":["string","null"]},"grossAmount":{"type":["number","null"]},"commissionAmount":{"type":["number","null"]},"taxAmount":{"type":["number","null"]},"netPayoutAmount":{"type":["number","null"]},"feeAmount":{"description":"The OTA's own fee on top of its commission, where it sent one; null when it named none. Informational: netPayoutAmount is gross minus commission and does not subtract it","type":["number","null"]},"paymentType":{"description":"How the guest pays, in the OTA's own word (for example \"credit_card\"); null when the OTA sent none. A label only","type":["string","null"]},"virtualCard":{"type":"boolean","description":"true when the OTA pays the property with a virtual card it issues: the guest does not pay the desk for the room. true or false only; the card itself is never sent"},"taxIncludedInAmount":{"description":"true: taxAmount is inside amounts.total. false: it is on top of it. Null when the OTA does not say","type":["boolean","null"]}},"required":["otaName","amountBasis","currency","grossAmount","commissionAmount","taxAmount","netPayoutAmount"],"additionalProperties":false},{"type":"null"}]},"taxes":{"type":"object","properties":{"lines":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string","enum":["TAX","FEE","PASS_THROUGH"]},"includedInRate":{"type":"boolean"},"amount":{"type":"number"}},"required":["code","name","kind","includedInRate","amount"],"additionalProperties":false}},"includedInRates":{"type":"number"},"addedToTotal":{"type":"number"}},"required":["lines","includedInRates","addedToTotal"],"description":"The hotel's own tax lines on this booking. Present only where the hotel has confirmed its taxes (outside India) and the booking has been assessed; absent on every other booking","additionalProperties":false},"cancellation":{"anyOf":[{"type":"object","properties":{"at":{"type":"string"},"reason":{"type":["string","null"]}},"required":["at","reason"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","reference","status","stayStatus","channel","stay","guest","guestNotes","occupancy","rooms","amounts","finance","cancellation","createdAt","updatedAt"],"additionalProperties":false},"DirectBookingCancel":{"type":"object","properties":{"refund":{"type":"string","enum":["policy","full","none"],"description":"policy (the default): what the booking's own cancellation policy gives back now, the same as the guest cancelling on the booking page. full: everything the guest paid online. none: nothing; the hotel settles any money itself."},"reason":{"type":"string","maxLength":500,"description":"Why; kept on the booking's activity log in ZimmerStack"}},"additionalProperties":false},"DirectBookingCancelResult":{"type":"object","properties":{"booking":{"type":"object","properties":{"id":{"type":"integer"},"reference":{"type":"string"},"version":{"type":"integer","description":"Our own counter of this booking's events: 1 on its first event, one more on each later one. A higher version is a later state whatever order deliveries arrived in. On a read it is the booking's current version (0: no event since versions began)"},"status":{"type":"string","enum":["CONFIRMED","CANCELLED"]},"stayStatus":{"type":"string"},"channel":{"type":"object","properties":{"otaName":{"type":"string","description":"The OTA the guest booked on: \"BookingCom\", \"MakeMyTrip\", \"Goibibo\", \"Agoda\", \"Expedia\", \"AirBNB\", \"Hostelworld\", \"GoogleHotelARI\", \"OpenShopping\", or \"unknown\". A MakeMyTrip booking says \"MakeMyTrip\" since 25 Nov 2026 (before: \"Goibibo\"). \"Website\" on a booking made on the hotel's own website. A sandbox booking keeps the name it was made with. Accept a name you do not know"},"otaReservationCode":{"type":"string"},"source":{"type":"string"},"sourceGroup":{"type":"string"}},"required":["otaName","otaReservationCode","source","sourceGroup"],"additionalProperties":false},"stay":{"type":"object","properties":{"checkIn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"checkOut":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"nights":{"type":"integer"},"dayUse":{"type":"boolean"}},"required":["checkIn","checkOut","nights","dayUse"],"additionalProperties":false},"guest":{"type":"object","properties":{"fullName":{"type":"string"},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]},"country":{"type":["string","null"]},"language":{"type":["string","null"]},"contactWithheld":{"type":"string","enum":["retention","unavailable"],"description":"Present when phone and email are null because of a rule, not because the booking has none: \"retention\" = the stay checked out more than 30 days ago (API reads and webhooks alike, a recovered or redelivered event included); \"unavailable\" = an API read that could not be logged just now, ask again. Absent otherwise"}},"required":["fullName","firstName","lastName","country","language"],"additionalProperties":false},"guestNotes":{"type":["string","null"]},"occupancy":{"type":"object","properties":{"adults":{"type":"integer"},"children":{"type":"integer"}},"required":["adults","children"],"additionalProperties":false},"rooms":{"type":"array","items":{"type":"object","properties":{"roomTypeId":{"type":"integer"},"roomTypeName":{"type":"string"},"ratePlanId":{"type":["integer","null"]},"mealPlan":{"type":"string","enum":["EP","CP","MAP","AP"]},"mealPlanSource":{"anyOf":[{"type":"string","enum":["ota","ratePlan","default"]},{"type":"null"}],"description":"Where mealPlan came from. \"ota\": the OTA said it. \"ratePlan\": the OTA said nothing, so it is the meal of the hotel's own rate plan. \"default\": nobody said, so EP. Null on bookings from before 25 Nov 2026"},"mealPlanText":{"description":"The OTA's own words about the meal, as it sent them (at most 500 characters). Show them to the desk. Null when the OTA sent none","type":["string","null"]},"mealPrice":{"anyOf":[{"type":"object","properties":{"amount":{"type":"number","description":"Major units of currency, with two decimals"},"currency":{"type":"string","description":"ISO 4217. The currency the OTA's words name; when they name none, the booking's own"},"basis":{"type":"string","enum":["PER_PERSON_PER_NIGHT","PER_ROOM_PER_NIGHT","PER_PERSON_PER_STAY","PER_STAY","UNKNOWN"],"description":"What the price counts. UNKNOWN when the OTA's words do not say"}},"required":["amount","currency","basis"],"additionalProperties":false},{"type":"null"}],"description":"A price the OTA's words state for one meal the guest can add, for example breakfast on a room-only rate. It is not inside the room's price. Null when the words state none, or more than one"},"adults":{"type":"integer"},"children":{"type":"integer"},"checkIn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"checkOut":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"nights":{"type":"integer"},"dayUse":{"type":"boolean"},"ratePerNight":{"type":"number"},"amount":{"type":"number"},"nightlyRates":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"The night, as a hotel-local date"},"amount":{"type":"number","description":"The OTA's price for this night, in amounts.currency"}},"required":["date","amount"],"additionalProperties":false}},{"type":"null"}],"description":"The OTA's price for each night of this room, in date order. A tax the OTA lists apart is not inside them. Null when the OTA sent none, and on bookings from before 25 Nov 2026"},"commission":{"description":"The OTA's commission on this room as the OTA sent it, in finance.currency. Null when the OTA sent none for the room","type":["number","null"]},"status":{"type":"string"}},"required":["roomTypeId","roomTypeName","mealPlan","adults","children","checkIn","checkOut","nights","dayUse","ratePerNight","amount","status"],"additionalProperties":false}},"amounts":{"type":"object","properties":{"currency":{"type":"string"},"total":{"type":"number"},"paid":{"type":"number"},"balanceDue":{"type":"number"},"paymentCollect":{"type":"string","enum":["ota","property","unknown"]},"receivedCurrency":{"type":"string","description":"ISO 4217. Present only when the OTA sent the booking in another currency than the property's: the amounts in this booking (total, paid, balanceDue, each room's ratePerNight and amount) are then in THIS currency as the OTA sent them, not converted. Absent otherwise"}},"required":["currency","total","paid","balanceDue","paymentCollect"],"additionalProperties":false},"finance":{"anyOf":[{"type":"object","properties":{"otaName":{"type":"string"},"amountBasis":{"type":"string"},"currency":{"type":["string","null"]},"grossAmount":{"type":["number","null"]},"commissionAmount":{"type":["number","null"]},"taxAmount":{"type":["number","null"]},"netPayoutAmount":{"type":["number","null"]},"feeAmount":{"description":"The OTA's own fee on top of its commission, where it sent one; null when it named none. Informational: netPayoutAmount is gross minus commission and does not subtract it","type":["number","null"]},"paymentType":{"description":"How the guest pays, in the OTA's own word (for example \"credit_card\"); null when the OTA sent none. A label only","type":["string","null"]},"virtualCard":{"type":"boolean","description":"true when the OTA pays the property with a virtual card it issues: the guest does not pay the desk for the room. true or false only; the card itself is never sent"},"taxIncludedInAmount":{"description":"true: taxAmount is inside amounts.total. false: it is on top of it. Null when the OTA does not say","type":["boolean","null"]}},"required":["otaName","amountBasis","currency","grossAmount","commissionAmount","taxAmount","netPayoutAmount"],"additionalProperties":false},{"type":"null"}]},"taxes":{"type":"object","properties":{"lines":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string","enum":["TAX","FEE","PASS_THROUGH"]},"includedInRate":{"type":"boolean"},"amount":{"type":"number"}},"required":["code","name","kind","includedInRate","amount"],"additionalProperties":false}},"includedInRates":{"type":"number"},"addedToTotal":{"type":"number"}},"required":["lines","includedInRates","addedToTotal"],"description":"The hotel's own tax lines on this booking. Present only where the hotel has confirmed its taxes (outside India) and the booking has been assessed; absent on every other booking","additionalProperties":false},"cancellation":{"anyOf":[{"type":"object","properties":{"at":{"type":"string"},"reason":{"type":["string","null"]}},"required":["at","reason"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","reference","status","stayStatus","channel","stay","guest","guestNotes","occupancy","rooms","amounts","finance","cancellation","createdAt","updatedAt"],"description":"The booking after the cancel, the webhook's shape: status CANCELLED, every room CANCELLED","additionalProperties":false},"refund":{"type":"object","properties":{"requested":{"anyOf":[{"type":"string","enum":["policy","full","none"]},{"type":"null"}],"description":"The refund this call asked for; null on a replay"},"amount":{"type":"number","description":"What the guest gets back, in currency's major units (1998.5 = ₹1,998.50); 0 when nothing is owed"},"currency":{"type":"string","description":"ISO 4217, the property's currency"},"status":{"type":"string","enum":["NONE","PENDING","PROCESSED","MANUAL"],"description":"NONE: nothing owed. PROCESSED: the payment gateway accepted the refund. PENDING: the refund is recorded and on its way (the gateway is processing it, or ZimmerStack issues it by hand). MANUAL: money is owed but there is no online payment to refund against; the hotel settles it."}},"required":["requested","amount","currency","status"],"additionalProperties":false},"replay":{"type":"boolean","description":"true: the booking was already cancelled; nothing changed and no money moved"}},"required":["booking","refund","replay"],"additionalProperties":false},"SandboxBooking":{"type":"object","properties":{"bookingId":{"type":"integer","description":"The PMS booking id, the one the webhook carries"},"reference":{"type":"string","description":"The booking reference, SBX-… — the webhook's booking.reference"},"channelBookingId":{"type":"string","description":"The pretend channel-side id"},"otaName":{"type":"string"},"status":{"type":"string","enum":["UPCOMING","CANCELLED"],"description":"The stay's state. GET /channel-bookings reads the same booking as status CONFIRMED (or CANCELLED) with stayStatus UPCOMING"},"guestName":{"type":"string"},"checkIn":{"type":"string"},"checkOut":{"type":"string"},"nights":{"type":"integer"},"rooms":{"type":"integer"},"roomTypeId":{"type":"integer"},"nightlyRate":{"type":"number","description":"Major units, per room per night: the average when the nights differ. Each night is priced from the sandbox's own record, what GET /rates gives for the room type's first rate plan"},"total":{"type":"number","description":"Major units: every night's price × rooms"},"currency":{"type":"string"},"paidByOta":{"type":"boolean"},"oversold":{"type":"boolean","description":"true when a night had no sandbox availability left — the booking lands anyway, as an OTA booking would"},"createdAt":{"type":"string"},"stayStatus":{"description":"On a no-show simulation: the stay's own state after it, NOSHOW or UPCOMING. status above stays UPCOMING for a no-show, because the booking is not cancelled","type":"string"},"webhook":{"type":"object","properties":{"eventType":{"type":"string","enum":["channel.booking.created","channel.booking.modified","channel.booking.cancelled","direct.booking.created","direct.booking.modified","direct.booking.cancelled"]},"queued":{"type":"boolean","description":"The event is in the outbox; every active endpoint on the sandbox receives it within seconds"}},"required":["eventType","queued"],"description":"What this call put on the wire for the sandbox's webhook endpoints","additionalProperties":false}},"required":["bookingId","reference","channelBookingId","otaName","status","guestName","checkIn","checkOut","nights","rooms","roomTypeId","nightlyRate","total","currency","paidByOta","oversold","createdAt","webhook"],"additionalProperties":false},"SandboxBookingsList":{"type":"object","properties":{"bookings":{"type":"array","items":{"type":"object","properties":{"bookingId":{"type":"integer","description":"The PMS booking id, the one the webhook carries"},"reference":{"type":"string","description":"The booking reference, SBX-… — the webhook's booking.reference"},"channelBookingId":{"type":"string","description":"The pretend channel-side id"},"otaName":{"type":"string"},"status":{"type":"string","enum":["UPCOMING","CANCELLED"],"description":"The stay's state. GET /channel-bookings reads the same booking as status CONFIRMED (or CANCELLED) with stayStatus UPCOMING"},"guestName":{"type":"string"},"checkIn":{"type":"string"},"checkOut":{"type":"string"},"nights":{"type":"integer"},"rooms":{"type":"integer"},"roomTypeId":{"type":"integer"},"nightlyRate":{"type":"number","description":"Major units, per room per night: the average when the nights differ. Each night is priced from the sandbox's own record, what GET /rates gives for the room type's first rate plan"},"total":{"type":"number","description":"Major units: every night's price × rooms"},"currency":{"type":"string"},"paidByOta":{"type":"boolean"},"oversold":{"type":"boolean","description":"true when a night had no sandbox availability left — the booking lands anyway, as an OTA booking would"},"createdAt":{"type":"string"},"stayStatus":{"description":"On a no-show simulation: the stay's own state after it, NOSHOW or UPCOMING. status above stays UPCOMING for a no-show, because the booking is not cancelled","type":"string"},"webhook":{"type":"object","properties":{"eventType":{"type":"string","enum":["channel.booking.created","channel.booking.modified","channel.booking.cancelled","direct.booking.created","direct.booking.modified","direct.booking.cancelled"]},"queued":{"type":"boolean","description":"The event is in the outbox; every active endpoint on the sandbox receives it within seconds"}},"required":["eventType","queued"],"description":"What this call put on the wire for the sandbox's webhook endpoints","additionalProperties":false}},"required":["bookingId","reference","channelBookingId","otaName","status","guestName","checkIn","checkOut","nights","rooms","roomTypeId","nightlyRate","total","currency","paidByOta","oversold","createdAt","webhook"],"additionalProperties":false},"description":"Simulated bookings on the sandbox (OTA and website), newest first"}},"required":["bookings"],"additionalProperties":false},"ConnectLink":{"type":"object","properties":{"id":{"type":"string","description":"The link's id: what the reads, the revoke and the webhook name it by. Never its token"},"propertyId":{"type":"integer"},"channel":{"type":"string","description":"Our key of the booking site"},"channelName":{"type":"string","description":"Its name as a person reads it"},"status":{"type":"string","enum":["pending","opened","completed","expired","revoked"],"description":"pending: made, not opened · opened: someone is on the page · completed: the link's connection started selling, from the link's page or any other screen (since 4 Dec 2026) · expired: it ran out first · revoked: you withdrew it, or a newer link replaced it"},"createdAt":{"type":"string"},"expiresAt":{"type":"string","description":"The link opens until this instant"},"openedAt":{"type":["string","null"]},"connectedAt":{"description":"When the page saved the connection (paused until Start selling)","type":["string","null"]},"completedAt":{"type":["string","null"]},"revokedAt":{"type":["string","null"]},"channelId":{"description":"The connection, as GET /channels lists it, once the page saved one","type":["string","null"]},"reference":{"type":["string","null"]},"returnUrl":{"type":["string","null"]},"createdByKey":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"maskedKey":{"type":"string"}},"required":["id","name","maskedKey"],"description":"The company key that made the link: named on the hotel's activity log beside everything the link does","additionalProperties":false}},"required":["id","propertyId","channel","channelName","status","createdAt","expiresAt","openedAt","connectedAt","completedAt","revokedAt","channelId","reference","returnUrl","createdByKey"],"additionalProperties":false},"ConnectLinkList":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The link's id: what the reads, the revoke and the webhook name it by. Never its token"},"propertyId":{"type":"integer"},"channel":{"type":"string","description":"Our key of the booking site"},"channelName":{"type":"string","description":"Its name as a person reads it"},"status":{"type":"string","enum":["pending","opened","completed","expired","revoked"],"description":"pending: made, not opened · opened: someone is on the page · completed: the link's connection started selling, from the link's page or any other screen (since 4 Dec 2026) · expired: it ran out first · revoked: you withdrew it, or a newer link replaced it"},"createdAt":{"type":"string"},"expiresAt":{"type":"string","description":"The link opens until this instant"},"openedAt":{"type":["string","null"]},"connectedAt":{"description":"When the page saved the connection (paused until Start selling)","type":["string","null"]},"completedAt":{"type":["string","null"]},"revokedAt":{"type":["string","null"]},"channelId":{"description":"The connection, as GET /channels lists it, once the page saved one","type":["string","null"]},"reference":{"type":["string","null"]},"returnUrl":{"type":["string","null"]},"createdByKey":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"maskedKey":{"type":"string"}},"required":["id","name","maskedKey"],"description":"The company key that made the link: named on the hotel's activity log beside everything the link does","additionalProperties":false}},"required":["id","propertyId","channel","channelName","status","createdAt","expiresAt","openedAt","connectedAt","completedAt","revokedAt","channelId","reference","returnUrl","createdByKey"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false},"ConnectLinkCreate":{"type":"object","properties":{"propertyId":{"type":"integer","exclusiveMinimum":0,"description":"The hotel, by its id from GET /properties"},"channel":{"type":"string","enum":["bookingcom","gommt","agoda","expedia","tripcom","yatra","hostelworld","airbnb"],"description":"The booking site to connect: one link connects one"},"expiresInHours":{"description":"How long the link opens for, 1 to 168 hours; default 72","type":"integer","minimum":1,"maximum":168},"reference":{"description":"Your own reference for this link; answered back by the reads, never shown to the hotel","type":"string","minLength":1,"maxLength":120},"returnUrl":{"description":"Where the page offers to send the person when it is done (your own screen); https only","type":"string","maxLength":500,"pattern":"^https:\\/\\/[^\\s]+$"}},"required":["propertyId","channel"],"additionalProperties":false},"ConnectLinkCreated":{"type":"object","properties":{"link":{"type":"object","properties":{"id":{"type":"string","description":"The link's id: what the reads, the revoke and the webhook name it by. Never its token"},"propertyId":{"type":"integer"},"channel":{"type":"string","description":"Our key of the booking site"},"channelName":{"type":"string","description":"Its name as a person reads it"},"status":{"type":"string","enum":["pending","opened","completed","expired","revoked"],"description":"pending: made, not opened · opened: someone is on the page · completed: the link's connection started selling, from the link's page or any other screen (since 4 Dec 2026) · expired: it ran out first · revoked: you withdrew it, or a newer link replaced it"},"createdAt":{"type":"string"},"expiresAt":{"type":"string","description":"The link opens until this instant"},"openedAt":{"type":["string","null"]},"connectedAt":{"description":"When the page saved the connection (paused until Start selling)","type":["string","null"]},"completedAt":{"type":["string","null"]},"revokedAt":{"type":["string","null"]},"channelId":{"description":"The connection, as GET /channels lists it, once the page saved one","type":["string","null"]},"reference":{"type":["string","null"]},"returnUrl":{"type":["string","null"]},"createdByKey":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"maskedKey":{"type":"string"}},"required":["id","name","maskedKey"],"description":"The company key that made the link: named on the hotel's activity log beside everything the link does","additionalProperties":false}},"required":["id","propertyId","channel","channelName","status","createdAt","expiresAt","openedAt","connectedAt","completedAt","revokedAt","channelId","reference","returnUrl","createdByKey"],"additionalProperties":false},"url":{"description":"The address to send to the hotel's own person. It opens ONCE and is in this answer only: we keep a hash of its token, never the token. null on a replay of the same request (X-Idempotent-Replay: true): we keep no copy to show again, so make a new link if the first answer was lost (it withdraws this one)","type":["string","null"]},"hotelStep":{"description":"What the hotel does at the booking site before it opens the link (in its extranet or through its support), naming our connectivity partner as that booking site lists it. Send it to the hotel first, and the url once the hotel has done it; null where there is no such step (Airbnb)","type":["string","null"]},"withdrawn":{"type":"integer","description":"Earlier links for this hotel and booking site that nobody had opened, withdrawn by this one"}},"required":["link","url","hotelStep","withdrawn"],"additionalProperties":false},"ChannelMapping":{"type":"object","properties":{"propertyId":{"type":"integer"},"channelId":{"type":"string","description":"The OTA connection, as GET /channels names it"},"channel":{"type":"string","description":"Our key of the booking site"},"channelName":{"type":"string","description":"Its name as a person reads it"},"confirmWord":{"type":"string","description":"The booking site's brand word: what POST …/disconnect asks for in confirm"},"selling":{"type":"boolean","description":"false while the connection is paused"},"mapEveryLine":{"type":"boolean","description":"true where the booking site wants every line that can be matched to be matched before a save (Booking.com); false where a line may stay out"},"usesPrimary":{"type":"boolean","description":"true where one line of each OTA rate carries its availability and stay rules (primary); the others carry a price only"},"lines":{"type":"array","items":{"type":"object","properties":{"lineId":{"type":"string","description":"The line's id: what the PUT names it by. Read it again before each PUT: it follows what the booking site lists"},"otaRoom":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"}},"required":["code","name"],"description":"The room as the booking site lists it","additionalProperties":false},"otaRate":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"}},"required":["code","name"],"description":"The rate as the booking site lists it","additionalProperties":false},"occupancy":{"description":"The guests this line is priced for; null where the booking site matches a rate without one","type":["integer","null"]},"ratePlanId":{"description":"Our rate plan matched to this line now (its id from GET /catalog); null when none is","type":["integer","null"]},"primary":{"type":"boolean","description":"This line carries the rate's availability and stay rules. Only meaningful where usesPrimary is true"},"suggestedRatePlanId":{"description":"For a line with no match: the rate plan our own matching would propose, by name and occupancy; null when it has none. Never saved until you send it","type":["integer","null"]},"blocked":{"anyOf":[{"type":"string","enum":["DERIVED","READONLY","OCCUPANCY_UNKNOWN","OTHER_HOTEL"]},{"type":"null"}],"description":"null: the line can be matched. Otherwise why not: DERIVED (the booking site derives it from another rate), READONLY, OCCUPANCY_UNKNOWN, OTHER_HOTEL (another hotel of the same account holds it)"}},"required":["lineId","otaRoom","otaRate","occupancy","ratePlanId","primary","suggestedRatePlanId","blocked"],"additionalProperties":false},"description":"One line for each rate of each room the booking site sells, per occupancy where it prices by occupancy"},"ratePlans":{"type":"array","items":{"type":"object","properties":{"ratePlanId":{"type":"integer","description":"As GET /catalog gives it"},"roomTypeId":{"type":"integer"},"roomTypeName":{"type":"string"},"name":{"type":"string"},"occupancy":{"type":["integer","null"]}},"required":["ratePlanId","roomTypeId","roomTypeName","name","occupancy"],"additionalProperties":false},"description":"The hotel's rate plans a line can be matched to: the ones that are on the channel manager"}},"required":["propertyId","channelId","channel","channelName","confirmWord","selling","mapEveryLine","usesPrimary","lines","ratePlans"],"additionalProperties":false},"ChannelMappingWrite":{"type":"object","properties":{"lines":{"minItems":1,"maxItems":2000,"type":"array","items":{"type":"object","properties":{"lineId":{"type":"string","minLength":1,"maxLength":200,"description":"A line's id from GET …/mapping"},"ratePlanId":{"anyOf":[{"type":"integer","exclusiveMinimum":0},{"type":"null"}],"description":"Our rate plan for this line, or null to leave the line unmatched"},"primary":{"description":"Where usesPrimary is true: this line carries the rate's availability and stay rules. Leave it out on every line of a rate to take the default","type":"boolean"}},"required":["lineId","ratePlanId"],"additionalProperties":false},"description":"The WHOLE matching of the connection: a line that can be matched and is left out is unmatched by the save"}},"required":["lines"],"additionalProperties":false},"ChannelMappingSaved":{"type":"object","properties":{"channelId":{"type":"string"},"changed":{"type":"boolean","description":"false when the connection already held exactly this matching: nothing was sent"},"mapped":{"type":"integer","description":"Lines matched after the save"},"removed":{"type":"integer","description":"Lines the save unmatched"},"kept":{"type":"integer","description":"Lines that cannot be matched here, left as they were"},"unmatched":{"type":"array","items":{"type":"object","properties":{"otaRoom":{"type":"string"},"otaRate":{"type":"string"},"occupancy":{"type":["integer","null"]}},"required":["otaRoom","otaRate","occupancy"],"additionalProperties":false},"description":"Lines left out where the booking site allows it. Each keeps selling at the prices and stay rules already set in the booking site's extranet: the ones you send reach it only once it is matched, while its room's rooms left still follow yours. A line in a room with nothing matched keeps the extranet's rooms left too, so nothing sent here closes it when the hotel is full"},"remaining":{"type":"integer","description":"0 everywhere but Airbnb, whose listings are matched one per request: send the same body again until it is 0"},"waiting":{"type":"boolean","description":"true while Airbnb is still confirming a removal: wait a few seconds before the next request"},"next":{"type":"string","description":"What to do after a save that changed something: a full sync of this connection sends the newly matched rates their prices and room counts"}},"required":["channelId","changed","mapped","removed","kept","unmatched","remaining","waiting","next"],"additionalProperties":false},"ChannelDisconnect":{"type":"object","properties":{"confirm":{"type":"string","minLength":1,"maxLength":80,"description":"The booking site's brand word, as confirmWord of GET …/mapping says it (\"MakeMyTrip\", \"Booking.com\"): the same word a person types to disconnect it on our screens. A wrong word is answered with the right one in data.details.expected"}},"required":["confirm"],"additionalProperties":false},"ChannelDisconnected":{"type":"object","properties":{"channelId":{"type":"string"},"done":{"type":"boolean","description":"true: the connection is removed. false only on Airbnb while listings are still being unlinked, one per request: send the same request again"},"remaining":{"type":"integer","description":"Listings still linked before this request's removal; 0 when done"},"waiting":{"type":"boolean","description":"true while Airbnb is still confirming a removal: wait a few seconds before the next request"}},"required":["channelId","done","remaining","waiting"],"additionalProperties":false},"ChannelConsole":{"type":"object","properties":{"url":{"description":"The channel console's address for this one hotel: open it in a browser or an iframe. It is in this answer only; null on a replay of the same request (X-Idempotent-Replay: true), so ask again for a new one","type":["string","null"]},"expiresInSeconds":{"type":"integer","description":"How long the session lasts from now"}},"required":["url","expiresInSeconds"],"additionalProperties":false},"Readiness":{"type":"object","properties":{"propertyId":{"type":"integer"},"live":{"type":"boolean","description":"true: your software is already this hotel's source of truth; there is nothing to do"},"ready":{"type":"boolean","description":"true: every check passed, so POST /go-live will switch it on (also true when live)"},"nights":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"count":{"type":"integer"}},"required":["from","to","count"],"description":"The nights the checks looked at, in the hotel's calendar","additionalProperties":false},"passedBy":{"anyOf":[{"type":"string","enum":["record_matches","full_year_sent"]},{"type":"null"}],"description":"Which of the two ways nothing_stale passed: our record matches the channels, or your software sent the whole year first. null when it did not pass, or the hotel is already live"},"checks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["channel_manager","catalog_linked","prices_hold","nothing_stale"]},"passed":{"type":"boolean"},"summary":{"type":"string","description":"What we found, in a sentence"},"action":{"description":"What to do when it did not pass; null when it passed","type":["string","null"]},"details":{"description":"The numbers behind the sentence","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","passed","summary","action"],"additionalProperties":false}}},"required":["propertyId","live","ready","nights","passedBy","checks"],"additionalProperties":false},"GoLiveResult":{"type":"object","properties":{"propertyId":{"type":"integer"},"live":{"type":"boolean","const":true},"replay":{"type":"boolean","description":"true: the hotel was already live and nothing changed"},"wentLiveAt":{"description":"When this call switched it on; null on a replay","type":["string","null"]},"passedBy":{"anyOf":[{"type":"string","enum":["record_matches","full_year_sent"]},{"type":"null"}]},"next":{"type":"array","items":{"type":"string"},"description":"What happens now, and what to send"}},"required":["propertyId","live","replay","wentLiveAt","passedBy","next"],"additionalProperties":false},"HotelKey":{"type":"object","properties":{"id":{"type":"integer"},"propertyId":{"type":"integer"},"name":{"type":"string"},"maskedKey":{"type":"string","description":"The key's first twelve characters: the only form it has after the answer that made it"},"mode":{"type":"string","enum":["live","test"]},"status":{"type":"string","enum":["ACTIVE","REVOKED"]},"scopes":{"type":"array","items":{"type":"string"}},"allowedCidrs":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string"},"lastUsedAt":{"type":["string","null"]},"lastUsedIp":{"type":["string","null"]},"expiresAt":{"type":["string","null"]},"retireAt":{"description":"Set while a rotation's overlap runs: this key stops answering at this instant","type":["string","null"]},"rotatedToId":{"description":"The key that replaced this one","type":["integer","null"]},"revokedAt":{"type":["string","null"]},"revokedReason":{"type":["string","null"]}},"required":["id","propertyId","name","maskedKey","mode","status","scopes","allowedCidrs","createdAt","lastUsedAt","lastUsedIp","expiresAt","retireAt","rotatedToId","revokedAt","revokedReason"],"additionalProperties":false},"HotelKeyList":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"propertyId":{"type":"integer"},"name":{"type":"string"},"maskedKey":{"type":"string","description":"The key's first twelve characters: the only form it has after the answer that made it"},"mode":{"type":"string","enum":["live","test"]},"status":{"type":"string","enum":["ACTIVE","REVOKED"]},"scopes":{"type":"array","items":{"type":"string"}},"allowedCidrs":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string"},"lastUsedAt":{"type":["string","null"]},"lastUsedIp":{"type":["string","null"]},"expiresAt":{"type":["string","null"]},"retireAt":{"description":"Set while a rotation's overlap runs: this key stops answering at this instant","type":["string","null"]},"rotatedToId":{"description":"The key that replaced this one","type":["integer","null"]},"revokedAt":{"type":["string","null"]},"revokedReason":{"type":["string","null"]}},"required":["id","propertyId","name","maskedKey","mode","status","scopes","allowedCidrs","createdAt","lastUsedAt","lastUsedIp","expiresAt","retireAt","rotatedToId","revokedAt","revokedReason"],"additionalProperties":false}},"limit":{"type":"integer","description":"The most active keys one hotel may hold, its owner's own included"}},"required":["items","limit"],"additionalProperties":false},"HotelKeyCreate":{"type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":80,"description":"Your label for the key, shown to the hotel's owner too"},"scopes":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":40},"description":"What the key may do: any scope a hotel's own key may hold. Never a company key's own scopes"},"allowedCidrs":{"description":"Addresses the key may be used from (IPv4 or IPv6, bare or CIDR); empty or absent: any address","maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"expiresAt":{"description":"Optional end of life: a date (YYYY-MM-DD) or an ISO instant, at most two years away","type":"string","minLength":1,"maxLength":40}},"required":["name","scopes"],"additionalProperties":false},"HotelKeyCreated":{"type":"object","properties":{"key":{"description":"The secret. Shown in this answer only: store it now. We keep its hash. null on a replay of the same request (X-Idempotent-Replay: true): we keep no copy to show again, so rotate the key if the first answer was lost","type":["string","null"]},"view":{"type":"object","properties":{"id":{"type":"integer"},"propertyId":{"type":"integer"},"name":{"type":"string"},"maskedKey":{"type":"string","description":"The key's first twelve characters: the only form it has after the answer that made it"},"mode":{"type":"string","enum":["live","test"]},"status":{"type":"string","enum":["ACTIVE","REVOKED"]},"scopes":{"type":"array","items":{"type":"string"}},"allowedCidrs":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string"},"lastUsedAt":{"type":["string","null"]},"lastUsedIp":{"type":["string","null"]},"expiresAt":{"type":["string","null"]},"retireAt":{"description":"Set while a rotation's overlap runs: this key stops answering at this instant","type":["string","null"]},"rotatedToId":{"description":"The key that replaced this one","type":["integer","null"]},"revokedAt":{"type":["string","null"]},"revokedReason":{"type":["string","null"]}},"required":["id","propertyId","name","maskedKey","mode","status","scopes","allowedCidrs","createdAt","lastUsedAt","lastUsedIp","expiresAt","retireAt","rotatedToId","revokedAt","revokedReason"],"additionalProperties":false}},"required":["key","view"],"additionalProperties":false},"HotelKeyRotated":{"type":"object","properties":{"key":{"description":"The new secret. Shown in this answer only. null on a replay of the same request (X-Idempotent-Replay: true): we keep no copy to show again, so revoke the new key and mint one if the first answer was lost","type":["string","null"]},"view":{"type":"object","properties":{"id":{"type":"integer"},"propertyId":{"type":"integer"},"name":{"type":"string"},"maskedKey":{"type":"string","description":"The key's first twelve characters: the only form it has after the answer that made it"},"mode":{"type":"string","enum":["live","test"]},"status":{"type":"string","enum":["ACTIVE","REVOKED"]},"scopes":{"type":"array","items":{"type":"string"}},"allowedCidrs":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string"},"lastUsedAt":{"type":["string","null"]},"lastUsedIp":{"type":["string","null"]},"expiresAt":{"type":["string","null"]},"retireAt":{"description":"Set while a rotation's overlap runs: this key stops answering at this instant","type":["string","null"]},"rotatedToId":{"description":"The key that replaced this one","type":["integer","null"]},"revokedAt":{"type":["string","null"]},"revokedReason":{"type":["string","null"]}},"required":["id","propertyId","name","maskedKey","mode","status","scopes","allowedCidrs","createdAt","lastUsedAt","lastUsedIp","expiresAt","retireAt","rotatedToId","revokedAt","revokedReason"],"description":"The new key","additionalProperties":false},"retired":{"type":"object","properties":{"id":{"type":"integer"},"propertyId":{"type":"integer"},"name":{"type":"string"},"maskedKey":{"type":"string","description":"The key's first twelve characters: the only form it has after the answer that made it"},"mode":{"type":"string","enum":["live","test"]},"status":{"type":"string","enum":["ACTIVE","REVOKED"]},"scopes":{"type":"array","items":{"type":"string"}},"allowedCidrs":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string"},"lastUsedAt":{"type":["string","null"]},"lastUsedIp":{"type":["string","null"]},"expiresAt":{"type":["string","null"]},"retireAt":{"description":"Set while a rotation's overlap runs: this key stops answering at this instant","type":["string","null"]},"rotatedToId":{"description":"The key that replaced this one","type":["integer","null"]},"revokedAt":{"type":["string","null"]},"revokedReason":{"type":["string","null"]}},"required":["id","propertyId","name","maskedKey","mode","status","scopes","allowedCidrs","createdAt","lastUsedAt","lastUsedIp","expiresAt","retireAt","rotatedToId","revokedAt","revokedReason"],"description":"The key it replaces: it keeps answering until retireAt, 24 hours on","additionalProperties":false}},"required":["key","view","retired"],"additionalProperties":false},"HotelKeyRevoke":{"type":"object","properties":{"reason":{"type":"string","minLength":3,"maxLength":500,"description":"Why, 3 to 500 characters: it is written on the key and on the hotel's activity log"}},"required":["reason"],"additionalProperties":false},"WriteNotice":{"type":"object","properties":{"code":{"type":"string","enum":["NOT_SOURCE_OF_TRUTH","ROOM_TYPE_NOT_LINKED","PLAN_NOT_LINKED","PLAN_NOT_MAPPED","ROOM_STILL_ON_SALE","OTA_LINKED_RATES_NOT_REACHED","STAY_RULES_FROM_ANOTHER_PLAN","PER_OTA_PLANS_FOLLOW","PER_OTA_PLAN_FOLLOWS_PARENT","VALUE_HELD","COUNT_WAS_REFUSED","COUNT_ZERO_IS_NOT_STOP_SELL","STOP_SELL_IS_NOT_A_COUNT","COUNT_OPEN_BUT_PLANS_STOPPED","NEW_DATES_OPEN_CLOSED","FAR_NIGHTS_NEED_A_COUNT","ENGINE_WILL_REPRICE","ENGINE_WILL_RECOUNT","DRIFT_REPAIR_OFF"],"description":"Stable: branch on it. A code you do not know is a notice added later; show its message"},"level":{"type":"string","enum":["warning","info"],"description":"warning: our record shows what you sent does not do the whole job (something still sells, nothing is sent, a rule will undo it) · info: how it works, said so the next surprise is not one"},"message":{"type":"string","description":"What is going on, in a sentence a person can read; may change, do not branch on it"},"action":{"type":"string","description":"What to do about it, naming the call"},"roomTypeId":{"description":"The room type it is about","type":"integer"},"ratePlanIds":{"description":"The rate plans it is about (the ones you wrote)","type":"array","items":{"type":"integer"}},"otherRatePlanIds":{"description":"Other plans it names: the ones still selling, the plan that carries the star, the per-OTA plans","type":"array","items":{"type":"integer"}},"channels":{"description":"The connected channels it is about","type":"array","items":{"type":"object","properties":{"channelId":{"type":"string"},"kind":{"type":"string","description":"BookingCom, Expedia, Agoda, Goibibo, AirBNB, …"}},"required":["channelId","kind"],"additionalProperties":false}},"dateFrom":{"description":"The first night it is about","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"dateTo":{"description":"The last night it is about","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"nights":{"description":"How many nights between dateFrom and dateTo it is about (they need not be consecutive)","type":"integer"}},"required":["code","level","message","action"],"additionalProperties":false},"WritePreview":{"type":"object","properties":{"dryRun":{"type":"boolean","const":true,"description":"Nothing was written, queued or stored: this is what the same request would do without dryRun"},"resource":{"type":"string","enum":["availability","rates","restrictions"]},"verdict":{"type":"string","enum":["would-write","nothing-to-write","would-refuse"],"description":"would-write: a real request answers 202 and writes wouldChangeCells · nothing-to-write: a real request answers 202 and writes nothing · would-refuse: a real request is refused as refusal says"},"refusal":{"anyOf":[{"type":"object","properties":{"status":{"type":"integer","description":"The HTTP status the real request would get"},"code":{"type":"string","description":"Its data.code"},"message":{"type":"string"},"scope":{"description":"On RATE_LIMITED: the budget that would refuse","type":"string"},"retryAfterSeconds":{"type":"integer"}},"required":["status","code","message"],"additionalProperties":false},{"type":"null"}],"description":"The refusal a real request would get now, when verdict is would-refuse; null otherwise"},"requestedCells":{"type":"integer","description":"Distinct cells after per-request coalescing (last write wins)"},"wouldChangeCells":{"type":"integer","description":"Cells that would be written and sent: what a real request counts against the hour and day budgets"},"unchangedCells":{"type":"integer","description":"Cells our record and the channel manager already hold: nothing would be written or sent"},"heldCells":{"type":"integer","description":"Cells whose value the channel manager refused before: held, not sent again"},"wouldRejectCells":{"type":"integer","description":"Cells our record would refuse (wouldReject says why)"},"lane":{"type":"boolean","description":"true when a real request would be taken through the safety lane: the integration is paused or over a budget and this request only closes inventory (§6.6)"},"wouldChange":{"type":"array","items":{"type":"object","properties":{"roomTypeIds":{"description":"The room types this range is about (PUT /availability)","type":"array","items":{"type":"integer"}},"ratePlanIds":{"description":"The rate plans this range is about (PUT /rates, PUT /restrictions)","type":"array","items":{"type":"integer"}},"dateFrom":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Hotel-local calendar date, YYYY-MM-DD"},"dateTo":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Hotel-local calendar date, YYYY-MM-DD"},"days":{"anyOf":[{"type":"array","items":{"type":"string","enum":["mo","tu","we","th","fr","sa","su"],"description":"mo tu we th fr sa su"}},{"type":"null"}],"description":"The weekdays of the range it covers; null = every night of it"},"cells":{"type":"integer","description":"Cells in this range (entities × nights)"},"available":{"description":"The count sent","type":"integer"},"rate":{"description":"The price sent, as it would be kept: major units, the currency's own decimals","type":"string"},"rateMinor":{"description":"The same price in hundredths of the major unit","type":"integer"},"stopSell":{"type":"boolean"},"closedToArrival":{"type":"boolean"},"closedToDeparture":{"type":"boolean"},"minStayArrival":{"type":"integer"},"minStayThrough":{"type":"integer"},"maxStay":{"type":"integer"},"reason":{"description":"On a held range: the channel manager's own words for the refusal","type":"string"}},"required":["dateFrom","dateTo","days","cells"],"additionalProperties":false},"description":"The ranges that would be written, with the value sent. At most 50"},"wouldChangeOmitted":{"description":"Ranges left out of wouldChange past the cap","type":"integer"},"unchanged":{"type":"array","items":{"type":"object","properties":{"roomTypeIds":{"description":"The room types this range is about (PUT /availability)","type":"array","items":{"type":"integer"}},"ratePlanIds":{"description":"The rate plans this range is about (PUT /rates, PUT /restrictions)","type":"array","items":{"type":"integer"}},"dateFrom":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Hotel-local calendar date, YYYY-MM-DD"},"dateTo":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Hotel-local calendar date, YYYY-MM-DD"},"days":{"anyOf":[{"type":"array","items":{"type":"string","enum":["mo","tu","we","th","fr","sa","su"],"description":"mo tu we th fr sa su"}},{"type":"null"}],"description":"The weekdays of the range it covers; null = every night of it"},"cells":{"type":"integer","description":"Cells in this range (entities × nights)"},"available":{"description":"The count sent","type":"integer"},"rate":{"description":"The price sent, as it would be kept: major units, the currency's own decimals","type":"string"},"rateMinor":{"description":"The same price in hundredths of the major unit","type":"integer"},"stopSell":{"type":"boolean"},"closedToArrival":{"type":"boolean"},"closedToDeparture":{"type":"boolean"},"minStayArrival":{"type":"integer"},"minStayThrough":{"type":"integer"},"maxStay":{"type":"integer"},"reason":{"description":"On a held range: the channel manager's own words for the refusal","type":"string"}},"required":["dateFrom","dateTo","days","cells"],"additionalProperties":false},"description":"The ranges already held. At most 50"},"unchangedOmitted":{"type":"integer"},"held":{"type":"array","items":{"type":"object","properties":{"roomTypeIds":{"description":"The room types this range is about (PUT /availability)","type":"array","items":{"type":"integer"}},"ratePlanIds":{"description":"The rate plans this range is about (PUT /rates, PUT /restrictions)","type":"array","items":{"type":"integer"}},"dateFrom":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Hotel-local calendar date, YYYY-MM-DD"},"dateTo":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Hotel-local calendar date, YYYY-MM-DD"},"days":{"anyOf":[{"type":"array","items":{"type":"string","enum":["mo","tu","we","th","fr","sa","su"],"description":"mo tu we th fr sa su"}},{"type":"null"}],"description":"The weekdays of the range it covers; null = every night of it"},"cells":{"type":"integer","description":"Cells in this range (entities × nights)"},"available":{"description":"The count sent","type":"integer"},"rate":{"description":"The price sent, as it would be kept: major units, the currency's own decimals","type":"string"},"rateMinor":{"description":"The same price in hundredths of the major unit","type":"integer"},"stopSell":{"type":"boolean"},"closedToArrival":{"type":"boolean"},"closedToDeparture":{"type":"boolean"},"minStayArrival":{"type":"integer"},"minStayThrough":{"type":"integer"},"maxStay":{"type":"integer"},"reason":{"description":"On a held range: the channel manager's own words for the refusal","type":"string"}},"required":["dateFrom","dateTo","days","cells"],"additionalProperties":false},"description":"The ranges held after a refusal, each with the channel manager's words. At most 50"},"heldOmitted":{"type":"integer"},"wouldReject":{"type":"array","items":{"type":"object","properties":{"cells":{"type":"integer"},"error":{"type":"string"}},"required":["cells","error"],"additionalProperties":false},"description":"Groups our record would refuse, as far as it can be told without writing: a policy that forbids a plan price, a count above the rooms free. A real write can still refuse a group for a reason only the write meets; it is then in its rejected list"},"warnings":{"description":"Accepted, but worth a look: an availability above the room type's room count (an oversell the channels will sell). Absent when there is nothing to say","type":"array","items":{"type":"object","properties":{"roomTypeId":{"type":"integer"},"units":{"type":"integer","description":"Rooms of this type in our record"},"requested":{"type":"integer","description":"The highest count this request set for it"},"message":{"type":"string"}},"required":["roomTypeId","units","requested","message"],"additionalProperties":false}},"priceWarnings":{"description":"Accepted, but far outside the plan's standing price, on a property whose price band only warns (§6.6). At most 20; absent when there is nothing to say","type":"array","items":{"type":"object","properties":{"ratePlanId":{"type":"integer"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Hotel-local calendar date, YYYY-MM-DD"},"rateMinor":{"type":"integer","description":"The price this request set, in hundredths of the major unit"},"standingMinor":{"type":"integer","description":"The plan's standing price, in hundredths of the major unit"},"rate":{"description":"The same price in major units, as a decimal string (\"4500.50\")","type":"string"},"standing":{"description":"The plan's standing price in major units, as a decimal string","type":"string"},"message":{"type":"string"}},"required":["ratePlanId","date","rateMinor","standingMinor","message"],"additionalProperties":false}},"rounded":{"description":"Prices that would not be kept exactly as sent (§2.10)","type":"array","items":{"type":"object","properties":{"field":{"type":"string","description":"Where in the request the amount sat, for example \"updates[3].rate\""},"sent":{"type":"string","description":"The amount as it was sent"},"kept":{"type":"string","description":"The amount as it is kept, in major units with the currency's own decimals"},"reason":{"type":"string","description":"Why, in a sentence; may change, do not branch on it"}},"required":["field","sent","kept","reason"],"additionalProperties":false}},"roundedCount":{"type":"integer"},"notices":{"description":"What this write did not do, or will not go on doing, one plain sentence each with a stable code and what to do (§2.20). Warnings first. At most 20; absent when there is nothing to say","type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["NOT_SOURCE_OF_TRUTH","ROOM_TYPE_NOT_LINKED","PLAN_NOT_LINKED","PLAN_NOT_MAPPED","ROOM_STILL_ON_SALE","OTA_LINKED_RATES_NOT_REACHED","STAY_RULES_FROM_ANOTHER_PLAN","PER_OTA_PLANS_FOLLOW","PER_OTA_PLAN_FOLLOWS_PARENT","VALUE_HELD","COUNT_WAS_REFUSED","COUNT_ZERO_IS_NOT_STOP_SELL","STOP_SELL_IS_NOT_A_COUNT","COUNT_OPEN_BUT_PLANS_STOPPED","NEW_DATES_OPEN_CLOSED","FAR_NIGHTS_NEED_A_COUNT","ENGINE_WILL_REPRICE","ENGINE_WILL_RECOUNT","DRIFT_REPAIR_OFF"],"description":"Stable: branch on it. A code you do not know is a notice added later; show its message"},"level":{"type":"string","enum":["warning","info"],"description":"warning: our record shows what you sent does not do the whole job (something still sells, nothing is sent, a rule will undo it) · info: how it works, said so the next surprise is not one"},"message":{"type":"string","description":"What is going on, in a sentence a person can read; may change, do not branch on it"},"action":{"type":"string","description":"What to do about it, naming the call"},"roomTypeId":{"description":"The room type it is about","type":"integer"},"ratePlanIds":{"description":"The rate plans it is about (the ones you wrote)","type":"array","items":{"type":"integer"}},"otherRatePlanIds":{"description":"Other plans it names: the ones still selling, the plan that carries the star, the per-OTA plans","type":"array","items":{"type":"integer"}},"channels":{"description":"The connected channels it is about","type":"array","items":{"type":"object","properties":{"channelId":{"type":"string"},"kind":{"type":"string","description":"BookingCom, Expedia, Agoda, Goibibo, AirBNB, …"}},"required":["channelId","kind"],"additionalProperties":false}},"dateFrom":{"description":"The first night it is about","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"dateTo":{"description":"The last night it is about","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"nights":{"description":"How many nights between dateFrom and dateTo it is about (they need not be consecutive)","type":"integer"}},"required":["code","level","message","action"],"additionalProperties":false}},"noticesOmitted":{"description":"How many more notices there were past the 20 listed; present only when some were left out","type":"integer"},"spent":{"type":"object","properties":{"cells":{"type":"integer","description":"Cells this dry run was charged against the property's cells-per-minute budget: the same as the write it previews"}},"required":["cells"],"description":"What this dry run cost. It also counted as one request and one write on the key and the property","additionalProperties":false},"wouldSpend":{"type":"object","properties":{"changedCells":{"type":"integer","description":"Changed cells a real request would count against the hour and day budgets; a dry run counts none"}},"required":["changedCells"],"additionalProperties":false},"note":{"type":"string"}},"required":["dryRun","resource","verdict","refusal","requestedCells","wouldChangeCells","unchangedCells","heldCells","wouldRejectCells","lane","wouldChange","unchanged","held","wouldReject","spent","wouldSpend","note"],"additionalProperties":false},"CloseRoomType":{"type":"object","properties":{"roomTypeId":{"description":"ZimmerStack room type id (GET /catalog). Name the room type by this or by roomTypeRef, exactly one","type":"integer","exclusiveMinimum":0},"roomTypeRef":{"description":"Your own ref for the room type: the one you gave it in PUT /catalog/room-types or POST /properties (GET /catalog reads it back). Name the room type by this or by roomTypeId, exactly one. A room type the hotel's owner made has no ref of yours: name it by roomTypeId","type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9._:-]+$"},"dateFrom":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Hotel-local calendar date, YYYY-MM-DD"},"dateTo":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Hotel-local calendar date, YYYY-MM-DD"},"days":{"description":"Omitted or empty = every night of the range","maxItems":7,"type":"array","items":{"type":"string","enum":["mo","tu","we","th","fr","sa","su"],"description":"mo tu we th fr sa su"}},"dryRun":{"description":"true: answer what the action would do, and do nothing","type":"boolean"}},"required":["dateFrom","dateTo"],"additionalProperties":false},"ReopenRoomType":{"type":"object","properties":{"roomTypeId":{"description":"ZimmerStack room type id (GET /catalog). Name the room type by this or by roomTypeRef, exactly one","type":"integer","exclusiveMinimum":0},"roomTypeRef":{"description":"Your own ref for the room type: the one you gave it in PUT /catalog/room-types or POST /properties (GET /catalog reads it back). Name the room type by this or by roomTypeId, exactly one. A room type the hotel's owner made has no ref of yours: name it by roomTypeId","type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9._:-]+$"},"dateFrom":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Hotel-local calendar date, YYYY-MM-DD"},"dateTo":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Hotel-local calendar date, YYYY-MM-DD"},"days":{"description":"Omitted or empty = every night of the range","maxItems":7,"type":"array","items":{"type":"string","enum":["mo","tu","we","th","fr","sa","su"],"description":"mo tu we th fr sa su"}},"dryRun":{"description":"true: answer what the action would do, and do nothing","type":"boolean"},"available":{"description":"The count to put on sale on each reopened night. Omit it to put back the count each night held before the close; a night whose count was changed since is left as it is","type":"integer","minimum":0,"maximum":10000}},"required":["dateFrom","dateTo"],"additionalProperties":false},"CloseResult":{"type":"object","properties":{"action":{"type":"string","enum":["close","reopen"]},"dryRun":{"type":"boolean","description":"true: nothing was done; this is what the action would do"},"roomTypeId":{"type":"integer"},"dateFrom":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Hotel-local calendar date, YYYY-MM-DD"},"dateTo":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Hotel-local calendar date, YYYY-MM-DD"},"nights":{"type":"integer","description":"Nights the request named"},"count":{"type":"object","properties":{"changedNights":{"type":"integer","description":"close: nights whose count was set to 0 · reopen: nights whose count was put back or set"},"unchangedNights":{"type":"integer","description":"close: nights already at 0 on our record and on the channel manager · reopen: nights whose count was left as it is"}},"required":["changedNights","unchangedNights"],"description":"The room type's count: the one thing every rate of the room shares, on every channel","additionalProperties":false},"ratePlans":{"type":"array","items":{"type":"object","properties":{"ratePlanId":{"type":"integer"},"name":{"type":"string"},"changedNights":{"type":"integer","description":"close: nights stop-sell was switched on · reopen: nights it was lifted"},"unchangedNights":{"type":"integer","description":"close: nights it was already on · reopen: nights left stopped because they were stopped before the close"},"perOtaPlans":{"type":"integer","description":"Per-OTA plans of this plan that take its stop-sell on the channel manager by themselves"}},"required":["ratePlanId","name","changedNights","unchangedNights","perOtaPlans"],"additionalProperties":false},"description":"Every rate plan of the room type, each with what was done to it"},"notReached":{"type":"array","items":{"type":"object","properties":{"what":{"type":"string","enum":["room-type","rate-plan","ota-linked-rates","hotel"]},"ratePlanId":{"type":"integer"},"reason":{"type":"string","enum":["not-linked","not-mapped","not-ours","not-source-of-truth","no-count-before","changed-since","refused"]},"message":{"type":"string"}},"required":["what","reason","message"],"additionalProperties":false},"description":"What the action could not reach or did not touch, and why. Read it: a close that reads done here can still leave something selling"},"skippedNights":{"type":"integer","description":"reopen: nights of the range that POST /availability/close had not closed. They were left alone. Always 0 on a close"},"batches":{"type":"array","items":{"type":"object","properties":{"resource":{"type":"string","enum":["availability","restrictions"]},"batchId":{"type":"string","format":"uuid"},"poll":{"type":"string"}},"required":["resource","batchId","poll"],"additionalProperties":false},"description":"The writes this action made, to watch land with GET /batches/{batchId}. Empty on a dry run and when nothing had to change"},"lane":{"description":"true when the close was taken through the safety lane: the integration is paused or over a budget (§6.6). A close always may; a reopen never does","type":"boolean"}},"required":["action","dryRun","roomTypeId","dateFrom","dateTo","nights","count","ratePlans","notReached","skippedNights","batches"],"additionalProperties":false},"Explain":{"type":"object","properties":{"asOf":{"type":"string","description":"When this was read (ISO 8601, UTC). Everything here is our record: no call was made to the channel manager"},"propertyId":{"type":"integer"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Hotel-local calendar date, YYYY-MM-DD"},"sandbox":{"type":"boolean"},"sourceOfTruth":{"type":"boolean","description":"Our record is what the channels are sent; false = nothing written here reaches a channel"},"summary":{"type":"array","items":{"type":"string"},"description":"What is going on, in plain sentences, most important first. For a person; do not parse"},"roomType":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"linked":{"type":"boolean"}},"required":["id","name","linked"],"additionalProperties":false},"count":{"type":"object","properties":{"lastSent":{"anyOf":[{"type":"object","properties":{"at":{"type":"string","description":"When your software sent it (ISO 8601, UTC)"},"batchId":{"type":"string","description":"The batch that carried it: GET /batches/{batchId}"},"keyId":{"description":"The key it was sent with","type":["integer","null"]},"available":{"type":"integer"}},"required":["at","batchId","keyId","available"],"additionalProperties":false},{"type":"null"}],"description":"null: not found in the writes we looked through (searched says how far)"},"record":{"type":"object","properties":{"available":{"description":"The count our record holds; null = none","type":["integer","null"]},"setBy":{"type":"string","enum":["software","person","engine","seed","policy","channel","nobody","unknown"],"description":"software: your integration, through this API · person: someone on a ZimmerStack screen · engine: the hotel's pricing engine or its standing price · seed: copied from the channel manager when the hotel was set up, nobody's choice · policy: a rule of the hotel (new dates open closed) · channel: the channel manager's own number after an OTA booking or cancellation · nobody: we hold no value · unknown: set by hand, and we cannot tell by whom"},"setAt":{"type":["string","null"]},"movedSince":{"type":"boolean","description":"true: the count differs from what your software last sent, because something moved it after (an OTA booking or cancellation the hotel follows, a person, a rule)"}},"required":["available","setBy","setAt","movedSince"],"additionalProperties":false},"channelManager":{"type":"object","properties":{"available":{"type":["integer","null"]},"seenAt":{"description":"null = never read: we do not know what it holds","type":["string","null"]},"how":{"anyOf":[{"type":"string","enum":["push","delta","pull"]},{"type":"null"}],"description":"push: it took a count we sent · delta: it moved by one with a booking or cancellation · pull: we read it back"}},"required":["available","seenAt","how"],"additionalProperties":false},"inSync":{"type":["boolean","null"]},"queued":{"type":"boolean","description":"A send of this night's count is waiting"},"pushes":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string"},"cause":{"type":"string","description":"What made the send: OVERRIDE_SET (a count somebody set, your software included), a booking, a cancellation, a sweep…"},"by":{"type":"string","enum":["software-or-person","channel","system"],"description":"Who caused it: an account of the hotel (your software writes as the hotel's owner), the channel manager's own movement, or a job of ours"},"bookingId":{"description":"The booking behind it, when there is one","type":["integer","null"]},"value":{"description":"The count sent; null when the log does not hold it","type":["integer","null"]},"outcome":{"type":"string","enum":["sent","refused","failed","queued","not-needed","partly-sent"],"description":"sent: the channel manager took it · refused: it answered and refused the value (words) · failed: the call failed and is retried · queued: not sent yet · not-needed: nothing had to be sent (the channel manager had moved its own number, or the value was the same) · partly-sent: some nights of that send landed"},"words":{"description":"The channel manager's own words, on a refusal or a failure","type":["string","null"]}},"required":["at","cause","by","bookingId","value","outcome","words"],"additionalProperties":false},"description":"The sends of this night's count we still hold, newest first: the hotel's last inventory events that named it, and every refused or logged send"},"closed":{"anyOf":[{"type":"object","properties":{"at":{"type":"string"},"countBefore":{"type":["integer","null"]},"stopSellPlanIds":{"type":"array","items":{"type":"integer"}}},"required":["at","countBefore","stopSellPlanIds"],"additionalProperties":false},{"type":"null"}],"description":"Set when POST /availability/close closed this night and it has not been reopened"}},"required":["lastSent","record","channelManager","inSync","queued","pushes","closed"],"additionalProperties":false},"bookings":{"type":"array","items":{"type":"object","properties":{"bookingId":{"type":"integer"},"channel":{"description":"The OTA, or null for a booking made at the hotel or on its website","type":["string","null"]},"status":{"type":"string","enum":["CONFIRMED","CANCELLED"]},"bookedAt":{"type":"string"},"cancelledAt":{"type":["string","null"]},"moves":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string"},"cause":{"type":"string"},"outcome":{"type":"string"}},"required":["at","cause","outcome"],"additionalProperties":false},"description":"What each change of this booking did to the count, as the inventory log recorded it"}},"required":["bookingId","channel","status","bookedAt","cancelledAt","moves"],"additionalProperties":false},"description":"The bookings that hold or held a room of this type on this night. Ids and times only: never a guest's name, phone or email"},"plans":{"type":"array","items":{"type":"object","properties":{"ratePlanId":{"type":"integer"},"name":{"type":"string"},"linked":{"type":"boolean","description":"The plan exists on the channel manager; false = nothing is sent for it"},"price":{"type":"object","properties":{"lastSent":{"anyOf":[{"type":"object","properties":{"at":{"type":"string","description":"When your software sent it (ISO 8601, UTC)"},"batchId":{"type":"string","description":"The batch that carried it: GET /batches/{batchId}"},"keyId":{"description":"The key it was sent with","type":["integer","null"]},"rate":{"type":"string"},"rateMinor":{"type":"integer"}},"required":["at","batchId","keyId","rate","rateMinor"],"additionalProperties":false},{"type":"null"}],"description":"null: not found in the writes we looked through (searched says how far)"},"record":{"type":"object","properties":{"rate":{"description":"The price our record holds, major units; null = none of its own","type":["string","null"]},"rateMinor":{"type":["integer","null"]},"source":{"description":"The layer the price comes from: MANUAL (set by software or a person) · SEED (copied from the channel manager at set-up) · ENGINE · PLAN_DEFAULT · …","type":["string","null"]},"setBy":{"type":"string","enum":["software","person","engine","seed","policy","channel","nobody","unknown"],"description":"software: your integration, through this API · person: someone on a ZimmerStack screen · engine: the hotel's pricing engine or its standing price · seed: copied from the channel manager when the hotel was set up, nobody's choice · policy: a rule of the hotel (new dates open closed) · channel: the channel manager's own number after an OTA booking or cancellation · nobody: we hold no value · unknown: set by hand, and we cannot tell by whom"}},"required":["rate","rateMinor","source","setBy"],"additionalProperties":false},"channelManager":{"type":"object","properties":{"rate":{"type":["string","null"]},"rateMinor":{"type":["integer","null"]},"seenAt":{"description":"When we last saw what it holds: a nightly read, or a send it took. null = never: we do not know what it holds","type":["string","null"]}},"required":["rate","rateMinor","seenAt"],"additionalProperties":false},"inSync":{"description":"Our record and the channel manager's copy agree; null when one of them is not known","type":["boolean","null"]}},"required":["lastSent","record","channelManager","inSync"],"additionalProperties":false},"stayRules":{"type":"object","properties":{"lastSent":{"anyOf":[{"type":"object","properties":{"at":{"type":"string","description":"When your software sent it (ISO 8601, UTC)"},"batchId":{"type":"string","description":"The batch that carried it: GET /batches/{batchId}"},"keyId":{"description":"The key it was sent with","type":["integer","null"]},"values":{"type":"object","properties":{"stopSell":{"type":["boolean","null"]},"closedToArrival":{"type":["boolean","null"]},"closedToDeparture":{"type":["boolean","null"]},"minStayArrival":{"type":["integer","null"]},"minStayThrough":{"type":["integer","null"]},"maxStay":{"type":["integer","null"]}},"additionalProperties":false}},"required":["at","batchId","keyId","values"],"additionalProperties":false},{"type":"null"}]},"record":{"type":"object","properties":{"stopSell":{"type":["boolean","null"]},"closedToArrival":{"type":["boolean","null"]},"closedToDeparture":{"type":["boolean","null"]},"minStayArrival":{"type":["integer","null"]},"minStayThrough":{"type":["integer","null"]},"maxStay":{"type":["integer","null"]},"stopSellSetBy":{"type":"string","enum":["software","person","engine","seed","policy","channel","nobody","unknown"],"description":"Who the stop-sell in our record came from"}},"required":["stopSell","closedToArrival","closedToDeparture","minStayArrival","minStayThrough","maxStay","stopSellSetBy"],"additionalProperties":false},"channelManager":{"type":"object","properties":{"stopSell":{"type":["boolean","null"]},"closedToArrival":{"type":["boolean","null"]},"closedToDeparture":{"type":["boolean","null"]},"minStayArrival":{"type":["integer","null"]},"minStayThrough":{"type":["integer","null"]},"maxStay":{"type":["integer","null"]},"seenAt":{"type":["string","null"]}},"required":["stopSell","closedToArrival","closedToDeparture","minStayArrival","minStayThrough","maxStay","seenAt"],"additionalProperties":false},"inSync":{"type":["boolean","null"]}},"required":["lastSent","record","channelManager","inSync"],"additionalProperties":false},"send":{"type":"object","properties":{"lastLandedAt":{"description":"When a price or stay rule of this night last reached the channel manager","type":["string","null"]},"queuedSince":{"description":"A change is waiting to be sent since then; null = nothing waits","type":["string","null"]},"held":{"anyOf":[{"type":"object","properties":{"since":{"type":"string"},"words":{"type":"string","description":"The channel manager's own words"},"retries":{"type":"integer","description":"Daily retries made so far, of three"}},"required":["since","words","retries"],"additionalProperties":false},{"type":"null"}],"description":"The value of this night the channel manager refused: held, not sent again until you send another value"},"driftResends":{"description":"Nights running the nightly repair has sent this night again because the channel manager held another value; null = it is not being repaired","type":["integer","null"]}},"required":["lastLandedAt","queuedSince","held","driftResends"],"description":"We keep the last send of a price or stay rule, not every one","additionalProperties":false},"family":{"type":"object","properties":{"parent":{"anyOf":[{"type":"object","properties":{"ratePlanId":{"type":"integer"},"name":{"type":"string"}},"required":["ratePlanId","name"],"additionalProperties":false},{"type":"null"}],"description":"The plan this one is a per-OTA plan of; null for an ordinary plan"},"perOtaPlans":{"type":"array","items":{"type":"object","properties":{"ratePlanId":{"description":"Its id here, when it is a plan of GET /catalog too","type":["integer","null"]},"name":{"type":["string","null"]},"channelId":{"type":["string","null"]},"channelKind":{"type":["string","null"]},"mode":{"type":"string","enum":["follows-price","own-price"],"description":"follows-price: the channel manager reprices it when its parent is sent · own-price: its parent's price is copied onto it in the same send"}},"required":["ratePlanId","name","channelId","channelKind","mode"],"additionalProperties":false}}},"required":["parent","perOtaPlans"],"additionalProperties":false},"channels":{"type":"array","items":{"type":"object","properties":{"channelId":{"type":"string"},"kind":{"type":"string"},"title":{"type":["string","null"]},"active":{"type":"boolean","description":"The connection is switched on"},"mapped":{"type":"boolean","description":"The connection sells this plan"},"through":{"anyOf":[{"type":"string","enum":["itself","per-ota-plan"]},{"type":"null"}],"description":"Through the plan's own rows, or the rows of one of its per-OTA plans; null when not mapped"},"starOnPlanIds":{"type":"array","items":{"type":"integer"},"description":"Plans that carry the star for an OTA rate this plan also sells here: that rate takes its stay rules from them"},"readonlyRows":{"type":"integer","description":"Rows the OTA derives on its own side: they cannot be written from here"}},"required":["channelId","kind","title","active","mapped","through","starOnPlanIds","readonlyRows"],"additionalProperties":false},"description":"Every connection of the hotel, and whether it sells this plan. Empty when the connections have not been read"},"reach":{"type":"string","enum":["mapped","not-mapped","not-linked","unknown"],"description":"mapped: a live connection sells it · not-mapped: none does, so a write for it changes nothing a guest sees · not-linked: it is not on the channel manager · unknown: the connections have not been read yet"}},"required":["ratePlanId","name","linked","price","stayRules","send","family","channels","reach"],"additionalProperties":false},"description":"The plan asked for, or every plan of the room type"},"channels":{"type":"object","properties":{"known":{"type":"boolean","description":"false: this hotel's connections have not been read yet, so nothing is said about what they map"},"seenAt":{"description":"When the connections and what they map were last read from the channel manager (nightly)","type":["string","null"]},"live":{"type":"array","items":{"type":"object","properties":{"channelId":{"type":"string"},"kind":{"type":"string"},"title":{"type":["string","null"]}},"required":["channelId","kind","title"],"additionalProperties":false},"description":"The connections that are switched on"}},"required":["known","seenAt","live"],"additionalProperties":false},"policies":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["NOT_SOURCE_OF_TRUTH","ROOM_TYPE_NOT_LINKED","PLAN_NOT_LINKED","PLAN_NOT_MAPPED","ROOM_STILL_ON_SALE","OTA_LINKED_RATES_NOT_REACHED","STAY_RULES_FROM_ANOTHER_PLAN","PER_OTA_PLANS_FOLLOW","PER_OTA_PLAN_FOLLOWS_PARENT","VALUE_HELD","COUNT_WAS_REFUSED","COUNT_ZERO_IS_NOT_STOP_SELL","STOP_SELL_IS_NOT_A_COUNT","COUNT_OPEN_BUT_PLANS_STOPPED","NEW_DATES_OPEN_CLOSED","FAR_NIGHTS_NEED_A_COUNT","ENGINE_WILL_REPRICE","ENGINE_WILL_RECOUNT","DRIFT_REPAIR_OFF","FOLLOWS_OTA_MOVES","WRITES_PAUSED","CLOSED_BY_ACTION"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false},"description":"The rules in force on this night that can change what you sent, each in a sentence"},"searched":{"type":"object","properties":{"batches":{"type":"integer","description":"Writes of your software we looked through for lastSent, per resource, newest first"},"oldestBatchAt":{"description":"The oldest of them; a write before it is not found here","type":["string","null"]},"inventoryEvents":{"type":"integer","description":"The hotel's newest inventory events we looked through for pushes"}},"required":["batches","oldestBatchAt","inventoryEvents"],"additionalProperties":false}},"required":["asOf","propertyId","date","sandbox","sourceOfTruth","summary","roomType","count","bookings","plans","channels","policies","searched"],"additionalProperties":false},"SandboxFault":{"type":"object","properties":{"kind":{"type":"string","enum":["refuse","throttle","outage"],"description":"refuse: the pretend channel refuses the next prices or stay rules, answering 200 with a warning as the channel manager does · throttle: it answers \"too many requests\" for a while · outage: it does not answer for a while"},"values":{"description":"refuse only: how many nights (rate plan × night) to refuse, in the order they are sent. Default 1","type":"integer","minimum":1,"maximum":500},"minutes":{"description":"throttle and outage only: how long. Default 5 for a throttle, 10 for an outage (the alert needs five failed attempts, one a minute)","type":"integer","minimum":1,"maximum":60},"message":{"description":"refuse only: the pretend channel's words for the refusal, as your software will read them back","type":"string","minLength":1,"maxLength":200}},"required":["kind"],"additionalProperties":false},"SandboxFaultView":{"type":"object","properties":{"active":{"type":"boolean","description":"A fault is in force on this sandbox's pretend channel"},"kind":{"anyOf":[{"type":"string","enum":["refuse","throttle","outage"]},{"type":"null"}]},"remaining":{"description":"refuse: nights still to be refused","type":["integer","null"]},"until":{"description":"throttle, outage: when the pretend channel answers normally again (ISO 8601, UTC)","type":["string","null"]},"message":{"description":"refuse: the pretend channel's words","type":["string","null"]},"setAt":{"type":["string","null"]},"watch":{"type":"array","items":{"type":"string"},"description":"What to do next and what your software should then see, step by step"}},"required":["active","kind","remaining","until","message","setAt","watch"],"additionalProperties":false}}}}