Prices
The price object
A price sets how much a product costs, in which currency and how often it is billed: once, on a recurring interval, or per unit of usage reported to a meter. The amount and billing terms of a price can't be changed after it is created; create a new price instead, and archive the old one with active: false.
Attributes
idstringRequiredUnique identifier for the object.
objectstringRequiredString naming the object's type.
livemodebooleanRequiredtruewhen the object exists in live mode,falsein test mode.createdtimestampRequiredTime the object was created, in Unix seconds.
updatedtimestampRequiredTime the object last changed, in Unix seconds.
productstringRequiredID of the product this price belongs to.
currencystringRequiredThree-letter ISO 4217 currency code, in lowercase.
amountintegerRequiredUnit amount in the smallest currency unit (for example,
49900is 499.00 THB). For a usage-based price it is charged per unit of usage.0for a tiered price created withoutamountand for a price set with a fractionalunit_amount_decimal.billing_schemestringRequiredHow the unit amount is worked out:
per_unitusesamount,tieredusestiers.per_unitEach unit costs
amount.tieredThe unit price comes from
tiers.
recurring_intervalenumRequiredBilling period of a recurring or usage-based price:
day,week,monthoryear. Empty string for a one-time price.A one-time price, billed once.
dayBills every
recurring_interval_countdays.weekBills every
recurring_interval_countweeks.monthBills every
recurring_interval_countmonths.yearBills every
recurring_interval_countyears.
recurring_interval_countintegerRequiredNumber of
recurring_intervals between billings; for example3withmonthbills every three months.1for a one-time price.usage_typestringRequiredmeteredfor a usage-based price, which is billed on the usage reported to its meter; empty string otherwise.meteredBilled on the usage reported to the price's meter during each period.
scaling_factorintegerRequiredNumber of smallest currency units in one major unit of
currency(for example,100for THB), soamount / scaling_factoris the amount in major units.tiersarray of objectsRequiredNullableTiers of a
tieredprice, in order. Each hasup_to, the highest quantity the tier covers (null for the last, unbounded tier),unit_amount, the price per unit in the smallest currency unit,unit_amount_decimalin its place for a fractional unit price, and, when set,flat_amount, a fixed amount added once for the tier. Null when the price is not tiered.Show child attributes
tiers.up_tointegerRequiredNullableHighest quantity this tier covers; null on the last tier, which covers every quantity above the one before.
tiers.unit_amountintegerRequiredPrice per unit in this tier, in the smallest currency unit.
0when the tier is priced withunit_amount_decimal.tiers.unit_amount_decimalstringNullablePrice per unit in this tier as a decimal string in the smallest currency unit, for a fractional unit price. Omitted when the tier is priced with
unit_amount.tiers.flat_amountintegerA fixed amount added once when the quantity reaches this tier, in the smallest currency unit. Omitted when the tier has none.
tiers_modestringRequiredNullableHow a
tieredprice uses its tiers, as Stripe does. Null when the price is not tiered.graduatedThe default. Units in each tier are priced at that tier's
unit_amount, and theflat_amountof every tier the quantity reaches is added.volumeEvery unit is priced at the tier the whole quantity falls in, plus that tier's
flat_amount.
metadataobjectRequiredKey-value pairs for your own use, set when the price is created; an update that sends
metadatareplaces it.{}when none was set.unit_amount_decimalstringRequiredNullableUnit amount in the smallest currency unit as a decimal string with up to 12 decimal places, for example
"0.04", for usage prices below one minor unit. Null when the price was created withamountortiers.unit_amountintegerRequiredNullableUnit amount in the smallest currency unit, as Stripe names it: the same as
amountfor a per-unit price. Null for atieredprice and for a price set with a fractionalunit_amount_decimal.recurringobjectRequiredNullableBilling schedule of a recurring or usage-based price, in Stripe's shape (
interval,interval_count,usage_type,meter). Null for a one-time price.Show child attributes
recurring.intervalstringRequiredBilling period:
day,week,monthoryear.dayBills every
interval_countdays.weekBills every
interval_countweeks.monthBills every
interval_countmonths.yearBills every
interval_countyears.
recurring.interval_countintegerRequiredNumber of
intervals between billings; for example3withmonthbills every three months.recurring.usage_typestringRequiredlicensedbills the subscription quantity each period;meteredbills the usage reported tometerduring the period.licensedBilled on the quantity of the subscription item.
meteredBilled on the usage reported to the meter during each period.
recurring.meterstringRequiredNullableID of the meter a
meteredprice bills from. Null otherwise.
activebooleanRequiredWhether the price can be used on new documents.
falseonce the price is archived withPATCH /prices/{id}: it stays readable, and the invoices, quotes and subscriptions that already bill it keep it, but a new invoice, quote, subscription or checkout line naming it is refused. Sendactive: trueto restore it.tax_behaviorstringRequiredWhether
amountincludes tax, as Stripe'stax_behavior. Set when the price is created and fixed afterwards.inclusiveThe amount includes tax: every tax rate on a line of this price is taken out of it, even a rate created as exclusive, so a ¥1,100 price at 10% is ¥1,000 plus ¥100 of tax.
exclusiveThe amount excludes tax, so every tax rate on a line of this price is added on top of it.
unspecifiedEach tax rate's own
inclusivesetting decides whether it is inside the amount or added on top.