Skip to content

07.06 Chapter Summary ​


📌 At a Glance ​

รายการรายละเอียด
TopicChapter Summary
Difficulty⭐ Beginner
Reading Time5 นาที
TargetDeveloper, System Integrator

🎯 Learning Outcomes ​

หลังจากศึกษาบทนี้แล้ว ผู้อ่านจะสามารถ

  • เรียกใช้งาน Shipment Tracking API ได้
  • ค้นหารายการจัดส่งตามเงื่อนไขต่าง ๆ
  • ติดตามสถานะของ Shipment ได้
  • แสดง Timeline จากข้อมูล history
  • ออกแบบระบบติดตามสถานะสำหรับใช้งานจริงได้

Overview ​

Chapter 7 อธิบายการใช้งาน Shipment Tracking API ซึ่งเป็นบริการสำหรับติดตามสถานะของรายการจัดส่งหลังจากผ่านการตรวจสอบและเข้าสู่กระบวนการขนส่ง

Developer สามารถใช้ API นี้เพื่อค้นหารายการ ตรวจสอบสถานะปัจจุบัน ดูรายละเอียดสินค้า และแสดงประวัติการเปลี่ยนสถานะให้กับผู้ใช้งานแบบ Near Real-time


Figure 7-6 Chapter Summary ​

Figure 7-6

Figure 7-6 สรุปภาพรวมของกระบวนการติดตามสถานะการจัดส่ง ตั้งแต่การสร้าง Order Checking การติดตาม Shipment ไปจนถึงการส่งมอบสินค้า


Chapter Overview ​

ตลอดทั้งบท ได้เรียนรู้หัวข้อดังต่อไปนี้

SectionDescription
7.1Shipment Tracking Overview
7.2Get Shipment Tracking API
7.3Shipment Response Data Model
7.4Shipment Status History
7.5Shipment Tracking Best Practices

Shipment Tracking Workflow ​

text
Create Order Checking

        │

        ▼

Checker Review

        │

        ▼

Shipment Created

        │

        ▼

GET /shipments

        │

        ▼

Receive Response

        │

        ▼

Update Local Database

        │

        ▼

Display Current Status

        │

        ▼

Show Timeline

Developer Readiness Checklist ​

ก่อนนำระบบขึ้น Production

  • [x] จัดเก็บ Order ID (id)
  • [x] เรียก Shipment Tracking API ได้
  • [x] รองรับ Query Parameters
  • [x] รองรับ Pagination
  • [x] แสดง Timeline จาก history
  • [x] จัดเก็บ Response สำหรับ Audit
  • [x] รองรับ HTTP Error
  • [x] ใช้งานผ่าน HTTPS

Key Takeaways ​

TopicRecommendation
Order IDใช้ id เป็นเลขอ้างอิงหลัก
Trackingใช้ Shipment Tracking API เพื่อติดตามสถานะ
Historyแสดง Timeline จากข้อมูล history
Paginationใช้เมื่อดึงข้อมูลจำนวนมาก
Local Databaseจัดเก็บข้อมูลเพื่อลดการเรียก API ซ้ำ
Securityใช้งานผ่าน HTTPS และจัดการ API Key อย่างปลอดภัย

Production Readiness ​

Client System ควรมีความสามารถดังต่อไปนี้

CapabilityRecommended
Shipment Tracking✅
Query Parameters✅
Pagination✅
Timeline Display✅
Local Database✅
Logging✅
Error Handling✅
HTTPS✅

Common Integration Flow ​

text
Order Checking API

        │

        ▼

Shipment Tracking API

        │

        ▼

Response

        │

        ▼

Status History

        │

        ▼

Client Dashboard

        │

        ▼

Customer Portal / ERP / WMS

Related Chapters ​

ChapterDescription
Chapter 6Order Checking APIs
Chapter 8Order Rejection APIs
Chapter 9Error Handling & Response Codes

Summary ​

Shipment Tracking API ช่วยให้ Client System สามารถติดตามสถานะของรายการจัดส่งได้ตลอดกระบวนการขนส่ง ตั้งแต่การยืนยันรายการ การขึ้นสินค้า การเดินทาง จนถึงการส่งมอบสินค้า โดยข้อมูล history ช่วยให้สามารถแสดง Timeline ของเหตุการณ์ทั้งหมดได้อย่างชัดเจน และข้อมูล id ใช้เป็นเลขอ้างอิงหลักสำหรับการเชื่อมโยงข้อมูลระหว่างระบบ


🎓 Chapter 7 Learning Outcomes ​

เมื่อจบบทนี้ คุณสามารถ

  • เรียก Shipment Tracking API ได้
  • ค้นหารายการจัดส่งตามเงื่อนไขต่าง ๆ
  • แสดงข้อมูล Shipment ได้ครบถ้วน
  • ใช้ history สร้าง Timeline การจัดส่ง
  • รองรับ Pagination และ Query Parameters
  • พัฒนาระบบติดตามสถานะสินค้าในระดับ Production

Next Step ​

➡️ Chapter 8 – Order Rejection APIs

SISAHYGO API Integration Guide