Reference: Best Guest API v1
For channel managers, PMSes and CRMs. A host creates a key in the Best Guest admin app (Settings > API Access) and gives it to you; send it as `Authorization: bgk_...` (`Bearer bgk_...` is accepted too). A key belongs to one workspace and can only reach this API.
Generated from the code that serves the API: download the OpenAPI 3.1 file.
Account
GET /v1/getAccountStatus
Billing/subscription status for the workspace · read key
Billing/subscription status for the workspace.
Answers
200Success. The answer is in `data`.401Missing, invalid, revoked or expired key.403FORBIDDEN: a read key called a write endpoint, or an id belongs to another workspace.422VALIDATION_ERROR, GUEST_CONTACT_REQUIRED, WEBHOOK_URL_NOT_ALLOWED or SANDBOX_RECIPIENT_NOT_ALLOWED: fix the request.429RATE_LIMIT_EXCEEDED: the per-key hourly ceiling (600 by default).
GET /v1/ping
Confirms the credential is valid and returns which workspace/vendor/scope it resolves to · read key
Confirms the credential is valid and returns which workspace/vendor/scope it resolves to.
Answers
200Success. The answer is in `data`.401Missing, invalid, revoked or expired key.403FORBIDDEN: a read key called a write endpoint, or an id belongs to another workspace.422VALIDATION_ERROR, GUEST_CONTACT_REQUIRED, WEBHOOK_URL_NOT_ALLOWED or SANDBOX_RECIPIENT_NOT_ALLOWED: fix the request.429RATE_LIMIT_EXCEEDED: the per-key hourly ceiling (600 by default).
Properties
GET /v1/getProperties
List the workspace's accommodations and their listings (the ids needed to submit a reservation) · read key
List the workspace's accommodations and their listings (the ids needed to submit a reservation).
Answers
200Success. The answer is in `data`.401Missing, invalid, revoked or expired key.403FORBIDDEN: a read key called a write endpoint, or an id belongs to another workspace.422VALIDATION_ERROR, GUEST_CONTACT_REQUIRED, WEBHOOK_URL_NOT_ALLOWED or SANDBOX_RECIPIENT_NOT_ALLOWED: fix the request.429RATE_LIMIT_EXCEEDED: the per-key hourly ceiling (600 by default).
Reservations
POST /v1/cancelReservation
Cancel (soft-delete) a reservation · write key
Cancel (soft-delete) a reservation. Refuses with ALREADY_SENT once it has been submitted for police reporting - that step is not reversible via the API.
Request body (JSON)
| Field | Type | Required | Description |
|---|---|---|---|
reservationId | integer | no | |
externalId | string | no |
Answers
200Success. The answer is in `data`.401Missing, invalid, revoked or expired key.403FORBIDDEN: a read key called a write endpoint, or an id belongs to another workspace.409A real conflict: OVERLAP_CONFLICT, EXTERNAL_ID_CONFLICT, ALREADY_SENT, CONTACT_LOCKED, SANDBOX_LIMIT_REACHED, WEBHOOK_LIMIT_REACHED.422VALIDATION_ERROR, GUEST_CONTACT_REQUIRED, WEBHOOK_URL_NOT_ALLOWED or SANDBOX_RECIPIENT_NOT_ALLOWED: fix the request.429RATE_LIMIT_EXCEEDED: the per-key hourly ceiling (600 by default).
GET /v1/getMulticalendar
Property/listing roster + reservations + iCal blocks for one date window, in one round trip - the efficient way to poll for changes incrementally (the API has no updatedSince filter) · read key
Property/listing roster + reservations + iCal blocks for one date window, in one round trip - the efficient way to poll for changes incrementally (the API has no updatedSince filter).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
dateFrom | query | string | yes | Window start YYYY-MM-DD (inclusive) |
dateTo | query | string | yes | Window end YYYY-MM-DD (exclusive) |
accommodationId | query | integer | no | Id or array of ids; omitted = every accommodation in the workspace |
includeIcal | query | string | no | 1 (default) to include imported iCal blocks alongside real reservations |
Answers
200Success. The answer is in `data`.401Missing, invalid, revoked or expired key.403FORBIDDEN: a read key called a write endpoint, or an id belongs to another workspace.422VALIDATION_ERROR, GUEST_CONTACT_REQUIRED, WEBHOOK_URL_NOT_ALLOWED or SANDBOX_RECIPIENT_NOT_ALLOWED: fix the request.429RATE_LIMIT_EXCEEDED: the per-key hourly ceiling (600 by default).
GET /v1/getReservation
Reservation detail plus compliance status: check-in form completion, close blockers, police-reporting status, local-fee status, and the guest check-in link · read key
Reservation detail plus compliance status: check-in form completion, close blockers, police-reporting status, local-fee status, and the guest check-in link. The response carries other fields beyond these too, but only this documented set is covered by the v1 stability promise - see docs/partner-api-v1.md.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
reservationId | query | integer | no | Best Guest's internal reservation id. Exactly one of reservationId/externalId is required. |
externalId | query | string | no | The id you supplied when creating the reservation via upsertReservation. Exactly one of reservationId/externalId is required. |
Answers
200Success. The answer is in `data`.401Missing, invalid, revoked or expired key.403FORBIDDEN: a read key called a write endpoint, or an id belongs to another workspace.422VALIDATION_ERROR, GUEST_CONTACT_REQUIRED, WEBHOOK_URL_NOT_ALLOWED or SANDBOX_RECIPIENT_NOT_ALLOWED: fix the request.429RATE_LIMIT_EXCEEDED: the per-key hourly ceiling (600 by default).
GET /v1/getReservations
List reservations in the workspace, most recently created first · read key
List reservations in the workspace, most recently created first. For a single reservation's full compliance status, use getReservation.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
accommodationId | query | integer | no | Restrict to one accommodation |
onlyUpcoming | query | boolean | no | Only reservations that have not yet started |
onlyClosed | query | boolean | no | Only reservations already submitted for police reporting |
onlyUnclosed | query | boolean | no | Only reservations not yet submitted for police reporting |
from | query | string | no | Only reservations checking in on/after this date |
to | query | string | no | Only reservations checking in on/before this date |
Answers
200Success. The answer is in `data`.401Missing, invalid, revoked or expired key.403FORBIDDEN: a read key called a write endpoint, or an id belongs to another workspace.422VALIDATION_ERROR, GUEST_CONTACT_REQUIRED, WEBHOOK_URL_NOT_ALLOWED or SANDBOX_RECIPIENT_NOT_ALLOWED: fix the request.429RATE_LIMIT_EXCEEDED: the per-key hourly ceiling (600 by default).
POST /v1/updateGuestContact
Change a guest's e-mail or phone, or give a reservation its first guest contact · write key
Change a guest's e-mail or phone, or give a reservation its first guest contact. 409 CONTACT_LOCKED once the guest completed or signed their form; 409 ALREADY_SENT once the reservation is submitted; at most 5 e-mail changes per reservation per 24 hours. A "write"-scope key is required.
Request body (JSON)
| Field | Type | Required | Description |
|---|---|---|---|
reservationId | integer | no | |
externalId | string | no | |
externalGuestId | string | no | |
email | string | no | |
phoneNumber | string | no | |
suppressGuestEmail | boolean | no |
Answers
200Success. The answer is in `data`.401Missing, invalid, revoked or expired key.403FORBIDDEN: a read key called a write endpoint, or an id belongs to another workspace.409A real conflict: OVERLAP_CONFLICT, EXTERNAL_ID_CONFLICT, ALREADY_SENT, CONTACT_LOCKED, SANDBOX_LIMIT_REACHED, WEBHOOK_LIMIT_REACHED.422VALIDATION_ERROR, GUEST_CONTACT_REQUIRED, WEBHOOK_URL_NOT_ALLOWED or SANDBOX_RECIPIENT_NOT_ALLOWED: fix the request.429RATE_LIMIT_EXCEEDED: the per-key hourly ceiling (600 by default).
POST /v1/upsertReservation
Idempotent create-or-update: the first call with a given externalId creates the reservation, every later call with the same externalId updates it · write key
Idempotent create-or-update: the first call with a given externalId creates the reservation, every later call with the same externalId updates it. This is the write side of the partner API - a "write"-scope key is required.
Request body (JSON)
| Field | Type | Required | Description |
|---|---|---|---|
externalId | string | yes | |
accommodationId | integer | yes | |
listingIds | array of integer | yes | |
fromDate | string | yes | |
toDate | string | yes | |
personsCount | integer | yes | |
countryOfResidence | string | yes | |
recipientLanguage | string | yes | |
email | string | no | |
phoneNumber | string | no | |
firstName | string | no | |
lastName | string | no | |
purpose | string | no | |
source | string | no | |
allowOverlap | boolean | no | |
allowSkeleton | boolean | no | |
suppressGuestEmail | boolean | no | |
guests | array of GuestInput | no | Every guest's details, each with your own externalGuestId (names, birthdate, nationality, document, address, optional signature image). Best Guest pre-fills each guest's check-in form; a form the guest completed, signed or edited is never overwritten. The response lists a result per guest. See the guests[] section of the reference. |
Answers
200Success. The answer is in `data`.401Missing, invalid, revoked or expired key.403FORBIDDEN: a read key called a write endpoint, or an id belongs to another workspace.409A real conflict: OVERLAP_CONFLICT, EXTERNAL_ID_CONFLICT, ALREADY_SENT, CONTACT_LOCKED, SANDBOX_LIMIT_REACHED, WEBHOOK_LIMIT_REACHED.422VALIDATION_ERROR, GUEST_CONTACT_REQUIRED, WEBHOOK_URL_NOT_ALLOWED or SANDBOX_RECIPIENT_NOT_ALLOWED: fix the request.429RATE_LIMIT_EXCEEDED: the per-key hourly ceiling (600 by default).
Webhooks
POST /v1/createWebhook
Register a webhook receiver · write key
Register a webhook receiver. The signing secret is returned once. Events are delivered at least once, in no guaranteed order; deduplicate on the event id. A "write"-scope key is required.
Request body (JSON)
| Field | Type | Required | Description |
|---|---|---|---|
url | string | yes | |
events | array of string | no | |
accommodationIds | array of integer | no |
Answers
200Success. The answer is in `data`.401Missing, invalid, revoked or expired key.403FORBIDDEN: a read key called a write endpoint, or an id belongs to another workspace.409A real conflict: OVERLAP_CONFLICT, EXTERNAL_ID_CONFLICT, ALREADY_SENT, CONTACT_LOCKED, SANDBOX_LIMIT_REACHED, WEBHOOK_LIMIT_REACHED.422VALIDATION_ERROR, GUEST_CONTACT_REQUIRED, WEBHOOK_URL_NOT_ALLOWED or SANDBOX_RECIPIENT_NOT_ALLOWED: fix the request.429RATE_LIMIT_EXCEEDED: the per-key hourly ceiling (600 by default).
POST /v1/deleteWebhook
Remove a webhook receiver; deliveries still waiting for it are cancelled · write key
Remove a webhook receiver; deliveries still waiting for it are cancelled. A "write"-scope key is required.
Request body (JSON)
| Field | Type | Required | Description |
|---|---|---|---|
webhookId | integer | yes |
Answers
200Success. The answer is in `data`.401Missing, invalid, revoked or expired key.403FORBIDDEN: a read key called a write endpoint, or an id belongs to another workspace.409A real conflict: OVERLAP_CONFLICT, EXTERNAL_ID_CONFLICT, ALREADY_SENT, CONTACT_LOCKED, SANDBOX_LIMIT_REACHED, WEBHOOK_LIMIT_REACHED.422VALIDATION_ERROR, GUEST_CONTACT_REQUIRED, WEBHOOK_URL_NOT_ALLOWED or SANDBOX_RECIPIENT_NOT_ALLOWED: fix the request.429RATE_LIMIT_EXCEEDED: the per-key hourly ceiling (600 by default).
GET /v1/getWebhooks
List the workspace's webhook receivers with their status and last delivery · read key
List the workspace's webhook receivers with their status and last delivery. Never returns a secret.
Answers
200Success. The answer is in `data`.401Missing, invalid, revoked or expired key.403FORBIDDEN: a read key called a write endpoint, or an id belongs to another workspace.422VALIDATION_ERROR, GUEST_CONTACT_REQUIRED, WEBHOOK_URL_NOT_ALLOWED or SANDBOX_RECIPIENT_NOT_ALLOWED: fix the request.429RATE_LIMIT_EXCEEDED: the per-key hourly ceiling (600 by default).
POST /v1/replayWebhookEvents
Send stored events to one receiver again (at most 1000 per call) · write key
Send stored events to one receiver again (at most 1000 per call). A "write"-scope key is required.
Request body (JSON)
| Field | Type | Required | Description |
|---|---|---|---|
webhookId | integer | yes | |
fromEventId | string | no | |
since | string | no | |
eventIds | array of string | no |
Answers
200Success. The answer is in `data`.401Missing, invalid, revoked or expired key.403FORBIDDEN: a read key called a write endpoint, or an id belongs to another workspace.409A real conflict: OVERLAP_CONFLICT, EXTERNAL_ID_CONFLICT, ALREADY_SENT, CONTACT_LOCKED, SANDBOX_LIMIT_REACHED, WEBHOOK_LIMIT_REACHED.422VALIDATION_ERROR, GUEST_CONTACT_REQUIRED, WEBHOOK_URL_NOT_ALLOWED or SANDBOX_RECIPIENT_NOT_ALLOWED: fix the request.429RATE_LIMIT_EXCEEDED: the per-key hourly ceiling (600 by default).
POST /v1/testWebhook
Queue a webhook.test event to one receiver, to check the route and the signature end to end · write key
Queue a webhook.test event to one receiver, to check the route and the signature end to end. A "write"-scope key is required.
Request body (JSON)
| Field | Type | Required | Description |
|---|---|---|---|
webhookId | integer | yes |
Answers
200Success. The answer is in `data`.401Missing, invalid, revoked or expired key.403FORBIDDEN: a read key called a write endpoint, or an id belongs to another workspace.409A real conflict: OVERLAP_CONFLICT, EXTERNAL_ID_CONFLICT, ALREADY_SENT, CONTACT_LOCKED, SANDBOX_LIMIT_REACHED, WEBHOOK_LIMIT_REACHED.422VALIDATION_ERROR, GUEST_CONTACT_REQUIRED, WEBHOOK_URL_NOT_ALLOWED or SANDBOX_RECIPIENT_NOT_ALLOWED: fix the request.429RATE_LIMIT_EXCEEDED: the per-key hourly ceiling (600 by default).
POST /v1/updateWebhook
Change a webhook receiver · write key
Change a webhook receiver. A "write"-scope key is required.
Request body (JSON)
| Field | Type | Required | Description |
|---|---|---|---|
webhookId | integer | yes | |
events | array of string | no | |
accommodationIds | array of integer | no | |
enabled | boolean | no | |
rotateSecret | boolean | no |
Answers
200Success. The answer is in `data`.401Missing, invalid, revoked or expired key.403FORBIDDEN: a read key called a write endpoint, or an id belongs to another workspace.409A real conflict: OVERLAP_CONFLICT, EXTERNAL_ID_CONFLICT, ALREADY_SENT, CONTACT_LOCKED, SANDBOX_LIMIT_REACHED, WEBHOOK_LIMIT_REACHED.422VALIDATION_ERROR, GUEST_CONTACT_REQUIRED, WEBHOOK_URL_NOT_ALLOWED or SANDBOX_RECIPIENT_NOT_ALLOWED: fix the request.429RATE_LIMIT_EXCEEDED: the per-key hourly ceiling (600 by default).
Events
GET /v1/getEvents
The ordered event feed: the pull-based way to recover from anything a webhook missed, or to sync without webhooks · read key
The ordered event feed: the pull-based way to recover from anything a webhook missed, or to sync without webhooks. Events are kept 30 days: a cursor older than that is answered with 410 CURSOR_EXPIRED, and you start again without a cursor and resynchronise with getReservations.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
after | query | string | no | Cursor: an event id (evt_123 or 123). Start with 0; pass the returned nextCursor next time. |
limit | query | integer | no | Events per page, 1-500 (default 100). |
types | query | array of string | no | Only these event types (comma separated). |
Answers
200Success. The answer is in `data`.401Missing, invalid, revoked or expired key.403FORBIDDEN: a read key called a write endpoint, or an id belongs to another workspace.410CURSOR_EXPIRED: the cursor is older than the 30 days events are kept. Start again without a cursor and resynchronise with getReservations.422VALIDATION_ERROR, GUEST_CONTACT_REQUIRED, WEBHOOK_URL_NOT_ALLOWED or SANDBOX_RECIPIENT_NOT_ALLOWED: fix the request.429RATE_LIMIT_EXCEEDED: the per-key hourly ceiling (600 by default).
Sandbox
POST /v1/resetSandbox
Sandbox workspaces only (403 SANDBOX_ONLY elsewhere): remove every reservation of the sandbox so a test run starts clean · write key
Sandbox workspaces only (403 SANDBOX_ONLY elsewhere): remove every reservation of the sandbox so a test run starts clean. The test properties stay. A "write"-scope key is required.
Request body (JSON)
| Field | Type | Required | Description |
|---|
Answers
200Success. The answer is in `data`.401Missing, invalid, revoked or expired key.403FORBIDDEN: a read key called a write endpoint, or an id belongs to another workspace.409A real conflict: OVERLAP_CONFLICT, EXTERNAL_ID_CONFLICT, ALREADY_SENT, CONTACT_LOCKED, SANDBOX_LIMIT_REACHED, WEBHOOK_LIMIT_REACHED.422VALIDATION_ERROR, GUEST_CONTACT_REQUIRED, WEBHOOK_URL_NOT_ALLOWED or SANDBOX_RECIPIENT_NOT_ALLOWED: fix the request.429RATE_LIMIT_EXCEEDED: the per-key hourly ceiling (600 by default).
POST /v1/sandboxSimulate
Sandbox workspaces only (403 SANDBOX_ONLY elsewhere): play the outside world for one reservation - close it, complete its police submission, or fail it - so status reads and webhooks can be tested end to end · write key
Sandbox workspaces only (403 SANDBOX_ONLY elsewhere): play the outside world for one reservation - close it, complete its police submission, or fail it - so status reads and webhooks can be tested end to end. Czech properties only for submit/fail. A "write"-scope key is required.
Request body (JSON)
| Field | Type | Required | Description |
|---|---|---|---|
reservationId | integer | no | |
externalId | string | no | |
action | string | yes |
Answers
200Success. The answer is in `data`.401Missing, invalid, revoked or expired key.403FORBIDDEN: a read key called a write endpoint, or an id belongs to another workspace.409A real conflict: OVERLAP_CONFLICT, EXTERNAL_ID_CONFLICT, ALREADY_SENT, CONTACT_LOCKED, SANDBOX_LIMIT_REACHED, WEBHOOK_LIMIT_REACHED.422VALIDATION_ERROR, GUEST_CONTACT_REQUIRED, WEBHOOK_URL_NOT_ALLOWED or SANDBOX_RECIPIENT_NOT_ALLOWED: fix the request.429RATE_LIMIT_EXCEEDED: the per-key hourly ceiling (600 by default).
Objects
Envelope
| Field | Type | Description |
|---|---|---|
result | true | |
data | object | |
errors | array of object |
Error
| Field | Type | Description |
|---|---|---|
result | false | |
data | null | |
errors | array of object |
Ping
| Field | Type | Description |
|---|---|---|
workspaceId | integer | |
workspaceName | string | null | |
scope | "read" | "write" | |
vendorId | integer | null | |
sandbox | boolean | true for a sandbox workspace. |
Property
| Field | Type | Description |
|---|---|---|
accommodationId | integer | |
accommodationName | string | |
residentialClientName | string | null | |
district | string | null | |
city | string | null | |
cityDistrict | string | null | |
street | string | null | |
registerNumber | string | null | |
orientationNumber | string | null | |
postalNumber | string | null | |
country | string | null | |
countryCode | string | null | |
autoClose | boolean | Read-only: the host's "close reservations automatically" option. When on, a reservation closes by itself once every form is complete (from the arrival day to 14 days after), and a Czech one then goes to the police on schedule. |
listings | array of object |
GuestInput
| Field | Type | Description |
|---|---|---|
birthCountry | string | ISO 3166-1 alpha-3, e.g. DEU. |
birthPlace | string | |
birthdate | string | |
checkIn | string | |
checkOut | string | |
city | string | |
district | string | |
email | string | |
externalGuestId | string | Your own id for this guest. Required. Stable across calls: it is how a later call finds the same form. |
firstName | string | |
gender | "M" | "F" | "X" | "N" | Accepted so you need not strip it; Best Guest does not store it (the result carries a FIELDS_NOT_STORED warning). |
houseNumber | string | |
identIssueDate | string | The identity document's issue date. Accepted, not stored (FIELDS_NOT_STORED warning). |
identNumber | string | |
identType | "id" | "passport" | |
isLead | boolean | The booker. At most one. The lead's name and contact stand in for the top-level ones. |
lastName | string | |
licensePlate | string | |
nationality | string | ISO 3166-1 alpha-3, e.g. DEU. |
note | string | |
phoneNumber | string | |
postalCode | string | |
purpose | string | |
remove | boolean | true removes this guest's check-in form, and then only externalGuestId may accompany it. Allowed only for a guest you added through the API whose form nobody has filled, signed, edited or been billed for; otherwise the result is "skipped" with the reason. Removing a guest that is already gone is "unchanged". |
residenceDocumentIssuingCountry | string | ISO 3166-1 alpha-3, e.g. DEU. |
residenceDocumentNumber | string | |
residenceDocumentValidFrom | string | |
residenceDocumentValidTo | string | |
signature | string | A PNG or JPEG image of the guest's signature, base64 (a data URI is accepted), at most 1 MB. When you supply it the form can be completed without the guest opening Best Guest. |
state | string | |
stayAuthorizationType | "VISA" | "RESIDENCE_DOCUMENT" | "BIOMETRIC_PASSPORT" | |
street | string | |
visaIssuePlace | string | |
visaNumber | string | |
visaType | "AV" | "CV" | "LTV" | "DV" | |
visaValidFrom | string | |
visaValidTo | string |
UpsertResult
| Field | Type | Description |
|---|---|---|
reservationId | integer | |
externalId | string | |
created | boolean | |
status | string | null | |
checkinUrl | string | null | The lead guest's check-in link. Send it to the guest only. |
guests | array of GuestResult | One result per guest, when the call carried guests[]. |
GuestResult
| Field | Type | Description |
|---|---|---|
externalGuestId | string | |
dataId | integer | null | |
result | "created" | "updated" | "unchanged" | "removed" | "skipped" | |
reason | string | Why a guest was skipped (or, with result unchanged, NOT_FOUND for a remove of a guest that is not there): FORM_COMPLETED, SIGNED, EDITED_SINCE, BILLED, NOT_PARTNER_CREATED, LEAD_CANNOT_BE_REMOVED, RESERVATION_CLOSED, FORM_REMOVED, NAME_REQUIRED, TOO_MANY_GUESTS, NO_LEAD_CONTACT, LEAD_ALREADY_MAPPED, GUEST_ACCOUNT_FAILED, INVALID_FILE_TYPE, ERROR. |
missingFields | array of string | What the form still needs to count as complete; the signature is reported as "signature". |
signatureRequired | boolean | |
checkinUrl | string | null | |
warnings | array of "CONTACT_NOT_CHANGED" | "FIELDS_NOT_STORED" |
ContactResult
| Field | Type | Description |
|---|---|---|
reservationId | integer | |
externalId | string | null | |
externalGuestId | string | null | |
checkinUrl | string | null | |
checkinUrlChanged | boolean | |
emailSent | boolean |
Reservation
| Field | Type | Description |
|---|---|---|
reservationId | integer | |
externalId | string | null | |
status | string | |
fromDate | string | |
toDate | string | |
accommodationId | integer | |
listings | array of object | |
personsCount | integer | |
countryOfResidence | string | null | |
reservationSource | string | null | |
cleanersNote | string | null | |
forms | array of object | |
filledForms | integer | |
missingForms | integer | |
readyToSend | boolean | |
submissionStatus | null | "PENDING" | "SENT" | "FAILED" | Police reporting. Outside Czechia a closed reservation is stored as SENT although nothing is reported to a police portal. |
localFeePaidAmount | number | null | |
localFeePaidCurrency | string | null | |
localFeeQrAmount | number | null | |
localFeeQrInfo | string | null | |
checkinUrl | string | null | |
compliance | object |
Webhook
| Field | Type | Description |
|---|---|---|
webhookId | integer | |
url | string | |
events | array of "reservation.created" | "reservation.updated" | "reservation.cancelled" | "guest.form_completed" | "reservation.closed" | "reservation.reopened" | "reservation.submitted" | "reservation.submission_failed" | "localfee.requested" | "localfee.paid" | "localfee.payment_reverted" | |
accommodationIds | array of integer | |
status | "active" | "disabled" | |
disabledReason | string | null | |
lastDeliveryStatus | string | null | |
lastDeliveredAt | string | null | |
lastHttpStatus | integer | null | |
createdAt | string | |
secret | string | Only in the answer to a secret rotation, once. |
WebhookCreated
| Field | Type | Description |
|---|---|---|
webhookId | integer | |
secret | string | The signing secret. Shown once. |
url | string | |
events | array of string | |
accommodationIds | array of integer | |
status | "active" |
Event
| Field | Type | Description |
|---|---|---|
id | string | |
type | "reservation.created" | "reservation.updated" | "reservation.cancelled" | "guest.form_completed" | "reservation.closed" | "reservation.reopened" | "reservation.submitted" | "reservation.submission_failed" | "localfee.requested" | "localfee.paid" | "localfee.payment_reverted" | "webhook.test" | |
apiVersion | "v1" | |
occurredAt | string | |
workspaceId | integer | |
data | object | Ids and status words only, never a name, a document number, a contact or a link. |
EventPage
| Field | Type | Description |
|---|---|---|
events | array of Event | |
nextCursor | string | Pass as `after` next time. |
hasMore | boolean | |
feedEnabled | boolean | false while Best Guest has event detection switched off: the feed is then empty. |