Webhooks are notifications sent to an external app whenever an event—that the app must subscribe to—occurs in the QuickBooks Online customer’s company file. If your app has a use case where having access to real-time customer information is important, using webhooks will make the data sync easy. An app can subscribe to listen to these events (such as create, update, and delete notifications) on several entities made available in our APIs.
We recommend you implement webhooks so you can be automatically notified whenever data changes in a connected QuickBooks company. For example, you may be developing an inventory management app. Whenever a customer records a sale in QuickBooks, the app can listen to an ‘Invoice create’ event and execute appropriate business logic based on the items included in the Invoice.
If you’ve been having trouble with webhooks or have missed webhook notifications, here are some common reasons why:
Our webhooks service is generally available, but in case of an outage, we keep this dashboard updated. Subscribe to get notified in case of outages.
Entities & operations not selected
In the webhooks setup page, ensure you’ve selected the right set of operations for the entities for which you need webhooks.
You can only receive webhooks for companies that are connected to your app. Webhooks will only be sent for events occurring after the app connection.
Webhook endpoint URLs must be exposed over the internet and secured via HTTPS. Ensure the specified domain has intermediate certificates installed to complete the chain of trust. Self-signed certificates aren’t supported.
Ensure you respond to a webhook notification within 3 seconds with an HTTP 200 status code. Don’t process the notification payload or perform complex operations within the webhooks endpoint implementation. Do the processing on a separate thread asynchronously using a queue.
To compensate for the possibility of missed events, make a ChangeDataCapture (CDC) call for all required entities, dating back to the last known successfully processed webhook event for each entity. Additionally, you can make a daily CDC call for all required entities to ensure your app has always processed the most up-to-date data.
To learn more
Refer to our official documentation to learn more about using webhooks for QuickBooks Online companies connected to your app.
Leave a Reply