Pricing
Configure fixed or instalment pricing models for your subscriptions.
Overview
When creating a subscription, you define a price that determines how much to charge and how often. Subscriptions support two pricing models: fixed and instalment.
Fixed pricing
A fixed amount is charged on each billing cycle. Set usage_type to fixed and provide the amount. Don't send cycles with a fixed price. usage_type is required for both models.
{
"usage_type": "fixed",
"amount": 19.99,
"currency": "GBP",
"cycle_details": {
"interval": "month",
"interval_count": 1,
"limit": 12
}
}Instalment pricing
A different amount is charged on each billing cycle. Set usage_type to instalment and provide a cycles array defining the amount for each cycle. Don't send amount with an instalment price.
Cycles are numbered from 1, matching the bill's cycle_number, and cycle 1 is required. Provide an entry for every cycle up to the limit: a bill whose cycle has no entry can't be charged.
{
"usage_type": "instalment",
"currency": "GBP",
"cycle_details": {
"interval": "month",
"interval_count": 1,
"limit": 3
},
"cycles": [
{ "cycle": 1, "amount": 20 },
{ "cycle": 2, "amount": 20 },
{ "cycle": 3, "amount": 19 }
]
}Cycle details
The cycle_details object controls the billing frequency and duration:
| Field | Description |
|---|---|
interval | The billing interval (e.g., day,week,month, year). |
interval_count | The number of intervals between each bill (e.g., 2 with month means every two months). |
limit | The maximum number of billing cycles. If omitted, the subscription continues indefinitely. |
NoteThe
limitfield withincycle_detailsis optional. If omitted, the subscription will continue indefinitely until cancelled via the API.
Updating the price
You can update the amount of an existing subscription's price by submitting a PATCH request to the /subscriptions/{subscription_id}/price endpoint:
{
"amount": 24.99
}- The
amountis in major currency units and must be greater than or equal to zero, with no more decimal places than the price's currency allows. - The subscription must be in
incomplete,activeortrialingstatus. - Only
fixedprices can be updated —instalmentpricing does not support amount updates.
For more information, see the update price API reference.
Updated 15 days ago