Set up a webhook
What you will have: Your software or automation tool receives in real time the orders, customers or payments you have chosen.
The company's other tools stay up to date with no re-entry or manual export.
Before you start
Why it matters
Your accountant, your carrier or your own software need to be told when an order arrives or a payment is recorded. Instead of exporting files, a webhook automatically sends each chosen event to the address of your choice, the moment it happens.
Summary
A webhook is a web address (URL) that Genuka calls for each event you subscribe it to: "Order created", "Payment created", "Customer updated"… It is managed in Settings › Integrations › Webhooks. On the receiving side, you need a tool able to receive these calls: a service built by your provider, or an automation tool such as n8n.
Prerequisites
- Permissions:
webhooks.viewto view,webhooks.create,webhooks.update,webhooks.deleteandwebhooks.testfor the rest. The Webhooks card in settings shows withwebhooks.*. - A public
httpsaddress ready to receive requests.
Steps
- Open Settings › Integrations › Webhooks, then Create a Webhook.
- Fill in the Webhook URL and, if you wish, a Description. Leave Active ticked.
- In Events to watch, tick the events you want. Search events... filters the list, Select all ticks everything. At least one event is required.
- Save. The webhook's page opens.
- Copy the webhook secret ("Webhook Secret" field, copy button) and give it to the person setting up the receiving side: it is used to check that the calls really come from Genuka.
- Click Test webhook: Genuka sends a test event to your address.
Fields & options
| Item | Role |
|---|---|
| Webhook URL | The address called. Required and valid. |
| Active | Unticked, the webhook receives nothing any more. Activate / Deactivate from its page does the same. |
| Events to watch | By category: Orders, Customers, Invoices, Payments, Deliveries, Products, Product variants, Stock, Warehouses, Transfers, Suppliers, Discounts, Taxes, Tags, Users, Shops, Product returns, Services… Each has its created, updated, deleted and restored events. |
| Regenerate Secret | Creates a new secret. The old one stops working immediately. |
| Failures | Number of failures recorded for this webhook. |
What your address receives
Each call is a JSON POST request containing: the event name (for example order.created), your company's identifier, the object type, the object's data, the date and the API version (2023-11). The Signature header contains an HMAC-SHA256 signature of the content, calculated with the webhook's secret: your tool recalculates it and rejects any call whose signature does not match.
Genuka waits 3 seconds for the response. On failure, it retries up to 3 times, spacing out the attempts.
Edge cases & common errors
- The test call does not look like the others. The test event (
test) carries a message and the webhook's identifier, but no object data. - My server answers slowly. Beyond 3 seconds, the call counts as failed and will be retried: reply right away, then process the event on your side.
- The "Failures" counter stays at zero although my server was down. This counter only counts sends that Genuka failed to prepare. An address that does not answer is retried 3 times then dropped, without showing in this counter; the webhook is therefore not disabled automatically in that case. Monitor reception on your side.
- After "Regenerate Secret", nothing is accepted any more. Put the new secret in your receiving tool.
- Two identical events, a single call. Genuka does not send the exact same data twice to the same webhook.
- Incoming WhatsApp messages are not part of the events. To react to a message, use an automation with a WhatsApp trigger.
FAQ
Do I need to be a developer? To create the webhook in Genuka, no. To receive and use the calls, you need a tool built for it (custom development, or an automation tool).
Webhook or automation? An automation acts inside Genuka (message, update). A webhook notifies another piece of software. An automation can also call an external address with the Call a web service step.
Can I see deleted webhooks? Yes, with the Show deleted webhooks filter in the list.
See also
- Create an automation (workflow)
- Generate and manage API keys
- Install an app
Sign in to keep track of the lessons you have done.
Open in Genuka