ItemWithPriceData
Subscription item with inline pricing. Use this to create subscription-specific pricing without a pre-existing catalog price.
price _data requiredInline pricing details for a subscription item. Use this when you want to specify custom pricing directly rather than referencing an existing catalog price. Either
unit_amountorunit_amount_decimalis required.Note:
currencyis required when usingprice_datafor inline pricing.- Type: integer | null
unit _amount min:0requiredAmount in the smallest currency unit (e.g. cents for USD).
- Type: string
currency min length:3max length:3Three-letter ISO currency code (e.g.
usd,eur). Required for inline pricing. - Type: string
product Product ID from your catalog.
- Type: object · RecurringConfig
recurring Recurring billing configuration.
- Type: string | null
unit _amount _decimal Pattern: ^\d+(?:\.0+)?$Amount as a decimal string for high-precision pricing.
- Type: string
currency min length:3max length:3Three-letter ISO currency code (optional at root level when price_data is provided).
- Type: integer
quantity min:1Quantity of the subscription item.
- Type: object · RecurringConfig
recurring Recurring billing configuration.
- Type: stringenum
interval requiredBilling frequency (uppercase):
daily— every dayweekly— every weekmonthly— every monthyearly— every year
valuesdaily weekly monthly yearly
- Type: integer
interval _count min:1Number of intervals between billings. For example,
interval=monthlyandinterval_count=3bills every 3 months. - Type: integer | null
interval _total _cycles min:1Total number of billing cycles before the subscription ends. Null means unlimited.
- Type: stringenum
usage _type Usage type for billing:
licensed— a fixed recurring charge per billing cyclemetered— charge based on reported usage
valueslicensed metered

