Skip to content

Basics · page 5 of 5

Sandbox(your test hotel)

New software has mistakes. You should not find them on a real hotel. This page shows the hotel that is made for testing, and how you move to a real hotel later.

The problem

Your software is new. It will have mistakes at first. That is normal.

On a real hotel, a mistake costs money. A wrong price goes to every , and a guest can book at that price. A wrong number of free rooms can cause .

So you need a hotel where a mistake hurts nobody.

What a sandbox is

A is a test hotel inside ZimmerStack. It works like a real hotel. It has and , each with an id. It takes the same requests and gives the same answers.

The developer of one hotel has one test hotel. A software partner can have several, and creates them itself. Together they are the partner's sandbox: its test space.

The difference is what happens outside ZimmerStack:

Test hotel

Your sandbox

Its keys start with
zsk_test_
Can an OTA see it?
No. Never.
Where your updates go
ZimmerStack saves them. They stop there.
Its bookings
Test bookings that you make yourself.

Real hotel

The Lantern House

Its keys start with
zsk_live_
Can an OTA see it?
Yes. The OTAs sell its rooms.
Where your updates go
ZimmerStack saves them and sends them to the OTAs.
Its bookings
Real bookings, from real guests.

A sandbox costs nothing. Nothing you do on it is billed.

What you can do on a sandbox

Send updates
Send , and , as on a real hotel. ZimmerStack saves them and answers in the same way.
Read them back
Ask ZimmerStack what it holds now, and compare it with what you sent.
Make test bookings
Ask the sandbox to pretend that an OTA sent a . The number of free rooms goes down, as with a real booking.
Receive real webhooks
Each test booking sends the real to your server, with its signature. You can also change or cancel a test booking, and get those webhooks too.

To get the webhooks, first add your webhook endpoint for the sandbox. You do this in the same place as for a real hotel.

How does your software know that a message is only a test? There are two signs:

  • A webhook from a sandbox says mode test. A webhook from a real hotel says mode live.
  • When you read the hotel from the API, the answer says sandbox true.

A sandbox also has the same as a real hotel. So you learn early how fast you may send.

The test key

A sandbox has its own keys. Each one starts with zsk_test_. It is called a .

A test key works only on a sandbox. It can never change a real hotel. And a never works on a sandbox.

So a mistake in your test code cannot reach a real hotel. The key itself stops it.

One sandbox can have up to 5 keys of its own. Such a key works for that one test hotel.

A software partner starts with another kind of test key: one key for all its test hotels. It also creates them. The part below says how you get it.

How you get a sandbox

If you build software for many hotels

For you, the sandbox is your test space. You get it when you sign up as a partner. In it you create test hotels, as many as you need to try your software.

  • One example test hotel is made for you at sign-up. It is ready the first time you open the partner portal. If Developers does not show it, press Create sandbox.
  • The example starts with two room types, Deluxe Room and Suite, and three rate plans. So you have a hotel to look at in your first call.
  • It uses the and the of your own country.
  • Then you create your own test hotels, with one request each. You give each one its room types and its rate plans. The partner path shows every step: Create a hotel.
  • You can have up to 5 test hotels at one time. This helps when you prepare several hotels: one test hotel for each. No OTA sees any of them.
  • Your is one key for all your test hotels. To make it, open Developers in the partner portal and press Create company key. Get a test key shows where to click.
  • The partner portal and the API call each test hotel a sandbox. The portal lists them in the box Your sandboxes.

If you build for one hotel

  • The hotel's owner makes the sandbox in Admin, under Developers.
  • It is a copy of the real hotel: its room types and its rate plans, with the same names. A big hotel is copied in part: up to 10 room types, and up to 3 rate plans for each.
  • The owner makes a test key on the sandbox and gives it to you.
  • An owner can have one sandbox at a time.

From the sandbox to a real hotel

When your software works on the sandbox, you move to the real hotel. This is called .

You do not write your software again. The addresses are the same. The requests are the same. The answers have the same parts.

You change the key. The test key goes out, and a live key goes in.

Send the request to

the request your software sends
PUT https://api.zimmerstack.com/api/v1/connect-api/v1/availability
Authorization: Bearer zsk_test_YOUR_KEY
The hotel
Your sandbox, the test hotel.
Your numbers
ZimmerStack saves them. No OTA gets them.
Bookings
Test bookings that you make yourself.

This is the request while you build. It carries the test key. Now choose the real hotel.

Who gives you the live key?

  • For one hotel, the hotel's owner makes a live key on the real hotel.
  • A software partner makes one live in the partner portal. It works for all the hotels of the partner.

A company key works for many hotels. So each request must also say which hotel it is for, in the . A partner's test key is a company key too. So a partner sends this header from the first steps, on its test hotels.

What to remember

  • A sandbox is a test hotel. It works like a real one.
  • No OTA sees it. Nothing you send reaches an OTA. Nothing is billed.
  • Its keys start with zsk_test_, and work only there.
  • You can make test bookings and receive the real webhooks.
  • A software partner creates its own test hotels in its sandbox, up to 5 at one time. One example is made at sign-up.
  • A hotel's owner can make one, as a copy of the real hotel.
  • To go live, you change the test key for a live key and read the ids again. Your code stays.

You have finished the Basics

Now choose your path. Each path is a few short steps, and the first steps use a sandbox.

Words on this page

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
Overbooking
Selling the same room to two guests for the same night.
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
Booking
A guest has reserved a room for some nights. Also called a reservation.
Webhook
A message ZimmerStack sends to your server when something happens, like a new booking.
Rate limit
How many requests you may send in a minute, an hour or a day.
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.
Currency
The money a hotel sells in, like INR for rupees or USD for dollars.
Time zone
The clock a place uses. A hotel's dates are always dates on its own clock.
Go live
The moment a real hotel starts to sell through your software.
Company key
The key of a software company. One key works for all the hotels of that company.
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.

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