Administration
Webhooks
Webhooks automatically send data to external services when events happen in your store. Use them to connect your store to other tools, automate workflows, and sync data.
Understanding webhooks
When an event happens (like a new order), your store sends data to a URL you specify. The external service receives this data and can act on it.
Common uses:
- Inventory sync - Update stock in other systems
- Order notifications - Send orders to fulfillment services
- CRM updates - Add customers to marketing tools
- Accounting - Send transactions to bookkeeping software
Tip
Webhooks work in real-time. As soon as an event happens, data is sent to your configured endpoints.
Creating a webhook
- From your admin, go to Administration > Webhooks
- Click Create Webhook
- Configure the webhook:
- Name - A descriptive name
- URL - Where to send data
- Events - Which events trigger it
- Secret - For verifying requests (recommended)
- Click Save
Available events
Choose which events trigger your webhook:
Order events
order.created- New order placedorder.updated- Order details changedorder.fulfilled- Order shippedorder.cancelled- Order cancelled
Product events
product.created- New product addedproduct.updated- Product changedproduct.deleted- Product removed
Customer events
customer.created- New customer registeredcustomer.updated- Customer details changed
Tip
Only subscribe to events you need. Unnecessary webhooks create extra work for your systems.
Webhook security
Protect your integrations:
Webhook secrets
Use a secret to verify requests came from Hanut.io:
- Set a secret when creating the webhook
- Your endpoint receives the secret in a header
- Verify the secret matches before processing
HTTPS only
Always use HTTPS URLs for webhooks. This encrypts data in transit.
Important
Never expose sensitive data in webhook endpoints. Verify all incoming requests before acting on them.
Testing webhooks
Before relying on a webhook:
- Open the webhook settings
- Click Send Test
- Check that your endpoint received the data
- Verify your integration processes it correctly
Test with each event type you've configured.
Troubleshooting
Webhook logs
View recent webhook activity:
- Go to Administration > Webhooks
- Click on a webhook
- View Recent Deliveries
Logs show:
- When data was sent
- Response received
- Any errors
Common issues
Endpoint not receiving data:
- Check the URL is correct
- Verify your server is running
- Check firewall settings
Authentication errors:
- Verify the secret is correct
- Check your endpoint's validation logic
Timeout errors:
- Your endpoint must respond within 30 seconds
- Process data asynchronously if needed
Next steps
- Configure security for your integrations
- Manage users who can access webhooks
- Set up email for notification alternatives