Skip to content

API action

Set the price modifier of one OTA(channel modifier)

Set a rule on one OTA: every price that goes to that OTA is raised or lowered by it. You still send one price for each night.

About this action

What it does
Sets the of one : up to five steps that raise or lower every price sent to that . Your in ZimmerStack do not change.
When to use it
When one OTA must show a different price than the others. For example, the hotel wants prices 18% higher on Booking.com.
Who can use it
A or a . A company key names the hotel with the . The key needs the channel-modifiers:write.
Address
PUT https://api.zimmerstack.com/api/v1/connect-api/v1/channels/{channelId}/modifier
Before this
You need the channelId. Get it with List the connected OTAs. The ticks the scope channel-modifiers:write when you make a key. A hotel key has it only when the hotel's owner ticked it.

What you send

In the address:

channelId
The id of the channel, from the answer of List the connected OTAs.

You send a list named steps. It is the whole price change for this OTA, and it replaces the steps the channel had before.

steps
List. Required. At most 5 steps, used in the order you send them. An empty list removes the price change.
action
Text. Required. Send increase to raise the price, or decrease to lower it.
type
Text. Required. Send percent for a part of the price, or fixed for an amount of money in the hotel's .
value
Number above 0. Required. How much. With percent, 18 means 18%. With fixed, 200 means 200 rupees at a hotel that sells in INR. Never send a minus sign: choose decrease.
example: a rate of 4,500 goes to this OTA as 5,110 (18% more is 5,310, then 200 less)
{
  "steps": [
    {
      "action": "increase",
      "type": "percent",
      "value": 18
    },
    {
      "action": "decrease",
      "type": "fixed",
      "value": 200
    }
  ]
}

Things to know

  1. It changes prices that are already on the OTA. After you save, every date is sent to that OTA again. Prices on sale there change within minutes. You do not send your rates again.
  2. Send the whole list every time. The new list replaces the old one. To keep a step, send it again.
  3. Your own rates stay the same. Get rates always shows the price before any channel modifier.

The request, in your language

Show the examples for

A sandbox's own key works for one hotel: choose "A hotel key" for it.

Put your key in place of zsk_test_YOUR_KEY, and your hotel's property id in place of YOUR_PROPERTY_ID.

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

terminal
curl -X PUT "https://api.zimmerstack.com/api/v1/connect-api/v1/channels/7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f/modifier" -H "Authorization: Bearer zsk_test_YOUR_KEY" -H "X-ZS-Property: YOUR_PROPERTY_ID" -H "Content-Type: application/json" -d "@set-a-price-change-for-one-ota.json"

Put your key in place of zsk_test_YOUR_KEY. A hotel key works for one hotel, so the request does not name the hotel.

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

terminal
curl -X PUT "https://api.zimmerstack.com/api/v1/connect-api/v1/channels/7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f/modifier" -H "Authorization: Bearer zsk_test_YOUR_KEY" -H "Content-Type: application/json" -d "@set-a-price-change-for-one-ota.json"

What comes back

The is 200, not 202. The change was sent to the channel and read back while you waited. So 200 means the channel has these steps now.

response · status code 200
{
  "statuscode": 200,
  "message": "OK",
  "data": {
    "channelId": "7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f",
    "kind": "BookingCom",
    "title": "Booking.com — The Lantern House",
    "modifier": [
      {
        "action": "increase",
        "type": "percent",
        "value": 18
      },
      {
        "action": "decrease",
        "type": "fixed",
        "value": 200
      }
    ],
    "changed": true,
    "notice": "Saving a modifier makes the channel manager send that channel every date again, so prices already on the channel move to the new rule within minutes."
  }
}
modifier
The steps this channel has now.
changed
With true, the steps were changed. With false, the channel already had exactly these steps: nothing was sent and nothing was counted.
notice
A : one sentence that says when the change shows on the OTA.
kind
Which OTA this channel is.

Then there is nothing more to do

ZimmerStack sends every date to that OTA again, and within minutes the OTA shows the new prices. To see the steps later, use List the connected OTAs.

Common mistakes

400 VALIDATION
A step is wrong. You sent more than 5 steps, a value of 0 or less, or a word that is not allowed. The message names it.
404 CHANNEL_NOT_FOUND
This hotel has no channel with this channelId. Read the ids again with List the connected OTAs.
409 CHANNEL_SHARED
This connection is used by more than one hotel, so a change would move the other hotel's prices too. The hotels' owner sets it in ZimmerStack. Nothing was changed.
422 MODIFIER_OUT_OF_BAND
The steps together change the price too much. The message says how far a price may go down and up. Nothing was changed.
429 RATE_LIMITED
Read data.scope. With modifier-changes-day, this hotel used all its changes for today. With modifier-busy, another change to this channel is still running. Wait the seconds in the Retry-After header.
502 CHANNEL_MANAGER_ERROR
The did not take the change. Nothing was changed. 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.
400 PROPERTY_REQUIRED
You hold a company key and did not name the hotel. Add the X-ZS-Property header.
404 PROPERTY_NOT_FOUND
The property id is not one of your hotels. Use an id from List your hotels.
403 SCOPE_MISSING
The key is not allowed to do this. It needs the scope channel-modifiers:write.
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-After header, 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.
403 WRITES_SUSPENDED
ZimmerStack has suspended the updates of this integration. details.reason says why. Stop sending and write to ZimmerStack support. Reading and bookings still work.
409 CHANNEL_MANAGER_DISABLED
The hotel's channel manager is off, so nothing would be sent to an OTA. details.reason says why. not_on_channel_manager: the hotel was never put on it. With a company key, send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there. switched_off: the hotel's owner switched it off. Only the owner can switch it back on.
409 PROPERTY_UNAVAILABLE
The hotel is deleted or is a demo. Or a test key was used on a real hotel, or a live key on a sandbox. Check which key you send. If the key is right, contact the hotel's owner.
503 SHIELD_UNAVAILABLE
A problem on our side: the update could not be checked against the hotel's limits, so nothing was saved. Wait the seconds in Retry-After and send again.
503 WRITES_FROZEN
ZimmerStack has paused the updates of every integration for now, never yours alone. Wait the seconds in Retry-After and send again. Reading and bookings still work.

Try it now

No code and no install. This box sends a real request to your . It works with a only, so it can never change a real hotel.

Try it here: set the price modifier of one OTA

It starts with zsk_test_. It is kept in this browser tab only. Never paste a live key into a web page.

Go deeper

Words on this page

Channel modifier
A rule on one OTA. It raises or lowers every price that goes to that OTA, like 10% higher. You still send one price.
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
Rates
The price of a room for one night. Learn more
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.
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.
Scope
One permission of a key. For example ari:write lets the key update availability, rates and restrictions.
Partner portal
The website where your company signs in to make keys, add hotels and pay invoices.
Currency
The money a hotel sells in, like INR for rupees or USD for dollars.
Status code
A number in every response. 200 to 299 means it worked. 400 and above means there is a problem.
Notice
A short message inside an answer. It tells you about something your request did not do.
Channel manager
Software that keeps a hotel's rooms and prices the same on every OTA. 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.

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 16:20:29 UTC.