Skip to content

Set up webhooks

Short answer

Webhooks POST signed JSON to your https URL when things happen, such as a new customer, an accepted quote or a paid invoice. Add, test and monitor them here.

Updated · 2 min read

On this page

A webhook endpoint is a URL on your server that TheBusinessApp calls when something happens in your account. Events fire however the change was made: in the app, the field app, the customer portal, a booking page or the API. Only owners and admins can manage endpoints.

Add an endpoint

  1. Open Settings, choose API & webhooks, then the Webhooks tab.
  2. Click Add endpoint.
  3. Enter the Endpoint URL. It must be a public https:// address.
  4. Add a Description, such as "Zapier" or "accounts sync".
  5. Leave All events on (this includes event types added later), or switch it off and tick the events you want.
  6. Click Add endpoint, then copy the signing secret shown. You can reveal or rotate it later.

Events

EventWhen it fires
customer.created / customer.updatedA customer is added or changed
enquiry.createdA new enquiry arrives
quote.sent / quote.accepted / quote.declinedA quote is sent, accepted or declined
job.created / job.updated / job.completedA job is added, changed or completed
invoice.created / invoice.sent / invoice.paidAn invoice is created, sent or paid in full
invoice.overdueA sent invoice passes its due date unpaid (once per invoice)
payment.receivedA payment is recorded against an invoice
booking.createdA customer books online
survey.respondedA customer answers a satisfaction survey

Test and check deliveries

  • Open an endpoint and click Send test event to check your receiver.
  • The recent deliveries list shows each event, its status, your server's response code and the number of attempts. Click a row to see every attempt and the payload.
  • Click Resend on a delivery to send it again.

Retries and switching off

Any response other than 2xx, including a timeout, counts as a failure. Failed deliveries retry for about three days. After 20 failed attempts in a row, or a 410 Gone response, the endpoint is switched off and the reason is shown. Fix your receiver, then switch Active back on to reset the failure count.

Tip

Events can arrive out of order and, rarely, more than once. Use the event id to ignore duplicates. Signature checking is covered in verify webhook signatures.

Common questions

How many endpoints can I add?
Up to 10 per company.
What happens if I delete an endpoint?
It stops receiving events and its delivery log is deleted too.

Was this article helpful?

Still stuck?

Tell us what you were trying to do and which screen you were on, and we’ll walk you through it. Email hello@thebusinessapp.co.uk or contact support.

    Type to search every help article. Use the arrow keys and Enter to open one.