รับการแจ้งเตือนทันทีเมื่อมีเหตุการณ์เกิดขึ้นในบัญชี Laabam ของคุณ
รับการแจ้งเตือนทันทีเมื่อมีเหตุการณ์เกิดขึ้น
การลองใหม่อัตโนมัติด้วย exponential backoff
ติดตามสถานะการส่งและแก้ไขปัญหา
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