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周前更新