Skip to content

Tools

Sandbox in depth(everything your test hotel can do)

A is a test hotel. It works like a real hotel, but no can see it. This page lists everything it can do: test keys, test bookings and test failures.

The idea, with one example

You build your software on the sandbox first. Nothing you do there reaches a guest, an OTA or an invoice.

Here is a small example, with a sandbox of The Lantern House.

  1. You send a price: 4,500 for the Deluxe Room on 24 December 2026.
  2. The sandbox saves it. Within a minute it tells you the update has landed. No OTA gets it.
  3. You ask the sandbox for a test booking. Your server gets a real , as if Booking.com had sent a guest.
  1. Your software

    It uses a test key.

    availability, rates, restrictions test bookings, by webhook
  2. Your sandbox

    A test hotel in ZimmerStack. It saves what you send.

    to a pretend channel only
  3. No real OTA

    Booking.com, MakeMyTrip and the others never see a sandbox.

New to the sandbox? Read the short page first: Sandbox (your test hotel). This page holds all the details.

What a sandbox is

A test hotel
A sandbox is a in ZimmerStack. It is never connected to an OTA. Nothing you send leaves ZimmerStack.
Who makes it
A hotel's owner makes one from a real hotel. A software company creates its own test hotels, with one request each or in the partner portal. Together they are its sandbox. The steps for both are below.
Its key
A . It starts with zsk_test_. It has the same shape and the same as a .
Where the key works
A test key works only on its sandbox. A live key never works on a sandbox.
Its rooms and prices
An owner's sandbox is a copy of the real hotel. It has the same , , rooms and rates. A software company gets one example test hotel at sign-up, with two room types and three rate plans. A test hotel it creates itself has the room types it sent. GET /catalog gives you the ids.
What you send
Every request works as on a real hotel, through the same code. Your update is saved in ZimmerStack's record and stops there. GET /sync answers IN_SYNC. GET /batches/{batchId} answers landed within a minute. GET /property answers sandbox: true.
Test bookings
POST /sandbox/bookings makes a pretend OTA booking, from start to end. The sandbox's goes down, and your server gets the real webhook.
Limits
The same limits as a real hotel. One sandbox can have up to 5 keys.
How many sandboxes
A hotel's owner has one sandbox. A software company has up to 5 test hotels at one time: one for each hotel it will connect soon. Each has its own property id. One test company key and one test company webhook work for all of them. No OTA sees any of them.
Cost
Nothing. What you do on a sandbox is never billed, never sent to an OTA and never shown to a guest.
Going live
You change the key to a live key. It starts with zsk_live_. Your code stays the same.

How to test, if you build for one hotel

The hotel's owner makes the sandbox and the key for you. Then you test in five steps.

  1. 1

    Ask the owner for a sandbox and a test key

    The owner opens Admin → Developers → API keys. (Or Channels → Integrations.) They press Create sandbox. Then they press Create key on the sandbox, with the channel manager scopes. The key is shown once. It starts with zsk_test_. Keys and scopes lists the scopes.
  2. 2

    Add your webhook endpoint to the sandbox

    The owner adds your address under the sandbox's webhooks. That address is your . The owner gives you its . Every test booking is sent to it. The webhook has the same shape as a real one and is signed the same way. It also carries mode: "test". So a server that also serves live hotels can tell a test guest from a real guest.
  3. 3

    Send and read, as on a real hotel

    GET /property answers sandbox: true. A PUT is saved in ZimmerStack's record. GET /sync answers IN_SYNC. Each update is a . GET /batches/{batchId} answers landed within a minute.
  4. 4

    Ask for a test booking

    POST /sandbox/bookings makes an OTA booking on the sandbox. Three things happen. The booking is made. Its nights are taken from the room type's availability. Your server gets the real channel.booking.created webhook. To cancel it, send POST /sandbox/bookings/{bookingId}/cancel. Your server then gets channel.booking.cancelled.
  5. 5

    Go live

    Ask the owner for a zsk_live_ key on the real hotel. Change the key. Keep the code.

How to test, if you are a software company

A that serves many hotels does not ask each owner for a sandbox. It has its own. It builds its whole integration there, before any hotel is connected.

Its sandbox is its test space. In it the company creates test hotels, up to 5 at one time. Each has its own property id. The API and the partner portal call each test hotel a sandbox.

Are you moving several hotels? Make one test hotel for each. Test them side by side. Delete a test hotel when you are done with it.

  1. 1

    Sign up, then open Developers in the partner portal

    Sign up as a PMS company. It is free. A 6-digit code is sent to your email. One example test hotel is made when you sign up. If Developers does not show it yet, press Create sandbox. Next time, sign in at the partner portal.
  2. 2

    Create your test key

    Press Create company key. Under Reaches, choose Your sandbox (zsk_test_). You get a that starts with zsk_test_. GET /properties lists every test hotel you have. On every request you name one of them in the . Later you name a real hotel in the same way.
  3. 3

    Create your own test hotels

    Keep the box Also add and remove hotels ticked on that key. Then POST /properties creates a test hotel from the same body that creates a real hotel later. Create a hotel shows it. By hand: type a name in the box Your sandboxes and press Add a sandbox.
  4. 4

    Add a company webhook for your sandboxes

    Choose Receives: Your sandboxes. This is a . Test bookings on any of your test hotels are sent to it, signed. The field property.id names the test hotel. Your hotels' bookings will arrive in exactly the same way.
  5. 5

    Go live

    Make a zsk_live_ company key (Reaches: Your hotels) and a live company webhook. They work for every hotel you add. They also work for every hotel that enters your . Your code stays the same. A hotel you add works at once. It joins your monthly on the next 1st. The days before that are free.

The partner path starts with this test key: one key for all your test hotels. Get a test key shows where to make it.

There is one more kind of test key: a key of one test hotel. You make it with Create key, under that test hotel. It works for that one test hotel, with no extra header. It cannot create a hotel. One test hotel can have up to 5 such keys.

Make a test booking

A test booking is a pretend OTA on your sandbox. The sandbox makes it in the same way as a real OTA booking is made. You ask for it with one request. This is what you send.

make-test-booking.json
{
  "roomTypeId": 412,
  "checkIn": "2026-12-24",
  "nights": 2,
  "rooms": 1,
  "adults": 2,
  "guestName": "Asha Verma",
  "otaName": "Booking.com",
  "paidByOta": false
}
roomTypeId
Required. A room type of your sandbox. GET /catalog gives you its id.
checkIn
Required. The day the guest arrives, written as year-month-day. Today or later.
nights
Required. How many nights, from 1 to 30.
rooms
How many rooms, from 1 to 5. If you leave it out: 1.
adults
Adults in each room. If you leave it out: 2.
guestName
The guest's name. If you leave it out, the sandbox makes one up.
otaName
The OTA the booking pretends to come from: Booking.com, Expedia, Agoda, Airbnb, MakeMyTrip or Goibibo. If you leave it out: Booking.com. Website means the hotel's own website.
paidByOta
true means the OTA took the guest's money. false means the guest pays at the hotel. If you leave it out: false.

Choose your language. Put your own test key in place of zsk_test_YOUR_KEY.

Save the example above as make-test-booking.json. Open a terminal in the same folder and run this. On Windows PowerShell, type curl.exe instead of curl.

terminal
curl -X POST "https://api.zimmerstack.com/api/v1/connect-api/v1/sandbox/bookings" -H "Authorization: Bearer zsk_test_YOUR_KEY" -H "Content-Type: application/json" -d "@make-test-booking.json"

Do you hold a test company key? Then also send the X-ZS-Property header. Its value is your sandbox's property id.

With the Node package the same test is two lines: one to book, one to cancel.

scripts/pretend-booking.ts · a pretend OTA booking
// A pretend Booking.com guest on your sandbox. The nights come off the room type's availability and
// your webhook endpoint receives the real channel.booking.created delivery, signed, with mode "test".
const booking = await zs().sandbox.bookings.create({ roomTypeId, checkIn, nights: 2, guestName: "Asha Verma", otaName: "Booking.com" });
console.log(booking.reference, booking.status, booking.webhook.eventType);

// Cancel it: channel.booking.cancelled is delivered the same way.
await zs().sandbox.bookings.cancel(booking.bookingId);

What comes back

The answer comes first. A few seconds later, your webhook endpoint gets the webhook.

response · status code 201 · the data part
{
  "bookingId": 90311,
  "reference": "SBX-9001-MXHI8W001F6D",
  "channelBookingId": "sbx-1f6d0c2e-7b53-4a0e-9c5a-2d8f3b1e4c70",
  "otaName": "Booking.com",
  "status": "UPCOMING",
  "guestName": "Asha Verma",
  "checkIn": "2026-12-24",
  "checkOut": "2026-12-26",
  "nights": 2,
  "rooms": 1,
  "roomTypeId": 412,
  "nightlyRate": 4850,
  "total": 9700,
  "currency": "INR",
  "paidByOta": false,
  "oversold": false,
  "createdAt": "2026-12-10T12:00:00.000Z",
  "webhook": {
    "eventType": "channel.booking.created",
    "queued": true
  }
}
bookingId
The booking's id. The webhook carries the same id.
reference
The booking's reference. It starts with SBX-. The webhook carries it as booking.reference.
status
UPCOMING means the guest has not arrived yet. CANCELLED means the booking was cancelled.
nightlyRate
The price of one room for one night. If the nights have different prices, it is their average.
total
The price of every night, times the number of rooms.
oversold
true means a night had no free room left. The booking is made anyway.
webhook → eventType
The kind of webhook this request sent.
webhook → queued
true means the webhook is on its way. Every active endpoint on the sandbox gets it within seconds.

Three things to expect from a test booking

The room count changes a moment later
The answer comes first. The room type's availability changes about one second later. A screen that reads GET /availability at once can still show the old number. Read again after a short wait. Or update your screen when the channel.booking.created webhook arrives.
The price follows your rates
Each night is priced at that night's own rate on the sandbox. It is the rate GET /rates shows for the room type's first rate plan. So the total matches your own grid. When the nights differ, nightlyRate is their average.
Two words for one state
The same booking reads status: "UPCOMING" in the answer above and in the sandbox list (GET /sandbox/bookings). In GET /channel-bookings and in the webhook it reads status: "CONFIRMED" with stayStatus: "UPCOMING". The reason: the sandbox's status is the OTA booking's stayStatus, the state of the stay at the front desk. The OTA booking's own status says only if the booking stands: CONFIRMED or CANCELLED.

Change it, or cancel it

  • POST /sandbox/bookings/{bookingId}/modify changes the booking, as an OTA would: new dates, length, rooms or guest. The old nights go back on the sandbox's availability. The new nights come off. Your server gets the real channel.booking.modified webhook, with changes and previous.
  • POST /sandbox/bookings/{bookingId}/cancel cancels it. The nights go back on the sandbox's availability. Your server gets the real channel.booking.cancelled webhook. If the booking was cancelled already, the answer is still 200, with webhook.queued: false.

A test booking from the hotel's own website

A guest can also book on the hotel's own website. That is a , and its webhooks have other names.

  1. First tick the direct event types on your webhook endpoint.
  2. Send POST /sandbox/bookings with "otaName": "Website". Your server gets direct.booking.created.
  3. Mark it as a : POST /sandbox/bookings/{bookingId}/no-show. Your server gets the real direct.booking.modified. The stay reads NOSHOW and its nights go back on sale. The booking is not cancelled. Send { "undo": true } to take it back.
  4. Cancel it with POST /sandbox/bookings/{bookingId}/cancel. Or cancel it as your PMS would, with POST /direct-bookings/{bookingId}/cancel. Your server gets direct.booking.cancelled. On a sandbox, a cancel moves no money.

Two requests answer 409 BOOKING_NOT_MODIFIABLE. One is a modify on a website booking: the never changes a booking's dates. The other is a no-show on an OTA booking, or on a cancelled booking.

Bookings from the hotel's own website has every step.

Make a real event of every type

Before you go live, your server can meet every it will ever get. Each one in this table is a real event. It is signed. It is sent to every endpoint on the sandbox. It has a number, and GET /events lists it.

  • Eventchannel.booking.created
    How to make itPOST /sandbox/bookings
  • Eventchannel.booking.modified
    How to make itPOST /sandbox/bookings/{bookingId}/modify with new dates, length, rooms or guest.
  • Eventchannel.booking.cancelled
    How to make itPOST /sandbox/bookings/{bookingId}/cancel
  • Eventchannel.booking.cancelled, with no booking before it
    How to make itPOST /sandbox/bookings with "arrivesCancelled": true. No night is taken. A hotel that moved from another channel manager sees this when an older booking is cancelled.
  • Eventdirect.booking.created
    How to make itPOST /sandbox/bookings with "otaName": "Website".
  • Eventdirect.booking.modified
    How to make itPOST /sandbox/bookings/{bookingId}/no-show on a website booking. { "undo": true } takes it back.
  • Eventdirect.booking.cancelled
    How to make itCancel a website booking: POST /sandbox/bookings/{bookingId}/cancel, or POST /direct-bookings/{bookingId}/cancel as your PMS would.
  • Eventchannel.sync.alert
    How to make itPOST /sandbox/sync-events with "type": "channel.sync.alert". You can also name the problem in event: rate_error, sync_error, disconnect_channel, settings_changed or inventory_out_of_sync. If you leave it out: rate_error.
  • Eventchannel.sync.recovered
    How to make itPOST /sandbox/sync-events with "type": "channel.sync.recovered". It ends the newest open pretend problem.
  • A pretend problem sits on one of the sandbox's pretend . GET /channels lists it until a recovered event ends it.
  • A recovered event with no open problem to end answers 400 VALIDATION.
  • A sample sent by a Test button is different. It has no sequence number, and GET /events does not list it.

Events a sandbox cannot make

Some events need something a sandbox does not have. For these, ask for a sample.

channel.drift.*
These come from a nightly read of what our connectivity partner holds. A sandbox has none.
channel.connect.*
A sandbox has no OTA to connect.
platform.incident.* and support.ticket.*
Our staff cause these.
How to get a sample
Use the endpoint's test call: POST /webhook-endpoints/{endpointId}/test. Or press Send test in the portal. See Send a test webhook.

Do you build with a ? The Node package has an . With it, the agent makes any event of the table above with one tool, zimmerstack_sandbox_simulate. See the MCP server.

The sandbox requests

The addresses under /sandbox work only with a test key. A live key gets 403 SANDBOX_ONLY. Every other request of the API works on a sandbox with no change.

Every address starts with https://api.zimmerstack.com/api/v1/connect-api/v1

Make the sandbox fail on purpose

On a sandbox, everything you send lands. That is because the channel behind it is pretend: a . A live hotel is not always so kind. An OTA refuses a price. Our connectivity partner is busy. Or it is down for ten minutes.

A makes the pretend channel do one of these three things. So you can watch your software handle it, before a real hotel has to.

  • kindrefuse
    What you then seeThe next values you send are refused. One value is one rate plan on one night. Those nights are held, with the reason. The batch reads failed and lists parkedCells. GET /sync counts them. Your webhook gets channel.sync.alert with the event value_refused. If you send the same value again, the answer says it is held.
  • kindthrottle
    What you then seeFor some minutes, every update is answered “too many requests”. Your batches wait: they read pending, and failed from the fifth try in a row, as on a live hotel. Nothing is lost. No alert is sent. The updates land by themselves afterwards.
  • kindoutage
    What you then seeFor some minutes, every update fails. After five failed tries, one a minute on a sandbox, your webhook gets channel.sync.alert with the event rates_out_of_sync, and the batch reads failed. When the outage ends, the next try lands, and channel.sync.recovered follows.

An example: make the sandbox refuse the next two prices. This is what you send.

set-a-fault.json
{
  "kind": "refuse",
  "values": 2,
  "message": "Rate is below the channel's minimum"
}
kind
Required. refuse, throttle or outage.
values
For refuse only. How many values to refuse, in the order you send them. From 1 to 500. If you leave it out: 1.
minutes
For throttle and outage only. How long, from 1 to 60. If you leave it out: 5 for a throttle, 10 for an outage.
message
For refuse only. The words of the refusal. Your software reads the same words back later.

Save the example above as set-a-fault.json. Open a terminal in the same folder and run this. On Windows PowerShell, type curl.exe instead of curl.

terminal
curl -X POST "https://api.zimmerstack.com/api/v1/connect-api/v1/sandbox/faults" -H "Authorization: Bearer zsk_test_YOUR_KEY" -H "Content-Type: application/json" -d "@set-a-fault.json"

With the Node package, the whole test is one short script.

scripts/sandbox-faults.ts · set a fault, send a price, read the refusal, end the fault
// The next price or stay rule sent is refused, in these words, as the channel manager refuses.
const fault = await zs().sandbox.faults.set({ kind: "refuse", values: 1, message: "Rate is below the channel's minimum" });
for (const step of fault.watch) console.log(step); // what to do next, and what you should then see

// Send a price. It is accepted (it is in the record); the pretend channel then refuses it.
const [accepted] = await zs().rates.set([{ ratePlanId, dateFrom: night, dateTo: night, rate: "100.00" }]);
if (!accepted) return;
const batch = await zs().batches.wait(accepted.batchId);
console.log(batch.status, batch.parkedCells, batch.lastError); // failed 1 "Rate is below the channel's minimum"

// The same value again is answered as held: it is not sent a second time.
const again = await zs().rates.dryRun([{ ratePlanId, dateFrom: night, dateTo: night, rate: "100.00" }]);
console.log(findNotice(again, "VALUE_HELD")?.message ?? "not held");

// End the fault. A different price for that night lands, and the night is no longer held.
await zs().sandbox.faults.clear();

The answer shows the fault that is set now. Its watch list says what to do next, and what your software should then see, step by step.

response · status code 200 · the data part
{
  "active": true,
  "kind": "refuse",
  "remaining": 2,
  "until": null,
  "message": "Rate is below the channel's minimum",
  "setAt": "2026-11-23T09:30:12.000Z",
  "watch": [
    "Send a price or a stay rule (PUT /rates or PUT /restrictions) and keep its batchId.",
    "Within a minute GET /batches/{batchId} reads failed, with parkedCells and the pretend channel's words in lastError; GET /sync counts the same nights under rates.parkedCells.",
    "Your webhook receives channel.sync.alert with event value_refused (once for this fault).",
    "Send the same value again: it is answered in rejected as held, with the notice VALUE_HELD, and is not sent again.",
    "Send a different value for those nights: it lands, and the nights are no longer held."
  ]
}
What it is for
To watch your software handle what a live hotel meets on a bad day.
Three requests
POST /sandbox/faults sets a fault. GET /sandbox/faults reads the one that is set now. DELETE /sandbox/faults ends it.
One at a time
A sandbox has one fault at a time. A new fault takes the place of the old one.
A field of the wrong kind
Each kind has its own fields. A field of another kind, like minutes on a refusal, answers 400 VALIDATION.
Rates and restrictions only
A fault touches and only. A sandbox's availability lands as before: there is no fault for it.
Timing
A sandbox is tried once a minute. An outage's alert needs five failed tries in a row. So it comes after about five minutes. A shorter outage ends before the alert.
After you end it
The pretend channel answers normally from your next update. Values that are held stay held, until you send a different value. Ending a fault when none is set is not an error.
Test keys only
A live key gets 403 SANDBOX_ONLY.

What the sandbox does not do

Going live

You build for one hotel
Ask the owner for a zsk_live_ key on the real hotel. Change the key. Keep the code. See Go live.
You are a software company
Make a zsk_live_ company key and a live company webhook in the partner portal. Keep the code. See Go live.

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
Property
One hotel in ZimmerStack. Each property has its own id, a number.
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.
Company key
The key of a software company. One key works for all the hotels of that company.
Scope
One permission of a key. For example ari:write lets the key update availability, rates and restrictions.
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.
Website booking
A booking a guest made on the hotel's own website, through the ZimmerStack booking engine.
No-show
A guest who booked but did not arrive.
Booking engine
The part of a hotel's own website where a guest books a room.
PMS
Property management system: the software a hotel uses at its front desk for bookings, guests and bills.
Webhook
A message ZimmerStack sends to your server when something happens, like a new booking.
Webhook endpoint
The address of your server where ZimmerStack sends webhooks.
Company webhook
One address of your server that receives the webhooks of all your hotels.
Signing secret
A secret code ZimmerStack shares with you once. With it your server can check that a webhook is really from ZimmerStack.
Event
One thing that happened, like a new booking. Each webhook carries one event.
Sequence
A number that counts a hotel's events in order: 1, 2, 3 and so on.
Batch
One update you sent. It gets an id (batchId), so you can ask later if it reached the OTAs.
Channel
One connection between a hotel and one OTA. Hotel people say channel and OTA for nearly the same thing.
Pretend channel
The made-up OTA connection behind a sandbox. It takes what you send, but no real OTA is there. Learn more
Fault
A failure you switch on in your sandbox on purpose, to see how your software handles it.
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.
Vendor code
A short code of your company. A hotel that already uses ZimmerStack enters it to let your software in.
Invoice
A bill.
Coding agent
An AI program that writes code for you when you tell it what to build, like Claude Code, Cursor or Codex. Learn more
MCP server
A small helper program that a coding agent connects to. It gives the agent extra tools. Learn more

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