קבלו הודעות מיידיות כאשר אירועים מתרחשים בחשבון Laabam שלכם
קבלו הודעות מיד כשאירועים מתרחשים
ניסיונות חוזרים אוטומטיים עם עיכוב מעריכי
מעקב סטטוס מסירה וניפוי באגים
invoice.createdמופעל כאשר חשבונית חדשה נוצרת
דוגמה ל-Payload:
{
"invoice_id": "inv_123",
"status": "draft",
"amount": 50000
}invoice.paidמופעל כאשר תשלום חשבונית מתקבל
דוגמה ל-Payload:
{
"invoice_id": "inv_123",
"payment_id": "pay_456",
"amount": 50000
}customer.createdמופעל כאשר לקוח חדש נוסף
דוגמה ל-Payload:
{
"customer_id": "cust_789",
"name": "John Doe",
"email": "john@example.com"
}payment.failedמופעל כאשר ניסיון תשלום נכשל
דוגמה ל-Payload:
{
"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 דקות
שיעור הצלחה
99.8%
https://staging.yoursite.com/webhooksמסירה אחרונה
לפני 15 דקות
שיעור הצלחה
100%
בנו אינטגרציות זמן אמת עם webhooks של Laabam