Subscriptions let you sell ongoing access with automated renewals. Use flexible billing cycles, free trials, plan changes, and add‑ons to tailor pricing for each customer.
Upgrade & Downgrade
Control plan changes with proration and quantity updates.
On‑Demand Subscriptions
Authorize a mandate now and charge later with custom amounts.
Customer Portal
Let customers manage plans, billing, and cancellations.
Subscription Webhooks
React to lifecycle events like created, renewed, and canceled.
What Are Subscriptions?
Subscriptions are recurring products customers purchase on a schedule. They’re ideal for:- SaaS licenses: Apps, APIs, or platform access
- Memberships: Communities, programs, or clubs
- Digital content: Courses, media, or premium content
- Support plans: SLAs, success packages, or maintenance
Key Benefits
- Predictable revenue: Recurring billing with automated renewals
- Flexible cycles: Monthly, annual, custom intervals, and trials
- Plan agility: Proration for upgrades and downgrades
- Add‑ons and seats: Attach optional, quantifiable upgrades
- Seamless checkout: Hosted checkout and customer portal
- Developer-first: Clear APIs for creation, changes, and usage tracking
Creating Subscriptions
Create subscription products in your Dodo Payments dashboard, then sell them through checkout or your API. Separating products from active subscriptions lets you version pricing, attach add‑ons, and track performance independently.Subscription product creation
Configure the fields in the dashboard to define how your subscription sells, renews, and bills. The sections below map directly to what you see in the creation form.Product details
- Product Name (required): The display name shown in checkout, customer portal, and invoices.
- Product Description (required): A clear value statement that appears in checkout and invoices.
- Product Image (required): PNG/JPG/WebP up to 3 MB. Used on checkout and invoices.
- Brand: Associate the product with a specific brand for theming and emails.
- Tax Category (required): Choose the category (for example, SaaS) to determine tax rules.
Pricing
- Pricing Type: Choose Subscription (this guide). Alternatives are Single Payment and Usage Based Billing.
- Price (required): Base recurring price with currency.
- Discount Applicable (%): Optional percentage discount applied to the base price; reflected in checkout and invoices.
- Repeat payment every (required): Interval for renewals, e.g., every 1 Month. Select the cadence (months or years) and quantity.
- Subscription Period (required): Total term for which the subscription remains active (e.g., 10 Years). After this period ends, renewals stop unless extended.
- Trial Period Days (required): Set trial length in days. Use 0 to disable trials. The first charge occurs automatically when the trial ends.
- Select add‑on: Attach up to 10 add‑ons that customers can purchase alongside the base plan.
Add‑ons are ideal for quantifiable extras such as seats or storage. You can control allowed quantities and proration behavior when customers change them.
Advanced settings
- Tax Inclusive Pricing: Display prices inclusive of applicable taxes. Final tax calculation still varies by customer location.
- Generate license keys: Issue a unique key to each customer after purchase. See the License Keys guide.
- Digital Product Delivery: Deliver files or content automatically after purchase. Learn more in Digital Product Delivery.
- Metadata: Attach custom key–value pairs for internal tagging or client integrations. See Metadata.
Subscription Trials
Trials let customers access subscriptions without immediate payment. The first charge occurs automatically when the trial ends.Configuring Trials
Set Trial Period Days in the product pricing section (use0 to disable). You can override this when creating subscriptions:
Detecting Trial Status
To determine if a subscription is in trial, retrieve the list of payments for the subscription. If there is exactly one payment with amount 0, the subscription is in trial period:Updating Trial Period
Extend the trial by updatingnext_billing_date:
Subscription Plan Changes
プラン変更によりサブスクリプションをアップグレードまたはダウングレードしたり、数量を調整したり、別の製品に移行したりできます。選択した比例計算モードに応じて、変更は即時課金をトリガーしたり、クレジットを生成したり、請求調整を適用しない場合があります。Product Collections
Group related products into collections to enable seamless upgrade/downgrade paths in the Customer Portal.
Proration Modes
Choose how customers are billed when changing plans:4つの比例計算モードの簡単な比較:
prorated_immediately | difference_immediately | full_immediately | do_not_bill | |
|---|---|---|---|---|
| アップグレード | 残りの日数に対する日割り課金 | 差額の全額課金 | 新しいプランの全額課金 | 無料 — 即時切替 |
| ダウングレード | 残りの日数に対する日割りクレジット | 差額の全額がクレジット | クレジットなし、全額課金 | クレジットなし — 即時切替 |
| 請求サイクル | 今日から再設定 | 今日から再設定 | 今日から再設定 | 変更なし |
| 最適な用途 | 公平な時間ベースの請求 | シンプルなティア変更 | 請求サイクルのリセット | 無料移行または特別スイッチ |
prorated_immediately
Charges prorated amount based on remaining time in the current billing cycle. Best for fair billing that accounts for unused time.
difference_immediately
Charges the price difference immediately (upgrade) or adds credit for future renewals (downgrade). Best for simple upgrade/downgrade scenarios.
difference_immediately を使用したダウングレードによるクレジットはサブスクリプション単位で適用され、今後の更新に自動的に適用されます。これらはCredit-Based Billing の権利とは異なります。difference_immediately, the unused value becomes a subscription-scoped credit that automatically offsets future renewals:
full_immediately
Charges full new plan amount immediately, ignoring remaining time. Best for resetting billing cycles.
do_not_bill
請求調整なしで新しいプランに切り替えます。比例課金もクレジットもなし—単に新しいプランに移行します。特に丁寧な移行、無料プランの切り替え、またはコスト差異を吸収したい場合に適しています。
Example: Prorated upgrade calculation
Example: Prorated upgrade calculation
シナリオ: BASIC(80/月)にアップグレードする場合は次回更新日: 2月15日(1月16日 + 30日): $80.00/月。
prorated_immediatelyを使用します。Example: Downgrade credit calculation
Example: Downgrade credit calculation
シナリオ: PRO(20/月)にダウングレードする。$60のクレジットは自動的に将来の更新に適用されます:
- 更新1: 20 (クレジット) = **40 クレジット残)
- 更新2: 20 (クレジット) = **20 クレジット残)
- 更新3: 20 (クレジット) = $0.00 (クレジット消費済)
- 更新4: $20.00 (全額)
クレジットがどのように管理されるかについては、アップグレード&ダウングレードガイドをご覧ください。
アドオンを伴うプラン変更
プラン変更時にアドオンを修正します。アドオンは比例計算に含まれます:プラン変更は即時課金を引き起こします。課金が失敗した場合、サブスクリプションは
on_hold状態に移行することがあります。変更の追跡はsubscription.plan_changed webhookイベントを介して行います。プラン変更のプレビュー
プラン変更をコミットする前に、正確な料金と結果としてのサブスクリプションをプレビューします:Preview Change Plan API
プラン変更をコミットする前にプレビューします。
サブスクリプション状態
サブスクリプションはそのライフサイクルを通じて、定義された一連のステータスを移動します。この表は各ステータス、その原因、回復方法(または回復の可否)に関する参照です。| ステータス | 意味 | 回復可能? | 回復経路 / 次のステップ |
|---|---|---|---|
pending | サブスクリプションの作成または処理中です | — | subscription.active(またはsubscription.failed)を待ちます |
active | サブスクリプションがアクティブで、自動的に更新されます | — | 何もする必要はありません |
on_hold | 更新支払い(またはプラン変更料)が失敗し、サブスクリプションが一時停止されています | はい | 支払い再試行と督促を使用して自動的に、または支払い方法更新APIを通じて手動で支払い方法を更新して再有効化します |
cancelled | サブスクリプションがキャンセルされ、更新されません | 再購入のみ | 顧客は新しいサブスクリプションを開始する必要があります。督促は再購入を促す可能性があります |
failed | サブスクリプションの作成が失敗しました(初期の支払いが成功しませんでした) | いいえ — 終端 | 顧客は機能している支払い方法で新しいサブスクリプションを作成する必要があります |
expired | サブスクリプションがその期間の終わりに到達しました | — | 顧客が必要とすれば、新しいサブスクリプションを開始する必要があります |
ステートマシン
保留状態
サブスクリプションがon_hold 状態になるとき:
- 更新支払いの失敗(資金不足、カードの期限切れなど)
- プラン変更料の失敗
- 支払い方法の承認失敗
保留からの再有効化
on_hold 状態のサブスクリプションを再有効化するには、支払い方法を更新します。これにより、自動的に:
- 残額の請求が行われます
- 請求書が作成されます
- 新しい支払い方法での支払いが処理されます
- 支払いが成功すると、サブスクリプションが
active状態に再有効化されます
on_hold サブスクリプションの支払い方法の更新に成功すると、payment.succeeded が続く subscription.active Webhook イベントが受信されます。トランジションによるWebhookイベント
各トランジションはWebhookを出力し、ポーリングせずに権利のロジックを駆動できます:| トランジション | イベント |
|---|---|
| サブスクリプションがアクティブ化 | subscription.active |
| 更新が成功 | subscription.renewed |
| 更新失敗 → 一時停止 | subscription.on_hold |
| 作成失敗 | subscription.failed |
| プランのアップグレード/ダウングレード | subscription.plan_changed |
| キャンセル | subscription.cancelled |
| 期間終了 | subscription.expired |
| フィールドの変更 | subscription.updated |
Subscription Webhook Payloads
サブスクリプションライフサイクルイベントの完全なペイロードスキーマを表示します。
API管理
Create subscriptions
Create subscriptions
POST /subscriptions を使用して、商品からプログラム的にサブスクリプションを作成し、オプションのトライアルやアドオンを追加します。API Reference
サブスクリプション作成APIを表示します。
Update subscriptions
Update subscriptions
PATCH /subscriptions/{id} を使用して、数量を更新し、次の請求日にキャンセルするか、メタデータを変更します。API Reference
サブスクリプションの詳細を更新する方法を学びます。
Change plans (proration)
Change plans (proration)
アクティブな商品と数量を変えて、比率調整を行います。
API Reference
プラン変更のオプションを確認します。
On‑demand charges
On‑demand charges
オンデマンドサブスクリプションで、特定の金額を請求します。
API Reference
オンデマンドサブスクリプションを請求します。
List and retrieve
List and retrieve
GET /subscriptionsを使用してすべてのサブスクリプションをリストし、GET /subscriptions/{id}を使用して1つを取得します。API Reference
リストおよび取得APIを参照します。
Usage history
Usage history
記録された使用量をメーター制またはハイブリッド価格モデルで取得します。
API Reference
使用履歴APIを表示します。
Update payment method
Update payment method
サブスクリプションの支払い方法を更新します。アクティブなサブスクリプションでは、今後の更新に対して支払い方法を更新します。
on_hold 状態のサブスクリプションの場合、残額の請求を作成することでサブスクリプションを再有効化します。新しい支払い方法リンク(Newリクエストタイプ)を生成する際、顧客がそのページで見える支払い方法を制限するためにallowed_payment_method_typesを渡すことができます。顧客はリストにない方法を見ることはありませんが、方法を含めることがそれが表示されることを保証するわけではありません(可用性は、顧客の所在地やビジネスの設定などの要因に依存します)。API Reference
支払い方法を更新してサブスクリプションを再有効化する方法を学びます。
一般的なユースケース
- SaaSとAPI: 座席や使用量のアドオン付きの階層的なアクセス
- コンテンツとメディア: オープニングトライアル付きの月額アクセス
- B2Bサポートプラン: プレミアムサポートアドオン付きの年間契約
- ツールとプラグイン: ライセンスキーとバージョンリリース
統合例
チェックアウトセッション(サブスクリプション)
チェックアウトセッションを作成するとき、サブスクリプション商品とオプションのアドオンを含めます:比率調整を伴うプラン変更
サブスクリプションをアップグレードまたはダウングレードし、比率調整の動作を制御します:次の請求日でのキャンセル
現在の請求期間の終わりに発効するキャンセルをスケジュールします:オンデマンドサブスクリプション
必要に応じて後で請求するオンデマンドサブスクリプションを作成します:アクティブなサブスクリプションの支払い方法の更新
アクティブなサブスクリプションの支払い方法を更新します:on_holdからのサブスクリプション再有効化
支払いの失敗により一時停止されたサブスクリプションを再有効化します:RBI準拠のマンダテを持つサブスクリプション
UPIとインドのカードサブスクリプションは、RBI(インド準備銀行)の規制の下で運営され、特定のマンダテ要件があります:マンダテ制限
お客様のサブスクリプションの定期的な請求に応じて、マンダテのタイプと金額が決まります:- マンダテフロア(デフォルト₹15,000)未満の請求: マンダテフロアの金額分のオンデマンドマンダテを作成します。サブスクリプション金額は、サブスクリプションの頻度に従って定期的に、マンダテ制限内で請求されます。
- マンダテフロアと同額またはそれ以上の請求: 正確なサブスクリプション金額のサブスクリプションマンダテ(またはオンデマンドマンダテ)を作成します。
mandate_min_amount_inr_paise(インドルピーのパイセ単位)を通じて要求ごとに構成可能です。銀行に登録される金額は max(mandate_floor, billing_amount) ですので、請求が低い場合にはフロアは実質的に顧客向けの認証上限になります。
インドの支払い方法に関するRBI準拠のマンダテと構成可能なマンダテフロアの詳細については、「インドの支払い方法」ページを参照してください。
アップグレードとダウングレード時の考慮事項
重要: サブスクリプションをアップグレードまたはダウングレードするときは、マンダテ制限を慎重に考慮してください:- アップグレード/ダウングレードがRs 15,000を超える請求額になり、既存のオンデマンド支払い限度を超えた場合、トランザクション請求が失敗する可能性があります。
- その場合、お客様は支払い方法を更新するか、正しい限度で新しいマンダテを設定するためにサブスクリプションを再度変更する必要があるかもしれません。
高額請求の承認
Rs 15,000以上のサブスクリプション請求の場合:- お客様は銀行によりトランザクションの承認を求められます。
- お客様がトランザクションを承認できない場合、トランザクションは失敗し、サブスクリプションは一時停止されます。
48時間の処理遅延
処理タイムライン: インドのカードとUPIサブスクリプションの定期的な請求は独自の処理パターンに従います:- 請求はサブスクリプション頻度に従って予定された日に開始されます。
- 実際の顧客口座からの控除は、支払い開始から48時間後にのみ行われます。
- この48時間のウィンドウは、銀行のAPI応答に応じて2〜3時間延長される可能性があります。
マンダテキャンセルウィンドウ
48時間の処理ウィンドウ中:- 顧客は銀行アプリを通じてマンダテをキャンセルできます。
- 顧客がこの期間中にマンダテをキャンセルした場合、サブスクリプションはアクティブのままです(これはインドのカードおよびUPI自動支払いサブスクリプションに特有のエッジケースです)。
- しかし、実際の控除が失敗した場合、サブスクリプションは一時停止されます。
- 支払い確認まで利益提供を遅延させる
- 猶予期間や一時的なアクセスを実施する
- マンダテキャンセルのためにサブスクリプション状況を監視する
- アプリケーションロジックでサブスクリプションの保持状態を処理する
ベストプラクティス
- 明確な階層で始める: 2〜3の計画で明確な違いを持つ
- 価格を明確にする: 合計、比率、次回の更新を表示
- トライアルを賢く使う: 時間だけでなくオンボーディングで変換を促進
- アドオンを活用する: 基本プランをシンプルに保ち、追加をアップセル
- 変更をテストする: テストモードでプラン変更と比率を検証する
サブスクリプションは、繰り返し収益を得るための柔軟な基盤です。シンプルに開始し、徹底的にテストし、採用率、チャーン、拡張メトリクスに基づいて反復を行います。