Webhook Information

ดูข้อมูลและประวัติการส่ง Webhook ของคุณ รวมถึงการจัดการและการแก้ไขปัญหา

Webhook Status

24
Successful
2
Failed
98.5%
Success Rate

Webhook Configuration

https://yourdomain.com/webhook
Active
payment.paid
payment.failed
withdrawal.completed

Max Retries: 3

Retry Interval: 5 minutes

Recent Webhook Logs

Time Event Order ID Status Response
2024-01-01 12:05:30 payment.paid ORDER-123456789 Success 200 OK
2024-01-01 11:45:15 payment.failed ORDER-123456788 Failed 500 Error
2024-01-01 11:30:00 payment.paid ORDER-123456787 Success 200 OK

Test Webhook

ทดสอบ webhook endpoint ของคุณด้วยข้อมูลจำลอง

Webhook Request Example

POST https://yourdomain.com/webhook
{
  "Content-Type": "application/json",
  "User-Agent": "Payment-Webhooks/1.0",
  "X-Webhook-Event": "payment.paid",
  "X-Webhook-Timestamp": "1703766330000"
}
{
  "event": "payment.paid",
  "timestamp": 1703766330000,
  "data": {
    "id": "05fc1385-c4cf-4c6a-8cef-a04f63c3d0cb",
    "order_id": "5d73e522-8856-413b-9505-29c7c955948a",
    "order_user_reference": "12345",
    "payment_method_type": "PROMPTPAY_QR",
    "amount": "2.5",
    "from_currency": "THB",
    "to_currency": "THB",
    "payment_status": "PAYMENT_PAID",
    "payment_url": "https://app.wpayz.xyz/pay/05fc1385-c4cf-4c6a-8cef-a04f63c3d0cb",
    "created_at": "2025-01-01T10:41:31.517Z",
    "completed_at": "2025-01-01T10:45:15.234Z"
  }
}

การตอบกลับ Webhook

ระบบของคุณควรตอบกลับด้วย HTTP Status 200 เพื่อยืนยันว่าได้รับ webhook เรียบร้อยแล้ว

Webhook Management