API Reference
Notification
Notification API

Notification API

ส่งข้อความหาลูกค้าผ่านช่องทางที่เชื่อมไว้ เช่น LINE

Base URL: https://notification-api.pcampus.co

วิธีเชื่อมต่อ

POST https://notification-api.pcampus.co/v1/notifications/send
Authorization: Bearer pip_YOUR_API_KEY
x-tenant-id: your-tenant-id
Content-Type: application/json

ตัวอย่างคำขอ

{
  "channel": "line",
  "recipientId": "cust_001",
  "templateId": "order_update",
  "variables": {
    "customerName": "Alex",
    "orderId": "ORD-1001"
  }
}

ตัวอย่างคำตอบ

{
  "notificationId": "ntf_001",
  "channel": "line",
  "status": "sent"
}
สถานะเมื่อไหร่
200ส่งหรือเข้าคิวแล้ว
401token ไม่ถูกต้อง
400ช่องทางหรือผู้รับไม่ครบ

เชื่อมช่องทางใน Console ก่อน แล้วค่อยเรียก API