Skip to content

Stripe: Prices schemas

5 Stripe schemas with complete fields and constraints.

← Prices operations · All schemas

Create a price — request body — body currency options value

FieldTypePresenceDescription and constraints
$objectRoot
custom_unit_amountobjectOptional
custom_unit_amount.enabledbooleanRequired within parent
custom_unit_amount.maximumintegerOptional
custom_unit_amount.minimumintegerOptional
custom_unit_amount.presetintegerOptional
tax_behaviorstringOptionalOne of: exclusive, inclusive, unspecified
tiersarrayOptional
tiers[]objectEach item
tiers[].flat_amountintegerOptional
tiers[].flat_amount_decimalstringOptionalFormat: decimal
tiers[].unit_amountintegerOptional
tiers[].unit_amount_decimalstringOptionalFormat: decimal
tiers[].up_toJSONRequired within parent
tiers[].up_to (anyOf 1)stringAlternativeOne of: inf
Maximum length: 5000
tiers[].up_to (anyOf 2)integerAlternative
unit_amountintegerOptional
unit_amount_decimalstringOptionalFormat: decimal

Create a price — response body

FieldTypePresenceDescription and constraints
$objectRootPrices define the unit cost, currency, and (optional) billing cycle for both recurring and one-time purchases of products.
[Products](https://docs.stripe.com/api#products) help you track inventory or provisioning, and prices help you track payment terms. Different physical goods or levels of service should be represented by products, and pricing options should be represented by prices. This approach lets you change prices without having to change your provisioning scheme.

For example, you might have a single "gold" product that has prices for $10/month, $100/year, and €9 once.

Related guides: [Set up a subscription](https://docs.stripe.com/billing/subscriptions/set-up-subscription), [create an invoice](https://docs.stripe.com/billing/invoices/create), and more about [products and prices](https://docs.stripe.com/products-prices/overview).
activebooleanRequired within parentWhether the price can be used for new purchases.
billing_schemestringRequired within parentDescribes how to compute the price per period. Either `per_unit` or `tiered`. `per_unit` indicates that the fixed amount (specified in `unit_amount` or `unit_amount_decimal`) will be charged per unit in `quantity` (for prices with `usage_type=licensed`), or per unit of total usage (for prices with `usage_type=metered`). `tiered` indicates that the unit pricing will be computed using a tiering strategy as defined using the `tiers` and `tiers_mode` attributes.
Known values: per_unit, tiered
createdJSONRequired within parent
created (anyOf 1)integerAlternativeTime at which the object was created. Measured in seconds since the Unix epoch.
Format: unix-time
created (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
currencystringRequired within parentThree-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
Format: currency
currency_optionsobjectOptionalPrices defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies).
Additional keys: see wildcard field
currency_options.*ModelAdditional keysExpand Create a price — response body — currency options value
custom_unit_amountJSONOptional
custom_unit_amount (anyOf 1)JSONAlternativeWhen set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.
custom_unit_amount (anyOf 1) (anyOf 1)ModelAlternativeExpand Create a price — response body — custom unit amount value maximum, minimum, preset
custom_unit_amount (anyOf 2)nullAlternative
idstringRequired within parentUnique identifier for the object.
Maximum length: 5000
livemodebooleanRequired within parentIf the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
lookup_keyJSONOptional
lookup_key (anyOf 1)stringAlternativeA lookup key used to retrieve prices dynamically from a static string. This may be up to 200 characters.
Maximum length: 5000
lookup_key (anyOf 2)nullAlternative
metadataobjectRequired within parentSet of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
Additional keys: see wildcard field
metadata.*stringAdditional keysMaximum length: 500
nicknameJSONOptional
nickname (anyOf 1)stringAlternativeA brief description of the price, hidden from customers.
Maximum length: 5000
nickname (anyOf 2)nullAlternative
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: price
productJSONRequired within parentThe ID of the product this price is associated with.
product (anyOf 1)stringAlternativeMaximum length: 5000
product (anyOf 2)ModelAlternativeExpand Create a product — response body
product (anyOf 3)ModelAlternativeExpand Delete a product — response body
recurringJSONOptional
recurring (anyOf 1)JSONAlternativeThe recurring components of a price such as `interval` and `usage_type`.
recurring (anyOf 1) (anyOf 1)ModelAlternativeExpand Create a price — response body — recurring / value / interval: day, month, week, year, usage type: licensed, metered
recurring (anyOf 2)nullAlternative
tax_behaviorJSONOptional
tax_behavior (anyOf 1)stringAlternativeOnly required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
Known values: exclusive, inclusive, unspecified
tax_behavior (anyOf 2)nullAlternative
tiersarrayOptionalEach element represents a pricing tier. This parameter requires `billing_scheme` to be set to `tiered`. See also the documentation for `billing_scheme`.
tiers[]ModelEach itemExpand Create a plan — response body — tiers item
tiers_modeJSONOptional
tiers_mode (anyOf 1)stringAlternativeDefines if the tiering price should be `graduated` or `volume` based. In `volume`-based tiering, the maximum quantity within a period determines the per unit price. In `graduated` tiering, pricing can change as the quantity grows.
Known values: graduated, volume
tiers_mode (anyOf 2)nullAlternative
transform_quantityJSONOptional
transform_quantity (anyOf 1)JSONAlternativeApply a transformation to the reported usage or set quantity before computing the amount billed. Cannot be combined with `tiers`.
transform_quantity (anyOf 1) (anyOf 1)ModelAlternativeExpand Create a plan — response body — transform_usage / value / round: down, up
transform_quantity (anyOf 2)nullAlternative
typestringRequired within parentOne of `one_time` or `recurring` depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.
Known values: one_time, recurring
unit_amountJSONOptional
unit_amount (anyOf 1)JSONAlternative
unit_amount (anyOf 1) (anyOf 1)integerAlternativeThe unit amount in cents (or local equivalent) to be charged, represented as a whole integer if possible. Only set if `billing_scheme=per_unit`.
unit_amount (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
unit_amount (anyOf 2)nullAlternative
unit_amount_decimalJSONOptional
unit_amount_decimal (anyOf 1)stringAlternativeThe unit amount in cents (or local equivalent) to be charged, represented as a decimal string with at most 12 decimal places. Only set if `billing_scheme=per_unit`.
Format: decimal
unit_amount_decimal (anyOf 2)nullAlternative

Referenced models: Create a price — response body — currency options value, Create a price — response body — custom unit amount value maximum, minimum, preset, Delete a product — response body, Create a plan — response body — tiers item, Create a product — response body, Create a price — response body — recurring / value / interval: day, month, week, year, usage type: licensed, metered, Create a plan — response body — transform_usage / value / round: down, up

Create a price — response body — currency options value

FieldTypePresenceDescription and constraints
$objectRoot
custom_unit_amountJSONOptional
custom_unit_amount (anyOf 1)JSONAlternativeWhen set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.
custom_unit_amount (anyOf 1) (anyOf 1)ModelAlternativeExpand Create a price — response body — custom unit amount value maximum, minimum, preset
custom_unit_amount (anyOf 2)nullAlternative
tax_behaviorJSONOptional
tax_behavior (anyOf 1)stringAlternativeOnly required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
Known values: exclusive, inclusive, unspecified
tax_behavior (anyOf 2)nullAlternative
tiersarrayOptionalEach element represents a pricing tier. This parameter requires `billing_scheme` to be set to `tiered`. See also the documentation for `billing_scheme`.
tiers[]ModelEach itemExpand Create a plan — response body — tiers item
unit_amountJSONOptional
unit_amount (anyOf 1)JSONAlternative
unit_amount (anyOf 1) (anyOf 1)integerAlternativeThe unit amount in cents (or local equivalent) to be charged, represented as a whole integer if possible. Only set if `billing_scheme=per_unit`.
unit_amount (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
unit_amount (anyOf 2)nullAlternative
unit_amount_decimalJSONOptional
unit_amount_decimal (anyOf 1)stringAlternativeThe unit amount in cents (or local equivalent) to be charged, represented as a decimal string with at most 12 decimal places. Only set if `billing_scheme=per_unit`.
Format: decimal
unit_amount_decimal (anyOf 2)nullAlternative

Referenced models: Create a price — response body — custom unit amount value maximum, minimum, preset, Create a plan — response body — tiers item

Create a price — response body — custom unit amount value maximum, minimum, preset

FieldTypePresenceDescription and constraints
$objectRoot
maximumJSONOptional
maximum (anyOf 1)JSONAlternative
maximum (anyOf 1) (anyOf 1)integerAlternativeThe maximum unit amount the customer can specify for this item.
maximum (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
maximum (anyOf 2)nullAlternative
minimumJSONOptional
minimum (anyOf 1)JSONAlternative
minimum (anyOf 1) (anyOf 1)integerAlternativeThe minimum unit amount the customer can specify for this item. Must be at least the minimum charge amount.
minimum (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
minimum (anyOf 2)nullAlternative
presetJSONOptional
preset (anyOf 1)JSONAlternative
preset (anyOf 1) (anyOf 1)integerAlternativeThe starting unit amount which can be updated by the customer.
preset (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
preset (anyOf 2)nullAlternative

Create a price — response body — recurring / value / interval: day, month, week, year, usage type: licensed, metered

FieldTypePresenceDescription and constraints
$objectRoot
intervalstringRequired within parentThe frequency at which a subscription is billed. One of `day`, `week`, `month` or `year`.
Known values: day, month, week, year
interval_countJSONRequired within parent
interval_count (anyOf 1)integerAlternativeThe number of intervals (specified in the `interval` attribute) between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months.
interval_count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
meterJSONOptional
meter (anyOf 1)stringAlternativeThe meter tracking the usage of a metered price
Maximum length: 5000
meter (anyOf 2)nullAlternative
usage_typestringRequired within parentConfigures how the quantity per period should be determined. Can be either `metered` or `licensed`. `licensed` automatically bills the `quantity` set when adding it to a subscription. `metered` aggregates the total usage based on usage records. Defaults to `licensed`.
Known values: licensed, metered

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.