Attributes
- idstring
Unique identifier for the object.
- amountinteger
Amount (in the
currencyspecified) of the invoice item. This should always be equal tounit_.amount * quantity - currencyenum
Three-letter ISO currency code, in lowercase. Must be a supported currency.
- customerstringExpandable
The ID of the customer who will be billed when this invoice item is billed.
- descriptionnullable string
An arbitrary string attached to the object. Often useful for displaying to users.
- metadatanullable object
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.
- periodobject
The period associated with this invoice item. When set to different values, the period will be rendered on the invoice. If you have Stripe Revenue Recognition enabled, the period will be used to recognize and defer revenue. See the Revenue Recognition documentation for details.
- period.
endtimestamp The end of the period, which must be greater than or equal to the start. This value is inclusive.
- period.
starttimestamp The start of the period. This value is inclusive.
- pricenullable object
The price of the invoice item.
- price.
idstring Unique identifier for the object.
- price.
objectstring String representing the object’s type. Objects of the same type share the same value.
- price.
activeboolean Whether the price can be used for new purchases.
- price.
billing_ schemeenum Describes how to compute the price per period. Either
per_orunit tiered.per_indicates that the fixed amount (specified inunit unit_oramount unit_) will be charged per unit inamount_ decimal quantity(for prices withusage_), or per unit of total usage (for prices withtype=licensed usage_).type=metered tieredindicates that the unit pricing will be computed using a tiering strategy as defined using thetiersandtiers_attributes.mode Possible enum valuesper_unit tiered - price.
createdtimestamp Time at which the object was created. Measured in seconds since the Unix epoch.
- price.
currencyenum Three-letter ISO currency code, in lowercase. Must be a supported currency.
- price.
currency_ optionsnullable objectExpandable Prices defined in each available currency option. Each key must be a three-letter ISO currency code and a supported currency.
- price.
currency_options. <currency>. custom_ unit_ amountnullable object When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.
- price.
currency_options. <currency>.custom_unit_amount. maximumnullable integer The maximum unit amount the customer can specify for this item.
- price.
currency_options. <currency>.custom_unit_amount. minimumnullable integer The minimum unit amount the customer can specify for this item. Must be at least the minimum charge amount.
- price.
currency_options. <currency>.custom_unit_amount. presetnullable integer The starting unit amount which can be updated by the customer.
- price.
currency_options. <currency>. tax_ behaviornullable enum Only required if a default tax behavior 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, orunspecified. Once specified as eitherinclusiveorexclusive, it cannot be changed.Possible enum valuesexclusiveinclusiveunspecified - price.
currency_options. <currency>. tiersnullable array of objectsExpandable Each element represents a pricing tier. This parameter requires
billing_to be set toscheme tiered. See also the documentation forbilling_.scheme - price.
currency_options. <currency>.tiers. flat_ amountnullable integer Price for the entire tier.
- price.
currency_options. <currency>.tiers. flat_ amount_ decimalnullable decimal string Same as
flat_, but contains a decimal value with at most 12 decimal places.amount - price.
currency_options. <currency>.tiers. unit_ amountnullable integer Per unit price for units relevant to the tier.
- price.
currency_options. <currency>.tiers. unit_ amount_ decimalnullable decimal string Same as
unit_, but contains a decimal value with at most 12 decimal places.amount - price.
currency_options. <currency>.tiers. up_ tonullable integer Up to and including to this quantity will be contained in the tier.
- price.
currency_options. <currency>. unit_ amountnullable integer The unit amount in cents to be charged, represented as a whole integer if possible. Only set if
billing_.scheme=per_ unit - price.
currency_options. <currency>. unit_ amount_ decimalnullable decimal string The unit amount in cents to be charged, represented as a decimal string with at most 12 decimal places. Only set if
billing_.scheme=per_ unit
- price.
custom_ unit_ amountnullable object When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.
- price.
custom_unit_amount. maximumnullable integer The maximum unit amount the customer can specify for this item.
- price.
custom_unit_amount. minimumnullable integer The minimum unit amount the customer can specify for this item. Must be at least the minimum charge amount.
- price.
custom_unit_amount. presetnullable integer The starting unit amount which can be updated by the customer.
- price.
livemodeboolean Has the value
trueif the object exists in live mode or the valuefalseif the object exists in test mode. - price.
lookup_ keynullable string A lookup key used to retrieve prices dynamically from a static string. This may be up to 200 characters.
- price.
metadataobject 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.
- price.
nicknamenullable string A brief description of the price, hidden from customers.
- price.
productstringExpandable The ID of the product this price is associated with.
- price.
recurringnullable object The recurring components of a price such as
intervalandusage_.type - price.
recurring. aggregate_ usagenullable enum Specifies a usage aggregation strategy for prices of
usage_. Defaults totype=metered sum.Possible enum valueslast_during_ period Use the last usage record reported within a period.
last_ever Use the last usage record ever reported (across period bounds).
maxUse the usage record with the maximum reported usage during a period.
sumSum up all usage during a period. This is the default behavior.
- price.
recurring. intervalenum The frequency at which a subscription is billed. One of
day,week,monthoryear. - price.
recurring. interval_ countinteger The number of intervals (specified in the
intervalattribute) between subscription billings. For example,interval=monthandinterval_bills every 3 months.count=3 - price.
recurring. meternullable string The meter tracking the usage of a metered price
- price.
recurring. usage_ typeenum Configures how the quantity per period should be determined. Can be either
meteredorlicensed.licensedautomatically bills thequantityset when adding it to a subscription.meteredaggregates the total usage based on usage records. Defaults tolicensed.
- price.
tax_ behaviornullable enum Only required if a default tax behavior 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, orunspecified. Once specified as eitherinclusiveorexclusive, it cannot be changed.Possible enum valuesexclusiveinclusiveunspecified - price.
tiersnullable array of objectsExpandable Each element represents a pricing tier. This parameter requires
billing_to be set toscheme tiered. See also the documentation forbilling_.scheme - price.
tiers. flat_ amountnullable integer Price for the entire tier.
- price.
tiers. flat_ amount_ decimalnullable decimal string Same as
flat_, but contains a decimal value with at most 12 decimal places.amount - price.
tiers. unit_ amountnullable integer Per unit price for units relevant to the tier.
- price.
tiers. unit_ amount_ decimalnullable decimal string Same as
unit_, but contains a decimal value with at most 12 decimal places.amount - price.
tiers. up_ tonullable integer Up to and including to this quantity will be contained in the tier.
- price.
tiers_ modenullable enum Defines if the tiering price should be
graduatedorvolumebased. Involume-based tiering, the maximum quantity within a period determines the per unit price. Ingraduatedtiering, pricing can change as the quantity grows.Possible enum valuesgraduatedvolume - price.
transform_ quantitynullable object Apply a transformation to the reported usage or set quantity before computing the amount billed. Cannot be combined with
tiers.- price.
transform_quantity. divide_ byinteger Divide usage by this number.
- price.
transform_quantity. roundenum After division, either round the result
upordown.
- price.
typeenum One of
one_ortime recurringdepending on whether the price is for a one-time purchase or a recurring (subscription) purchase.Possible enum valuesone_time recurring - price.
unit_ amountnullable integer The unit amount in cents to be charged, represented as a whole integer if possible. Only set if
billing_.scheme=per_ unit - price.
unit_ amount_ decimalnullable decimal string The unit amount in cents to be charged, represented as a decimal string with at most 12 decimal places. Only set if
billing_.scheme=per_ unit
- prorationboolean
Whether the invoice item was created automatically as a proration adjustment when the customer switched plans.
More attributes
- objectstring
String representing the object’s type. Objects of the same type share the same value.
- datetimestamp
Time at which the object was created. Measured in seconds since the Unix epoch.
- discountableboolean
If true, discounts will apply to this invoice item. Always false for prorations.
- discountsnullable array of stringsExpandable
The discounts which apply to the invoice item. Item discounts are applied before invoice discounts. Use
expand[]=discountsto expand each discount. - invoicenullable stringExpandable
The ID of the invoice this invoice item belongs to.
- livemodeboolean
Has the value
trueif the object exists in live mode or the valuefalseif the object exists in test mode. - quantityinteger
Quantity of units for the invoice item. If the invoice item is a proration, the quantity of the subscription that the proration was computed for.
- subscriptionnullable stringExpandable
The subscription that this invoice item has been created for, if any.
- subscription_
itemnullable string The subscription item that this invoice item has been created for, if any.
- tax_
ratesnullable array of objects The tax rates which apply to the invoice item. When set, the
default_on the invoice do not apply to this invoice item.tax_ rates - tax_rates.
idstring Unique identifier for the object.
- tax_rates.
objectstring String representing the object’s type. Objects of the same type share the same value.
- tax_rates.
activeboolean Defaults to
true. When set tofalse, this tax rate cannot be used with new applications or Checkout Sessions, but will still work for subscriptions and invoices that already have it set. - tax_rates.
countrynullable string Two-letter country code (ISO 3166-1 alpha-2).
- tax_rates.
createdtimestamp Time at which the object was created. Measured in seconds since the Unix epoch.
- tax_rates.
descriptionnullable string An arbitrary string attached to the tax rate for your internal use only. It will not be visible to your customers.
- tax_rates.
display_ namestring The display name of the tax rates as it will appear to your customer on their receipt email, PDF, and the hosted invoice page.
- tax_rates.
effective_ percentagenullable float Actual/effective tax rate percentage out of 100. For tax calculations with automatic_tax[enabled]=true, this percentage reflects the rate actually used to calculate tax based on the product’s taxability and whether the user is registered to collect taxes in the corresponding jurisdiction.
- tax_rates.
flat_ amountnullable object The amount of the tax rate when the
rate_istype flat_. Tax rates withamount rate_type percentagecan vary based on the transaction, resulting in this field beingnull. This field exposes the amount and currency of the flat tax rate.- tax_rates.
flat_amount. amountinteger Amount of the tax when the
rate_istype flat_. This positive integer represents how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).amount - tax_rates.
flat_amount. currencystring Three-letter ISO currency code, in lowercase.
- tax_rates.
inclusiveboolean This specifies if the tax rate is inclusive or exclusive.
- tax_rates.
jurisdictionnullable string The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer’s invoice.
- tax_rates.
jurisdiction_ levelnullable enum The level of the jurisdiction that imposes this tax rate. Will be
nullfor manually defined tax rates.Possible enum valuescitycountrycountydistrictmultiplestate - tax_rates.
livemodeboolean Has the value
trueif the object exists in live mode or the valuefalseif the object exists in test mode. - tax_rates.
metadatanullable object 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.
- tax_rates.
percentagefloat Tax rate percentage out of 100. For tax calculations with automatic_tax[enabled]=true, this percentage includes the statutory tax rate of non-taxable jurisdictions.
- tax_rates.
rate_ typenullable enum Indicates the type of tax rate applied to the taxable amount. This value can be
nullwhen no tax applies to the location.Possible enum valuesflat_amount A fixed amount applied as tax, regardless of the taxable amount, such as a retail delivery fee.
percentageA tax rate expressed as a percentage of the taxable amount, such as the sales tax rate in California.
- tax_rates.
statenullable string ISO 3166-2 subdivision code, without country prefix. For example, “NY” for New York, United States.
- tax_rates.
tax_ typenullable enum The high-level tax type, such as
vatorsales_.tax Possible enum valuesamusement_tax Amusement Tax
communications_tax Communications Tax
gstGoods and Services Tax
hstHarmonized Sales Tax
igstIntegrated Goods and Services Tax
jctJapanese Consumption Tax
lease_tax Chicago Lease Tax
pstProvincial Sales Tax
qstQuebec Sales Tax
retail_delivery_ fee Retail Delivery Fee
Show 4 more
- test_
clocknullable stringExpandable ID of the test clock this invoice item belongs to.
- unit_
amountnullable integer Unit amount (in the
currencyspecified) of the invoice item. - unit_
amount_ decimalnullable decimal string Same as
unit_, but contains a decimal value with at most 12 decimal places.amount
{ "id": "ii_1MtGUtLkdIwHu7ixBYwjAM00", "object": "invoiceitem", "amount": 1099, "currency": "usd", "customer": "cus_NeZei8imSbMVvi", "date": 1680640231, "description": "T-shirt", "discountable": true, "discounts": [], "invoice": null, "livemode": false, "metadata": {}, "period": { "end": 1680640231, "start": 1680640231 }, "plan": null, "price": { "id": "price_1MtGUsLkdIwHu7ix1be5Ljaj", "object": "price", "active": true, "billing_scheme": "per_unit", "created": 1680640229, "currency": "usd", "custom_unit_amount": null, "livemode": false, "lookup_key": null, "metadata": {}, "nickname": null, "product": "prod_NeZe7xbBdJT8EN", "recurring": null, "tax_behavior": "unspecified", "tiers_mode": null, "transform_quantity": null, "type": "one_time", "unit_amount": 1099, "unit_amount_decimal": "1099" }, "proration": false, "quantity": 1, "subscription": null, "tax_rates": [], "test_clock": null, "unit_amount": 1099, "unit_amount_decimal": "1099"}