Partner path
Open in Postman(Postman = a free app for sending API requests by clicking, without writing code)
Every of the partner API is ready in one Postman file. Each one has a short note. Almost every one shows an example answer.
What you need
- The Postman app, or Postman in your browser. Both are free: postman.com/downloads.
- A Postman account. It is free. Postman asks you to sign in before it opens a file like this one.
- Your . It starts with
zsk_test_.
Open the file
- 1
Open Postman and sign in
Use the app or the browser version. - 2
Open Import
Look at the top of the left panel. In new versions of Postman, Import is a small button beside the +. Point at it and it says Use resources or import. Click it, then click the Import tab. In older versions there is a button named Import at the top left. - 3
Paste this link
Copy the link below, paste it into the box, and press Enter. Postman imports the file. If it shows an Import button first, click it.the partner file https://api.zimmerstack.com/api/v1/public/connect-api/postman?reader=partner - 4
Find it on the left
It is named ZimmerStack API - Partner (many hotels). Click its name.
Do you prefer a file? Download it, then drag the file onto the Import box in Postman.
Put your key in
Your key goes in one place only. You do this once.
- 1
Open the Variables tab
Click the name of the collection on the left. Then click Variables. - 2
Paste your test key
Find the rowapiKey. Paste your key in the column Value. Older versions of Postman have two columns: there, use Current value. Postman keeps a value you type on your own computer. It shows it to other people only if you press Share. Do not press Share. - 3
Save
If you see a Save button, click it, or press Ctrl+S (Cmd+S on a Mac). New versions of Postman save by themselves.
Send your first request
- 1
Open the folder “1. Start here: check your key”
It is the first folder in the list. - 2
Click “List your hotels (properties)”
Then press the blue Send button. - 3
Read the answer
At the bottom you see 200 OK and your test hotel. Postman is now ready for the other requests. - 4
Send the next two requests
“Check one hotel (property)” and “Get room types and rate plans”. Postman now knows your hotel and its ids.
To see an example answer without sending anything, open a request and click the small arrow beside its name. Almost every request has one saved.
Build your hotel
After the first folder, send the next 3 folders in order. They build a hotel of your own: the hotel, its and its . With a test key it is a in your sandbox. The same requests create a real hotel with a live key. The folders after them use this hotel.
- 1
Send the folder “2. Create a hotel”
Send its 5 requests from top to bottom. The first one is “Create a hotel”. - 2
Send the folder “3. Create and change room types”
Send its 3 requests from top to bottom. The first one is “Create a room type”. - 3
Send the folder “4. Create and change rate plans”
Send its 3 requests from top to bottom. The first one is “Create rate plans”.
Send each request one time. Nothing in these folders is deleted: what you create stays in your hotel. The steps of the partner path explain each request.
You may skip these folders. Postman then works on your first hotel: the example test hotel your sign-up made.
What is inside
18 folders. Start at the top. The numbers are the order to learn them in.
1. Start here: check your key
Send these three requests first, from top to bottom. They check that your key works. They also save your hotel's ids, so the other requests can use them.
- List your hotels (properties)
- Check one hotel (property)
- Get room types and rate plans
2. Create a hotel
Create a hotel of your own: The Lantern House, with one room type. With a test key it is made in your sandbox: nothing is billed, and no OTA sees it. With a live key the same request creates a real hotel. From now on, every request in this file works on the new hotel. This folder also changes the hotel one time: it gets a new first line of its address. Your key must be allowed to add hotels (the scope properties:write). In the partner portal that is the box Also add and remove hotels.
- Create a hotel
- List your hotels again
- Check the new hotel (property)
- Change a hotel
- Get the new hotel's room types and rate plans
3. Create and change room types
A room type is one kind of room the hotel sells, like Deluxe Room. Your hotel has one. Here you create a second one with your own id (ref), and then you change it. Creating and changing are the same request. Nothing is deleted here: folder 17 deletes. Your key needs the scope catalog:write.
- Create a room type
- Get the room types (the new one is listed)
- Change a room type
4. Create and change rate plans
A rate plan is one way to sell a room type, with its own price: room only, or with breakfast. Here you create two rate plans, and then you change one. Each one names its room type by that room type's ref. Nothing is deleted here: folder 17 deletes. Send folder 2 and folder 3 first: these rate plans are for their room types.
- Create rate plans
- Get the rate plans (the new ones are listed)
- Change a rate plan
5. Update availability, rates and restrictions
Send your numbers. ZimmerStack saves them and sends them to every OTA of the hotel. An OTA is a website that sells hotel rooms, like Booking.com or MakeMyTrip. The answer is 202 Accepted and has a batchId. Use folder 6 to check that the update reached the OTAs.
- Update availability (how many rooms are free)
- Update rates (the price of each night)
- Update restrictions (stay rules)
- Update availability by your own ref
- Update rates by your own ref
6. Check that an update reached the OTAs
202 Accepted means ZimmerStack saved your update. It does not yet mean the OTAs have it. Ask here. Wait 15 seconds between two checks.
- Check one update (batch)
- Check everything (sync status)
7. Get availability, rates and restrictions
Read what ZimmerStack holds now for the hotel. Availability = how many rooms are free. Rates = the price of each night. Restrictions = stay rules, like a minimum stay.
- Get availability (rooms free on each night)
- Get rates (the price of each night)
- Get restrictions (stay rules)
8. Get OTA bookings (from Booking.com, MakeMyTrip and others)
Read the bookings that OTAs sent for this hotel. Your server also receives each booking as a webhook (folder 14). Use these requests to catch up after your server was down.
- List OTA bookings
- Get one OTA booking
- List events in order
9. Get website bookings (from the hotel's own website)
Read the bookings guests made on the hotel's own website, when the hotel uses the ZimmerStack booking engine. Lower the rooms free in your own software for each one, before you send availability again.
- List website bookings
- Get one website booking
- Cancel a website booking and refund it
10. Sandbox: practise what happens when a guest books
A real booking comes when a guest books on an OTA like Booking.com. You cannot make a real guest book only to test your software. So here the sandbox pretends. Each request makes one thing happen that happens to a real hotel: a guest books, changes the booking, cancels it, an OTA has a problem, a guest does not arrive. After each request, look at two things: the rooms free, and the webhook your server receives. It is the same webhook as for a real hotel. This folder works with a test key only, and nothing in it reaches an OTA.
- A guest books on an OTA (make a test booking)
- See that one room fewer is free
- List your test bookings
- The guest changes the booking
- The guest cancels the booking
- An OTA has a problem (sync alert)
- The OTA's problem is over
- A guest books on the hotel's own website
- The website guest does not arrive (no-show)
11. Set a price modifier on an OTA (channel modifier)
You always send one price for each night. You cannot send one OTA its own price, and you cannot choose which OTAs get a price. A modifier is a rule on one OTA: every price that goes to that OTA is raised or lowered by it, for example by 10%. Your key needs the scope channel-modifiers:write. The last two requests of this folder are a full sync: ZimmerStack sends one OTA, or every OTA of the hotel, everything it holds again. They need the scope ari:write.
- List the OTAs of this hotel (channels)
- Set the price modifier of one OTA (+10%)
- Send the prices again
- Remove the price modifier
- Send everything to one OTA again (full sync)
- Send everything to every OTA again (full sync)
12. Connect an OTA to a hotel (connect link)
A connect link alone does not connect an OTA, except Airbnb. It is the last step. 1. At the OTA first: the OTA must accept our connectivity partner for the hotel, in its extranet or through its support. This can take days, and no request here does it. 2. Then the link: the hotel's own person types the hotel's id at the OTA on our page. 3. Then the mapping: they match each room and rate of the OTA to one of the hotel's rate plans. 4. Then Start selling. Your key needs the scope channels:connect. The whole flow: https://docs.zimmerstack.com/guides/connect-an-ota#how-it-unfolds The last four requests of this folder are for an OTA that is already connected: get its mapping, change its mapping, disconnect it, and open the channel console. They need the same scope and a live key.
- Make a connect link for one OTA
- List your connect links
- Get one connect link
- Cancel a connect link
- Get the mapping of one OTA
- Change the mapping of one OTA (re-map)
- Disconnect one OTA from a hotel
- Open the channel console for a hotel
13. Go live with a hotel
Before a real hotel sells through your software, check that it is ready. Then switch it on. This folder also makes keys for one hotel. Send these with a TEST key first.
- Check if the hotel is ready to go live
- Go live
- List the hotel keys you made
- Make a hotel key
- Replace a hotel key with a new one
- Switch off a hotel key
14. Webhooks (get bookings sent to your server)
A webhook is a message ZimmerStack sends to your server when something happens, like a new booking. Here you tell ZimmerStack the address of your server. Your key needs the scope webhooks:manage. These requests are for your company, so they send no hotel id. The last request deletes the address this folder added, and only that one. You may skip it.
- Add your server's address (webhook endpoint)
- List your webhook endpoints
- Get one webhook endpoint
- Change a webhook endpoint
- Send a test message to your server
- List the messages that were sent
- Get one sent message
- Send one message again
- Send all messages again since a time
- Pause the messages
- Start the messages again
- Change the signing secret
- Delete a webhook endpoint
15. Bills and support
Read your own invoices, and write to support, from your software. Reading a bill changes nothing and pays nothing. Send the support requests with a TEST key: a ticket made with a live key reaches our support team.
- Check if ZimmerStack has a problem (status)
- Get what you owe
- List your invoices
- Get your next invoice
- Write to support (open a ticket)
- List your tickets
- Get one ticket
- Reply on a ticket
- Close your ticket
16. More: limits, errors and testing before you send
Things you need after the basics work: how fast you may send, what an error looks like, and how to test an update without saving it (dry run).
- Get your limits (how many requests you may send)
- See the rate limit headers
- List your own recent requests
- Send the same update twice safely (idempotency key)
- See the error for a wrong key (401)
- See the error for a date too far ahead (400)
- Test a restrictions update without saving it (dry run)
- Test an availability update without saving it (dry run)
- Stop selling a room type everywhere (dry run)
- Start selling the room type again (dry run)
- Explain one night
- Sandbox: make the next update fail on purpose
- Sandbox: see the failure you set
- Sandbox: go back to normal
- Get the full API description (OpenAPI)
17. Delete a room type or a rate plan
Deleting cannot be undone. So this folder first creates one room type and one rate plan of its own, and then deletes only those two. Your other room types and rate plans are never touched. A delete names what it deletes in one of two ways: by ZimmerStack's id, or by your own ref with ref: in front. This folder shows both: it deletes its rate plan by your ref, and its room type by ZimmerStack's id. The same two requests delete a room type or a rate plan of any hotel your key works for. On a real hotel with a connected OTA, a delete is refused with 409 CATALOG_CONFLICT while an OTA still has a match to it. A person removes every match first, in the partner portal. A sandbox has no OTA, so you do not see this here. Your key needs the scope catalog:write.
- Create a room type to delete
- Create a rate plan to delete
- Delete a rate plan
- Delete a room type
18. Remove a hotel
Removes the hotel that folder 2 created. You may skip this folder and keep the hotel: a hotel made with a test key costs nothing. With a live key the same request removes a real hotel you added and ends its service. The checklist in the partner portal reads the test hotels you have now. If you remove this one, the steps it ticked there may lose their tick. After the removal, Postman works on your first hotel again. Then send folder 1 again, so that hotel's ids are saved.
- Remove a hotel
If it does not work
- 401 on every request. The key is missing or not saved. Open the Variables tab again, check the row
apiKey, and save. - 400 PROPERTY_REQUIRED. You hold a company key, and Postman does not know your hotel yet. Send “List your hotels (properties)” first.
- “Create a hotel” is not sent. In this file, Postman sends the requests that build the hotel with a test key only. So no real hotel is added by mistake. Check that the key in
apiKeystarts withzsk_test_. A real hotel is added with a : Add your first hotel. - 403 SCOPE_MISSING on “Create a hotel”. Your key may not add hotels. Make a new test key with the box Also add and remove hotels ticked: Get a test key.
- The link opens as text in your browser, or downloads a file. That is normal. Paste the link into Postman's Import box, not into the browser.
Words on this page
- Postman
- A free app for sending API requests by clicking, without writing code.
- Request
- One message your software sends to the API.
- Test key
- A key that starts with zsk_test_. It works only on a sandbox, so it can never change a real hotel.
- Sandbox
- Your test hotel. It works like a real hotel, but no OTA can see it and it costs nothing.
- Test hotel
- A hotel in your sandbox. It works like a real hotel, but no OTA can see it and nothing is billed.
- 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.
- Live key
- A key that starts with zsk_live_. It works on real hotels.
Looking for the one-hotel file? It comes with the one-hotel path.