Skip to content

API action

Make the next update fail(on purpose, to test your software)

Tell your sandbox to fail on purpose. Then watch how your software handles it.

About this action

What it does
Sets one on your . The sandbox then refuses your next or , or is busy or down for some minutes.
When to use it
Before you . On a sandbox every update works. A real hotel sometimes has a bad day: an refuses a price, or the is busy or down.
Who can use it
A or a . A company key names the hotel with the . The key needs the ari:write.
Address
POST https://api.zimmerstack.com/api/v1/connect-api/v1/sandbox/faults
Before this
You need a . With a company key, put the property id of your sandbox in the X-ZS-Property header.

What you send

You send the kind of fault. Each kind has its own extra fields.

kind
Text. Required. refuse: the next values are refused. throttle: every update is answered "too many requests" for some minutes. outage: every update fails for some minutes.
values
Whole number, 1 to 500. Only with refuse. How many to refuse, in the order you send them. If you leave it out, it is 1.
message
Text, up to 200 letters. Only with refuse. The words of the refusal. Your software reads them back later.
minutes
Whole number, 1 to 60. Only with throttle or outage. How long the fault lasts. If you leave it out, it is 5 for throttle and 10 for outage.
example: refuse the next 2 nights of rates or restrictions
{
  "kind": "refuse",
  "values": 2,
  "message": "Rate is below the channel's minimum"
}

Things to know

  1. Your update still gets the answer 202. The sandbox saves what you send. The failure shows later, when you ask with Check an update.
  2. Only rates and restrictions fail. An update works as before.
  3. One fault at a time. A new fault takes the place of the old one.
  4. An outage shorter than 6 minutes sends no alert. The sandbox tries once a minute. The alert comes after 5 failed tries in a row.

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 make-the-next-update-fail.json. Open a terminal in the same folder 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/sandbox/faults" -H "Authorization: Bearer zsk_test_YOUR_KEY" -H "X-ZS-Property: YOUR_PROPERTY_ID" -H "Content-Type: application/json" -d "@make-the-next-update-fail.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 make-the-next-update-fail.json. Open a terminal in the same folder 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/sandbox/faults" -H "Authorization: Bearer zsk_test_YOUR_KEY" -H "Content-Type: application/json" -d "@make-the-next-update-fail.json"

What comes back

The is 200. The fault is set. The list named watch says what to do next, step by step. Its words "pretend channel" mean the behind your sandbox.

response · status code 200
{
  "statuscode": 200,
  "message": "The pretend channel is set: see watch for what to do next.",
  "data": {
    "active": true,
    "kind": "refuse",
    "remaining": 2,
    "until": null,
    "message": "Rate is below the channel's minimum",
    "setAt": "2026-11-23T09:30:12.000Z",
    "watch": [
      "Send a price or a stay rule (PUT /rates or PUT /restrictions) and keep its batchId.",
      "Within a minute GET /batches/{batchId} reads failed, with parkedCells and the pretend channel's words in lastError; GET /sync counts the same nights under rates.parkedCells.",
      "Your webhook receives channel.sync.alert with event value_refused (once for this fault).",
      "Send the same value again: it is answered in rejected as held, with the notice VALUE_HELD, and is not sent again.",
      "Send a different value for those nights: it lands, and the nights are no longer held."
    ]
  }
}
active
true: a fault is set.
kind
The kind of fault you set.
remaining
For refuse: how many cells are still to be refused. null for the other kinds.
until
For throttle and outage: when the fault ends. null for refuse.
message
For refuse: the words of the refusal.
watch
What to do next, and what your software should then see. It is written for the fault you set.

Then send an update and watch it fail

Send rates with Update rates and save the batchId. Then ask about that with Check an update.

refuse
Within a minute the batch reads failed, and your webhook endpoint gets channel.sync.alert. The same value sent again is held back. A different value works.
throttle
The batch reads pending, and failed from the fifth failed try. No alert is sent. When the minutes are over, the update lands by itself.
outage
After 5 failed tries the batch reads failed, and your webhook endpoint gets channel.sync.alert. When the outage ends, the update lands and channel.sync.recovered follows.

Common mistakes

403 SANDBOX_ONLY
You used a . This action works only with a test key, on a sandbox.
400 VALIDATION
A field does not belong to the kind, or a number is too small or too big. For example minutes with refuse, or values with outage.
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 ari: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.
409 ARI_NOT_AUTHORITATIVE
The hotel is not live yet: your software is not its source of truth, so nothing was saved. GET /readiness says what is missing, and POST /go-live makes the switch. To send rates before that, add the header X-ZS-Before-Go-Live: true. It is the same for a company key and for a hotel's own key: a hotel key with ari:read or ari:write can be made before its hotel is live.
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.

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: make the next update fail

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

Fault
A failure you switch on in your sandbox on purpose, to see how your software handles it.
Sandbox
Your test hotel. It works like a real hotel, but no OTA can see it and it costs nothing.
Rates
The price of a room for 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
Go live
The moment a real hotel starts to sell through your software.
OTA
Online travel agency: a website that sells hotel rooms, like Booking.com, MakeMyTrip or Agoda. Learn more
Channel manager
Software that keeps a hotel's rooms and prices the same on every OTA. 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.
Test key
A key that starts with zsk_test_. It works only on a sandbox, so it can never change a real hotel.
Cell
One night of one room type or rate plan. An update for 3 nights of 1 room type is 3 cells.
Availability
How many rooms of one room type are free to sell on one night. Learn more
Status code
A number in every response. 200 to 299 means it worked. 400 and above means there is a problem.
Pretend channel
The made-up OTA connection behind a sandbox. It takes what you send, but no real OTA is there. Learn more
Batch
One update you sent. It gets an id (batchId), so you can ask later if it reached the OTAs.
Live key
A key that starts with zsk_live_. It works on real hotels.

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:30 UTC.