Skip to content

Guide

Explain one night(why is it not selling?)

"We sent 0 rooms for that night, and it still sold." One answers this. It shows what your software sent, what ZimmerStack holds, and what the OTAs' side holds, for one night.

The idea

A value travels in three steps. It goes from your software to ZimmerStack. Then to . Then to each .

  1. Your software

    What you sent last.

    step 1
  2. ZimmerStack

    What our record holds, and who set it.

    step 2
  3. Our connectivity partner

    What it was last seen holding.

    step 3
  4. The OTAs

    They show what our connectivity partner passed to them.

Sometimes a night does not sell as you sent it. Then the question is always the same. At which step did the value change, and who changed it?

Explain one night answers this for one and one night. It reads only ZimmerStack's own record. It makes no request to our connectivity partner. So it costs the hotel nothing, and you can ask at any time.

What you send
roomTypeId and date. You may add ratePlanId, for one of that room type. Without it you get every rate plan of the room.
Who can use it
A key with the ari:read.
What it answers
For the room type's , and for each rate plan's and : what you sent last, what ZimmerStack holds, and what our connectivity partner was last seen holding.
Around that
Every send of the availability and how it ended. A refused value, with the reason. The rate plan's per-OTA plans. Every OTA connection, and if it sells the rate plan. The rules of the hotel on that night. The bookings that took a room.
In plain sentences
The field summary says the same story in sentences a person can read.

An example

A partner sent availability 0 for Deluxe Garden Room on 2026-11-21. The next morning the room was on sale again. Their software asks why:

Open a terminal and run this. On Windows PowerShell, type curl.exe instead of curl.

terminal
curl "https://api.zimmerstack.com/api/v1/connect-api/v1/explain?roomTypeId=412&date=2026-11-21" -H "Authorization: Bearer zsk_test_YOUR_KEY"

With the Node package, the same question looks like this:

why is this night not selling as we sent it?
const answer = await zs().explain.night({ roomTypeId, date: night });

// The whole story in plain sentences, most important first: show these to the person who asked.
for (const sentence of answer.summary) console.log(sentence);

// The same as fields: what you last sent, what our record holds, what the channel manager was last seen holding.
const { lastSent, record, channelManager, inSync } = answer.count;
console.log("count: sent", lastSent?.available ?? "not found", "· record", record.available, `(${record.setBy})`, "· channel manager", channelManager.available, "· in sync", inSync);
// seenAt null means that night was never read back: not known, which is not the same as wrong.
if (channelManager.seenAt === null) console.log("The channel manager's copy of this night has not been read yet.");
what comes back: status code 200, the field data.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)."
]

The story is in the sentences:

  1. The software sent 0.
  2. ZimmerStack still holds 0.
  3. The next morning a guest cancelled at an OTA. Our connectivity partner put one room back by itself.

The fields say the same:

status code 200, the field data.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
}

This is the case that availability 0 is not a stop sell describes. The fix is to close the room type.

What each part of the answer means

For the room type's availability, the answer has the part count. For each rate plan it has a part for the price and a part for the restrictions. Each part puts three values side by side.

  • FieldlastSent
    What it isWhat your software sent last for the night. Also when, with which key, and in which batch.
    When it is nullThe update is older than the ones ZimmerStack kept the values of. The field searched says how far back it looked.
  • Fieldrecord
    What it isWhat ZimmerStack holds, and who set it (setBy).
    When it is nullZimmerStack holds no value of its own for the night.
  • FieldchannelManager
    What it isWhat our connectivity partner was last seen holding, and when (seenAt).
    When it is nullThe night was never read back. ZimmerStack does not know what it holds.
  • FieldinSync
    What it istrue when ZimmerStack and our connectivity partner hold the same value.
    When it is nullOne of the two values is not known.

The field setBy says who set the value that ZimmerStack holds. One of its values names the and the .

  • setBysoftware
    What it meansYour software, through this API.
  • setByperson
    What it meansA person, on a ZimmerStack screen.
  • setByengine
    What it meansThe hotel's pricing engine, or its standing price.
  • setByseed
    What it meansCopied from our connectivity partner when the hotel was set up. Nobody chose it.
  • setBypolicy
    What it meansA rule of the hotel, such as “new dates open closed”.
  • setBychannel
    What it meansOur connectivity partner's own number, after a booking or a cancellation at an OTA.
  • setBynobody
    What it meansZimmerStack holds no value.
  • setByunknown
    What it meansSet by hand, and ZimmerStack cannot tell by whom.
summary
The whole story in plain sentences, the most important first. It is for a person. Show it. Do not let your code read meaning from it.
count.pushes
Every send of the night's availability that ZimmerStack still has a record of, newest first. Each one says what caused it, the booking behind it, and how it ended: sent, refused, failed, queued, not-needed or partly-sent. A refusal carries our connectivity partner's own words.
count.closed
It is set when a close closed this night, and the night has not been reopened.
bookings
The bookings that hold or held a room of the type on that night. Each has an id, the OTA, the state and the times. Never a guest's name, phone or email.
plans[].send
For a price or a restriction: when one last arrived, and if one is waiting. Also a value on hold after a refusal, with our connectivity partner's words and how many daily tries were made.
plans[].family
The rate plan's parent, and its . For each one it says if it follows the parent's price or keeps its own.
plans[].channels and reach
Every OTA connection of the hotel, and if it sells the rate plan. reach sums it up: mapped, not-mapped, not-linked or unknown.
policies
The rules of the hotel on that night that can change what you sent, each in one sentence. For example: the pricing engine will set a new price, new dates open closed, or updates are paused.

What it cannot know

Where ZimmerStack does not know, it says so
seenAt: null means the night was never read back from our connectivity partner. lastSent: null means the update is older than the ones we kept the values of. channels.known: false means the hotel's OTA connections have not been read yet.
It is not an OTA's own screen
ZimmerStack holds our connectivity partner's copy, not each OTA's. What an OTA shows is what our connectivity partner passed to it.
What your software sent last
This is kept only for updates made since this request was added. An older update reads lastSent: null. ZimmerStack looks through the hotel's newest 50 updates of each kind. searched.oldestBatchAt says how far back that went.
Prices and restrictions keep only their last send
For availability there is a list of sends. For a price or a restriction there is only the last one: when it arrived, if one is waiting, and a value on hold. There is no history of price sends for each night, and the answer does not make one up.
A rate plan no OTA sells
A rate plan can be on our connectivity partner and sold by no connected OTA. What each connection sells is read every night and kept. The answer says when, in channels.seenAt. Such a rate plan is named in three places: the notice PLAN_NOT_MAPPED on an update, the list unreachable of its batch with the status not-mapped, and reach here. Its batch still says landed, because the values are sent.
How far it can see
A night from 30 days back to the last night you may send. The date is a date on the hotel's own calendar.
What can go wrong
400 VALIDATION, RANGE_INVALID (the night is outside that range), UNKNOWN_ROOM_TYPE or UNKNOWN_RATE_PLAN (the rate plan is not one of that room type). Errors says more.

The request

The request has its own page, with every field and a box to try it.

Explain one night
GET https://api.zimmerstack.com/api/v1/connect-api/v1/explain Scope ari:read. Open its page.

Words on this page

Request
One message your software sends to the API.
OTA
Online travel agency: a website that sells hotel rooms, like Booking.com, MakeMyTrip or Agoda. Learn more
Connectivity partner
The company that carries ZimmerStack's numbers to each OTA and brings the bookings back. You never call it. Where an API name says channel manager, it means this last step. Learn more
Room type
A kind of room the hotel sells, like Deluxe Room or Family Suite. A hotel can have 12 rooms of one room type.
Rate plan
One way to sell a room type, with its own price. For example Room only, or With breakfast.
Scope
One permission of a key. For example ari:write lets the key update availability, rates and restrictions.
Availability
How many rooms of one room type are free to sell on one night. Learn more
Rates
The price of a room for one night. Learn more
Restrictions
Stay rules for a night, like a minimum stay of 2 nights, or no arrival on that day. Learn more
Pricing engine
Software that changes a hotel's prices by itself, when the hotel has switched it on.
Standing price
The normal price of a rate plan: its defaultRate. Every date starts with it. A rate plan the hotel made in ZimmerStack can use the base rate of its room type instead.
Per-OTA plan
A child of a rate plan, made for one OTA only. It takes its restrictions from its parent rate plan, and often its price too.

Routes, samples, limits and codes on this page come from the API's public contract, read live, Sat, 05 Dec 2026 01:08:27 UTC.