Saltar al contenido principal

Prices

A price says how much a product costs and how often it bills. A RECURRING price bills each period; a ONE_TIME price bills once. Only a RECURRING price can start a subscription.

Pass a price ID as priceId when you create or update a subscription. The subscription copies the amount, currency and recurring. The amount is unitAmount, plus the tax of the product's tax rate for an EXCLUSIVE price. A later change to the price never changes a subscription that already exists.

Prices do not change​

Only active, nickname and metadata can change. To change the amount, the currency or the billing period, create a new price and switch the subscriptions to it.

Prices are never deleted. Set active to false to archive one. A subscription that already uses an archived price keeps working, but a subscription cannot start from it or switch to it.