跳轉到主要內容
GET
/
tracking
/
{id}
取得標籤的追蹤事件
curl --request GET \
  --url https://api.flexforwardship.com/tracking/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
  "trackingNumber": "YT2503010001CN",
  "tag": "InTransit",
  "subtag": "InTransit_001",
  "subtagMessage": "In transit",
  "slug": "yunexpress",
  "checkpoints": [
    {
      "checkpointTime": "2025-03-02T10:30:00.000Z",
      "city": "Shenzhen",
      "state": "Guangdong",
      "countryRegion": "CN",
      "location": "<string>",
      "message": "Shipment departed from sorting center",
      "tag": "InTransit",
      "subtag": "InTransit_001",
      "subtagMessage": "In transit",
      "slug": "yunexpress"
    }
  ]
}

授權

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

路徑參數

id
string
必填

標籤 UUID 或客戶訂單編號。

Minimum string length: 1

回應

貨件的追蹤資訊。

貨件的追蹤資訊。

id
string<uuid>
必填

標籤識別碼。

範例:

"f47ac10b-58cc-4372-a567-0e02b2c3d479"

trackingNumber
string | null
必填

物流業者指派的追蹤編號,尚未取得時為 null。

範例:

"YT2503010001CN"

tag
string
必填

高階追蹤狀態。可能的值:Pending、InfoReceived、InTransit、Delivered、Exception、Cancelled、Unknown。

範例:

"InTransit"

subtag
string
必填

詳細狀態子標籤。

範例:

"InTransit_001"

subtagMessage
string
必填

子標籤的人類可讀描述。

範例:

"In transit"

slug
string
必填

物流業者代碼。

範例:

"yunexpress"

checkpoints
object[]
必填

依時間順序排列的追蹤事件清單。