Create a billing plan
Creates a new agency billing plan with pricing models, quotas, permissions, and overages configuration. At least one pricing model with currency, price, billing cycle, interval, and transaction fees is required.
Note: At least one of price, transaction_fees, or transaction_fees_cents
must be greater than zero in each pricing model.
Body Parameters
Tax category (always "Agency Billing Plan")
Agency Billing PlanPricing configurations for different currencies and billing cycles. At least one of price, transaction_fees, or transaction_fees_cents must be greater than zero.
Three-letter ISO currency code
Base price in smallest currency unit (e.g. cents)
Percentage transaction fee (0–100)
Fixed transaction fee in smallest currency unit per transaction
Billing frequency unit
dayweekmonthyearNumber of billing cycles between charges (e.g. 1 = every month, 3 = quarterly)
Whether this plan can be purchased by clients
Whether this plan is visible to clients
Whether this plan is currently on sale
Whether discount codes can be applied
Whether this plan has unlimited availability
Trial period in days (0 for no trial)
Number of payment retry attempts for failed charges (0–3)
Action to take when subscription fails after all retries
cancelpauseWhen cancellation takes effect
immediateend_of_periodShort text that appears on credit card statements
Multilingual content keyed by language code. Each language object must contain a title.
Resource quotas for clients on this plan
Maximum number of automations allowed
Maximum number of transactions per billing cycle
Maximum data transfer in GB per billing cycle
Maximum storage in GB
Maximum number of languages
Maximum number of products
Maximum number of custom domains
Maximum number of currencies
Maximum number of team members
Maximum number of API requests per billing cycle
Maximum number of newsletter sends per billing cycle
Maximum number of AI generation requests
Number of SMS credits included per billing cycle
Feature permissions for clients on this plan. Each key is a feature area (e.g. products, invoices, customers) containing an object with boolean permissions (view, create, edit, remove, etc.)
Overage pricing when quotas are exceeded
Whether overage charges are passed to the client
Whether to automatically charge clients for overages
Price per GB for storage overage
Price per GB for data transfer overage
Price per transaction overage
Price per additional domain
Price per additional language
Price per additional currency
Price per additional client
Price per additional newsletter send
Price per additional teammate
{
"tax_category": "Agency Billing Plan",
"pricing_model": [
{
"currency": "EUR",
"price": 2999,
"billing_cycle": "month",
"interval": 1,
"transaction_fees": 0,
"transaction_fees_cents": 0
}
],
"buyable": true,
"shown": true,
"on_sale": true,
"discount_allowed": true,
"unlimited_stock": false,
"trial_period": 14,
"retries": 3,
"cancel_action": "cancel",
"cancel_behaviour": "end_of_period",
"descriptor": "ACME STARTER",
"languages": {
"en": {
"title": "Starter Plan",
"description": "Perfect for small businesses"
}
},
"quotas": {
"automations_quota": 50,
"transaction_quota": 1000,
"datatransfer_quota": 10,
"storage_quota": 5,
"languages_quota": 3,
"products_quota": 100,
"domains_quota": 3,
"currencies_quota": 5,
"teammates_quota": 5,
"api_quota": 1000000,
"newsletters_quota": 5000,
"ai_quota": 100,
"sms_balance": 500
},
"overages": {
"client_overage": true,
"charge_client_overage": true,
"storage": 0.5,
"datatransfer": 0.1,
"transactions": 0.05,
"domains": 5,
"languages": 3,
"currencies": 2,
"clients": 10,
"newsletters": 0.01,
"teammates": 8
}
}
Responses
Billing plan created successfully
Validation or business-logic error.
| Code | Description |
|---|---|
400 | Schema validation failed |
Unauthorized – invalid or missing Bearer token