Skip to main content
Seat-based billing charges customers based on the number of users on their account. Dodo Payments implements it using the add-on system: a base subscription product plus a per-seat add-on whose quantity represents the seat count.

Implementation Tutorial

Step-by-step guide with code examples.

Add-ons Documentation

Learn about the add-on system that powers seat-based billing.

Subscription Management

Manage seat-based subscriptions and plan changes.

Webhooks

Track seat changes with subscription webhooks.

What is Seat-Based Billing?

Seat-based billing charges customers based on the number of users who access your product. Instead of a flat fee, the price scales with team size.

Common Use Cases

Benefits of Seat-Based Pricing

For Your Business:
  • Revenue scales as customers grow
  • Customers can budget predictably
  • Clear upgrade path from individual to team to enterprise
  • Higher lifetime value as teams expand
For Your Customers:
  • Pay only for the users they have
  • Easy to understand and forecast costs
  • Add or remove users as needed
  • Fair pricing that matches team size

How It Works

Dodo Payments implements seat-based billing using the Add-ons system. A seat-based subscription has two parts: The customer’s monthly total is:
Example: 8 extra seats on a Team Plan

Pricing Strategies

Choose the seat-based pricing strategy that fits your business:

Strategy 1: Base + Per-Seat Add-on

Include a set number of seats in the base plan, charge for additional seats.
Best for: Products where small teams can function with the base offering.

Strategy 2: Pure Per-Seat Pricing

Charge a flat rate per seat with no base fee.
Implementation: Set the base plan price to $0 and use only the seat add-on. Best for: Simple, transparent pricing.

Strategy 3: Tiered Seat Pricing

Different base plans with different per-seat rates.
Implementation: Create separate products for each tier with different add-on prices. Best for: Encouraging upgrades to higher tiers; enterprise sales.

Strategy 4: Seat Bundles

Sell seats in packs rather than individually.
Implementation: Create multiple add-ons for different pack sizes. Best for: Simplifying purchasing decisions; encouraging larger commitments.

Setting Up Seat-Based Billing

Step 1: Plan Your Pricing

Before implementation, define your pricing structure:
1

Define Base Plan

Decide what’s included in the base subscription:
  • Base price (can be $0 for pure per-seat)
  • Number of included seats
  • Features available at this tier
2

Set Seat Pricing

Determine the per-seat add-on cost:
  • Price per additional seat
  • Any volume discounts (via multiple add-ons)
  • Maximum seats allowed (if applicable)
3

Consider Billing Frequency

Align seat pricing with your billing cycle:
  • Monthly subscriptions → monthly seat charges
  • Annual subscriptions → annual seat charges (often discounted)

Step 2: Create the Seat Add-on

In your Dodo Payments dashboard:
  1. Navigate to Products → Add-Ons
  2. Click Create Add-On
  3. Configure the add-on:
Use descriptive add-on names that make sense on invoices. “Additional Team Seat” is clearer than “Seat Add-on” for customers reviewing their bills.

Step 3: Create the Base Subscription

Create your subscription product:
  1. Navigate to Products → Create Product
  2. Select Subscription
  3. Configure pricing and details
  4. In the Add-Ons section, attach your seat add-on

Step 4: Attach Add-on to Product

Link the seat add-on to your subscription:
  1. Edit your subscription product
  2. Scroll to Add-Ons section
  3. Click Add Add-Ons
  4. Select your seat add-on
  5. Save changes
Your subscription product now supports seat-based pricing. Customers can purchase any quantity of additional seats during checkout.

Managing Seats

Adding Seats to New Subscriptions

When creating a checkout session, specify the seat quantity:

Changing Seat Count on Existing Subscriptions

Use the Change Plan API to adjust seats. The addons array sets the new total seat count (not the delta).

Removing Seats

To reduce seat count, specify the lower quantity:

Removing All Additional Seats

Pass an empty addons array to remove all add-ons:

Proration for Seat Changes

When a seat change is applied mid-cycle, Dodo Payments calculates the immediate charge in three steps:
The credit amount depends on the proration mode you choose. The charge is always a full cycle.
The charge is always for a full cycle. Only the credit varies by mode. This is why the amount charged is rarely “new seats × price × days remaining”.With prorated_immediately, the credit shrinks as the cycle progresses, so the same seat change costs more the later it is made. With difference_immediately and full_immediately, the credit does not depend on timing, so those two cost the same on any day of the cycle.

How Each Mode Credits

With difference_immediately, the customer pays only the gap between the old plan price and the new plan price. That is where the name comes from, and it is why the amount is the same whenever in the cycle the change is made. If the credit is larger than the new cycle charge, the difference is held as subscription-scoped credit and applied automatically to future renewals.
prorated_immediately, difference_immediately, and full_immediately all reset the billing cycle to the change date. The next renewal is re-anchored to the day the seat change is applied. Only do_not_bill keeps the original renewal date (the new seat count is billed in full at the next renewal, with no charge at the time of change).
do_not_bill applies the seat change immediately, not at renewal. The new seat count takes effect as soon as the call succeeds, but nothing is charged until the next renewal.When adding seats, the customer has them free for the rest of the current cycle. Adding 5 seats at $10 on day 1 of a 30-day cycle gives them 5 free seats for 29 days, and the higher amount is first charged on the original renewal date.When removing seats, the reverse applies: the seats are withdrawn immediately and no credit is given for the part of the cycle already paid for.Use do_not_bill when that is what you intend, such as a courtesy upgrade or a sales-agreed trial of extra seats.

Worked Example: Adding 5 Seats

One scenario run through all four modes, so the numbers are directly comparable.
In all three immediate modes, the customer receives a full new month at $130 in exchange for what they pay today.

Why Timing Matters for prorated_immediately

The same change costs more the later in the cycle it is made, because less of the current cycle is left to credit back.
The customer receives a full new month in every row. Only the split between “already paid for” and “paying now” changes. To make a seat change cost the same regardless of when it happens, use difference_immediately.

Worked Example: The “Surprising Charge”

This is the case that most often surprises merchants. Adding a small seat add-on late in the cycle can produce a charge much larger than the add-on’s price.
Adding a $10/month seat costs $55.00 with prorated_immediately. The customer is charged for a full new month at $60 and credited the $5 that was left on the old month, and their renewal date resets. To make small mid-cycle additions cost the seat price and nothing more, use difference_immediately.

Worked Example: Removing Seats (Downgrade)

When the new plan costs less than the credit, the excess is held as subscription credit and applied automatically to future renewals of this subscription. It is not added to the Customer Wallet and is not a credit entitlement.
The credit covers the entire subscription, base plan and all add-ons, not only the seats being removed.

Reading the Preview Response

previewChangePlan returns the exact line items that will be billed. Each line item has a proration_factor:
Reading that: $50 base and 3 × $10 addon credited at 50%, a full $50 base charged, and 8 × $10 addon charged. Credit = $40, charge = $130, net = $90.
Proration is calculated to the second based on the exact time of the change, not rounded to the nearest day. The worked examples above use round day-boundary numbers for clarity.
Choosing a proration mode for seat changes
  • difference_immediately — the customer pays the price difference, whenever the change is made. Most predictable for teams that adjust seats often, and easiest to explain in your UI.
  • prorated_immediately — the customer is credited only for the time left on the current cycle. Costs more the later in the cycle the change is made.
  • full_immediately — the customer pays for a full new cycle with no credit for unused time.
  • do_not_bill — the seat change takes effect immediately but nothing is charged now. Added seats are free until the next renewal; removed seats are withdrawn with no credit. The renewal date is preserved and the new seat count is billed in full from that renewal onwards. The only mode that does not reset the billing cycle.
Seats granted through do_not_bill are not credited on a later plan change, because they were never billed. If you add 5 seats with do_not_bill and then change to 3 seats, the customer is billed for 3 seats in full with no credit for the 5 they were holding.
Always call previewChangePlan and show the returned amount before confirming. See the Proration Guide for detailed comparisons.

Preview Before Changing

Always preview proration before making changes:

Tracking Seats with Webhooks

Monitor seat changes by listening to subscription webhooks:

Relevant Events

Webhook Handler Example

The addons array in the webhook payload contains the current addon quantities. Sum them to get the total seat count. If your base plan includes seats (e.g. 5 included), add that to the addon total in your application logic.

Enforcing Seat Limits

Your application must enforce seat limits. Dodo Payments tracks billing, but you control access.
Strictly prevent adding users beyond the seat count.

Advanced Patterns

Different Seat Types

Offer different seat types with different pricing:
Implementation: Create separate add-ons for each seat type.

Annual Seat Discounts

Offer discounted annual seat pricing:
Implementation: Create separate products for monthly and annual plans with different add-on prices.

Minimum Seat Requirements

Require a minimum number of seats for certain plans:

Best Practices

Pricing Best Practices

  • Clear Communication: Show per-seat pricing prominently on your pricing page
  • Included Seats: Consider including a few seats in the base price to reduce friction
  • Volume Discounts: Offer lower per-seat rates for larger teams to win enterprise deals
  • Annual Incentives: Discount annual plans to improve cash flow and retention

Technical Best Practices

  • Cache Seat Counts: Cache subscription seat counts locally to avoid API calls on every request
  • Sync Regularly: Periodically sync your local seat count with Dodo Payments via API
  • Handle Failures: If a seat change fails, show clear error messages and retry options
  • Audit Trail: Log all seat changes for billing disputes and compliance

User Experience Best Practices

  • Real-Time Feedback: Show the cost impact immediately when adjusting seats
  • Confirmation Steps: Require confirmation before billing changes
  • Proration Transparency: Explain prorated charges clearly before applying
  • Easy Downgrades: Don’t make it difficult to reduce seats (it builds trust)

Troubleshooting

Symptom: Your app shows a different seat count than the subscription.Causes:
  • Webhook not received or processed
  • Race condition during seat change
  • Cached data not updated
Solutions:
  1. Implement webhook handlers for subscription.plan_changed
  2. Add a “Sync with billing” button that fetches current subscription
  3. Set cache TTL to ensure regular refresh
Symptom: Customer confused by mid-cycle charge amount.Cause: Using prorated_immediately late in the billing cycle (see The Surprising Charge example above).Solutions:
  1. Always use previewChangePlan before making changes
  2. Show clear breakdown: “Adding X seats will cost $Y today”
  3. Switch to difference_immediately if you want the charge to always match the price difference
Symptom: Seat add-on not available during checkout.Causes:
  • Add-on not attached to product
  • Add-on archived or deleted
  • Currency mismatch between product and add-on
Solutions:
  1. Verify add-on is attached in product settings
  2. Check add-on status in Add-Ons dashboard
  3. Ensure currencies match exactly
Symptom: Customer wants to reduce seats but has users assigned.Solutions:
  1. Show which users must be removed before reducing seats
  2. Implement a workflow: Remove users → Reduce seats
  3. Consider a grace period before enforcing seat reduction

Seat-Based Pricing Tutorial

Complete implementation guide with code.

Add-ons

Understand the add-on system in depth.

Plan Changes & Proration

Handle subscription modifications.

Subscription Webhooks

Track subscription events.
Last modified on September 25, 2026