Skip to content

One-hotel path · step 2 of 2

Make your first call

A call is one from your software to ZimmerStack. In this step you check that your key works. Then you read the hotel's room types and rate plans.

Before you start

You need the the hotel's owner made for you. It starts with zsk_test_. Getting it is step 1.

Do you hold a only? The two calls on this page only read. They change nothing, so they are safe with a live key too. Use the code samples. The box to try it here takes a test key only.

How a call works

  1. Your software sends a request to an address. The address is called an .
  2. The request carries your key in a named Authorization.
  3. ZimmerStack sends back a . It is written in and has a . 200 means it worked.
one request
GET https://api.zimmerstack.com/api/v1/connect-api/v1/property
Authorization: Bearer zsk_test_YOUR_KEY

Your key is a . It works for one hotel. So the request carries the key and nothing else. It never names the hotel.

Call 1: check your key

This call asks two things. Which hotel is my key for? What is my key allowed to do?

First try it here. Paste your test key and press the button. Nothing is installed, and nothing is changed.

Try it here: check your key

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

You should see "Your key works" and one hotel: the of your hotel. The box sends a short request, GET /properties. It only says which hotel the key is for.

Do the same from your own computer

This request is GET /property. It says more: it also lists the of your key. Choose your language. Put your own key in place of zsk_test_YOUR_KEY.

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

What comes back

response · status code 200
{
  "statuscode": 200,
  "message": "OK",
  "data": {
    "id": 61,
    "name": "The Lantern House · Sandbox",
    "timezone": "Asia/Kolkata",
    "currency": "INR",
    "inventoryScope": "CM_ONLY",
    "sandbox": true,
    "horizonDays": 500,
    "ariAuthoritative": true,
    "scopes": [
      "ari:read",
      "ari:write",
      "channel-bookings:read"
    ],
    "products": {
      "channelManager": true,
      "pms": false
    },
    "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
    }
  }
}
statuscode
The status code. 200 means it worked.
data
The answer itself. Every response has the same three parts: statuscode, message and data.
id
The hotel's id in ZimmerStack, a number. One hotel is one . You never send this id, because your key already names the hotel.
name
The hotel's name. A sandbox has the hotel's name with “· Sandbox” at the end.
timezone
The hotel's own . All dates you send are dates on the hotel's calendar.
currency
The hotel's . All prices you send are in this currency.
sandbox
true means this is the sandbox. No can see it. With a live key on the real hotel it is false.
scopes
What your key is allowed to do. If a scope you need is not in this list, ask the owner to add it to the key.
products
What the hotel uses. channelManager: ZimmerStack is the hotel's . pms: the hotel runs the ZimmerStack . On a sandbox, pms is always false.
horizonDays
How many days ahead of today you may send dates.

The answer has more fields: your limits, and whether updates are still on their way to the OTAs. Check your key explains each one.

Call 2: get the room types and rate plans

Every hotel has and . Each one has an id, a number. Almost every other request needs these ids.

The request needs only the key, as before. Put your key in place of zsk_test_YOUR_KEY.

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

What comes back

response · status code 200
{
  "statuscode": 200,
  "message": "OK",
  "data": {
    "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"
      }
    ]
  }
}
roomTypes
The kinds of room the hotel sells.
roomTypes → id
The room type's id. It is a number. You send it as roomTypeId, for example when you update or create a booking.
ratePlans
The ways each room type is sold, each with its own price.
ratePlans → id
The rate plan's id. It is a number. You send it as ratePlanId, for example when you update or .
ratePlans → roomTypeId
The room type this rate plan belongs to. A rate plan belongs to one room type only.
mealPlan
What the price includes. EP: room only. CP: with breakfast. MAP: breakfast and one meal. AP: all meals.

The sandbox is a copy of the real hotel, but its ids are its own. The real hotel has other ids. Read them again with your live key.

What to do next

Your key works, and you have the ids. Now go to the page for your job.

If it does not work

These two calls need no scope. Every key may send them. So a problem here is about the key itself.

401 API_KEY_INVALID
The key is not right. Copy it again, all of it. Check there is no space before or after. Check the header is exactly: Authorization: Bearer, then one space, then the key.
401 API_KEY_REVOKED
The owner switched this key off, or replaced it more than 24 hours ago. Ask the owner for the new key.
401 API_KEY_EXPIRED
The owner gave this key an end date, and that date has passed. Ask the owner to change the date, or to make a new key.
403 IP_NOT_ALLOWED
The key only works from the addresses the owner allowed. For a test key, ask the owner to leave “Allowed addresses” empty.
404 PROPERTY_NOT_FOUND
Your request has an X-ZS-Property header that names another hotel. A hotel key does not need this header. Remove it.
“Failed to fetch” in a browser
You called the API from a web page. The API answers only to a server. Run the code on your computer or your server.

Words on this page

Request
One message your software sends to the API.
Response
The answer the API sends back to one request.
Endpoint
One address (URL) of the API. Each endpoint does one job.
Header
A small piece of extra information sent with a request, like your key.
JSON
A simple text format for data, made of names and values inside { }.
Status code
A number in every response. 200 to 299 means it worked. 400 and above means there is a problem.
Test key
A key that starts with zsk_test_. It works only on a sandbox, so it can never change a real hotel.
Live key
A key that starts with zsk_live_. It works on real hotels.
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.
Sandbox
Your test hotel. It works like a real hotel, but no OTA can see it and it costs nothing.
Scope
One permission of a key. For example ari:write lets the key update availability, rates and restrictions.
Property
One hotel in ZimmerStack. Each property has its own id, a number.
Time zone
The clock a place uses. A hotel's dates are always dates on its own clock.
Currency
The money a hotel sells in, like INR for rupees or USD for dollars.
OTA
Online travel agency: a website that sells hotel rooms, like Booking.com, MakeMyTrip or Agoda. Learn more
Channel manager
Software that keeps a hotel's rooms and prices the same on every OTA. Learn more
PMS
Property management system: the software a hotel uses at its front desk for bookings, guests and bills.
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.
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

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