• Projects
  • Service
  • About
  • branding.bz
  • Podcast
  • Tips
  • FAQ
  • Recruit
  • Download
  • Contact
  • branding.bz(ブランド構築SaaS)
  • DESIGN NOW(デザインメディア)
  • X
  • LinkedIn
  • Spotify
  • Facebook

213-0011 神奈川県川崎市高津区久本3-6-7-303

© 2026 ID INC. All rights reserved

claude-skills/スキル
SKILLOfficialproductivity

rate-shopping

プラグイン
shippo
ソース
GitHub で見る ↗
説明

複数の運送業者の配送料金を比較して、最も安い・速い選択肢を見つけ、Shippo API(配送手配プラットフォームのインターフェース)を通じて配送のおすすめを提案します。

原文を表示

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

ユースケース
  • 複数の運送業者の料金を比較したい
  • 最安値の配送方法を探している
  • 最速の配送オプションを探している
  • 配送方法のおすすめを知りたい
本文(日本語訳)

運送料金の比較・確認

配送の料金を取得する

  1. 情報の収集: 発送元住所、配送先住所、荷物(縦、横、高さ、距離単位、重さ、重さの単位)を集める。すべての寸法と重さの値は文字列形式である必要があります(例:10 ではなく "10")。

  2. 住所の検証(オプション): ValidateAddress を使用して両方の住所を検証します(住所検証を参照)。

  3. CreateShipment を呼び出す: address_from、address_to(v1 フィールド名 street1、city、state、zip、country を使用したインラインの住所オブジェクト形式であり、ID ではない)と parcels を指定します。

  4. 料金一覧を確認: レスポンスの rates 配列に利用可能な選択肢が含まれます。配送業者、サービス内容、価格、予想日数をテーブルで表示してください。

  5. 重複の処理: 同じ配送業者が複数の口座から重複した料金を返す場合があります。配送業者とサービス内容の組み合わせごとに最安の料金を表示してください。

  6. 購入時の使用: 各料金に object_id があります。ラベルを購入する際は、選択した料金の object_id を購入フロー(ラベル購入を参照)に渡してください。住所や荷物の情報を改めて送信する必要はありません。


料金の有効期限

料金は 7 日後に無効になります。7 日以上前に取得した料金の購入をユーザーが試みた場合は、新しく配送を作成して最新の料金を取得してください。


配送速度でフィルタリングする

ユーザーのリクエストを次のように解釈してください:「翌日配送」= 予想日数 1、「2 日配送」= 予想日数 2 以下、「N 日以内」= 予想日数 N 以下。料金配列をそれに応じてフィルタリングしてください。該当するものがない場合は、最も速い利用可能な選択肢を表示してください。


国際配送の料金

一部の配送業者は通関申告なしで国際料金を返す場合がありますが、その他は返さない場合があります。料金が返されない場合は、配送に通関申告を追加してみてください。また、一部の配送業者は国際料金の取得に配送先住所の電話番号が必要です。ユーザーに対して、ラベル購入時には通関申告が必須となることをお知らせください。詳細は shippo/references/customs-guide.md を参照してください。


チェックアウト時の料金(明細項目)

CreateShipment ではなく CreateLiveRate を呼び出してください。address_from、address_to、および line_items(各項目に題名、数量、合計価格、通貨、重さ、重さの単位を含む)を指定します。


特定の通貨での料金表示

ListShipmentRatesByCurrencyCode を呼び出し、希望する ISO 通貨コード(USD、EUR、GBP、CAD など)を指定してください。


推奨事項

料金配列から最安(最小の amount)、最速(最小の estimated_days)、最良の費用対効果を持つ選択肢を特定してください。これらは API フィールドではなく、料金配列を自分でソートして計算します。トレードオフを説明してください:「オプション A は X ドル安いですが、オプション B より Y 日長くかかります」のように。


トラブルシューティング:料金が表示されない場合

  • 住所の検証を確認: 両方の住所が検証をパスしているか確認してください(最も一般的な原因)。

  • 荷物のサイズを確認: 寸法が妥当か確認してください(ゼロでなく、配送業者の上限を超えていない)。

  • 配送業者口座: Shippo はデフォルトで主要な配送業者の管理口座を提供しています。料金が返されない場合、原因はより可能性が高く住所検証、未対応ルート、または荷物のサイズです。必要に応じて ListCarrierAccounts で確認できます。

  • 有効期限切れの確認: 料金は 7 日後に無効になります。古い料金の場合は、新しく配送を作成して最新の料金を取得してください。


クイックリファレンス

料金を取得: (オプション)ValidateAddress(2 回)→ CreateShipment(インラインの住所を使用)→ rates 配列を読み込み

原文(English)を表示

<!-- ⚠️ 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

原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。