API in practice
API trong thực tế
GET /dcsa/v2/events?documentReference=MAEU12345678
Authorization: Bearer <api-key>Understand
· Giải thích khái niệmGET /dcsa/v2/events?documentReference=MAEU12345678 with bearer API key returns JSON IN_TRANSIT, GATE_OUT/VESSEL_DEPARTURE events at VNHPH and ETA. DCSA: Maersk/MSC/CMA CGM; visibility: project44/FourKites/Vizion; air: IATA ONE Record replacing Cargo-IMP; parcel: DHL/FedEx/UPS/GHN/Viettel Post/GHTK. Webhooks notify on events instead of polling. Rate limit example 1,000 calls/hour. JSON is self-describing, answers quickly and integrates in days rather than months. Illustrative JSON retained below.
Illustrative JSON response shown in the slide:
{"documentReference":"MAEU12345678",
"status":"IN_TRANSIT",
"events":[
{"type":"GATE_OUT","at":"2026-09-05T08:12Z","location":"VNHPH"},
{"type":"VESSEL_DEPARTURE","at":"2026-09-06T21:40Z","location":"VNHPH"}
],
"eta":"2026-10-04T06:00Z"}Understand
· Giải thích khái niệmThe source highlights multi-carrier visibility aggregators (many carriers, one API), booking/tracking under DCSA and free parcel/express sandboxes. Design for the rate limit, or calls may be blocked during peak periods.