Rate Shopping

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

Compare multi-carrier shipping rates, find cheapest/fastest options, and get shipping recommendations via the Shippo API

僅含說明Business & Finance
AI 產生的概覽

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

功能
引導代理收集寄件資訊、驗證地址,並呼叫 Shippo 的 CreateShipment 取得運費陣列,再以表格呈現貨運商、服務等級、價格與預估天數。內容涵蓋依速度篩選、指定幣別運費、結帳明細項目運費、運費有效期以及國際運費問題。它也會計算最便宜、最快與最超值的選項,並說明彼此之間的取捨。
適用情境
當使用者想比較不同貨運商的寄送方案、尋找最便宜或最快的配送方式,或需要針對包裹的寄送建議時使用。也適合用來排查未回傳運費的情況。
執行需求
需要存取 Shippo API 及其建立貨件、地址驗證、即時運費與幣別運費等操作。未附帶指令碼,僅為說明文件。國際運費部分引用了海關指南檔案(shippo/references/customs-guide.md)。
<!-- ⚠️ DO NOT EDIT. Auto-generated from skills/rate-shopping/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. -->

Rate Shopping and Comparison

Get Rates for a Shipment

  1. Collect: origin address, destination address, parcel (length, width, height, distance_unit, weight, mass_unit). All dimension and weight values must be strings (e.g., "10" not 10).
  2. Optionally validate both addresses with ValidateAddress (see Address Validation).
  3. Call CreateShipment with address_from, address_to (as inline address objects using v1 field names -- street1, city, state, zip, country -- not object IDs), and parcels.
  4. The response rates array contains available options. Present a table: carrier, service level, price, estimated days.
  5. Note: the same carrier may return duplicate rates from multiple carrier accounts. Present the best rate per carrier/service combination.
  6. Each rate carries an object_id. To buy a label, pass the chosen rate's object_id to the purchase flow (see Label Purchase); you do not re-send the address or parcel.

Rate Expiration

Rates expire after 7 days. If a user tries to purchase a rate that was retrieved more than 7 days ago, create a new shipment to get fresh rates.


Filter by Speed

Map user requests: "overnight" = estimated_days 1, "2-day" = estimated_days <= 2, "within N days" = estimated_days <= N. Filter the rates array accordingly. If nothing matches, show the fastest available option.


International Rates

Some carriers may return international rates without a customs declaration, but others will not. If no rates are returned, try attaching a customs declaration to the shipment. Some carriers also require a phone number on the destination address for international rate retrieval. Inform the user that customs will be required at label purchase time regardless. See shippo/references/customs-guide.md for customs details.


Checkout Rates (Line Items)

Call CreateLiveRate instead of CreateShipment. Accepts address_from, address_to, and line_items (each with title, quantity, total_price, currency, weight, weight_unit).


Rates in a Specific Currency

Call ListShipmentRatesByCurrencyCode with the preferred ISO currency code (USD, EUR, GBP, CAD, etc.).


Recommendation

Identify the cheapest (lowest amount), fastest (lowest estimated_days), and best-value options from the rates array. These are not API fields -- compute them by sorting the rates array yourself. State the trade-off: "Option A is $X cheaper but takes Y more days than Option B."


Troubleshooting: No Rates

  • Verify both addresses passed validation (most common cause).
  • Confirm parcel dimensions are reasonable (not zero, not exceeding carrier limits).
  • Shippo provides managed carrier accounts by default for major carriers. If no rates are returned, the issue is more likely address validation, unsupported route, or parcel dimensions -- not missing carrier accounts. You can verify with ListCarrierAccounts if needed.
  • Rates expire after 7 days. If stale, create a new shipment to get fresh rates.

Quick Reference

Get rates: (optional) ValidateAddress (x2) -> CreateShipment (with inline addresses) -> read rates array

來源與署名

來源:goshippo/ai位於providers/claude/plugin/skills/rate-shopping提交cf8e965

授權條款: 無授權條款

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

檢舉或申請下架

更多來自 goshippo/ai 的技能

Upgrade Shippo

goshippo

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

Software Development32 週前更新

Tracking

goshippo

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

Productivity & Workflow32 週前更新

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

Label Purchase

goshippo

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

Business & Finance32 週前更新