Skip to content

Guide

Set a price modifier on an OTA(channel modifier)

You always send one price for each night of a . That price goes to every . You cannot send one OTA its own price, and you cannot choose which OTAs get a price. A is a rule on one OTA: every price that goes to that OTA is raised or lowered by it. You read it, set it and remove it with the API.

The idea

The Lantern House sells its Deluxe Room at 4,500 on 24 December. The hotel wants a higher price on Booking.com only. So it sets a channel modifier on Booking.com with two steps: 18% more, then 200 less.

The price you sent
4,500
Step 1: 18% more
5,310
Step 2: 200 less
5,110. This is the price Booking.com gets.
Every other OTA
4,500. Nothing changes for them.

These are the rules:

One price for a night
A rate plan has one price for each night. It goes to every OTA the rate plan is mapped to ().
A channel modifier
The one thing that can differ for each OTA. It is a list of up to 5 steps. The steps are used, in order, on every price that is sent to that OTA.
A step
A step makes the price higher or lower. It does this by a percentage of the price, or by a fixed amount. A fixed amount is in the hotel's , in : 200 means 200 rupees, not 200 paise.
The whole list
A save replaces the list the OTA had. An empty list removes the channel modifier. Prices then go to that OTA as they are.
Your grid
GET /rates always gives the price before any channel modifier. What an OTA gets is that price with its steps, in order.
The owner's own markup
GET /channels also shows markupPlan. It is another price change, which the hotel's owner may have set in the ZimmerStack Channels app. It is used before the channel modifier. You can read it here, but you cannot change it.

When a channel modifier starts

You do not need to send the rates again after you save a channel modifier. That happens by itself. Send the rates again is for one rare case only.

The three steps

  1. 1

    Find the OTA

    Send GET /channels. Find the OTA in the list. Note its channelId and its kind. Read the steps it has now.
  2. 2

    Set the steps

    Send PUT /channels/{channelId}/modifier with the whole list of steps. An empty list, [], removes the channel modifier.
  3. 3

    Nothing more

    Every date is now sent to that OTA again. The prices that are already there change within minutes.

With the Node package, the three steps look like this. The same requests in curl, Node.js, PHP and Python are in the next parts of this page.

scripts/channel-price.ts · the three steps, with the Node package
// 1. Which channels, and what each one holds.
const { channels } = await zs().channels.list();
const booking = channels.find((channel) => channel.kind === "BookingCom");
if (!booking) return;

// 2. Booking.com is sent 18 % more, then 200 less: the whole list of steps, in order.
//    Needs the scope channel-modifiers:write. Call it when a person saved the setting, never from a loop.
const result = await zs().channels.setModifier(booking.channelId, [
  { action: "increase", type: "percent", value: 18 },
  { action: "decrease", type: "fixed", value: 200 },
]);
console.log(`4,500 goes to Booking.com as ${channelPrice(4500, result.modifier)}`); // 5110
console.log(MODIFIER_TAKES_EFFECT); // the sentence to show where the person saves it

// 3. Nothing else: the channel manager now sends Booking.com every date again, so prices already
//    on sale there move to the new rule within minutes. No re-send is needed.

Which key may do this

To set a channel modifier
The key needs the channel-modifiers:write.
A partner's key
It has this scope already. The partner portal ticks it when you create a key. Every partner key made before 19 Nov 2026 was given it.
A hotel's own key
It has this scope only when the hotel's owner ticked it, in Admin → Developers → API keys.
Why it is a scope of its own
It is apart from ari:write, because one request changes every price that is sent to that OTA.
To read, and to send the rates again
Reading needs ari:read. Sending the rates again needs ari:write.

Step 1: read each OTA and its steps

Put your key in place of zsk_test_YOUR_KEY. The full page of this request is List the connected OTAs.

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

terminal
curl "https://api.zimmerstack.com/api/v1/connect-api/v1/channels" -H "Authorization: Bearer zsk_test_YOUR_KEY"
GET /channels · the data part of the answer
{
  "asOf": "2026-10-30T20:15:04.000Z",
  "channels": [
    {
      "channelId": "7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f",
      "kind": "BookingCom",
      "title": "Booking.com — The Lantern House",
      "seenAt": "2026-10-30T20:15:04.000Z",
      "openIssues": [],
      "modifier": [
        {
          "action": "increase",
          "type": "percent",
          "value": 18
        }
      ],
      "markupPlan": null
    },
    {
      "channelId": "0a9b8c7d-6e5f-4a3b-2c1d-0e9f8a7b6c5d",
      "kind": "Expedia",
      "title": "Expedia — The Lantern House",
      "seenAt": "2026-10-30T20:15:04.000Z",
      "openIssues": [
        {
          "event": "rate_error",
          "raisedAt": "2026-10-30T09:40:11.000Z"
        }
      ],
      "modifier": [],
      "markupPlan": null
    }
  ],
  "propertyIssues": []
}
channelId
The id of one : the connection between this hotel and one OTA. You put it in the address when you set the steps.
kind
Which OTA it is, like BookingCom or Expedia.
modifier
The list of steps. An empty list, [], means prices go to that OTA as they are.
modifier: null
The OTA has a rule that somebody set by hand on the side of our . This API cannot show that rule. When you set a channel modifier, it replaces the rule.
markupPlan
The owner's own markup, as explained above. null means there is none.
openIssues
The open problems our connectivity partner reported for this OTA. An empty list means there is none.
asOf
When the list was last refreshed. A channel modifier you set with this API shows here at once. One that the hotel changed on its own screens shows after the nightly refresh. The list of OTAs is refreshed every night too: an OTA connected today appears tomorrow.

Step 2: set the steps of one OTA

You send the whole list. This example is the one from the top of the page: 18% more, then 200 less.

PUT /channels/{channelId}/modifier
{
  "steps": [
    {
      "action": "increase",
      "type": "percent",
      "value": 18
    },
    {
      "action": "decrease",
      "type": "fixed",
      "value": 200
    }
  ]
}

Put the channelId from step 1 in place of YOUR_CHANNEL_ID. The request also sends the X-Idempotency-Key, as every update should. It is your . Put a new code of your own in place of YOUR-OWN-CODE-0001. The full page of this request is Set the price modifier of one OTA.

Save the example above as set-channel-modifier.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/YOUR_CHANNEL_ID/modifier" -H "Authorization: Bearer zsk_test_YOUR_KEY" -H "X-Idempotency-Key: YOUR-OWN-CODE-0001" -H "Content-Type: application/json" -d "@set-channel-modifier.json"
200, not 202
ZimmerStack puts the steps on the OTA's connection while your request runs. Then it reads them back. So 200 means: the connection of that OTA holds these steps now.
changed: true
The steps were saved. Every date is now sent to that OTA again.
changed: false
The OTA already had exactly these steps. Nothing was sent and nothing was counted. So it is safe to send the same channel modifier twice.

Send the rates again

You do not need this after a channel modifier. Saving one changes the connection, and every date is then sent to that OTA again. The prices that are already on sale there change to the new rule within minutes.

POST /rates/resend is for one rare case. You want an OTA to get the rates and the that ZimmerStack holds, one more time, unchanged. Sending the same price again with PUT /rates does not do this. ZimmerStack drops a value it already holds before anything is sent.

Open a terminal 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/rates/resend" -H "Authorization: Bearer zsk_test_YOUR_KEY"
POST /rates/resend · 202 · the data part of the answer
{
  "from": "2026-11-12",
  "to": "2027-11-12",
  "cells": 1098,
  "parkedLeft": 0,
  "watch": "/api/v1/connect-api/v1/sync",
  "notice": "The prices and stay rules of these nights are on their way to the channels again, unchanged, at the usual pace. A full calendar takes minutes."
}
  • Every night of every rate plan is marked to be sent again, as far ahead as you may send dates (the ).
  • The nights travel like any update: at a safe speed, and none is lost. A full calendar takes minutes.
  • To see when it is done, read GET /sync. The number rates.dirtyCells falls to 0.
  • A hotel may ask 3 times a day. So never call it automatically.
  • The full page of this request is Send rates again.

Sending the rates again is not a . It sends what ZimmerStack holds to our connectivity partner again. A full sync sends nothing of ZimmerStack's: our connectivity partner sends one OTA again what it already holds. Use it when one OTA shows a number our connectivity partner does not hold. See Send everything to one OTA again and Send everything to every OTA again.

Limits and refusals

  • RuleThe band
    What it meansAll the steps together may lower a price by 50% at most, and raise it by 100% at most. A fixed amount is checked at the hotel's lowest and highest standing price. If the steps go further, nothing is changed.
    The answer if you break it422 MODIFIER_OUT_OF_BAND
  • RuleChanges a day
    What it means6 changes for one hotel in any 24 hours, for all its OTAs and all its keys together. Steps that an OTA already has are not counted.
    The answer if you break it429 · modifier-changes-day
  • RuleSending again
    What it means3 times for one hotel in any 24 hours.
    The answer if you break it429 · rate-resends-day
  • RuleA shared connection
    What it meansOne connection can serve more than one hotel: one Airbnb or Booking.com account for sister hotels. Its channel modifier would change another hotel's prices, so it is refused. The owner of the hotels sets it in ZimmerStack.
    The answer if you break it409 CHANNEL_SHARED
  • RuleThe OTA
    What it meansIt must be one that GET /channels lists for this hotel.
    The answer if you break it404 CHANNEL_NOT_FOUND
  • RuleOur connectivity partner
    What it meansIf it does not take the channel modifier, nothing is changed in ZimmerStack either.
    The answer if you break it502 CHANNEL_MANAGER_ERROR

A 429 carries the header. When ZimmerStack has paused or suspended your updates, this request is refused too, like PUT /rates: Your integration's standing. Every code is on Errors.

In your grid

Keep your on the price before any channel modifier. Beside it, show what an OTA is sent: the price with the steps of that OTA, in order. For the example above, channelPrice(4500, steps) gives 5,110. 4,500 raised by 18% is 5,310. Then 200 less is 5,110.

app/api/channels/route.ts · read, work out, set, send again
import { MODIFIER_TAKES_EFFECT, channelPrice, type ModifierStep } from "@zimmerstack/connect";

import { refusal, zs } from "@/lib/zimmerstack";

/** GET /api/channels: each connected channel, the steps it holds, and what a price of 4,500 becomes there. */
export async function GET(): Promise<Response> {
  try {
    const { channels, asOf } = await zs().channels.list();
    return Response.json({
      asOf,
      // Show this sentence where the person saves a modifier.
      takesEffect: MODIFIER_TAKES_EFFECT,
      channels: channels.map((channel) => ({
        channelId: channel.channelId,
        name: channel.title ?? channel.kind,
        // [] = prices go as they are; null = a rule set by hand that this API cannot express.
        modifier: channel.modifier,
        example: channel.modifier ? channelPrice(4500, channel.modifier) : null,
      })),
    });
  } catch (err) {
    return refusal(err);
  }
}

/**
 * PUT /api/channels { channelId, steps }: the person saved a channel's modifier.
 * One call moves every price sent to that channel from then on: call it from that Save button only.
 */
export async function PUT(request: Request): Promise<Response> {
  const { channelId, steps } = (await request.json()) as { channelId: string; steps: ModifierStep[] };
  try {
    return Response.json(await zs().channels.setModifier(channelId, steps));
  } catch (err) {
    return refusal(err);
  }
}

/**
 * POST /api/channels: the "Apply to nights already on sale" button. Prices already on a channel keep the
 * old modifier until they are sent again; this sends them again, unchanged. A few times a day per hotel.
 */
export async function POST(): Promise<Response> {
  try {
    return Response.json(await zs().rates.resend(), { status: 202 });
  } catch (err) {
    return refusal(err);
  }
}

The Node package gives you channelPrice, and the sentence that says when a channel modifier starts. Without the package, modifiers.ts uses the client from Build a rate grid (zimmerstack.ts). Like those files, it is checked against the API's contract each time this site changes.

The other way: a rate plan for one OTA

A channel modifier is one rule for every night on one OTA. Sometimes one OTA needs its own price on some nights only. One example is a weekend price on Booking.com only. Then give that OTA a rate plan of its own.

  1. Create a second rate plan with PUT /catalog/rate-plans. The key needs the scope catalog:write. Name it, for example, "Deluxe, breakfast (Booking.com)". See Create or change rate plans.
  2. The hotel maps the rates of that OTA to the new rate plan. It does this once, in the ZimmerStack Channels app.
  3. From then on it is one more row in your grid. You send its price with PUT /rates, like for any rate plan.

A hotel can hold a limited number of rate plans: Limits on room types and rate plans.

A hotel may also have made a copy of a rate plan for one OTA, in the Channels app, with a price of its own. This copy is a . On a hotel that your software runs, the copy takes the price you send for the rate plan it was copied from, in the same step. So the OTA that is mapped to the copy never keeps an old price. The restrictions of the copy follow the rate plan it was copied from.

Try it on your sandbox

A has three : Booking.com, MakeMyTrip and Agoda. So you can try all the steps with a . Nothing leaves ZimmerStack. The requests, the refusals and the limits are the same as on a real hotel. On a sandbox, POST /rates/resend is finished within a minute. More on Sandbox in depth.

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.
Rate plan
One way to sell a room type, with its own price. For example Room only, or With breakfast.
OTA
Online travel agency: a website that sells hotel rooms, like Booking.com, MakeMyTrip or Agoda. Learn more
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
Currency
The money a hotel sells in, like INR for rupees or USD for dollars.
Major unit
The main unit of a currency: the rupee, the euro, the yen.
Scope
One permission of a key. For example ari:write lets the key update availability, rates and restrictions.
Channel
One connection between a hotel and one OTA. Hotel people say channel and OTA for nearly the same thing.
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.
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.
Restrictions
Stay rules for a night, like a minimum stay of 2 nights, or no arrival on that day. Learn more
Horizon
How far into the future you may send dates.
Full sync
Our connectivity partner sends one OTA everything it holds for the hotel again: availability, rates and restrictions, for every date. An OTA takes one an hour. Learn more
Standing price
The normal price of a rate plan: its defaultRate. Every date starts with it. A rate plan the hotel made in ZimmerStack can use the base rate of its room type instead.
Retry-After
A header in an answer. It says how many seconds to wait before you send again.
Rate grid
A calendar screen. Room types and rate plans are the rows, and nights are the columns.
Per-OTA plan
A child of a rate plan, made for one OTA only. It takes its restrictions from its parent rate plan, and often its price too.
Sandbox
Your test hotel. It works like a real hotel, but no OTA can see it and it costs nothing.
Pretend channel
The made-up OTA connection behind a sandbox. It takes what you send, but no real OTA is there. Learn more
Test key
A key that starts with zsk_test_. It works only on a sandbox, so it can never change a real hotel.

Routes, samples, limits and codes on this page come from the API's public contract, read live, Sat, 05 Dec 2026 01:08:28 UTC.