Skip to content

Partner path · step 3 of 10

Make your first call

A call is one from your software to ZimmerStack. In this step you check that your works. Then you see the hotels it reaches.

Before you start

You need your test key. It starts with zsk_test_. You made it in the partner portal, under Developers, with the button Create company key. That is step 2.

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/properties
Authorization: Bearer zsk_test_YOUR_KEY

Call 1: list your hotels

This call asks: "Which hotels can my key work for?" A test key works for the in your . You have one already. It was made when you signed up.

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.

Do the same from your own computer

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

What comes back

response · status code 200
{
  "statuscode": 200,
  "message": "OK",
  "data": {
    "keyKind": "company",
    "properties": [
      {
        "id": 9000,
        "name": "Your Company Sandbox",
        "timezone": "Asia/Kolkata",
        "currency": "INR",
        "channelManager": true,
        "sandbox": true
      }
    ]
  }
}
statuscode
The status code. 200 means it worked.
data
The answer itself. Every response has the same three parts: statuscode, message and data.
keyKind
company means a : one key that works for many hotels. Your test key is like this. property means a key that works for one hotel only.
properties
The hotels your key can work for. One hotel is one .
id
The property id. It is a whole number. Save it. It is how you name this hotel.
name
The name of the hotel. The example test hotel is named after your company, with the word Sandbox.
timezone
The hotel's own time zone. All dates you send are dates on the hotel's calendar.
currency
The hotel's currency. All prices you send are in this currency.
sandbox
true means this is a test hotel. No OTA can see it.

The list has one hotel now: the example test hotel. In the next step you create your own, and this list grows to two.

One key, many hotels: name the hotel

Your key works for all your hotels. So most requests must say which hotel they are for. You do that with one more header, . Its value is the hotel's property id.

one request for one hotel
GET https://api.zimmerstack.com/api/v1/connect-api/v1/catalog
Authorization: Bearer zsk_test_YOUR_KEY
X-ZS-Property: 9000

Call 1 needs no such header. It is the call that tells you the ids. Later you name a real hotel in the same way.

Call 2: get the room types and rate plans

Every hotel has and . Each one has an id, a number. You need these ids for every update you send later.

Look at the example test hotel first. Put your key in place of zsk_test_YOUR_KEY, and the hotel's id from call 1 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/catalog" -H "Authorization: Bearer zsk_test_YOUR_KEY" -H "X-ZS-Property: YOUR_PROPERTY_ID"

What comes back

The example test hotel has two room types and three rate plans. This answer shows the same form, with other names.

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 when you update .
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 when you update or .
ratePlans → roomTypeId
The room type this rate plan belongs to.
mealPlan
What the price includes. EP: room only. CP: with breakfast. MAP: breakfast and one meal. AP: all meals.

What comes next

The example test hotel was made for you, so you could look at one. A real hotel is not made for you: your software creates it. So the next steps do that, in the order a hotel is made.

  1. Create your own test hotel: step 4.
  2. Give it room types: step 5.
  3. Give it rate plans: step 6.
  4. Send its availability and rates: step 7.

If it does not work

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.
400 PROPERTY_REQUIRED
Your key works for many hotels, and the request did not say which one. Add the X-ZS-Property header with the property id.
404 PROPERTY_NOT_FOUND
The property id is not one of your hotels. Use an id from call 1.
403 IP_NOT_ALLOWED
The key only works from the addresses you allowed when you made it. For a test key, leave the allowed addresses empty.
“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.

Do you like to click before you write code? Open in Postman has every request ready.

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.
Test hotel
A hotel in your sandbox. It works like a real hotel, but no OTA can see it and nothing is billed.
Sandbox
Your test hotel. It works like a real hotel, but no OTA can see it and it costs nothing.
Company key
The key of a software company. One key works for all the hotels of that company.
Property
One hotel in ZimmerStack. Each property has its own id, a number.
X-ZS-Property
The header that tells ZimmerStack which hotel a request is for. Its value is the property id.
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, Sat, 05 Dec 2026 01:08:00 UTC.