หน้านี้คือ “ระบบปลายทาง” ที่รับข้อมูลจาก WMS Pro — ได้รับและตรวจลายเซ็นผ่านแล้ว 9 เหตุการณ์
order.cancelled
27/9/2569 12:13:09
| เลขที่ในคลัง | AO-202609-00001 |
|---|---|
| เลขที่ของ OMS | WNV-260927-JPNSER |
| เจ้าของสินค้า | WAPI-TEST |
| สถานะ | cancelled |
| เหตุผล | E2E ทดสอบเสร็จ |
{
"id": "evt_46a0cea07f006dfd92c5d6fc",
"event": "order.cancelled",
"created_at": "2026-09-27 05:13:09",
"company_id": 1,
"client_id": 13,
"client_code": "WAPI-TEST",
"attempt": 1,
"data": {
"order_no": "AO-202609-00001",
"external_ref": "WNV-260927-JPNSER",
"client_code": "WAPI-TEST",
"status": "cancelled",
"reason": "E2E ทดสอบเสร็จ"
}
}
order.created
27/9/2569 12:13:04
| เลขที่ในคลัง | AO-202609-00001 |
|---|---|
| เลขที่ของ OMS | WNV-260927-JPNSER |
| เจ้าของสินค้า | WAPI-TEST |
| สถานะ | pending |
| รายการสินค้าในออร์เดอร์ | WAPI-TEST-SKU-01 × 1 (สินค้าทดสอบ UAT A1 (ไม่มีล็อต)) |
{
"id": "evt_c1c57ea3932ee459e44dcd34",
"event": "order.created",
"created_at": "2026-09-27 05:13:03",
"company_id": 1,
"client_id": 13,
"client_code": "WAPI-TEST",
"attempt": 1,
"data": {
"order_no": "AO-202609-00001",
"external_ref": "WNV-260927-JPNSER",
"client_code": "WAPI-TEST",
"status": "pending",
"channel": "api",
"warehouse": "BKK",
"order_date": "2026-09-27",
"customer": {
"name": "ทดสอบ E2E WNV API (ห้ามจัดส่ง)",
"phone": "0000000000",
"address": "ออร์เดอร์ทดสอบระบบ ห้ามจัดส่ง กรุงเทพมหานคร 10000"
},
"shipment": {
"carrier_code": null,
"carrier_name": null,
"tracking_no": null,
"tracking_url": null,
"status": null,
"updated_at": null
},
"note": "[E2E WNV API — ทดสอบระบบ ยกเลิกได้ ห้ามจัดส่ง] · อ้างอิงลูกค้า E2E-20260927121302-1853 · [WNV API]",
"fulfilled_at": null,
"cancelled_at": null,
"cancel_reason": null,
"created_at": "2026-09-27 05:13:03",
"updated_at": "2026-09-27 05:13:03",
"client_id": 13,
"fulfillment_status": "draft",
"timestamps": {
"confirmed_at": null,
"pack_confirmed_at": null,
"dispatched_at": null,
"booked_at": null,
"issued_at": null,
"cancelled_at": null
},
"items": [
{
"line_no": 1,
"sku": "WAPI-TEST-SKU-01",
"client_sku": null,
"name": "สินค้าทดสอบ UAT A1 (ไม่มีล็อต)",
"uom": "PCS",
"quantity": 1,
"shipped_quantity": 0,
"unit_price": 0,
"amount": 0,
"status": "open",
"note": null
}
]
}
}
inbound.received
27/9/2569 12:11:14
| สถานะ | putaway_pending |
|---|---|
| เลขที่รายการสต็อก | IVT-202609-000005 |
| สินค้าที่จ่ายออก | WAPI-TESTB-SKU-01 × undefined · WAPI-TESTB-SKU-02 × undefined |
{
"id": "evt_191399ee42fb6edba5f875f9",
"event": "inbound.received",
"created_at": "2026-09-27 05:11:14",
"company_id": 1,
"client_id": 14,
"client_code": "WAPI-TEST-B",
"attempt": 1,
"data": {
"receipt_no": "GRN-2609-00002",
"transaction_no": "IVT-202609-000005",
"received_at": "2026-09-27T05:11:14.556Z",
"qc_pending": false,
"status": "putaway_pending",
"lines": [
{
"sku": "WAPI-TESTB-SKU-01",
"client_sku": null,
"internal_code": "WNV000022",
"qty": 0.05,
"lot_no": null,
"expiry_date": null
},
{
"sku": "WAPI-TESTB-SKU-02",
"client_sku": null,
"internal_code": "WNV000023",
"qty": 0.05,
"lot_no": null,
"expiry_date": null
}
]
}
}
inbound.received
27/9/2569 12:11:11
| สถานะ | putaway_pending |
|---|---|
| เลขที่รายการสต็อก | IVT-202609-000004 |
| สินค้าที่จ่ายออก | WAPI-TEST-SKU-01 × undefined · WAPI-TEST-LOT-01 × undefined |
{
"id": "evt_bcb3d4d40474114b0f652865",
"event": "inbound.received",
"created_at": "2026-09-27 05:11:11",
"company_id": 1,
"client_id": 13,
"client_code": "WAPI-TEST",
"attempt": 1,
"data": {
"receipt_no": "GRN-2609-00001",
"transaction_no": "IVT-202609-000004",
"received_at": "2026-09-27T05:11:11.376Z",
"qc_pending": false,
"status": "putaway_pending",
"lines": [
{
"sku": "WAPI-TEST-SKU-01",
"client_sku": null,
"internal_code": "WNV000020",
"qty": 0.05,
"lot_no": null,
"expiry_date": null
},
{
"sku": "WAPI-TEST-LOT-01",
"client_sku": null,
"internal_code": "WNV000021",
"qty": 0.05,
"lot_no": null,
"expiry_date": null
}
]
}
}
ping
27/9/2569 11:57:55
| ข้อความ | ทดสอบการเชื่อมต่อจาก WMS Pro |
|---|
{
"id": "evt_139a453b2919a07ac27fb21f",
"event": "ping",
"created_at": "2026-09-27 04:57:55",
"company_id": 1,
"client_id": null,
"client_code": null,
"attempt": 1,
"data": {
"message": "ทดสอบการเชื่อมต่อจาก WMS Pro",
"endpoint_id": 4,
"sent_at": "2026-09-27T04:57:55.291Z"
}
}
22/9/2569 15:07:19
{}
stock.updated
22/9/2569 11:41:47
| เลขที่ในคลัง | SO-S-00012 |
|---|---|
| เจ้าของสินค้า | ACME |
| เลขที่รายการสต็อก | IVT-202609-000003 |
| เหตุผล | order_fulfilled |
{
"id": "evt_206c0699c93b94498a525009",
"event": "stock.updated",
"created_at": "2026-09-22 04:41:46",
"company_id": 1,
"client_id": 1,
"attempt": 1,
"data": {
"reason": "order_fulfilled",
"order_no": "SO-S-00012",
"client_code": "ACME",
"transaction_no": "IVT-202609-000003",
"items": []
}
}
order.status_changed
22/9/2569 11:41:46
| เลขที่ในคลัง | SO-S-00012 |
|---|---|
| เลขที่ของ OMS | testzzzz |
| เจ้าของสินค้า | ACME |
| สถานะ | fulfilled |
| เลขที่รายการสต็อก | IVT-202609-000003 |
| สินค้าที่จ่ายออก | BEV-1001 × 4 (ล็อต LOT-AQ2609 หมดอายุ 2027-07-24) |
{
"id": "evt_1c5a9ec9d6981e47f36a8f10",
"event": "order.status_changed",
"created_at": "2026-09-22 04:41:46",
"company_id": 1,
"client_id": 1,
"attempt": 1,
"data": {
"order_no": "SO-S-00012",
"external_ref": "testzzzz",
"client_code": "ACME",
"status": "fulfilled",
"document_type": "online",
"transaction_no": "IVT-202609-000003",
"fulfilled_at": "2026-09-22T04:41:46.384Z",
"lines": [
{
"sku": "BEV-1001",
"product_name": "น้ำดื่มบริสุทธิ์ 600 มล.",
"quantity": 4,
"lot_no": "LOT-AQ2609",
"expiry_date": "2027-07-24",
"warehouse_code": "BKK",
"location_code": "BKK-RCV-01"
}
],
"previous_status": "pending"
}
}
order.fulfilled
22/9/2569 11:41:46
| เลขที่ในคลัง | SO-S-00012 |
|---|---|
| เลขที่ของ OMS | testzzzz |
| เจ้าของสินค้า | ACME |
| สถานะ | fulfilled |
| เลขที่รายการสต็อก | IVT-202609-000003 |
| สินค้าที่จ่ายออก | BEV-1001 × 4 (ล็อต LOT-AQ2609 หมดอายุ 2027-07-24) |
{
"id": "evt_9bd8025269d6067f9f6b4373",
"event": "order.fulfilled",
"created_at": "2026-09-22 04:41:46",
"company_id": 1,
"client_id": 1,
"attempt": 1,
"data": {
"order_no": "SO-S-00012",
"external_ref": "testzzzz",
"client_code": "ACME",
"status": "fulfilled",
"document_type": "online",
"transaction_no": "IVT-202609-000003",
"fulfilled_at": "2026-09-22T04:41:46.384Z",
"lines": [
{
"sku": "BEV-1001",
"product_name": "น้ำดื่มบริสุทธิ์ 600 มล.",
"quantity": 4,
"lot_no": "LOT-AQ2609",
"expiry_date": "2027-07-24",
"warehouse_code": "BKK",
"location_code": "BKK-RCV-01"
}
]
}
}
order.packed
22/9/2569 11:39:28
| เลขที่ในคลัง | SO-S-00012 |
|---|
{
"id": "evt_ef929c5d38bef94b9df43386",
"event": "order.packed",
"created_at": "2026-09-22 04:39:28",
"company_id": 1,
"client_id": 1,
"attempt": 1,
"data": {
"order_no": "SO-S-00012",
"date": "2026-09-22"
}
}
POST / รับ webhook · ลายเซ็นผ่านตอบ 200 · ไม่ผ่านตอบ 401GET /events ดูข้อมูลทั้งหมดเป็น JSONscripts/demo/webhook-echo/_worker.js — นำไปดัดแปลงใช้กับระบบจริงได้ทันที