Skip to content

API action

Explain one night(why is it not selling?)

Find out why one night does not sell as you sent it.

About this action

What it does
Tells the story of one night of one . It shows three things: what your software sent, what ZimmerStack holds, and what our holds.
When to use it
When a night sells, or does not sell, and you do not know why. For example you sent 0 rooms and a room was booked all the same.
Who can use it
A or a . A company key names the hotel with the . The key needs the ari:read.
Address
GET https://api.zimmerstack.com/api/v1/connect-api/v1/explain
Before this
You need a way to name the room type: your own for it, or its roomTypeId. Get room types and rate plans shows both.

What you send

At the end of the address, after a question mark:

roomTypeId
ZimmerStack's id of the room type. Send this or roomTypeRef, never both. One of the two is required.
roomTypeRef
Your own for the room type, in the place of roomTypeId.
ratePlanId
Optional. ZimmerStack's id of one rate plan of that room type. Without a rate plan, the answer has every rate plan of the room type.
ratePlanRef
Optional. Your own ref for that rate plan, in the place of ratePlanId. Never send both.
date
Required. The night, like 2026-12-24. It can be up to 30 days in the past, or any night you may send.

Things to know

  1. Ask about one night, not about a calendar. This request is for the night a person is looking at. To read many nights, use Get availability, Get rates and Get restrictions.
  2. The answer comes from ZimmerStack's own record. Nothing is asked from our connectivity partner or from an . So you can ask at any time.
  3. It is not the screen of an OTA. ZimmerStack knows what our connectivity partner holds. An OTA shows what our connectivity partner gave it.
  4. It never shows a guest. A booking is listed with its id and its times only.

The request, in your language

Show the examples for

A sandbox's own key works for one hotel: choose "A hotel key" for it.

Put your key in place of zsk_test_YOUR_KEY, and your hotel's property id in place of YOUR_PROPERTY_ID.

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-12-24" -H "Authorization: Bearer zsk_test_YOUR_KEY" -H "X-ZS-Property: YOUR_PROPERTY_ID"

Put your key in place of zsk_test_YOUR_KEY. A hotel key works for one hotel, so the request does not name the hotel.

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-12-24" -H "Authorization: Bearer zsk_test_YOUR_KEY"

What comes back

The is 200. Read summary first: it tells the story in plain sentences. The other fields hold the same facts for your software.

response · status code 200
{
  "statuscode": 200,
  "message": "OK",
  "data": {
    "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
    }
  }
}
summary
The story of the night in sentences, the most important first. Show it to a person. Do not read it with code.
count
The of the room type on this night, seen in three places.
lastSent
What your software last sent, when, and in which . When it was not found, it is null.
record
What ZimmerStack holds now. In it, setBy says who set it: software is your software, person is someone on a ZimmerStack screen.
channelManager
What our connectivity partner was last seen holding, and when (seenAt). The API calls our connectivity partner the channel manager.
inSync
With true, ZimmerStack and our connectivity partner hold the same value.
count.pushes
Each time the availability of this night was sent, the newest first, and how it ended.
count.closed
Filled when Close a room type closed this night and it was not opened again.
bookings
Every that holds or held a room of this room type on this night.
plans
One item for each : its price in price and its restrictions in stayRules, seen in the same three places.
reach
Does an OTA sell this rate plan? mapped means yes. not-mapped means no, so its values change nothing for a guest.
policies
The hotel's own rules for this night that can change what you sent. Each one is a sentence.

Common mistakes

400 VALIDATION
The room type or the date is missing, or has the wrong form. A request that names the room type two ways, or the rate plan two ways, is refused too.
400 RANGE_INVALID
The date is more than 30 days in the past, or too far ahead.
400 UNKNOWN_ROOM_TYPE
No room type of this hotel has this roomTypeId or this roomTypeRef.
400 UNKNOWN_RATE_PLAN
No rate plan of this hotel has this ratePlanRef. Or the rate plan you named is not a rate plan of that room type.
409 CATALOG_CONFLICT
Two room types, or two rate plans, of this hotel have the ref you sent. Name the one you mean by ZimmerStack's id.
Other errors this request can give
401 API_KEY_INVALID
The key is not right. Copy it again, all of it, with no space before or after.
400 PROPERTY_REQUIRED
You hold a company key and did not name the hotel. Add the X-ZS-Property header.
404 PROPERTY_NOT_FOUND
The property id is not one of your hotels. Use an id from List your hotels.
403 SCOPE_MISSING
The key is not allowed to do this. It needs the scope ari:read.
403 IP_NOT_ALLOWED
The key only works from the addresses its owner allowed.
429 RATE_LIMITED
Too many requests in a short time. Wait the number of seconds in the Retry-After header, then send again.
401 API_KEY_REVOKED
The key was switched off, or it was replaced and its extra 24 hours are over. Ask the key's owner for the new key. Nothing else makes this key work.
409 ARI_NOT_AUTHORITATIVE
The hotel is not live yet: your software is not its source of truth, so nothing was saved. GET /readiness says what is missing, and POST /go-live makes the switch. To send rates before that, add the header X-ZS-Before-Go-Live: true. It is the same for a company key and for a hotel's own key: a hotel key with ari:read or ari:write can be made before its hotel is live.
409 CHANNEL_MANAGER_DISABLED
The hotel's channel manager is off, so nothing would be sent to an OTA. details.reason says why. not_on_channel_manager: the hotel was never put on it. With a company key, 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. switched_off: the hotel's owner switched it off. Only the owner can switch it back on.
409 PROPERTY_UNAVAILABLE
The hotel is deleted or is a demo. Or a test key was used on a real hotel, or a live key on a sandbox. Check which key you send. If the key is right, contact the hotel's owner.

Try it now

No code and no install. This box sends a real request to your . It works with a only, so it can never change a real hotel.

Try it here: explain one night

It starts with zsk_test_. It is kept in this browser tab only. Never paste a live key into a web page.

Go deeper

Words on this page

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.
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
Ref
Your own name or id for a room type or a rate plan. You choose it, and ZimmerStack remembers it.
Company key
The key of a software company. One key works for all the hotels of that company.
Hotel key
A key that works for one hotel only. The hotel's owner makes it, or a partner makes it for a hotel it added.
X-ZS-Property
The header that tells ZimmerStack which hotel a request is for. Its value is the property id.
Header
A small piece of extra information sent with a request, like your key.
Scope
One permission of a key. For example ari:write lets the key update availability, rates and restrictions.
OTA
Online travel agency: a website that sells hotel rooms, like Booking.com, MakeMyTrip or Agoda. Learn more
Status code
A number in every response. 200 to 299 means it worked. 400 and above means there is a problem.
Availability
How many rooms of one room type are free to sell on one night. Learn more
Batch
One update you sent. It gets an id (batchId), so you can ask later if it reached the OTAs.
Booking
A guest has reserved a room for some nights. Also called a reservation.
Rate plan
One way to sell a room type, with its own price. For example Room only, or With breakfast.
Sandbox
Your test hotel. It works like a real hotel, but no OTA can see it and it costs nothing.
Test key
A key that starts with zsk_test_. It works only on a sandbox, so it can never change a real hotel.

New here? Start with the partner path or the one-hotel path.

Routes, samples, limits and codes on this page come from the API's public contract, read live, Fri, 04 Dec 2026 16:20:29 UTC.