Skip to content

Guide for partners

Add and remove hotels

Your software can add a hotel with one . It can change or remove a hotel it added, each with one request. You can also add and remove a hotel by hand in the partner portal.

The idea

One hotel in ZimmerStack is one . To add one, you send four things: the hotel's name, its owner, its address and its . ZimmerStack makes the hotel and sends back its id.

Example: you add Ganga Guest House. The answer says its id is 63. From then on you send 63 in the of every request for this hotel.

To remove a hotel, you send its id and its exact name. The hotel is then closed for good.

Between the two, one more request changes the name or the address of a hotel you added.

  • RequestPOST /properties
    What it doesAdd one hotel to your company.
    Its own pageAdd a hotel
  • RequestPATCH /properties/{propertyId}
    What it doesChange the name or the address of a hotel you added.
    Its own pageChange a hotel
  • RequestDELETE /properties/{propertyId}
    What it doesRemove a hotel you added.
    Its own pageRemove a hotel

Before you start

The key
A with the properties:write. You make the key in the partner portal, under Developers. Tick Also add and remove hotels when you make it. For a test key the portal ticks it by itself, for everyone who can open Developers. For a live key, only the account's owner and an Admin see this tick box. They are the people who may add a hotel by hand. A cannot add or remove hotels. It gets 403 COMPANY_KEY_REQUIRED.
Try it first
Use a . It starts with zsk_test_. With it, the same two requests make and delete a test hotel in your . No sees it. Nothing is billed. The is checked exactly like a live one. The partner path does this in its own step: Create a hotel.
Your billing
Set it up once, before your first live hotel. Accept the price and enter your billing details on the portal's Billing page. It takes a few minutes, and you do it yourself. Accept the price shows the steps.
No hotel in the header
These requests are about your list of hotels. So they never send X-ZS-Property. Every other request names one hotel in it.

Add a hotel

You send the hotel's name, its owner, its address and its room types. The answer gives you the hotel's id. Send that id in X-ZS-Property on every later request.

What you send

You send one body, written in . Here is a small example. Save it as add-hotel.json.

add-hotel.json
{
  "name": "Ganga Guest House",
  "owner": {
    "name": "Meera Joshi",
    "email": "meera@gangaguesthouse.example",
    "phone": "+91 98765 43210"
  },
  "address": {
    "line1": "14 Assi Ghat Road",
    "city": "Varanasi",
    "state": "Uttar Pradesh",
    "postalCode": "221005",
    "country": "IN"
  },
  "taxId": "09ABCDE1234F1Z5",
  "roomTypes": [
    {
      "ref": "rt-river",
      "name": "River View Room",
      "roomCount": 6,
      "adults": 2,
      "defaultRate": 3200
    },
    {
      "ref": "rt-family",
      "name": "Family Room",
      "roomCount": 2,
      "adults": 4,
      "defaultRate": 5400
    }
  ]
}
name
Required. The hotel's name, as its guests know it.
owner
Required. The person who owns the hotel's account: name, email and phone. The sign-in details go to this email, never to you.
address
Required. line1, city and country must be there. state and postalCode are optional. country is a two-letter code, like IN, LK or PT.
currency
Optional. The currency the hotel sells in, like INR. If you leave it out, it is the currency of the hotel's country.
timezone
Optional. The hotel's time zone, like Asia/Kolkata. If you leave it out, it is the main time zone of the hotel's country.
taxId
India only. The hotel's GSTIN, when the hotel is registered under GST. Leave it out for every other hotel.
roomTypes
Required. A list of 1 to 20 room types. Each room type starts with one rate plan: room only, at the price in defaultRate.
roomTypes → ref
Optional. Your own id for this room type. It is called a . Send the same ref later when you send your room types. ZimmerStack then changes this room type. It does not make a second one.
roomTypes → name
Required. The room type's name. Use each name once in a request.
roomTypes → roomCount
Required. How many rooms of this type the hotel can sell.
roomTypes → adults
Optional. The most adults one room takes. If you leave it out, it is 2.
roomTypes → defaultRate
Required. The price of one night for new dates, in the hotel's currency. Send the full amount, like 3200 or "3200.00". Do not send hundredths. Money explains this.

Send the request

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

This request needs one more header, X-Idempotency-Key. Its value is an : a code you choose, 10 to 64 letters, digits, dashes or underscores. Put your own code in place of YOUR-OWN-CODE-0001. Use a new code for each hotel you add. When you send the same request again, send the same code again.

Save the example above as add-hotel.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/properties" -H "Authorization: Bearer zsk_test_YOUR_KEY" -H "X-Idempotency-Key: YOUR-OWN-CODE-0001" -H "Content-Type: application/json" -d "@add-hotel.json"

With the Node package it looks like this. The package makes the idempotency key for you.

add a hotel, then send its first room type
// The hotel's name, its owner, its address and its room types. The owner gets the sign-in details by
// email (unless your portal's Settings turn that off); they are never sent to your software.
// defaultRate is in the hotel's own money, in major units.
const added = await zs().properties.create({
  name: "Ganga Guest House",
  owner: { name: "Meera Joshi", email: "meera@gangaguesthouse.example", phone: "+91 98765 43210" },
  address: { line1: "14 Assi Ghat Road", city: "Varanasi", country: "IN" },
  roomTypes: [{ ref: "rt-river", name: "River View Room", roomCount: 6, defaultRate: 3200 }],
});
console.log(added.id, added.name, added.billing.state, added.replay);

// From now on, name that id. The first room types you send put the hotel on the channel manager:
// the same ref as above, so it becomes that room type and not a second one.
const theHotel = zs().forProperty(added.id);
const room = await theHotel.roomTypes.save({ ref: "rt-river", name: "River View Room", roomCount: 6, adults: 2 });
console.log(room.id, room.action);

What comes back

The is 201. It means: the hotel was made. Every answer has three parts: statuscode, message and data. This is the data part.

response · status code 201 · data
{
  "id": 63,
  "name": "Ganga Guest House",
  "timezone": "Asia/Kolkata",
  "currency": "INR",
  "channelManager": false,
  "sandbox": false,
  "billing": {
    "state": "ACTIVE",
    "reason": null,
    "message": "This hotel's billing has started: it is on your next monthly invoice."
  },
  "replay": false
}
id
The hotel's id. Save it. Send it in X-ZS-Property on every later request for this hotel.
timezone, currency
The hotel's time zone and currency. Dates and prices you send later use them.
channelManager
false means: the hotel is not yet in the system of our . The API's answers call that system the channel manager. ZimmerStack puts the hotel there when its billing starts.
sandbox
true when a test key made a sandbox. false for a real hotel.
billing.state
ACTIVE: its billing has started, and it is on your next monthly invoice. WAITING: the hotel is live, and its billing has not started.
billing.reason
Only with WAITING. It says why: SETUP, OVERDUE, UNPAID_LIMIT or REVIEW.
billing.message
One sentence that says what to do.
replay
false: this request made the hotel. true: you sent the same idempotency key again, and this is the same hotel. The status code is then 200.

What happens when you add one

  1. 1

    The hotel's account is made

    Its owner gets the sign-in details by email. They go to the owner, never to your software. To hand them over yourself, turn the welcome email off in the partner portal's Settings. Then nothing is emailed, and you give the owner their sign-in from the hotel's login details in the portal.
  2. 2

    The hotel works at once

    Your live company key can use it from that second.
  3. 3

    It joins your invoice

    On the next 1st of a month. The days before that are free. billing.state in the answer says where it stands: ACTIVE, or WAITING with the reason and what to do.
  4. 4

    You send its room types, rate plans, availability and rates

    The hotel has the room types you sent when you added it. When its billing starts, ZimmerStack puts the hotel in our connectivity partner's system. To add or change a room type, use Create or change room types. Use the same ref you gave here, or the same name. It then becomes that room type, not a second one. Then send the rate plans, the availability and the rates.
  5. 5

    You connect its OTAs

    One at a time. Your company key asks for a one-time connect link, for one hotel and one OTA. The request is POST /connect-links. It needs a live key with the scope channels:connect. Only Airbnb is connected from the link alone: the host signs in on Airbnb's own page. Every other OTA must first accept our connectivity partner for the hotel, in its extranet or through its support. The answer's hotelStep says how. Send the link's address to the hotel's own person once that step is done. On our page they type the hotel's id at the OTA. MakeMyTrip also asks for its access token. Then they confirm each room and rate match, and press Start selling. You are told with the event channel.connect.completed. If the link ran out first, the event is channel.connect.expired. The link's request takes no OTA detail and no match. A person can still do the same on the hotel's page in the partner portal. Once an OTA is connected, the same key can read and change its mapping, disconnect it, and open the channel console for the hotel. Connect an OTA has the example. Move a hotel to ZimmerStack has the whole move.

Things to know when you add a hotel

The same key never makes a second hotel
A request with the same X-Idempotency-Key gives the same hotel back. This is true even when the first answer never reached you. Without the header the answer is 400 IDEMPOTENCY_KEY_INVALID. A test key and a live key never share an answer.
After a refusal
An answer with a status code from 400 to 499 is kept under its key for 7 days. So first do what the answer asks. For example, finish your billing setup, or remove a sandbox. Then send the request with a new key. An answer 429 or 503 is never kept. Wait as long as the header says. Then send the same request with the same key.
One account for each owner
One email address has one owner account. If the address already has an account, the answer is 409 OWNER_HAS_ACCOUNT. A hotel that already uses ZimmerStack joins you another way. Its owner enters your under Integrations. Your vendor code is in the partner portal, under Developers.
Where its billing stands
Before your first hotel, accept the price list and add your billing details in the partner portal. Until then the answer is 409 BILLING_SETUP_REQUIRED. Under the public price list, your live hotels are counted on the 1st of each month. So the days before the next 1st are free.
How many
You may add 20 hotels in one hour. Hotels added by request and in the partner portal are counted together. Past that the answer is 429 RATE_LIMITED with data.scope partner-new-properties-hour.
With a test key
Up to 5 sandboxes can exist at the same time. One more gets 409 SANDBOX_LIMIT, so remove one first. You may make 30 in one hour. A sandbox you removed again still counts. So you can make and remove a sandbox many times while you build. Past that the answer is 429 RATE_LIMITED with data.scope partner-new-sandboxes-hour. The sandbox gets the room types you sent. Nothing reaches an OTA. Its name ends in (sandbox) and has at most 60 characters. To delete it, confirm with the name the answer gave you.

Change a hotel

One request changes the name or the address of a hotel you added. The hotel's id goes in the address. In the body you send only the fields you want to change.

The example gives Ganga Guest House a new name and a new first address line. Put your own hotel's id in place of 63. Save the body as change-hotel.json.

change-hotel.json
{
  "name": "Ganga Riverside Guest House",
  "address": {
    "line1": "16 Assi Ghat Road"
  }
}

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

terminal
curl -X PATCH "https://api.zimmerstack.com/api/v1/connect-api/v1/properties/63" -H "Authorization: Bearer zsk_test_YOUR_KEY" -H "Content-Type: application/json" -d "@change-hotel.json"

The status code is 200. It means: the hotel is saved as the answer shows it. This is the data part.

response · status code 200 · data
{
  "id": 63,
  "name": "Ganga Riverside Guest House",
  "timezone": "Asia/Kolkata",
  "currency": "INR",
  "channelManager": false,
  "sandbox": false,
  "address": {
    "line1": "16 Assi Ghat Road",
    "city": "Varanasi",
    "state": "Uttar Pradesh",
    "postalCode": "221005",
    "country": "IN"
  },
  "changed": [
    "name",
    "address.line1"
  ]
}
What you can change
The name, and four parts of address: line1, city, state and postalCode. Send one field or more. A field you leave out stays as it is.
What you cannot change
The hotel's country, currency, time zone, owner and tax id. A request that sends one of them gets 400 VALIDATION.
Which hotels
With a live key: a hotel you added. Who pays for it does not matter here. A hotel whose owner let you in gets 409 PROPERTY_NOT_CHANGEABLE, and its owner changes it. With a test key: one of your sandboxes.
changed
The answer lists the fields that changed. An empty list, [], means: all you sent was already saved.
Only in ZimmerStack
The new name is saved in ZimmerStack. This request does not change the name of the hotel's listing on an OTA.
A sandbox's name
It keeps its ending, (sandbox). Leave the ending out, and ZimmerStack adds it again.
After a new name
To remove the hotel later, send its new name in confirm.

Every field, with every error: Change a hotel.

Remove a hotel

One request takes a hotel you added off ZimmerStack. It is for good, and it cannot be undone. It does the same as our own team does when a hotel's service ends.

What the request does, in this order

  1. 1

    Its OTAs are disconnected

    They stop getting rates and availability from ZimmerStack. Connect them to the hotel's next channel manager first. Then the hotel keeps selling.
  2. 2

    Its rate plans are removed

    From our connectivity partner's system, once no OTA sells them.
  3. 3

    Its room types are removed

    From our connectivity partner's system, after their rate plans. Then the hotel itself is removed from there.
  4. 4

    The hotel is closed

    Its owner can no longer sign in. Your keys and stop reaching it. Its subscription is cancelled. So it is not counted on your invoice from the next 1st.

Send the request

The address has two values. The first is the hotel's id. The second is confirm: the hotel's exact name, as List your hotels shows it. In an address, a space is written %20.

The example removes Ganga Guest House, with the id 63. Put your own hotel's id and name in their place. With a test key the request deletes a sandbox. To remove a real hotel, use your live key.

Open a terminal and run this. On Windows PowerShell, type curl.exe instead of curl.

terminal
curl -X DELETE "https://api.zimmerstack.com/api/v1/connect-api/v1/properties/63?confirm=Ganga%20Guest%20House" -H "Authorization: Bearer zsk_test_YOUR_KEY"

With the Node package it looks like this.

read the hotel's name, then remove it
// Read the hotel's name first: confirm must be its exact name, so a wrong id never removes a hotel.
const { properties } = await zs().properties.list();
const hotel = properties.find((p) => p.id === propertyId);
if (!hotel) throw new Error(`No hotel ${propertyId} that this key reaches.`);

// One call, in this order: its booking sites are disconnected, its rate plans and then its room types
// are removed from the channel manager, and the hotel is closed. There is no undo.
const gone = await zs().properties.delete(hotel.id, { confirm: hotel.name });

// REMOVED: nothing is left on the channel manager. RETRYING: the hotel is closed and off your invoice,
// and one step is still finishing; ZimmerStack retries it, so do not call again in a loop.
console.log(gone.removed, gone.billing.state, gone.channelManager.state);

What comes back

There are two good answers. Status code 200 means: the hotel is removed, and nothing is left in our connectivity partner's system.

response · status code 200 · data
{
  "id": 63,
  "name": "Ganga Guest House",
  "removed": true,
  "replay": false,
  "sandbox": false,
  "access": "CLOSED",
  "billing": {
    "state": "CANCELLED",
    "cancelledAt": "2026-11-19T09:30:12.000Z"
  },
  "channelManager": {
    "state": "REMOVED",
    "step": null,
    "stillConnected": null
  }
}

Status code 202 means: the hotel is closed and off your invoice. One step in our connectivity partner's system is still finishing. ZimmerStack tries that step again by itself. You do nothing.

response · status code 202 · data
{
  "id": 63,
  "name": "Ganga Guest House",
  "removed": true,
  "replay": false,
  "sandbox": false,
  "access": "CLOSED",
  "billing": {
    "state": "CANCELLED",
    "cancelledAt": "2026-11-19T09:30:12.000Z"
  },
  "channelManager": {
    "state": "RETRYING",
    "step": "RATE_PLANS",
    "stillConnected": {
      "channels": 0,
      "ratePlans": 2,
      "roomTypes": 2,
      "property": true
    }
  }
}
removed
true: the hotel is removed.
access
CLOSED: nobody can sign in to the hotel, and your keys no longer reach it.
billing.state
CANCELLED: the hotel's subscription is cancelled. cancelledAt says when.
channelManager.state
REMOVED: nothing is left there. RETRYING: one step is still finishing, and ZimmerStack tries it again.
channelManager.step
Only with RETRYING. The step that is still finishing, like RATE_PLANS.
channelManager.stillConnected
Only with RETRYING. What is still there: how many channels, rate plans and room types, and whether the hotel itself is.
replay
false: this request removed the hotel. true: the hotel was already gone. Send the request again later, and the answer is 200 with replay: true. A hotel that is already gone needs no confirm.

Things to know when you remove a hotel

Which hotels
Only a hotel you added and pay for. It must use ZimmerStack as its and nothing else. It must be the only property on its owner's account. Any other hotel gets 409 PROPERTY_NOT_REMOVABLE, and the answer says who can remove it.
The confirmation
Send the hotel's exact name in confirm. A wrong id then never removes a hotel. A wrong name gets 400 CONFIRMATION_MISMATCH.
Your invoice
The hotel is not counted from the next 1st. The month already billed is not refunded.
If its owner removes your access
An owner can take your access back, under Integrations. Your keys stop reaching the hotel at once. It is off your invoice from the next bill. We write to you when it happens. You do nothing.
Bookings already made
They stay with the OTAs and with the hotel. Nothing is cancelled. The hotel's past bookings and bills are kept. You can no longer read them through the API. So read them before you remove the hotel.
Notice
There is no notice period, for you or for ZimmerStack. You can remove a hotel, or stop using ZimmerStack, at any moment. ZimmerStack can end a partner's service in the same way. So keep your own copy of what you need. The API is not an archive.
It can take a minute
The OTAs are disconnected one after another. The answer comes when that is done. Wait up to a minute and a half for it. The Node package waits that long. If no answer reaches you, send the request again. A hotel that is already gone answers replay: true. A hotel that is still being removed answers 503 PROPERTY_BUSY: wait, then ask again.
No undo
A removed hotel cannot be added again by API. If you need one back, write to support.
How many
You may remove 10 hotels in 24 hours. Hotels removed by request and in the partner portal are counted together. A sandbox is not counted. A removal that has already started is always finished.

When a request is refused

A refusal has a status code and a code in data.code. Here are the codes of these requests.

400 IDEMPOTENCY_KEY_INVALID
Add a hotel: the idempotency header is missing or has a wrong shape.
400 CONFIRMATION_MISMATCH
Remove a hotel: confirm is not the hotel's exact name.
400 VALIDATION, and the message says the request is held
The hotel could not be made from a request ZimmerStack already has. data.details.reason says why. Do not send it again, with this key or a new one. Write to support.
400 VALIDATION, on a change
Change a hotel: nothing to change was sent, or a field that cannot be changed, like country.
403 COMPANY_KEY_REQUIRED
You used a hotel key. Only a company key with properties:write may add, change or remove hotels.
404 PROPERTY_NOT_FOUND
Your key cannot reach this hotel.
409 BILLING_SETUP_REQUIRED
Your billing is not set up, or your hotel quota is full (details.reason QUOTA_FULL). Finish it in the partner portal.
409 OWNER_HAS_ACCOUNT
The owner's email already has an account.
409 SANDBOX_LIMIT
A test key: you already have the most sandboxes you may have. Delete one first.
409 PROPERTY_NOT_REMOVABLE
You may not remove this hotel. data.details.reason says who can. OWNER_ALLOWED: its owner let you in, so the owner removes your access. NOT_BILLED_TO_YOU, OTHER_PRODUCTS or SHARES_ACCOUNT: ZimmerStack removes it, so write to support.
409 PROPERTY_NOT_CHANGEABLE
Change a hotel: you did not add this hotel. data.details.reason is OWNER_ALLOWED: its owner let you in, so its owner changes it.
429 RATE_LIMITED
You reached a limit. data.scope names it. partner-new-properties-hour: 20 hotels added in an hour. vendor-property-removals-day: 10 hotels removed in a day. partner-new-sandboxes-hour: 30 sandboxes made in an hour. Wait as long as Retry-After says.
503 PROPERTY_BUSY
A hotel of yours is being added or removed right now. Only one at a time. Wait as long as Retry-After says, then send again.
503 PROPERTY_BUSY, with Retry-After of one hour, on a removal
The removal started and could not finish. ZimmerStack has been told and finishes it. You do nothing. Send the request again later to see where it stands.
503 PRICE_UNAVAILABLE
The hotel could not be priced just now. Send the request again.

Every code, with what to do: Errors.

The same two things by hand

Add
In the partner portal, open Enroll. It is the same form, with the same rules and the same answer.
Remove
In the partner portal, open Hotels and open the hotel. Press Remove hotel. You type the hotel's name to confirm.

Words on this page

Request
One message your software sends to the API.
Property
One hotel in ZimmerStack. Each property has its own id, a number.
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.
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.
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.
Scope
One permission of a key. For example ari:write lets the key update availability, rates and restrictions.
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.
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
Body
The data you send inside a request, written in JSON.
JSON
A simple text format for data, made of names and values inside { }.
Ref
Your own name or id for a room type or a rate plan. You choose it, and ZimmerStack remembers it.
Idempotency key
A code you choose and send with an update. If the same update is sent twice by mistake, it is done only once.
Status code
A number in every response. 200 to 299 means it worked. 400 and above means there is a problem.
Retry-After
A header in an answer. It says how many seconds to wait before you send again.
Vendor code
A short code of your company. A hotel that already uses ZimmerStack enters it to let your software in.
Invoice
A bill.
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
Listing
A hotel's own page on an OTA, with its rooms, photos and prices.
Channel manager
Software that keeps a hotel's rooms and prices the same on every OTA. Learn more
Webhook
A message ZimmerStack sends to your server when something happens, like a new booking.

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