API action
Make a connect link(the last step to connect an OTA, after the OTA's own step)
Make a one-time link for one hotel and one OTA. The link is the last step of connecting that OTA. Except on Airbnb, the OTA must first accept our connectivity partner for the hotel.
About this action
- What it does
- Makes a and gives you its address, once. On that page a person of the hotel types the hotel's id at the , matches the rooms and rates, and presses Start selling. For Airbnb, the host signs in on Airbnb's own page instead. The link does not ask the OTA to accept our connectivity partner: the hotel does that at the OTA first.
- When to use it
- Only after the OTA has accepted our connectivity partner for the hotel (except Airbnb). Before that, the OTA refuses what the hotel types on the page. Your software never sees what the hotel types there.
- Who can use it
- A only. The key needs the
channels:connect. - Address
POSThttps://api.zimmerstack.com/api/v1/connect-api/v1/connect-links- Before this
- The OTA's own step, done by the hotel: see the box at the top. The hotel needs its and in ZimmerStack, and its own on that OTA. The scope
channels:connectis never ticked by itself: someone in your company must give it to the key.
What you send
You send the hotel and the OTA. You never send the hotel's id at the OTA, a token, a password or a room match: there is no field for them.
- propertyId
- Number. Required. The id of the hotel, from List your hotels.
- channel
- Text. Required. The OTA to connect, as one of these words:
bookingcom,gommt(MakeMyTrip and Goibibo),agoda,expedia,tripcom,yatra,hostelworld,airbnb. One link connects one OTA. - expiresInHours
- Whole number, 1 to 168. Optional. How many hours the link can be opened. Without it: 72 hours.
- reference
- Text, up to 120 letters. Optional. Your own name or id for this link. You get it back when you read the link. The hotel never sees it.
- returnUrl
- Text, an address that starts with
https://. Optional. Where the page offers to send the person when it is done, for example your own screen.
{
"propertyId": 61,
"channel": "bookingcom",
"reference": "onboarding-4471"
}Things to know
- What the person types on the page. Nobody signs in to the OTA there, except on Airbnb. For MakeMyTrip and Goibibo: the hotel's id and the access token that the OTA gives. For Booking.com, Agoda, Expedia, Trip.com, Yatra and Hostelworld: the hotel's id or code at that OTA. Every OTA also asks for an email.
- The address is shown once. The field
urlis in this answer only, and ZimmerStack keeps no copy. Never write it to a log. You can send the headerX-Idempotency-Key, an . A repeat of the request with the same key givesurlasnull. Make a new link then. - The link opens one time. After the hotel's person opens it, the page works for 120 minutes. So open it only when the hotel's id at the OTA is at hand, and for MakeMyTrip its access token too.
- A new link replaces an old one. A second link for the same hotel and OTA switches off an earlier link that nobody opened. The field
withdrawncounts them.
The request, in your language
Put your key in place of zsk_live_YOUR_KEY.
Save the example above as make-a-connect-link.json. Open a terminal in the same folder and run this. On Windows PowerShell, type curl.exe instead of curl.
curl -X POST "https://api.zimmerstack.com/api/v1/connect-api/v1/connect-links" -H "Authorization: Bearer zsk_live_YOUR_KEY" -H "Content-Type: application/json" -d "@make-a-connect-link.json"What comes back
The is 201. It means: created. The link is made and waits for the hotel's person.
{
"statuscode": 201,
"message": "Connect link created",
"data": {
"link": {
"id": "3f2b6c1e-8a4d-4e7b-9c05-1d2e3f4a5b6c",
"propertyId": 61,
"channel": "bookingcom",
"channelName": "Booking.com",
"status": "pending",
"createdAt": "2026-11-23T09:30:00.000Z",
"expiresAt": "2026-11-26T09:30:00.000Z",
"openedAt": null,
"connectedAt": null,
"completedAt": null,
"revokedAt": null,
"channelId": null,
"reference": "onboarding-4471",
"returnUrl": null,
"createdByKey": {
"id": 12,
"name": "Aarohan PMS, production",
"maskedKey": "zsk_live_aB3…"
}
},
"url": "https://channels.zimmerstack.com/connect-link#zcl_…",
"hotelStep": "In the Booking.com extranet, open Account, then Connectivity provider. Search for our connectivity partner, choose it and accept the agreement. You can match rooms straight away; selling starts once Booking.com approves the connection.",
"withdrawn": 0
}
}- url
- The address to send to the hotel's person. It is in this answer only.
- hotelStep
- One sentence: what the hotel must do at the OTA before it opens the link, in the OTA's or through the OTA's support. It names our connectivity partner as that OTA lists it. Send it to the hotel first. The value
nullmeans that OTA has no such step (Airbnb). - link.id
- The id of the link. Save it. You read and cancel the link with this id, never with its address.
- link.status
- Here
pending: made, and not opened yet. - link.expiresAt
- The link can be opened until this time.
- withdrawn
- How many earlier links for this hotel and OTA this one switched off.
Then send the link to the hotel
First send the sentence in hotelStep to the hotel. Send url to the hotel's own person once the hotel says that step is done. When that person presses Start selling, the OTA is connected. To know how the link ended, use Get a connect link. Or receive a : your gets it only if you ticked these two types.
- channel.connect.completed
- Start selling was pressed. The OTA is connected.
- channel.connect.expired
- The link ran out before anyone finished.
Common mistakes
- 400 VALIDATION
- A field is missing, has a wrong value, or is not one of the fields above. The message names it.
- 403 COMPANY_KEY_REQUIRED
- You used a hotel key. Connect links are made with a company key.
- 404 PROPERTY_NOT_FOUND
- The
propertyIdis not one of your hotels. Use an id from List your hotels. - 409 LIVE_KEY_REQUIRED
- You used a test key. Use a live key.
- 409 CHANNEL_NOT_AVAILABLE
- This OTA cannot be connected with a link for this hotel. Read
details.reason. Withswitched_off, links for this OTA are not offered yet. Withnot_offered_here, the OTA is not offered in the hotel's country. - 409 CHANNEL_MANAGER_DISABLED
- The hotel is not on the yet. Send its room types and rate plans first.
- 429 RATE_LIMITED
- Too many links in one hour, for this hotel or for your whole company. Wait the seconds in the
Retry-Afterheader.
Other errors this request can give
- 401 API_KEY_INVALID
- The key is not right. Copy it again, all of it, with no space before or after.
- 403 SCOPE_MISSING
- The key is not allowed to do this. It needs the scope
channels:connect. - 403 IP_NOT_ALLOWED
- The key only works from the addresses its owner allowed.
- 429 RATE_LIMITED
- Too many requests in a short time. Wait the number of seconds in the
Retry-Afterheader, then send again. - 401 API_KEY_REVOKED
- The key was switched off, or it was replaced and its extra 24 hours are over. Ask the key's owner for the new key. Nothing else makes this key work.
Try it
This page has no box to try the action. A connect link connects a real OTA, and a has none. So this action works with a only. Send it from your own code or from Postman. Never type a live key into a web page.
Go deeper
- Connect an OTA: First the OTA accepts our connectivity partner. Then a link: the hotel's id, the mapping, Start selling.
- Inside a connect link: Each step: the page, ZimmerStack and the OTA, from the form to the first booking.
- Webhooks: Receive every booking, check that it is real, and never lose one.
Words on this page
- Connect link
- A one-time link you send to a hotel: the last step of connecting one OTA. Except on Airbnb, the OTA must first accept our connectivity partner for the hotel. Then the hotel's person types the hotel's id at the OTA, matches the rooms and rates, and starts selling.
- OTA
- Online travel agency: a website that sells hotel rooms, like Booking.com, MakeMyTrip or Agoda. Learn more
- 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.
- Listing
- A hotel's own page on an OTA, with its rooms, photos and prices.
- 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.
- 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
- Extranet
- The website an OTA gives a hotel to manage its own listing, like the Booking.com extranet.
- Mapping
- Saying which room and price in one system is which room and price in another system. For an OTA: each of its rooms and rates is matched to one of the hotel's rate plans. A person makes the first matching. Changing it later is called a re-map. Learn more
- Sandbox
- Your test hotel. It works like a real hotel, but no OTA can see it and it costs nothing.
- 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.
- Status code
- A number in every response. 200 to 299 means it worked. 400 and above means there is a problem.
- 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.
- Channel manager
- Software that keeps a hotel's rooms and prices the same on every OTA. Learn more
New here? Start with the partner path or the one-hotel path.
Routes, samples, limits and codes on this page come from the API's public contract, read live, Fri, 04 Dec 2026 23:55:43 UTC.