コンテンツにスキップ
アカウントを作成
または
サインイン
Stripe ドキュメントのロゴ
/
AI に質問する
アカウントを作成
サインイン
始める
支払い
売上
プラットフォームおよびマーケットプレイス
資金管理
開発者向けリソース
概要
Billing
概要Billing API について
サブスクリプション
    概要
    サブスクリプションの仕組み
    クイックスタート
    ユースケース
    実装を構築
    サブスクリプション機能
      サブスクリプションの請求書
      サブスクリプションのスケジュール
      サブスクリプションの料金体系
      継続的な料金体系モデル
      料金表を埋め込む
      サブスクリプションを始める
      数量の設定
      請求サイクルの設定
      サブスクリプションの遡及適用
      複数のアイテムに登録
      トライアル期間を設定
      クーポンを適用
      サブスクリプションを Stripe に移行する
      クレジットの比例分配の計算方法
      サブスクリプションの決済
      サブスクリプションの決済手段
      サードパーティーによる決済処理を導入
      回収方法
      強力な顧客認証 (SCA)
      サブスクリプションを管理
      サブスクリプションの修正
      保留中の更新の管理
    エンタイトルメント
    アナリティクス
Invoicing
従量課金
見積もり
顧客管理
Billing with other products
売上回収
オートメーション
実装内容をテストする
税金
概要
Use Stripe tax
Manage compliance
レポート機能
概要
レポートの選択
Configure reports
Reports API
複数のアカウントのレポート
収益認識
データ
概要スキーマ
カスタムレポート
Data Pipeline
データ管理
ホーム売上SubscriptionsSubscription features

注

このページはまだ日本語ではご利用いただけません。より多くの言語で文書が閲覧できるように現在取り組んでいます。準備が整い次第、翻訳版を提供いたしますので、もう少しお待ちください。

複数の商品のサブスクリプション

複数の商品のサブスクリプションを作成し、すべてを 1 つの請求書で請求します。

複数の商品を提供している場合、または同じ商品で異なる金額を請求する場合は、サブスクリプションに複数の商品を関連付けることができます。これにより、請求期間ごとにすべての価格をまとめた 1 件の請求書が生成されます。その請求書に対する支払いは 1 回で済むため、コストを削減し、顧客への請求回数を減らすことができます。

複数の商品のサブスクリプションを作成する

items パラメータを使用して、顧客に複数の商品のサブスクリプションを作成します。各商品に対し、price、および任意で quantity (1 以外の値を使用する場合) を指定します。

Command Line
cURL
curl https://api.stripe.com/v1/subscriptions \ -u "
sk_test_BQokikJOvBiI2HlWgH4olfQ2
:"
\ -d customer=
{{CUSTOMER_ID}}
\ -d "items[0][price]"=price_CBXbz9i7AIOTzr \ -d "items[1][price]"=price_IFuCu48Snc02bc \ -d "items[1][quantity]"=2

応答には、すべてのサブスクリプションアイテム、価格、数量のリストが含まれます。

{ "id": "sub_CZEpS1Zt9QLxdo", "object": "subscription", ... "items": { "object": "list", "data": [ { "id": "si_H1yPnAVzP9vDRW", "object": "subscription_item", "billing_thresholds": null, "created": 1585939321, "metadata": { }, "price": { "id": "price_H1c8v1liEvrfcd", "object": "price", "active": true, "billing_scheme": "per_unit", "created": 1585856460, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": { }, "nickname": null, "product": "prod_H1c7exjJHbC4sr", "recurring": { "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "licensed" }, "tiers": null, "tiers_mode": null, "transform_quantity": null, "type": "recurring", "unit_amount": 1000, "unit_amount_decimal": "1000" }, "quantity": 1, "subscription": "sub_H1yPRslJXa4TUt", "tax_rates": [ ] },

複数の価格を使用する請求期間

Conventional prices that charge a fixed amount on an interval are billed at the start of each billing cycle. With each invoice, the customer effectively pays for the next interval of service. With usage-based billing, the amount paid by the customer varies based on consumption during the billing cycle, so the customer pays for their usage at the end.

When a subscription combines a fixed rate with usage-based billing, metered usage from the previous billing cycle is charged alongside the fixed rate for the new billing cycle at the start of each interval. The usage-based billing and fixed rate are combined in a single invoice.

制限

複数のサブスクリプション

請求期間やトライアル期間が異なる複数のサブスクリプションに顧客を登録する場合は、複数のサブスクリプションへの対応方法を取り入れます。

1 件のサブスクリプションに複数の商品を含めた場合、請求書は 1 枚で、支払いも 1 回となるため、商品の価格には同じ通貨を使用し、請求期間も同じにする必要があります。また、1 件のサブスクリプションに含められる商品数は、最大 20 点です。

割引、税金、トライアル期間

複数の商品を使用する際、単一商品のサブスクリプションの場合と同様に、割引の作成、課税、トライアル期間の設定も可能です。これらを最上位の引数として、サブスクリプション作成コールまたは更新コールに指定してください。サブスクリプション全般に適用されます。

Command Line
cURL
curl https://api.stripe.com/v1/subscriptions \ -u "
sk_test_BQokikJOvBiI2HlWgH4olfQ2
:"
\ -d customer=
{{CUSTOMER_ID}}
\ -d "discounts[0][coupon]"=free-period \ -d "default_tax_rates[0]"=txr_1EO66sClCIKljWvs98IiVfHW \ -d trial_end=1610403705 \ -d "items[0][price]"=price_CBXbz9i7AIOTzr \ -d "items[1][price]"=price_IFuCu48Snc02bc \ -d "items[1][quantity]"=2

items 属性に価格を渡してサブスクリプションを作成すると、個々の価格に指定されたトライアル期間は無視されます。トライアル期間が考慮されるのは、レガシーのプラン属性を使用して、単一の価格でサブスクリプションを作成した場合のみです。

同一の顧客向けに対する複数のサブスクリプション

同一の顧客に対して、複数のサブスクリプションを同時に作成できます。この機能は、顧客が期間の異なる複数の商品に登録できるようにする場合に便利です。基礎となる価格の請求期間が同じであっても、各サブスクリプションには独自の請求サイクル、請求書および請求が存在します。

同じサブスクリプションの作成コードを使用して、特定の顧客に対して複数のサブスクリプションを作成します。

Command Line
cURL
curl https://api.stripe.com/v1/subscriptions \ -u "
sk_test_BQokikJOvBiI2HlWgH4olfQ2
:"
\ -d customer=cus_4fdAW5ftNQow1a \ -d "items[0][price]"=price_CZB2krKbBDOkTS
Command Line
cURL
curl https://api.stripe.com/v1/subscriptions \ -u "
sk_test_BQokikJOvBiI2HlWgH4olfQ2
:"
\ -d customer=cus_4fdAW5ftNQow1a \ -d "items[0][price]"=price_CZB1AX3KOacNJw

代替として数量を使用

複数のサブスクリプションを同じ料金で作成した場合でも、支払いサイクルや請求サイクルなどはサブスクリプションごとに異なります。これを避けるには、代わりに複数の数量を使用するサブスクリプションを 1 件作成します。

顧客は、複数の商品に登録したり、同一の商品に何度も登録したりすることもできます。各サブスクリプションに一意の ID が設定され、その状態は顧客の他のサブスクリプションとは別に処理されます。また、各サブスクリプションは、サブスクリプションの請求サイクルの起点に基づく独自の請求サイクルを持ちます。

顧客に複数のサブスクリプションが存在する場合は、Customer オブジェクトの subscriptions プロパティを指定することで、サブスクリプションのリストが提供されます。

{ "id": "cus_4fdAW5ftNQow1a", "object": "customer", "subscriptions": { "object": "list", "data": [ { "id": "sub_9RRl3XywPg2P5H", "object": "subscription", ... "price": { "id": "price_CZB2krKbBDOkTS", "object": "price", "amount": 2995, ... } }, { "id": "sub_9RRlIq2t9obFLI", "object": "subscription", ... "price": { "id": "price_CZB1AX3KOacNJw", "object": "price", "amount": 1295, ... } } ] ... } ... }

参照情報

  • 数量の設定
  • トライアル期間の適用
  • Subscription API
このページはお役に立ちましたか。
はいいいえ
お困りのことがございましたら 、サポートにお問い合わせください。
早期アクセスプログラムにご参加ください。
変更ログをご覧ください。
ご不明な点がございましたら、お問い合わせください。
LLM ですか?llms.txt を読んでください。
Powered by Markdoc