v13

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-04237161688.6 KB
Billing

Create a custom billing price

Creates a custom price for a billing plan. Custom prices allow you to offer different pricing to specific customers while maintaining the same plan structure.

post/billing/prices

Request body

plan_idstring required

The ID of the plan this price belongs to.

currencystring

The currency code (e.g., "USD"). Defaults to USD.

amountinteger nullable required

The monthly amount in cents. Must be at least $1 (100 cents) if not null.

annual_monthly_amountinteger nullable

The monthly amount in cents when billed annually. Must be at least $1 (100 cents) if not null.

descriptionstring

An optional description for this custom price.

supported_billing_periods'month' | 'annual' | 'both'

Which billing periods this price supports. Inferred from amounts if omitted.

Response

A billing price.

object'commerce_price' required

String representing the object's type. Objects of the same type share the same value.

idstring required

Unique identifier for the price.

plan_idstring required

Unique identifier for the associated plan.

instance_idstring required

Unique identifier for the instance.

currencystring required

The currency code (e.g., "USD").

currency_symbolstring required

The currency symbol (e.g., "$").

amountinteger required

The amount in cents for the price.

annual_monthly_amountinteger required

The monthly amount in cents when billed annually.

descriptionstring nullable

The description of the price.

is_defaultboolean required

Whether this price is the default price for its plan.

created_atinteger required

Unix timestamp (milliseconds) of creation.

supported_billing_periods'month' | 'annual' | 'both' required

Which billing periods this price supports.