Skip to content

API action

Get sync status(is anything still waiting?)

See if anything of a hotel is still on its way to the OTAs.

About this action

What it does
Gives the state of one hotel: what is still waiting to be sent, what was refused, and the last error.
When to use it
When you want to check a whole hotel, not one update. For example after a big update, or for a status screen in your software.
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/sync

Things to know

  1. Availability travels apart from rates. In the answer, inventory is about availability. The part named rates is about rates and restrictions together.
  2. Do not ask too often. Once every 15 seconds is enough.
  3. A sandbox has no real OTA. On a , IN_SYNC means saved, because nothing is sent to an .

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/sync" -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/sync" -H "Authorization: Bearer zsk_test_YOUR_KEY"

What comes back

The is 200. The answer has one part for availability, and one part for rates and restrictions.

response · status code 200
{
  "statuscode": 200,
  "message": "OK",
  "data": {
    "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
    }
  }
}
inventory.state
The state of the availability. IN_SYNC: nothing is waiting. PENDING: some is on its way. OUT_OF_SYNC: sending is failing. DISABLED: the hotel is not connected.
inventory.pendingCells
How many of availability are waiting to be sent.
inventory.lastError, outOfSyncSince
Why sending is failing, as one short fixed sentence, and since when. When all is well, both are null.
rates.dirtyCells
How many cells of rates and restrictions are waiting to be sent.
rates.parkedCells
How many cells our refused. Each is tried again once a day, three times, and then stays on hold. Send a corrected value for those nights.
rates.driftCells
Nights where our connectivity partner holds another value than ZimmerStack. This is called . With 0, the last check found none.
rates.lastPushAt, lastError
When rates and restrictions were last sent, and why the last try failed, as one short fixed sentence.
newestPendingBatch
Your newest update, when it has not landed yet. It has the fields of Check an update. When it has landed, this is null.
shield.level
Is anything holding your updates back? CLEAR means no.
ariAuthoritative
With false, the hotel is not yet, and nothing is sent to the OTAs.

How to know that everything is sent

Everything is sent when three things are true. First, inventory.state is IN_SYNC. Second, rates.dirtyCells is 0. Third, newestPendingBatch is null.

rates.parkedCells is above 0
Some values were refused. Each is tried again once a day, three times, and then stays on hold. Send a corrected value for those nights.

Common mistakes

This request has no mistakes of its own. The ones below can happen on any request.

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: get sync status

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

Sync
Short for synchronise: making the OTAs hold the same numbers as ZimmerStack.
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.
Sandbox
Your test hotel. It works like a real hotel, but no OTA can see it and it costs nothing.
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.
Cell
One night of one room type or rate plan. An update for 3 nights of 1 room type is 3 cells.
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
Drift
A night where our connectivity partner holds a different value than the one your software sent.
Go live
The moment a real hotel starts to sell through your software.
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 18:26:12 UTC.