API v2 is in beta (
2.0.0-beta), served under /api/v2. API v1 (/api/v1) stays supported. The two versions document separate objects: v2 invoice and fee endpoints return Contract invoices and Product fees, not v1 subscription fees.Why a new model?
The contract-based model gives you more flexibility to manage pricing as your business evolves. Prices are defined in Rates and organized into Rate Cards, separately from Plans. This makes it easier to introduce new prices, define pricing phases and override pricing for individual items. Explore the documentation to understand how Products, Rate Cards, Plans and Contracts work together, or start with Your first invoice to build a complete example.What changed
In v1, a Plan holds charges, and a charge prices one billable metric with a charge model. The Plan also carries the subscription fee and a single billing interval. In v2, pricing is split into reusable layers:- A Product defines what you sell. A fixed Product uses a configured quantity. A metered Product uses a billable metric to measure usage.
- A Rate Card holds Rates and shared billing settings for a Product or Product filter, including currency, billing timing and adjustments for part of a billing period.
- A Rate defines the price, pricing model, effective date and billing interval.
- A Plan combines applied Rate Cards in one currency. Each applied Rate Card can define
unitsand a sequence ofrate_phases. - A Contract applies billing terms to a customer.
Compare the billing models
Your first invoice
Build the $100 monthly fee plus $0.01 per API call example.
Product Catalog
Define the Products you sell and their filters.
Rate Cards
Configure billing settings and prices over time.
API reference
Find endpoints and request fields under
/api/v2.