Webhooks
Guide to using webhooks for integrations with Lager Guru.
Overview
Webhooks allow external systems to receive real-time notifications about events in Lager Guru.
Supported Events
Inventory Events
inventory.item.createdinventory.item.updatedinventory.movement.createdinventory.low_stock
Shipment Events
shipment.createdshipment.updatedshipment.status_changedshipment.completed
Pick & Pack Events
pick_list.createdpick_list.completedpack_session.created
Webhook Configuration
Creating Webhook
- Navigate to System Settings → Integrations → Webhooks
- Click Create Webhook
- Configure:
- Webhook URL
- Events to subscribe to
- Secret for signature verification
- Save webhook
Webhook Payload
json
{
"event": "shipment.created",
"timestamp": "2025-12-02T10:00:00Z",
"data": {
"id": "uuid",
"status": "pending",
"tenant_id": "uuid"
}
}Security
Signature Verification
Webhooks include a signature header for verification:
X-Lager-Guru-Signature: sha256=...Verify signature using your webhook secret.
Testing
Local Testing
Use tools like ngrok to test webhooks locally:
bash
ngrok http 3000Configure webhook URL to ngrok URL.
Best Practices
- Use HTTPS for webhook URLs
- Verify webhook signatures
- Implement idempotency
- Handle retries gracefully
- Log webhook events