Skip to content

API action

Send a test webhook

Send one test message to your server now, and see if your server answers.

About this action

What it does
Sends one sample to a . You choose the of the sample, or send a .
When to use it
Right after you add an endpoint and put the on your . Also each time you change the code that receives webhooks.
Who can use it
A only. The key needs the webhooks:manage.
Address
POST https://api.zimmerstack.com/api/v1/connect-api/v1/webhook-endpoints/{endpointId}/test
Before this
You need the endpointId. Get it from List your webhook endpoints, or from the answer of Add a webhook endpoint. The endpoint must be active.

What you send

In the address:

endpointId
The id of the webhook endpoint. A number, like 15.

The body is optional. Without a body, ZimmerStack sends a ping.

eventType
Text. Optional. The event type of the sample, like channel.booking.created. You may name any event type, also one this endpoint does not list. If you leave it out, it is zimmerstack.ping.
example: send a sample of a new OTA booking
{
  "eventType": "channel.booking.created"
}

Things to know

  1. A sample is not a real booking. Its data is made up. It says mode: test and has no . It is not in List events.
  2. For a real event, use your sandbox. Make a test booking makes a on your and sends the real webhook for it.
  3. Do not send tests in a loop. Tests have their own limit for each hour. Past it, the answer is 429. Wait the number of seconds in the Retry-After header.

The request, in your language

Put your key in place of zsk_test_YOUR_KEY.

Save the example above as send-a-test-webhook.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/webhook-endpoints/15/test" -H "Authorization: Bearer zsk_test_YOUR_KEY" -H "Content-Type: application/json" -d "@send-a-test-webhook.json"

What comes back

The is 202. It means: accepted. The sample is waiting to be sent. ZimmerStack sends it within seconds.

response · status code 202
{
  "statuscode": 202,
  "message": "Test event queued",
  "data": {
    "deliveryId": "48211",
    "eventId": "e3a1f0c8-6d2b-4c57-b9a4-0f1e2d3c4b5a",
    "eventType": "channel.booking.created"
  }
}
deliveryId
The id of this . Use it to see what your server answered.
eventId
The id of the sample event.
eventType
The event type that was sent.

Then check what your server answered

Wait a few seconds. Then read the delivery with Get a webhook delivery and the deliveryId.

status: DELIVERED
Your server answered with a status code from 200 to 299. It works.
status: PENDING
Not sent yet. Or a try failed, and ZimmerStack will try again.
status: FAILED
Every try failed. The delivery shows what your server answered each time.

Common mistakes

400 VALIDATION
eventType is not an event type ZimmerStack knows. Check the spelling.
409 WEBHOOK_ENDPOINT_NOT_ACTIVE
The endpoint is paused or suspended. Resume it with Resume a webhook endpoint. If you sent an idempotency key, send the test again with a new one.
404 WEBHOOK_ENDPOINT_NOT_FOUND
None of your endpoints has this id. A test key sees only test endpoints, and a live key only live ones. Read the ids again with List your webhook endpoints.
403 COMPANY_KEY_REQUIRED
You used a . Webhook endpoints are managed with a company key.
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 webhooks:manage.
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.

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: send a test webhook

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

Go deeper

  • Webhooks: Receive every booking, check that it is real, and never lose one.
  • Sandbox in depth: Test keys, test bookings and test failures.

Words on this page

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.
Event type
The name of one kind of event, like channel.booking.created for a new OTA booking.
Ping
A small test webhook with no booking in it. It only checks that your server answers.
Signing secret
A secret code ZimmerStack shares with you once. With it your server can check that a webhook is really from ZimmerStack.
Server
A computer that runs your software all the time and can be reached over the internet.
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.
Sequence
A number that counts a hotel's events in order: 1, 2, 3 and so on.
Booking
A guest has reserved a room for some nights. Also called a reservation.
Sandbox
Your test hotel. It works like a real hotel, but no OTA can see it and it costs nothing.
Status code
A number in every response. 200 to 299 means it worked. 400 and above means there is a problem.
Delivery
One webhook sent to one of your webhook endpoints, with every try to send it.
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.
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.