Webhook Error

This documents the webhook payload that Host Tools will POST to your configured webhook URL when something goes wrong after a request has already succeeded, and again when it is fixed.

Note: This is not an API endpoint you call.
This documents the requests that Host Tools sends TO your webhook URL.

When triggered:

  • error.raised: a problem started. document.code says what:

    • account.disconnected: a channel account's login or token stopped
      working. The host has to reconnect it.

    • account.verificationRequired: VRBO wants the host to verify the
      account, or the login is not a host account.

    • calendar.syncFailed: a channel refused a price, availability or
      minimum-nights change, for example "You can only accept long-term
      rentals (30 or more)". /api/setPrices and /api/setListing answer
      before the channel does, so this is how you learn about it.

    • listing.connectionFailed: Airbnb refused to connect the listing
      to Host Tools.

    • listing.contentSyncFailed: a channel refused a listing content
      push.

    • listing.publishFailed: publishing a listing as a new channel
      listing (/api/publishListing) failed. The message is the channel's
      reason, and what Host Tools created on the channel was deleted, so
      the listing can be published again once it's fixed. VRBO can't
      delete a property, so a VRBO one stays, and the next publish carries
      on with it.

    • listing.openFailed: a listing published to Booking.com as a
      new property can't be booked yet: Booking.com's checks of the
      property fail (for example "Contract is not signed in the legal
      entity for the country: us"), or it approved the property but won't
      open it. The message is Booking.com's reason. Host Tools checks again
      each time calendar sync sends the listing to Booking.com (at least
      once a day) and resolves the error once Booking.com moves on, or
      once the listing's Booking.com channel is removed.

    • message.sendFailed: a scheduled message could not be sent.
      willRetry says whether Host Tools is still trying. A failure Host
      Tools is retrying (the channel was briefly down, for example) is
      only sent once it has kept failing for about an hour, so a blip the
      next try fixes reaches you as nothing at all.

    • payouts.unavailable: Airbnb doesn't share payouts with accounts
      connected in setup mode (through an owner import link or as a
      co-host, fullAccess: false in Get Accounts), so Host Tools has none
      for this account and Get Payouts returns none. It explains a missing
      account rather than asking for something, so actionRequired is
      false: payouts become available if the host reconnects with full
      access. Host Tools tries again once a day and resolves the error
      after a read succeeds. occurredAt is when Airbnb first refused.

    • review.submitFailed: a scheduled review could not be left.

  • error.resolved: the problem is gone (the account reconnected, the next sync succeeded, the message was sent). Carries the same document plus resolvedAt.

The same problem repeating sends nothing new. A second error.raised for an errorID you already have open replaces its details, for example when a retrying message failure becomes permanent.

Applying the events:

Keep your open errors keyed on document.errorID. Deliveries can arrive out of order (a resolve can overtake a retried raise), so apply them by occurredAt and resolvedAt, and ignore a resolve for an errorID you never saw: problems that started before you subscribed, or before this webhook existed, resolve without a raise. After an outage, call /api/getErrors to get the current list.

OAuth clients only receive the errors their scopes cover. Treat a code you do not know as a generic error.

Handling the webhook:

  1. Your endpoint should respond with HTTP 200 status
  2. Process the data asynchronously if needed
  3. Respond within 30 seconds
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Webhook payload sent by Host Tools

string
enum
required
Allowed:
string
enum
required
Allowed:
document
object
required

One problem Host Tools is reporting for the user. Sent as the document of an error webhook and returned by /api/getErrors.

Response

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json