Unique identifier for the object, like "price_xxxx".
object
string
optional
'price'
active
boolean
optional
Whether the price can be used for new purchases.
billing_scheme
enum<string>
optional
Describes how to compute the price per period. Either per_unit or tiered
Allowed values:
per_unittiered
created
integer
optional
Time at which the object was created. Measured in seconds since the Unix epoch.
currency
string
optional
Three-letter ISO currency code, in uppercase.
livemode
boolean
optional
Has the value true if the object exists in live mode or the value false if the object exists in test mode.
lookup_key
string
optional
A lookup key used to retrieve prices dynamically from a static string. This may be up to 200 characters.
metadata
object
optional
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
nickname
string
optional
A brief description of the price, hidden from customers.
product
string
optional
The ID of the product this price is associated with.
type
enum<string>
optional
One of one_time or recurring depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.
Allowed values:
one_timerecurring
unit_amount
integer
optional
The unit amount in cents to be charged, represented as a whole integer if possible. Only set if billing_scheme=per_unit.
tiers
array [object {3}]
optional
(未实现)
up_to
string
optional
Specifies the upper bound of this tier. The lower bound of a tier is the upper bound of the previous tier adding one. Use inf to define a fallback tier.
flat_amount
string
optional
The flat billing amount for an entire tier, regardless of the number of units in the tier.
unit_amount
string
optional
The per unit billing amount for each individual unit for which this tier applies.