Tracking

作者 goshippocf8e96532f24無授權條款3 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫2 週前更新

Track packages across carriers, view tracking history, and set up tracking webhooks via the Shippo API

AI 產生的概覽

透過 Shippo API 跨貨運業者追蹤包裹,包含貨態歷程與追蹤 webhook。

功能
此技能引導代理使用 Shippo API 追蹤貨件。內容涵蓋以貨運業者代碼與追蹤編號呼叫 GetTrack、解讀狀態值、子狀態詳細資料與預計送達時間欄位,並呈現目前狀態與依時間排序的事件紀錄。它也說明如何從成功交易中找出可追蹤包裹,以及註冊 track_updated webhook。
適用情境
適用於使用者想查詢包裹目前位置、檢視貨件貨態歷程、查找過去成功交易的追蹤資訊,或為貨件更新設定推播通知的情境。
執行需求
需要存取 Shippo API 及其追蹤端點、貨運業者代碼與追蹤編號,以及用於註冊 webhook 的 HTTPS 回呼網址。此技能不含指令碼,僅為操作說明。
<!-- ⚠️ DO NOT EDIT. Auto-generated from skills/tracking/SKILL.md by scripts/sync.js Edits here will be overwritten on the next sync. To change this content, edit the canonical source and re-run the sync script. -->

Package Tracking

Track by Number

  1. Determine carrier and tracking number. Carrier must be a lowercase Shippo token (e.g., usps, ups, fedex, dhl_express). See shippo/references/carrier-guide.md for tracking number format hints per carrier. If uncertain, ask the user.
  2. Call GetTrack with carrier and tracking_number.
  3. Key response fields: tracking_status (status, status_details, status_date, location), tracking_history, eta.
  4. Each tracking event includes a substatus object with code, text, and action_required (boolean). Include substatus details when presenting tracking history -- these provide more specific information about what happened at each step.
  5. Present: current status, location, ETA, substatus details, and chronological event history (most recent first).

Status Values

See shippo/references/carrier-guide.md for carrier-specific status nuances. Standard values:

StatusMeaning
PRE_TRANSITLabel created, carrier has not received the package
TRANSITPackage is in transit
DELIVEREDDelivered
RETURNEDBeing returned or returned to sender
FAILUREDelivery failed
UNKNOWNNo tracking information from carrier

The eta field is provided by most major carriers (USPS, UPS, FedEx, DHL Express) but availability is carrier-dependent, it may be null for regional carriers or for shipments before the carrier has finalized routing. Treat absence as informational, not as an error condition.


Find Trackable Packages

Call ListTransactions. Filter for object_status: SUCCESS. Each successful transaction has tracking_number and carrier info. Then call GetTrack for selected items.


Register a Tracking Webhook

  1. Get the user's HTTPS webhook URL.
  2. Call createWebhook with url and event: track_updated.
  3. Optionally call CreateTrack with carrier and tracking number to register a specific shipment for push updates.

Quick Reference

Track a package: GetTrack with carrier + tracking number

Find past shipment tracking: ListTransactions -> filter SUCCESS -> GetTrack

來源與署名

來源:goshippo/ai位於providers/claude/plugin/skills/tracking提交cf8e965

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架

更多來自 goshippo/ai 的技能

Upgrade Shippo

goshippo

說明 Shippo API 版本變更、Webhook 承載內容版本管理,以及託管 Shippo MCP 伺服器的疑難排解。

Software Development32 週前更新

Shippo Support Ticket

goshippo

Generate a complete, auto-classified, ready-to-paste Shippo support ticket for a single shipment or label. Use when a support agent or customer needs to escalate a shipping issue (lost/delayed package, unused-label refund, billing/rate adjustment, address exception, customs hold, carrier-account, or tracking-webhook problem). Given a tracking number + carrier, a transaction (label) ID, or a shipment ID, it classifies the issue, runs the right read-only Shippo MCP lookups, computes the triage timeline, and emits both a copy-paste support message and a routing-tagged JSON block so the ticket lands in the right pipeline first time.

待分類32 週前更新

Shippo Best Practices

goshippo

Guides Shippo integration decisions, choosing between Rates at Checkout vs. full Shipments+Transactions vs. Batch processing, address validation strategy (v1 vs v2 fields), domestic vs international workflows (customs declarations, incoterms), label format selection, and webhook setup. Use when planning, building, or reviewing any Shippo integration, including building checkout flows, bulk fulfillment pipelines, address validation, label generation, package tracking, customs handling, or webhook subscriptions.

待分類32 週前更新

Shipping Analysis

goshippo

透過 Shippo API 分析運費、比較承運商、最佳化包裹尺寸並檢視歷史運費支出。

Business & Finance32 週前更新

Rate Shopping

goshippo

透過 Shippo API 比較多家貨運商的運費,並推薦最便宜、最快或最超值的方案。

Business & Finance32 週前更新

Label Purchase

goshippo

指導透過 Shippo API 購買國內、國際與退貨運輸標籤,涵蓋報關與退款。

Business & Finance32 週前更新