# 配送料金を請求する 顧客向けにさまざまな配送料金を作成します。 配送料金を使用すると、標準、速達、翌日配送などのさまざまな配送オプションと、より正確な配送予定を表示することができます。さまざまな Stripe 製品を使用して顧客に配送料金を請求できます (一部の製品ではコーディングが必要)。配送料金を作成する前に、[請求先住所と配送先住所を収集する](https://docs.stripe.com/payment-links/customize.md)方法を確認してください。 > #### サードパーティのプラグイン > > Stripe とともにサードパーティーアプリケーション ([Thrivecart](https://support.thrivecart.com/help/setting-your-physical-fulfilment-shipping-options/) や [Shopify](https://help.shopify.com/en/manual/shipping/setting-up-and-managing-your-shipping/setting-up-shipping-rates) など) を使用している場合に、配送料金を調整するには、そのサービスに関するドキュメントをご覧ください。 #### ダッシュボード 1. [決済用の URL リンク](https://dashboard.stripe.com/test/payment-links/create) を作成し、**顧客の住所を収集**と**請求先住所と配送先住所**オプションを選択します。 1. 配送先の国を選択します。 1. **配送料金を追加**をクリックして、既存の配送料金を選択するか新しい配送料金を追加します。決済用の URL リンクでは、1 回限りの価格が指定された配送料金のみを使用できます。 ![](https://b.stripecdn.com/docs-statics-srv/assets/create-payment-link-with-shipping-rate.299819920f996e92c28c393f7a9d91cc.png) ダッシュボードで決済用の URL リンクに新しい配送料金を追加する #### API [配送料金を作成](https://docs.stripe.com/api/shipping_rates.md)するには、少なくとも `type` と `display_name` パラメーターが必要です。次のコードサンプルでは、これら両方のパラメーターを、`fixed_amount` および `deliver_estimate` とともに使用して配送料金を作成します。 ```curl curl https://api.stripe.com/v1/shipping_rates \ -u "<>:" \ -d "display_name=Ground shipping" \ -d type=fixed_amount \ -d "fixed_amount[amount]=500" \ -d "fixed_amount[currency]=usd" \ -d "delivery_estimate[minimum][unit]=business_day" \ -d "delivery_estimate[minimum][value]=5" \ -d "delivery_estimate[maximum][unit]=business_day" \ -d "delivery_estimate[maximum][value]=7" ``` 決済用リンクを作成し、[請求先住所と配送先住所を収集](https://docs.stripe.com/payments/collect-addresses.md?payment-ui=payment-links)します。[shipping_options](https://docs.stripe.com/api/payment-link/object.md#payment_link_object-shipping_options) パラメーターを使用して決済用リンクに配送料金を追加します。Payment Links では、1 回限りの価格の配送料金のみを使用できます。 ```curl curl https://api.stripe.com/v1/payment_links \ -u "<>:" \ -d "line_items[0][price]={{PRICE_ID}}" \ -d "line_items[0][quantity]=1" \ -d billing_address_collection=required \ -d "shipping_address_collection[allowed_countries][0]=US" \ -d "shipping_options[0][shipping_rate]={{SHIPPINGRATE_ID}}" ```