API action
Get the mapping of one OTA(which rate plan each room and rate of the OTA gets)
See how one connected OTA is matched to the hotel. The answer has one line for each room and rate of the OTA, with the rate plan it gets now.
About this action
- What it does
- Reads the of one . ZimmerStack asks the for its rooms and rates again, live. The answer puts them beside the hotel's : what is matched now, and a suggestion where nothing is matched.
- When to use it
- Before you change a mapping: the change names each line by the
lineIdof this answer. Also when a hotel asks which of its rate plans feeds a room on the OTA. - Who can use it
- A only. The key needs the
channels:connect. - Address
GEThttps://api.zimmerstack.com/api/v1/connect-api/v1/properties/{propertyId}/channels/{channelId}/mapping- Before this
- The OTA must be connected already. You need the hotel's
propertyId, from List your hotels. You need thechannelId, from List the connected OTAs. The scopechannels:connectis never ticked by itself: someone in your company must give it to the key.
What you send
In the address:
- propertyId
- The id of the hotel, a number. Get it with List your hotels.
- channelId
- The id of the channel, from the answer of List the connected OTAs. That request names the hotel with the
X-ZS-Propertyheader.
Things to know
- The hotel is in the address. You name the hotel as
propertyIdin the address. This request never reads the . - The answer takes a few seconds. The OTA is asked each time you send this request.
- Read the lines again before each change. A
lineIdfollows what the OTA lists now. So read the mapping again before each change. - A suggestion is not saved. For a line with no match,
suggestedRatePlanIdis the rate plan our own matching would propose, by name and by . Nothing is saved until you send it.
The request, in your language
Put your key in place of zsk_live_YOUR_KEY.
Open a terminal and run this. On Windows PowerShell, type curl.exe instead of curl.
curl "https://api.zimmerstack.com/api/v1/connect-api/v1/properties/61/channels/7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f/mapping" -H "Authorization: Bearer zsk_live_YOUR_KEY"What comes back
The is 200. In this example the OTA is Booking.com, with three lines. The first line is matched to rate plan 901. The other two have no match yet, and each has a suggestion.
{
"statuscode": 200,
"message": "OK",
"data": {
"propertyId": 61,
"channelId": "7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f",
"channel": "bookingcom",
"channelName": "Booking.com",
"confirmWord": "Booking.com",
"selling": true,
"mapEveryLine": true,
"usesPrimary": true,
"lines": [
{
"lineId": "46777651::2001::2",
"otaRoom": {
"code": "46777651",
"name": "Deluxe Double Room with Garden View"
},
"otaRate": {
"code": "2001",
"name": "Standard Rate with breakfast"
},
"occupancy": 2,
"ratePlanId": 901,
"primary": true,
"suggestedRatePlanId": null,
"blocked": null
},
{
"lineId": "46777651::2001::1",
"otaRoom": {
"code": "46777651",
"name": "Deluxe Double Room with Garden View"
},
"otaRate": {
"code": "2001",
"name": "Standard Rate with breakfast"
},
"occupancy": 1,
"ratePlanId": null,
"primary": false,
"suggestedRatePlanId": 901,
"blocked": null
},
{
"lineId": "46777652::2002::4",
"otaRoom": {
"code": "46777652",
"name": "Family Suite"
},
"otaRate": {
"code": "2002",
"name": "Non-refundable Rate"
},
"occupancy": 4,
"ratePlanId": null,
"primary": true,
"suggestedRatePlanId": 902,
"blocked": null
}
],
"ratePlans": [
{
"ratePlanId": 901,
"roomTypeId": 412,
"roomTypeName": "Deluxe Garden Room",
"name": "Bed and breakfast",
"occupancy": 2
},
{
"ratePlanId": 904,
"roomTypeId": 412,
"roomTypeName": "Deluxe Garden Room",
"name": "Room only",
"occupancy": 2
},
{
"ratePlanId": 902,
"roomTypeId": 413,
"roomTypeName": "Family Suite",
"name": "Room only, non-refundable",
"occupancy": 4
}
]
}
}- channelName
- The name of the OTA, as a person reads it.
- confirmWord
- The OTA's brand word. Disconnect one OTA from a hotel asks for it in
confirm. - selling
- With
false, the connection is paused. - mapEveryLine
- With
true, this OTA wants every line that can be matched to be matched before a save. Booking.com is such an OTA. Withfalse, a line may stay out. - usesPrimary
- With
true, one line of each rate of the OTA carries that rate's and . It is the primary line. The other lines of the rate carry a price only. - lines
- One line for each rate of each room the OTA sells. Where the OTA prices by the number of guests, there is one line for each number.
- lineId
- The id of the line. The change names the line by it.
- otaRoom, otaRate
- The room and the rate as the OTA lists them. Each has a
codeand aname. - occupancy
- The number of guests this line is priced for. The value
nullmeans the OTA matches this rate without one. - ratePlanId
- The hotel's rate plan that is matched to this line now. It is the id that Get room types and rate plans gives. The value
nullmeans no match. - primary
- With
true, this is the primary line of its rate. It has a meaning only whereusesPrimaryistrue. - suggestedRatePlanId
- Only for a line with no match: the rate plan our own matching would propose. The value
nullmeans it has none. - blocked
- The value
nullmeans the line can be matched. Any other value says why it cannot. The table below has each value. - ratePlans
- The hotel's rate plans that a line can be matched to. They are the ones that are on the .
What each value of blocked means
A line with a value in blocked cannot be matched. A change of the mapping never changes such a line.
- DERIVED
- The OTA makes this rate from another rate. It follows that rate, and is not matched on its own.
- OTHER_HOTEL
- Another hotel of the same account holds this line.
- READONLY, OCCUPANCY_UNKNOWN
- Two more values. With each of them, the line cannot be matched.
Common mistakes
- 403 COMPANY_KEY_REQUIRED
- You used a hotel key. This request works with a company key only.
- 404 PROPERTY_NOT_FOUND
- The
propertyIdis not a hotel your key may act on. Use an id from List your hotels. - 404 CHANNEL_NOT_FOUND
- This hotel has no channel with this
channelId. Read the ids again with List the connected OTAs. - 409 LIVE_KEY_REQUIRED
- You used a test key. A sandbox has no real OTA. Use a live key.
- 409 CHANNEL_NOT_AVAILABLE
- Read
data.details.reason. Withnot_in_your_access, managing connections is not part of your access to this hotel: open a support ticket. Withnot_matched_here, our matching does not cover this OTA: use the channel console. The other reasons areswitched_offandtest_account. - 409 CHANNEL_MANAGER_DISABLED
- The hotel is not on the .
- 409 PROPERTY_UNAVAILABLE
- The hotel's service is paused or has ended.
- 502 CHANNEL_MANAGER_ERROR
- Our or the OTA did not answer. Try again in a moment.
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. This request reads a real OTA, and a has none. So it 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.
Words on this page
- 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
- Channel
- One connection between a hotel and one OTA. Hotel people say channel and OTA for nearly the same thing.
- OTA
- Online travel agency: a website that sells hotel rooms, like Booking.com, MakeMyTrip or Agoda. Learn more
- Rate plan
- One way to sell a room type, with its own price. For example Room only, or With breakfast.
- Occupancy
- How many guests stay in one room.
- Availability
- How many rooms of one room type are free to sell on 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
- Channel manager
- Software that keeps a hotel's rooms and prices the same on every OTA. Learn more
- 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
- Header
- A small piece of extra information sent with a request, like your key.
- X-ZS-Property
- The header that tells ZimmerStack which hotel a request is for. Its value is the property id.
- 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.
- Sandbox
- Your test hotel. It works like a real hotel, but no OTA can see it and it costs nothing.
- 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.
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 22:53:42 UTC.