अपने Laabam खाते में घटनाएं होने पर तुरंत सूचनाएं प्राप्त करें
घटनाएं होने पर तुरंत सूचना प्राप्त करें
एक्सपोनेंशियल बैकऑफ़ के साथ स्वचालित पुनःप्रयास
डिलीवरी स्थिति ट्रैक करें और समस्याओं का निवारण करें
invoice.createdजब एक नया चालान बनाया जाता है तो ट्रिगर होता है
उदाहरण पेलोड:
{
"invoice_id": "inv_123",
"status": "draft",
"amount": 50000
}invoice.paidजब चालान का भुगतान प्राप्त होता है तो ट्रिगर होता है
उदाहरण पेलोड:
{
"invoice_id": "inv_123",
"payment_id": "pay_456",
"amount": 50000
}customer.createdजब एक नया ग्राहक जोड़ा जाता है तो ट्रिगर होता है
उदाहरण पेलोड:
{
"customer_id": "cust_789",
"name": "John Doe",
"email": "john@example.com"
}payment.failedजब भुगतान का प्रयास विफल होता है तो ट्रिगर होता है
उदाहरण पेलोड:
{
"payment_id": "pay_456",
"reason": "insufficient_funds"
}यहां बताया गया है कि अपने एप्लिकेशन में webhooks को कैसे हैंडल करें:
// Webhook endpoint example (Node.js/Express)
const express = require('express');
const app = express();
app.post('/webhooks/laabam', express.json(), (req, res) => {
const event = req.body;
// Verify webhook signature
const signature = req.headers['x-laabam-signature'];
if (!verifySignature(signature, req.body)) {
return res.status(401).send('Invalid signature');
}
// Handle different event types
switch (event.type) {
case 'invoice.created':
console.log('New invoice:', event.data.invoice_id);
// Your business logic here
break;
case 'invoice.paid':
console.log('Payment received:', event.data.payment_id);
// Update your database, send email, etc.
break;
}
res.status(200).send('Webhook received');
});https://api.yoursite.com/webhooks/laabamअंतिम डिलीवरी
2 minutes ago
सफलता दर
99.8%
https://staging.yoursite.com/webhooksअंतिम डिलीवरी
15 minutes ago
सफलता दर
100%
Laabam webhooks के साथ रियल-टाइम एकीकरण बनाएं