Skip to content

API action

Get a webhook delivery

Read one webhook as it was sent, with every try and what your server answered.

About this action

What it does
Gives one : the as it was sent to your , and one line for each try.
When to use it
When one webhook failed and you want to know why. Each try shows the status code your answered, and the first part of its answer.
Who can use it
A only. The key needs the webhooks:manage.
Address
GET https://api.zimmerstack.com/api/v1/connect-api/v1/webhook-endpoints/{endpointId}/deliveries/{deliveryId}
Before this
You need the endpointId and the deliveryId. Get the deliveryId from List webhook deliveries, or from the answer of Send a test webhook.

What you send

In the address:

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

Things to know

  1. The guest's phone and email are hidden here. This answer never shows them in full, also when the webhook carried them. To read a guest's phone and email, use Get an OTA booking.
  2. Not everything is kept for the same time. The body of the webhook is kept for 14 days, the tries for 30 days, and the delivery itself for 90 days.

The request, in your language

Put your key in place of zsk_test_YOUR_KEY.

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/webhook-endpoints/15/deliveries/9041" -H "Authorization: Bearer zsk_test_YOUR_KEY"

What comes back

The is 200. The answer is the delivery, with the webhook and its tries.

response · status code 200
{
  "statuscode": 200,
  "message": "OK",
  "data": {
    "id": "48209",
    "eventId": "5c0e7a1d-2b64-4f3a-9d18-7e6a4b3c2f10",
    "eventType": "channel.booking.created",
    "mode": "LIVE",
    "status": "DELIVERED",
    "attempts": 1,
    "nextAttemptAt": "2026-12-10T12:00:02.000Z",
    "lastError": null,
    "occurredAt": "2026-12-10T12:00:00.000Z",
    "deliveredAt": "2026-12-10T12:00:03.000Z",
    "createdAt": "2026-12-10T12:00:02.000Z",
    "payloadBytes": 1668,
    "payloadAvailable": true,
    "payload": {
      "id": "evt_5c0e7a1d-2b64-4f3a-9d18-7e6a4b3c2f10",
      "type": "channel.booking.created",
      "apiVersion": "2026-09-01",
      "occurredAt": "2026-12-10T12:00:00.000Z",
      "mode": "live",
      "sequence": 42,
      "property": {
        "id": 61,
        "name": "The Lantern House",
        "currency": "INR",
        "timezone": "Asia/Kolkata"
      },
      "data": {
        "booking": {
          "id": 100001,
          "reference": "TEST-ZS-8K3Q2M",
          "version": 1,
          "status": "CONFIRMED",
          "stayStatus": "UPCOMING",
          "channel": {
            "otaName": "MakeMyTrip",
            "otaReservationCode": "TEST-ZS-8K3Q2M",
            "source": "CHANNEL_MANAGER",
            "sourceGroup": "INDIRECT"
          },
          "stay": {
            "checkIn": "2026-12-24",
            "checkOut": "2026-12-26",
            "nights": 2,
            "dayUse": false
          },
          "guest": {
            "fullName": "Asha Verma",
            "firstName": "Asha",
            "lastName": "Verma",
            "country": "IN",
            "language": "en"
          },
          "guestNotes": "Late arrival around 22:00. Non-smoking room please. (test event)",
          "occupancy": {
            "adults": 2,
            "children": 0
          },
          "rooms": [
            {
              "roomTypeId": 412,
              "ratePlanId": 901,
              "roomTypeName": "Deluxe Garden Room",
              "mealPlan": "CP",
              "mealPlanSource": "ota",
              "mealPlanText": "CP · Breakfast included",
              "mealPrice": null,
              "adults": 2,
              "children": 0,
              "checkIn": "2026-12-24",
              "checkOut": "2026-12-26",
              "nights": 2,
              "dayUse": false,
              "ratePerNight": 2700,
              "amount": 5400,
              "nightlyRates": [
                {
                  "date": "2026-12-24",
                  "amount": 2600
                },
                {
                  "date": "2026-12-25",
                  "amount": 2800
                }
              ],
              "commission": 1350,
              "status": "UPCOMING"
            }
          ],
          "amounts": {
            "currency": "INR",
            "total": 5400,
            "paid": 0,
            "balanceDue": 5400,
            "paymentCollect": "property"
          },
          "finance": {
            "otaName": "MakeMyTrip",
            "amountBasis": "GROSS_TOTAL",
            "currency": "INR",
            "grossAmount": 5400,
            "commissionAmount": 1350,
            "taxAmount": 648,
            "netPayoutAmount": 4050,
            "taxIncludedInAmount": false
          },
          "cancellation": null,
          "createdAt": "2026-12-10T12:00:00.000Z",
          "updatedAt": "2026-12-10T12:00:00.000Z"
        }
      },
      "changes": null,
      "previous": null
    },
    "attempts_log": [
      {
        "id": "91377",
        "attemptNo": 1,
        "startedAt": "2026-12-10T12:00:02.412Z",
        "durationMs": 318,
        "outcome": "SUCCESS",
        "responseStatus": 200,
        "responseBodySnippet": "ok",
        "errorMessage": null,
        "resolvedIp": "203.0.113.80"
      }
    ],
    "request": {
      "headers": {
        "content-type": "application/json; charset=utf-8",
        "webhook-id": "evt_5c0e7a1d-2b64-4f3a-9d18-7e6a4b3c2f10",
        "webhook-timestamp": "<unix seconds at send time>",
        "webhook-signature": "v1,<base64 HMAC-SHA256>",
        "x-zimmerstack-event": "channel.booking.created",
        "x-zimmerstack-delivery": "dlv_48209",
        "x-zimmerstack-api-version": "2026-09-01",
        "idempotency-key": "evt_5c0e7a1d-2b64-4f3a-9d18-7e6a4b3c2f10"
      }
    }
  }
}
status
PENDING: waiting to be sent, or waiting for the next try. DELIVERED: your server answered with a status code from 200 to 299. FAILED: every try failed.
attempts
How many tries were made so far.
nextAttemptAt
When the next try is planned, for a delivery that is PENDING.
payload
The webhook as it was sent. null when its body is not kept any more (payloadAvailable: false).
attempts_log
Every try, oldest first.
attempts_log[].outcome
SUCCESS when your server answered well. The other values name the problem: HTTP_ERROR, TIMEOUT, CONNECTION_ERROR, TLS_ERROR, BLOCKED_URL.
attempts_log[].responseStatus
The status code your server answered. null when it did not answer.
attempts_log[].responseBodySnippet
The first 2 KB of what your server answered.
request.headers
The sent with the webhook. The time and the are shown as placeholders, not as the real values.

Then fix your server and send it again

When your server is fixed, send this webhook one more time with Send one webhook again.

Common mistakes

404 WEBHOOK_DELIVERY_NOT_FOUND
This endpoint has no delivery with this id. Deliveries older than 90 days are removed. Read the ids again with List webhook deliveries.
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.
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: get a webhook delivery

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.
  • Guest contact: When you get a guest's phone and email, and for how long.

Words on this page

Delivery
One webhook sent to one of your webhook endpoints, with every try to send it.
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.
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.
Status code
A number in every response. 200 to 299 means it worked. 400 and above means there is a problem.
Header
A small piece of extra information sent with a request, like your key.
Signature
A code sent with each webhook. Your server checks it with the signing secret.
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.
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.