published on Friday, Aug 14, 2026 by Pulumi
published on Friday, Aug 14, 2026 by Pulumi
Invoice Items represent the component lines of an invoice. When you create an invoice item with an invoice field, it is attached to the specified invoice and included as an invoice line item within invoice.lines.
Invoice Items can be created before you are ready to actually send the invoice. This can be particularly useful when combined with a subscription. Sometimes you want to add a charge or credit to a customer, but actually charge or credit the customer’s card only at the end of a regular billing cycle. This is useful for combining several charges (to minimize per-transaction fees), or for having Stripe tabulate your usage-based billing totals.
Related guides: Integrate with the Invoicing API, Subscription Invoices.
Create InvoiceItem Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new InvoiceItem(name: string, args?: InvoiceItemArgs, opts?: CustomResourceOptions);@overload
def InvoiceItem(resource_name: str,
args: Optional[InvoiceItemArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def InvoiceItem(resource_name: str,
opts: Optional[ResourceOptions] = None,
amount: Optional[float] = None,
currency: Optional[str] = None,
customer: Optional[str] = None,
description: Optional[str] = None,
discountable: Optional[bool] = None,
discounts: Optional[Sequence[InvoiceItemDiscountArgs]] = None,
invoice: Optional[str] = None,
metadata: Optional[Mapping[str, str]] = None,
period: Optional[InvoiceItemPeriodArgs] = None,
price_data: Optional[InvoiceItemPriceDataArgs] = None,
pricing: Optional[InvoiceItemPricingArgs] = None,
quantity: Optional[float] = None,
quantity_decimal: Optional[float] = None,
subscription: Optional[str] = None,
tax_behavior: Optional[str] = None,
tax_code: Optional[str] = None,
tax_rates: Optional[Sequence[str]] = None,
unit_amount_decimal: Optional[float] = None)func NewInvoiceItem(ctx *Context, name string, args *InvoiceItemArgs, opts ...ResourceOption) (*InvoiceItem, error)public InvoiceItem(string name, InvoiceItemArgs? args = null, CustomResourceOptions? opts = null)
public InvoiceItem(String name, InvoiceItemArgs args)
public InvoiceItem(String name, InvoiceItemArgs args, CustomResourceOptions options)
type: stripe:InvoiceItem
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "stripe_invoice_item" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args InvoiceItemArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args InvoiceItemArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args InvoiceItemArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InvoiceItemArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InvoiceItemArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var invoiceItemResource = new Stripe.InvoiceItem("invoiceItemResource", new()
{
Amount = 0.0,
Currency = "string",
Customer = "string",
Description = "string",
Discountable = false,
Discounts = new[]
{
new Stripe.Inputs.InvoiceItemDiscountArgs
{
Coupon = "string",
Discount = "string",
PromotionCode = "string",
},
},
Invoice = "string",
Metadata =
{
{ "string", "string" },
},
Period = new Stripe.Inputs.InvoiceItemPeriodArgs
{
End = 0.0,
Start = 0.0,
},
PriceData = new Stripe.Inputs.InvoiceItemPriceDataArgs
{
Currency = "string",
Product = "string",
TaxBehavior = "string",
UnitAmount = 0.0,
UnitAmountDecimal = 0.0,
},
Pricing = new Stripe.Inputs.InvoiceItemPricingArgs
{
Price = "string",
PriceDetails = new Stripe.Inputs.InvoiceItemPricingPriceDetailsArgs
{
Price = "string",
Product = "string",
},
Type = "string",
UnitAmountDecimal = 0.0,
},
Quantity = 0.0,
QuantityDecimal = 0.0,
Subscription = "string",
TaxBehavior = "string",
TaxCode = "string",
TaxRates = new[]
{
"string",
},
UnitAmountDecimal = 0.0,
});
example, err := stripe.NewInvoiceItem(ctx, "invoiceItemResource", &stripe.InvoiceItemArgs{
Amount: pulumi.Float64(0),
Currency: pulumi.String("string"),
Customer: pulumi.String("string"),
Description: pulumi.String("string"),
Discountable: pulumi.Bool(false),
Discounts: stripe.InvoiceItemDiscountArray{
&stripe.InvoiceItemDiscountArgs{
Coupon: pulumi.String("string"),
Discount: pulumi.String("string"),
PromotionCode: pulumi.String("string"),
},
},
Invoice: pulumi.String("string"),
Metadata: pulumi.StringMap{
"string": pulumi.String("string"),
},
Period: &stripe.InvoiceItemPeriodArgs{
End: pulumi.Float64(0),
Start: pulumi.Float64(0),
},
PriceData: &stripe.InvoiceItemPriceDataArgs{
Currency: pulumi.String("string"),
Product: pulumi.String("string"),
TaxBehavior: pulumi.String("string"),
UnitAmount: pulumi.Float64(0),
UnitAmountDecimal: pulumi.Float64(0),
},
Pricing: &stripe.InvoiceItemPricingArgs{
Price: pulumi.String("string"),
PriceDetails: &stripe.InvoiceItemPricingPriceDetailsArgs{
Price: pulumi.String("string"),
Product: pulumi.String("string"),
},
Type: pulumi.String("string"),
UnitAmountDecimal: pulumi.Float64(0),
},
Quantity: pulumi.Float64(0),
QuantityDecimal: pulumi.Float64(0),
Subscription: pulumi.String("string"),
TaxBehavior: pulumi.String("string"),
TaxCode: pulumi.String("string"),
TaxRates: pulumi.StringArray{
pulumi.String("string"),
},
UnitAmountDecimal: pulumi.Float64(0),
})
resource "stripe_invoice_item" "invoiceItemResource" {
lifecycle {
create_before_destroy = true
}
amount = 0
currency = "string"
customer = "string"
description = "string"
discountable = false
discounts {
coupon = "string"
discount = "string"
promotion_code = "string"
}
invoice = "string"
metadata = {
"string" = "string"
}
period = {
end = 0
start = 0
}
price_data = {
currency = "string"
product = "string"
tax_behavior = "string"
unit_amount = 0
unit_amount_decimal = 0
}
pricing = {
price = "string"
price_details = {
price = "string"
product = "string"
}
type = "string"
unit_amount_decimal = 0
}
quantity = 0
quantity_decimal = 0
subscription = "string"
tax_behavior = "string"
tax_code = "string"
tax_rates = ["string"]
unit_amount_decimal = 0
}
var invoiceItemResource = new InvoiceItem("invoiceItemResource", InvoiceItemArgs.builder()
.amount(0.0)
.currency("string")
.customer("string")
.description("string")
.discountable(false)
.discounts(InvoiceItemDiscountArgs.builder()
.coupon("string")
.discount("string")
.promotionCode("string")
.build())
.invoice("string")
.metadata(Map.of("string", "string"))
.period(InvoiceItemPeriodArgs.builder()
.end(0.0)
.start(0.0)
.build())
.priceData(InvoiceItemPriceDataArgs.builder()
.currency("string")
.product("string")
.taxBehavior("string")
.unitAmount(0.0)
.unitAmountDecimal(0.0)
.build())
.pricing(InvoiceItemPricingArgs.builder()
.price("string")
.priceDetails(InvoiceItemPricingPriceDetailsArgs.builder()
.price("string")
.product("string")
.build())
.type("string")
.unitAmountDecimal(0.0)
.build())
.quantity(0.0)
.quantityDecimal(0.0)
.subscription("string")
.taxBehavior("string")
.taxCode("string")
.taxRates("string")
.unitAmountDecimal(0.0)
.build());
invoice_item_resource = stripe.InvoiceItem("invoiceItemResource",
amount=float(0),
currency="string",
customer="string",
description="string",
discountable=False,
discounts=[{
"coupon": "string",
"discount": "string",
"promotion_code": "string",
}],
invoice="string",
metadata={
"string": "string",
},
period={
"end": float(0),
"start": float(0),
},
price_data={
"currency": "string",
"product": "string",
"tax_behavior": "string",
"unit_amount": float(0),
"unit_amount_decimal": float(0),
},
pricing={
"price": "string",
"price_details": {
"price": "string",
"product": "string",
},
"type": "string",
"unit_amount_decimal": float(0),
},
quantity=float(0),
quantity_decimal=float(0),
subscription="string",
tax_behavior="string",
tax_code="string",
tax_rates=["string"],
unit_amount_decimal=float(0))
const invoiceItemResource = new stripe.InvoiceItem("invoiceItemResource", {
amount: 0,
currency: "string",
customer: "string",
description: "string",
discountable: false,
discounts: [{
coupon: "string",
discount: "string",
promotionCode: "string",
}],
invoice: "string",
metadata: {
string: "string",
},
period: {
end: 0,
start: 0,
},
priceData: {
currency: "string",
product: "string",
taxBehavior: "string",
unitAmount: 0,
unitAmountDecimal: 0,
},
pricing: {
price: "string",
priceDetails: {
price: "string",
product: "string",
},
type: "string",
unitAmountDecimal: 0,
},
quantity: 0,
quantityDecimal: 0,
subscription: "string",
taxBehavior: "string",
taxCode: "string",
taxRates: ["string"],
unitAmountDecimal: 0,
});
type: stripe:InvoiceItem
properties:
amount: 0
currency: string
customer: string
description: string
discountable: false
discounts:
- coupon: string
discount: string
promotionCode: string
invoice: string
metadata:
string: string
period:
end: 0
start: 0
priceData:
currency: string
product: string
taxBehavior: string
unitAmount: 0
unitAmountDecimal: 0
pricing:
price: string
priceDetails:
price: string
product: string
type: string
unitAmountDecimal: 0
quantity: 0
quantityDecimal: 0
subscription: string
taxBehavior: string
taxCode: string
taxRates:
- string
unitAmountDecimal: 0
InvoiceItem Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The InvoiceItem resource accepts the following input properties:
- Amount double
- Amount (in the
currencyspecified) of the invoice item. This should always be equal tounit_amount * quantity. - Currency string
- Three-letter ISO currency code, in lowercase. Must be a supported currency.
- Customer string
- The ID of the customer to bill for this invoice item.
- Description string
- An arbitrary string attached to the object. Often useful for displaying to users.
- Discountable bool
- If true, discounts will apply to this invoice item. Always false for prorations.
- Discounts
List<Invoice
Item Discount> - The discounts which apply to the invoice item. Item discounts are applied before invoice discounts. Use
expand[]=discountsto expand each discount. - Invoice string
- The ID of the invoice this invoice item belongs to.
- Metadata Dictionary<string, string>
- 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.
- Period
Invoice
Item Period - Price
Data InvoiceItem Price Data - Data used to generate a new Price object inline.
- Pricing
Invoice
Item Pricing - The pricing information of the invoice item.
- Quantity double
- Quantity of units for the invoice item in integer format, with any decimal precision truncated. For the item's full-precision decimal quantity, use
quantity_decimal. This field will be deprecated in favor ofquantity_decimalin a future version. If the invoice item is a proration, the quantity of the subscription that the proration was computed for. - Quantity
Decimal double - Non-negative decimal with at most 12 decimal places. The quantity of units for the invoice item.
- Subscription string
- The ID of a subscription to add this invoice item to. When left blank, the invoice item is added to the next upcoming scheduled invoice. When set, scheduled invoices for subscriptions other than the specified subscription will ignore the invoice item. Use this when you want to express that an invoice item has been accrued within the context of a particular subscription.
- Tax
Behavior string - 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. - Tax
Code string - A tax code ID.
- Tax
Rates List<string> - The tax rates which apply to the invoice item. When set, the
default_tax_rateson the invoice do not apply to this invoice item. - Unit
Amount doubleDecimal - The decimal unit amount in cents (or local equivalent) of the charge to be applied to the upcoming invoice. This
unit_amount_decimalwill be multiplied by the quantity to get the full amount. Passing in a negativeunit_amount_decimalwill reduce theamount_dueon the invoice. Accepts at most 12 decimal places.
- Amount float64
- Amount (in the
currencyspecified) of the invoice item. This should always be equal tounit_amount * quantity. - Currency string
- Three-letter ISO currency code, in lowercase. Must be a supported currency.
- Customer string
- The ID of the customer to bill for this invoice item.
- Description string
- An arbitrary string attached to the object. Often useful for displaying to users.
- Discountable bool
- If true, discounts will apply to this invoice item. Always false for prorations.
- Discounts
[]Invoice
Item Discount Args - The discounts which apply to the invoice item. Item discounts are applied before invoice discounts. Use
expand[]=discountsto expand each discount. - Invoice string
- The ID of the invoice this invoice item belongs to.
- Metadata map[string]string
- 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.
- Period
Invoice
Item Period Args - Price
Data InvoiceItem Price Data Args - Data used to generate a new Price object inline.
- Pricing
Invoice
Item Pricing Args - The pricing information of the invoice item.
- Quantity float64
- Quantity of units for the invoice item in integer format, with any decimal precision truncated. For the item's full-precision decimal quantity, use
quantity_decimal. This field will be deprecated in favor ofquantity_decimalin a future version. If the invoice item is a proration, the quantity of the subscription that the proration was computed for. - Quantity
Decimal float64 - Non-negative decimal with at most 12 decimal places. The quantity of units for the invoice item.
- Subscription string
- The ID of a subscription to add this invoice item to. When left blank, the invoice item is added to the next upcoming scheduled invoice. When set, scheduled invoices for subscriptions other than the specified subscription will ignore the invoice item. Use this when you want to express that an invoice item has been accrued within the context of a particular subscription.
- Tax
Behavior string - 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. - Tax
Code string - A tax code ID.
- Tax
Rates []string - The tax rates which apply to the invoice item. When set, the
default_tax_rateson the invoice do not apply to this invoice item. - Unit
Amount float64Decimal - The decimal unit amount in cents (or local equivalent) of the charge to be applied to the upcoming invoice. This
unit_amount_decimalwill be multiplied by the quantity to get the full amount. Passing in a negativeunit_amount_decimalwill reduce theamount_dueon the invoice. Accepts at most 12 decimal places.
- amount number
- Amount (in the
currencyspecified) of the invoice item. This should always be equal tounit_amount * quantity. - currency string
- Three-letter ISO currency code, in lowercase. Must be a supported currency.
- customer string
- The ID of the customer to bill for this invoice item.
- description string
- An arbitrary string attached to the object. Often useful for displaying to users.
- discountable bool
- If true, discounts will apply to this invoice item. Always false for prorations.
- discounts list(object)
- The discounts which apply to the invoice item. Item discounts are applied before invoice discounts. Use
expand[]=discountsto expand each discount. - invoice string
- The ID of the invoice this invoice item belongs to.
- metadata map(string)
- 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.
- period object
- price_
data object - Data used to generate a new Price object inline.
- pricing object
- The pricing information of the invoice item.
- quantity number
- Quantity of units for the invoice item in integer format, with any decimal precision truncated. For the item's full-precision decimal quantity, use
quantity_decimal. This field will be deprecated in favor ofquantity_decimalin a future version. If the invoice item is a proration, the quantity of the subscription that the proration was computed for. - quantity_
decimal number - Non-negative decimal with at most 12 decimal places. The quantity of units for the invoice item.
- subscription string
- The ID of a subscription to add this invoice item to. When left blank, the invoice item is added to the next upcoming scheduled invoice. When set, scheduled invoices for subscriptions other than the specified subscription will ignore the invoice item. Use this when you want to express that an invoice item has been accrued within the context of a particular subscription.
- tax_
behavior string - 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. - tax_
code string - A tax code ID.
- tax_
rates list(string) - The tax rates which apply to the invoice item. When set, the
default_tax_rateson the invoice do not apply to this invoice item. - unit_
amount_ numberdecimal - The decimal unit amount in cents (or local equivalent) of the charge to be applied to the upcoming invoice. This
unit_amount_decimalwill be multiplied by the quantity to get the full amount. Passing in a negativeunit_amount_decimalwill reduce theamount_dueon the invoice. Accepts at most 12 decimal places.
- amount Double
- Amount (in the
currencyspecified) of the invoice item. This should always be equal tounit_amount * quantity. - currency String
- Three-letter ISO currency code, in lowercase. Must be a supported currency.
- customer String
- The ID of the customer to bill for this invoice item.
- description String
- An arbitrary string attached to the object. Often useful for displaying to users.
- discountable Boolean
- If true, discounts will apply to this invoice item. Always false for prorations.
- discounts
List<Invoice
Item Discount> - The discounts which apply to the invoice item. Item discounts are applied before invoice discounts. Use
expand[]=discountsto expand each discount. - invoice String
- The ID of the invoice this invoice item belongs to.
- metadata Map<String,String>
- 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.
- period
Invoice
Item Period - price
Data InvoiceItem Price Data - Data used to generate a new Price object inline.
- pricing
Invoice
Item Pricing - The pricing information of the invoice item.
- quantity Double
- Quantity of units for the invoice item in integer format, with any decimal precision truncated. For the item's full-precision decimal quantity, use
quantity_decimal. This field will be deprecated in favor ofquantity_decimalin a future version. If the invoice item is a proration, the quantity of the subscription that the proration was computed for. - quantity
Decimal Double - Non-negative decimal with at most 12 decimal places. The quantity of units for the invoice item.
- subscription String
- The ID of a subscription to add this invoice item to. When left blank, the invoice item is added to the next upcoming scheduled invoice. When set, scheduled invoices for subscriptions other than the specified subscription will ignore the invoice item. Use this when you want to express that an invoice item has been accrued within the context of a particular subscription.
- tax
Behavior String - 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. - tax
Code String - A tax code ID.
- tax
Rates List<String> - The tax rates which apply to the invoice item. When set, the
default_tax_rateson the invoice do not apply to this invoice item. - unit
Amount DoubleDecimal - The decimal unit amount in cents (or local equivalent) of the charge to be applied to the upcoming invoice. This
unit_amount_decimalwill be multiplied by the quantity to get the full amount. Passing in a negativeunit_amount_decimalwill reduce theamount_dueon the invoice. Accepts at most 12 decimal places.
- amount number
- Amount (in the
currencyspecified) of the invoice item. This should always be equal tounit_amount * quantity. - currency string
- Three-letter ISO currency code, in lowercase. Must be a supported currency.
- customer string
- The ID of the customer to bill for this invoice item.
- description string
- An arbitrary string attached to the object. Often useful for displaying to users.
- discountable boolean
- If true, discounts will apply to this invoice item. Always false for prorations.
- discounts
Invoice
Item Discount[] - The discounts which apply to the invoice item. Item discounts are applied before invoice discounts. Use
expand[]=discountsto expand each discount. - invoice string
- The ID of the invoice this invoice item belongs to.
- metadata {[key: string]: string}
- 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.
- period
Invoice
Item Period - price
Data InvoiceItem Price Data - Data used to generate a new Price object inline.
- pricing
Invoice
Item Pricing - The pricing information of the invoice item.
- quantity number
- Quantity of units for the invoice item in integer format, with any decimal precision truncated. For the item's full-precision decimal quantity, use
quantity_decimal. This field will be deprecated in favor ofquantity_decimalin a future version. If the invoice item is a proration, the quantity of the subscription that the proration was computed for. - quantity
Decimal number - Non-negative decimal with at most 12 decimal places. The quantity of units for the invoice item.
- subscription string
- The ID of a subscription to add this invoice item to. When left blank, the invoice item is added to the next upcoming scheduled invoice. When set, scheduled invoices for subscriptions other than the specified subscription will ignore the invoice item. Use this when you want to express that an invoice item has been accrued within the context of a particular subscription.
- tax
Behavior string - 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. - tax
Code string - A tax code ID.
- tax
Rates string[] - The tax rates which apply to the invoice item. When set, the
default_tax_rateson the invoice do not apply to this invoice item. - unit
Amount numberDecimal - The decimal unit amount in cents (or local equivalent) of the charge to be applied to the upcoming invoice. This
unit_amount_decimalwill be multiplied by the quantity to get the full amount. Passing in a negativeunit_amount_decimalwill reduce theamount_dueon the invoice. Accepts at most 12 decimal places.
- amount float
- Amount (in the
currencyspecified) of the invoice item. This should always be equal tounit_amount * quantity. - currency str
- Three-letter ISO currency code, in lowercase. Must be a supported currency.
- customer str
- The ID of the customer to bill for this invoice item.
- description str
- An arbitrary string attached to the object. Often useful for displaying to users.
- discountable bool
- If true, discounts will apply to this invoice item. Always false for prorations.
- discounts
Sequence[Invoice
Item Discount Args] - The discounts which apply to the invoice item. Item discounts are applied before invoice discounts. Use
expand[]=discountsto expand each discount. - invoice str
- The ID of the invoice this invoice item belongs to.
- metadata Mapping[str, str]
- 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.
- period
Invoice
Item Period Args - price_
data InvoiceItem Price Data Args - Data used to generate a new Price object inline.
- pricing
Invoice
Item Pricing Args - The pricing information of the invoice item.
- quantity float
- Quantity of units for the invoice item in integer format, with any decimal precision truncated. For the item's full-precision decimal quantity, use
quantity_decimal. This field will be deprecated in favor ofquantity_decimalin a future version. If the invoice item is a proration, the quantity of the subscription that the proration was computed for. - quantity_
decimal float - Non-negative decimal with at most 12 decimal places. The quantity of units for the invoice item.
- subscription str
- The ID of a subscription to add this invoice item to. When left blank, the invoice item is added to the next upcoming scheduled invoice. When set, scheduled invoices for subscriptions other than the specified subscription will ignore the invoice item. Use this when you want to express that an invoice item has been accrued within the context of a particular subscription.
- tax_
behavior str - 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. - tax_
code str - A tax code ID.
- tax_
rates Sequence[str] - The tax rates which apply to the invoice item. When set, the
default_tax_rateson the invoice do not apply to this invoice item. - unit_
amount_ floatdecimal - The decimal unit amount in cents (or local equivalent) of the charge to be applied to the upcoming invoice. This
unit_amount_decimalwill be multiplied by the quantity to get the full amount. Passing in a negativeunit_amount_decimalwill reduce theamount_dueon the invoice. Accepts at most 12 decimal places.
- amount Number
- Amount (in the
currencyspecified) of the invoice item. This should always be equal tounit_amount * quantity. - currency String
- Three-letter ISO currency code, in lowercase. Must be a supported currency.
- customer String
- The ID of the customer to bill for this invoice item.
- description String
- An arbitrary string attached to the object. Often useful for displaying to users.
- discountable Boolean
- If true, discounts will apply to this invoice item. Always false for prorations.
- discounts List<Property Map>
- The discounts which apply to the invoice item. Item discounts are applied before invoice discounts. Use
expand[]=discountsto expand each discount. - invoice String
- The ID of the invoice this invoice item belongs to.
- metadata Map<String>
- 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.
- period Property Map
- price
Data Property Map - Data used to generate a new Price object inline.
- pricing Property Map
- The pricing information of the invoice item.
- quantity Number
- Quantity of units for the invoice item in integer format, with any decimal precision truncated. For the item's full-precision decimal quantity, use
quantity_decimal. This field will be deprecated in favor ofquantity_decimalin a future version. If the invoice item is a proration, the quantity of the subscription that the proration was computed for. - quantity
Decimal Number - Non-negative decimal with at most 12 decimal places. The quantity of units for the invoice item.
- subscription String
- The ID of a subscription to add this invoice item to. When left blank, the invoice item is added to the next upcoming scheduled invoice. When set, scheduled invoices for subscriptions other than the specified subscription will ignore the invoice item. Use this when you want to express that an invoice item has been accrued within the context of a particular subscription.
- tax
Behavior String - 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. - tax
Code String - A tax code ID.
- tax
Rates List<String> - The tax rates which apply to the invoice item. When set, the
default_tax_rateson the invoice do not apply to this invoice item. - unit
Amount NumberDecimal - The decimal unit amount in cents (or local equivalent) of the charge to be applied to the upcoming invoice. This
unit_amount_decimalwill be multiplied by the quantity to get the full amount. Passing in a negativeunit_amount_decimalwill reduce theamount_dueon the invoice. Accepts at most 12 decimal places.
Outputs
All input properties are implicitly available as output properties. Additionally, the InvoiceItem resource produces the following output properties:
- Date double
- Time at which the object was created. Measured in seconds since the Unix epoch.
- Id string
- The provider-assigned unique ID for this managed resource.
- Livemode bool
- If the object exists in live mode, the value is
true. If the object exists in test mode, the value isfalse. - Object string
- String representing the object's type. Objects of the same type share the same value.
- Parent
Invoice
Item Parent - The parent that generated this invoice item.
- Proration bool
- Whether the invoice item was created automatically as a proration adjustment when the customer switched plans.
- Proration
Details InvoiceItem Proration Details - Test
Clock string - ID of the test clock this invoice item belongs to.
- Date float64
- Time at which the object was created. Measured in seconds since the Unix epoch.
- Id string
- The provider-assigned unique ID for this managed resource.
- Livemode bool
- If the object exists in live mode, the value is
true. If the object exists in test mode, the value isfalse. - Object string
- String representing the object's type. Objects of the same type share the same value.
- Parent
Invoice
Item Parent - The parent that generated this invoice item.
- Proration bool
- Whether the invoice item was created automatically as a proration adjustment when the customer switched plans.
- Proration
Details InvoiceItem Proration Details - Test
Clock string - ID of the test clock this invoice item belongs to.
- date number
- Time at which the object was created. Measured in seconds since the Unix epoch.
- id string
- The provider-assigned unique ID for this managed resource.
- livemode bool
- If the object exists in live mode, the value is
true. If the object exists in test mode, the value isfalse. - object string
- String representing the object's type. Objects of the same type share the same value.
- parent object
- The parent that generated this invoice item.
- proration bool
- Whether the invoice item was created automatically as a proration adjustment when the customer switched plans.
- proration_
details object - test_
clock string - ID of the test clock this invoice item belongs to.
- date Double
- Time at which the object was created. Measured in seconds since the Unix epoch.
- id String
- The provider-assigned unique ID for this managed resource.
- livemode Boolean
- If the object exists in live mode, the value is
true. If the object exists in test mode, the value isfalse. - object String
- String representing the object's type. Objects of the same type share the same value.
- parent
Invoice
Item Parent - The parent that generated this invoice item.
- proration Boolean
- Whether the invoice item was created automatically as a proration adjustment when the customer switched plans.
- proration
Details InvoiceItem Proration Details - test
Clock String - ID of the test clock this invoice item belongs to.
- date number
- Time at which the object was created. Measured in seconds since the Unix epoch.
- id string
- The provider-assigned unique ID for this managed resource.
- livemode boolean
- If the object exists in live mode, the value is
true. If the object exists in test mode, the value isfalse. - object string
- String representing the object's type. Objects of the same type share the same value.
- parent
Invoice
Item Parent - The parent that generated this invoice item.
- proration boolean
- Whether the invoice item was created automatically as a proration adjustment when the customer switched plans.
- proration
Details InvoiceItem Proration Details - test
Clock string - ID of the test clock this invoice item belongs to.
- date float
- Time at which the object was created. Measured in seconds since the Unix epoch.
- id str
- The provider-assigned unique ID for this managed resource.
- livemode bool
- If the object exists in live mode, the value is
true. If the object exists in test mode, the value isfalse. - object str
- String representing the object's type. Objects of the same type share the same value.
- parent
Invoice
Item Parent - The parent that generated this invoice item.
- proration bool
- Whether the invoice item was created automatically as a proration adjustment when the customer switched plans.
- proration_
details InvoiceItem Proration Details - test_
clock str - ID of the test clock this invoice item belongs to.
- date Number
- Time at which the object was created. Measured in seconds since the Unix epoch.
- id String
- The provider-assigned unique ID for this managed resource.
- livemode Boolean
- If the object exists in live mode, the value is
true. If the object exists in test mode, the value isfalse. - object String
- String representing the object's type. Objects of the same type share the same value.
- parent Property Map
- The parent that generated this invoice item.
- proration Boolean
- Whether the invoice item was created automatically as a proration adjustment when the customer switched plans.
- proration
Details Property Map - test
Clock String - ID of the test clock this invoice item belongs to.
Look up Existing InvoiceItem Resource
Get an existing InvoiceItem resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: InvoiceItemState, opts?: CustomResourceOptions): InvoiceItem@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
amount: Optional[float] = None,
currency: Optional[str] = None,
customer: Optional[str] = None,
date: Optional[float] = None,
description: Optional[str] = None,
discountable: Optional[bool] = None,
discounts: Optional[Sequence[InvoiceItemDiscountArgs]] = None,
invoice: Optional[str] = None,
livemode: Optional[bool] = None,
metadata: Optional[Mapping[str, str]] = None,
object: Optional[str] = None,
parent: Optional[InvoiceItemParentArgs] = None,
period: Optional[InvoiceItemPeriodArgs] = None,
price_data: Optional[InvoiceItemPriceDataArgs] = None,
pricing: Optional[InvoiceItemPricingArgs] = None,
proration: Optional[bool] = None,
proration_details: Optional[InvoiceItemProrationDetailsArgs] = None,
quantity: Optional[float] = None,
quantity_decimal: Optional[float] = None,
subscription: Optional[str] = None,
tax_behavior: Optional[str] = None,
tax_code: Optional[str] = None,
tax_rates: Optional[Sequence[str]] = None,
test_clock: Optional[str] = None,
unit_amount_decimal: Optional[float] = None) -> InvoiceItemfunc GetInvoiceItem(ctx *Context, name string, id IDInput, state *InvoiceItemState, opts ...ResourceOption) (*InvoiceItem, error)public static InvoiceItem Get(string name, Input<string> id, InvoiceItemState? state, CustomResourceOptions? opts = null)public static InvoiceItem get(String name, Output<String> id, InvoiceItemState state, CustomResourceOptions options)resources: _: type: stripe:InvoiceItem get: id: ${id}import {
to = stripe_invoice_item.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Amount double
- Amount (in the
currencyspecified) of the invoice item. This should always be equal tounit_amount * quantity. - Currency string
- Three-letter ISO currency code, in lowercase. Must be a supported currency.
- Customer string
- The ID of the customer to bill for this invoice item.
- Date double
- Time at which the object was created. Measured in seconds since the Unix epoch.
- Description string
- An arbitrary string attached to the object. Often useful for displaying to users.
- Discountable bool
- If true, discounts will apply to this invoice item. Always false for prorations.
- Discounts
List<Invoice
Item Discount> - The discounts which apply to the invoice item. Item discounts are applied before invoice discounts. Use
expand[]=discountsto expand each discount. - Invoice string
- The ID of the invoice this invoice item belongs to.
- Livemode bool
- If the object exists in live mode, the value is
true. If the object exists in test mode, the value isfalse. - Metadata Dictionary<string, string>
- 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.
- Object string
- String representing the object's type. Objects of the same type share the same value.
- Parent
Invoice
Item Parent - The parent that generated this invoice item.
- Period
Invoice
Item Period - Price
Data InvoiceItem Price Data - Data used to generate a new Price object inline.
- Pricing
Invoice
Item Pricing - The pricing information of the invoice item.
- Proration bool
- Whether the invoice item was created automatically as a proration adjustment when the customer switched plans.
- Proration
Details InvoiceItem Proration Details - Quantity double
- Quantity of units for the invoice item in integer format, with any decimal precision truncated. For the item's full-precision decimal quantity, use
quantity_decimal. This field will be deprecated in favor ofquantity_decimalin a future version. If the invoice item is a proration, the quantity of the subscription that the proration was computed for. - Quantity
Decimal double - Non-negative decimal with at most 12 decimal places. The quantity of units for the invoice item.
- Subscription string
- The ID of a subscription to add this invoice item to. When left blank, the invoice item is added to the next upcoming scheduled invoice. When set, scheduled invoices for subscriptions other than the specified subscription will ignore the invoice item. Use this when you want to express that an invoice item has been accrued within the context of a particular subscription.
- Tax
Behavior string - 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. - Tax
Code string - A tax code ID.
- Tax
Rates List<string> - The tax rates which apply to the invoice item. When set, the
default_tax_rateson the invoice do not apply to this invoice item. - Test
Clock string - ID of the test clock this invoice item belongs to.
- Unit
Amount doubleDecimal - The decimal unit amount in cents (or local equivalent) of the charge to be applied to the upcoming invoice. This
unit_amount_decimalwill be multiplied by the quantity to get the full amount. Passing in a negativeunit_amount_decimalwill reduce theamount_dueon the invoice. Accepts at most 12 decimal places.
- Amount float64
- Amount (in the
currencyspecified) of the invoice item. This should always be equal tounit_amount * quantity. - Currency string
- Three-letter ISO currency code, in lowercase. Must be a supported currency.
- Customer string
- The ID of the customer to bill for this invoice item.
- Date float64
- Time at which the object was created. Measured in seconds since the Unix epoch.
- Description string
- An arbitrary string attached to the object. Often useful for displaying to users.
- Discountable bool
- If true, discounts will apply to this invoice item. Always false for prorations.
- Discounts
[]Invoice
Item Discount Args - The discounts which apply to the invoice item. Item discounts are applied before invoice discounts. Use
expand[]=discountsto expand each discount. - Invoice string
- The ID of the invoice this invoice item belongs to.
- Livemode bool
- If the object exists in live mode, the value is
true. If the object exists in test mode, the value isfalse. - Metadata map[string]string
- 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.
- Object string
- String representing the object's type. Objects of the same type share the same value.
- Parent
Invoice
Item Parent Args - The parent that generated this invoice item.
- Period
Invoice
Item Period Args - Price
Data InvoiceItem Price Data Args - Data used to generate a new Price object inline.
- Pricing
Invoice
Item Pricing Args - The pricing information of the invoice item.
- Proration bool
- Whether the invoice item was created automatically as a proration adjustment when the customer switched plans.
- Proration
Details InvoiceItem Proration Details Args - Quantity float64
- Quantity of units for the invoice item in integer format, with any decimal precision truncated. For the item's full-precision decimal quantity, use
quantity_decimal. This field will be deprecated in favor ofquantity_decimalin a future version. If the invoice item is a proration, the quantity of the subscription that the proration was computed for. - Quantity
Decimal float64 - Non-negative decimal with at most 12 decimal places. The quantity of units for the invoice item.
- Subscription string
- The ID of a subscription to add this invoice item to. When left blank, the invoice item is added to the next upcoming scheduled invoice. When set, scheduled invoices for subscriptions other than the specified subscription will ignore the invoice item. Use this when you want to express that an invoice item has been accrued within the context of a particular subscription.
- Tax
Behavior string - 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. - Tax
Code string - A tax code ID.
- Tax
Rates []string - The tax rates which apply to the invoice item. When set, the
default_tax_rateson the invoice do not apply to this invoice item. - Test
Clock string - ID of the test clock this invoice item belongs to.
- Unit
Amount float64Decimal - The decimal unit amount in cents (or local equivalent) of the charge to be applied to the upcoming invoice. This
unit_amount_decimalwill be multiplied by the quantity to get the full amount. Passing in a negativeunit_amount_decimalwill reduce theamount_dueon the invoice. Accepts at most 12 decimal places.
- amount number
- Amount (in the
currencyspecified) of the invoice item. This should always be equal tounit_amount * quantity. - currency string
- Three-letter ISO currency code, in lowercase. Must be a supported currency.
- customer string
- The ID of the customer to bill for this invoice item.
- date number
- Time at which the object was created. Measured in seconds since the Unix epoch.
- description string
- An arbitrary string attached to the object. Often useful for displaying to users.
- discountable bool
- If true, discounts will apply to this invoice item. Always false for prorations.
- discounts list(object)
- The discounts which apply to the invoice item. Item discounts are applied before invoice discounts. Use
expand[]=discountsto expand each discount. - invoice string
- The ID of the invoice this invoice item belongs to.
- livemode bool
- If the object exists in live mode, the value is
true. If the object exists in test mode, the value isfalse. - metadata map(string)
- 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.
- object string
- String representing the object's type. Objects of the same type share the same value.
- parent object
- The parent that generated this invoice item.
- period object
- price_
data object - Data used to generate a new Price object inline.
- pricing object
- The pricing information of the invoice item.
- proration bool
- Whether the invoice item was created automatically as a proration adjustment when the customer switched plans.
- proration_
details object - quantity number
- Quantity of units for the invoice item in integer format, with any decimal precision truncated. For the item's full-precision decimal quantity, use
quantity_decimal. This field will be deprecated in favor ofquantity_decimalin a future version. If the invoice item is a proration, the quantity of the subscription that the proration was computed for. - quantity_
decimal number - Non-negative decimal with at most 12 decimal places. The quantity of units for the invoice item.
- subscription string
- The ID of a subscription to add this invoice item to. When left blank, the invoice item is added to the next upcoming scheduled invoice. When set, scheduled invoices for subscriptions other than the specified subscription will ignore the invoice item. Use this when you want to express that an invoice item has been accrued within the context of a particular subscription.
- tax_
behavior string - 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. - tax_
code string - A tax code ID.
- tax_
rates list(string) - The tax rates which apply to the invoice item. When set, the
default_tax_rateson the invoice do not apply to this invoice item. - test_
clock string - ID of the test clock this invoice item belongs to.
- unit_
amount_ numberdecimal - The decimal unit amount in cents (or local equivalent) of the charge to be applied to the upcoming invoice. This
unit_amount_decimalwill be multiplied by the quantity to get the full amount. Passing in a negativeunit_amount_decimalwill reduce theamount_dueon the invoice. Accepts at most 12 decimal places.
- amount Double
- Amount (in the
currencyspecified) of the invoice item. This should always be equal tounit_amount * quantity. - currency String
- Three-letter ISO currency code, in lowercase. Must be a supported currency.
- customer String
- The ID of the customer to bill for this invoice item.
- date Double
- Time at which the object was created. Measured in seconds since the Unix epoch.
- description String
- An arbitrary string attached to the object. Often useful for displaying to users.
- discountable Boolean
- If true, discounts will apply to this invoice item. Always false for prorations.
- discounts
List<Invoice
Item Discount> - The discounts which apply to the invoice item. Item discounts are applied before invoice discounts. Use
expand[]=discountsto expand each discount. - invoice String
- The ID of the invoice this invoice item belongs to.
- livemode Boolean
- If the object exists in live mode, the value is
true. If the object exists in test mode, the value isfalse. - metadata Map<String,String>
- 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.
- object String
- String representing the object's type. Objects of the same type share the same value.
- parent
Invoice
Item Parent - The parent that generated this invoice item.
- period
Invoice
Item Period - price
Data InvoiceItem Price Data - Data used to generate a new Price object inline.
- pricing
Invoice
Item Pricing - The pricing information of the invoice item.
- proration Boolean
- Whether the invoice item was created automatically as a proration adjustment when the customer switched plans.
- proration
Details InvoiceItem Proration Details - quantity Double
- Quantity of units for the invoice item in integer format, with any decimal precision truncated. For the item's full-precision decimal quantity, use
quantity_decimal. This field will be deprecated in favor ofquantity_decimalin a future version. If the invoice item is a proration, the quantity of the subscription that the proration was computed for. - quantity
Decimal Double - Non-negative decimal with at most 12 decimal places. The quantity of units for the invoice item.
- subscription String
- The ID of a subscription to add this invoice item to. When left blank, the invoice item is added to the next upcoming scheduled invoice. When set, scheduled invoices for subscriptions other than the specified subscription will ignore the invoice item. Use this when you want to express that an invoice item has been accrued within the context of a particular subscription.
- tax
Behavior String - 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. - tax
Code String - A tax code ID.
- tax
Rates List<String> - The tax rates which apply to the invoice item. When set, the
default_tax_rateson the invoice do not apply to this invoice item. - test
Clock String - ID of the test clock this invoice item belongs to.
- unit
Amount DoubleDecimal - The decimal unit amount in cents (or local equivalent) of the charge to be applied to the upcoming invoice. This
unit_amount_decimalwill be multiplied by the quantity to get the full amount. Passing in a negativeunit_amount_decimalwill reduce theamount_dueon the invoice. Accepts at most 12 decimal places.
- amount number
- Amount (in the
currencyspecified) of the invoice item. This should always be equal tounit_amount * quantity. - currency string
- Three-letter ISO currency code, in lowercase. Must be a supported currency.
- customer string
- The ID of the customer to bill for this invoice item.
- date number
- Time at which the object was created. Measured in seconds since the Unix epoch.
- description string
- An arbitrary string attached to the object. Often useful for displaying to users.
- discountable boolean
- If true, discounts will apply to this invoice item. Always false for prorations.
- discounts
Invoice
Item Discount[] - The discounts which apply to the invoice item. Item discounts are applied before invoice discounts. Use
expand[]=discountsto expand each discount. - invoice string
- The ID of the invoice this invoice item belongs to.
- livemode boolean
- If the object exists in live mode, the value is
true. If the object exists in test mode, the value isfalse. - metadata {[key: string]: string}
- 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.
- object string
- String representing the object's type. Objects of the same type share the same value.
- parent
Invoice
Item Parent - The parent that generated this invoice item.
- period
Invoice
Item Period - price
Data InvoiceItem Price Data - Data used to generate a new Price object inline.
- pricing
Invoice
Item Pricing - The pricing information of the invoice item.
- proration boolean
- Whether the invoice item was created automatically as a proration adjustment when the customer switched plans.
- proration
Details InvoiceItem Proration Details - quantity number
- Quantity of units for the invoice item in integer format, with any decimal precision truncated. For the item's full-precision decimal quantity, use
quantity_decimal. This field will be deprecated in favor ofquantity_decimalin a future version. If the invoice item is a proration, the quantity of the subscription that the proration was computed for. - quantity
Decimal number - Non-negative decimal with at most 12 decimal places. The quantity of units for the invoice item.
- subscription string
- The ID of a subscription to add this invoice item to. When left blank, the invoice item is added to the next upcoming scheduled invoice. When set, scheduled invoices for subscriptions other than the specified subscription will ignore the invoice item. Use this when you want to express that an invoice item has been accrued within the context of a particular subscription.
- tax
Behavior string - 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. - tax
Code string - A tax code ID.
- tax
Rates string[] - The tax rates which apply to the invoice item. When set, the
default_tax_rateson the invoice do not apply to this invoice item. - test
Clock string - ID of the test clock this invoice item belongs to.
- unit
Amount numberDecimal - The decimal unit amount in cents (or local equivalent) of the charge to be applied to the upcoming invoice. This
unit_amount_decimalwill be multiplied by the quantity to get the full amount. Passing in a negativeunit_amount_decimalwill reduce theamount_dueon the invoice. Accepts at most 12 decimal places.
- amount float
- Amount (in the
currencyspecified) of the invoice item. This should always be equal tounit_amount * quantity. - currency str
- Three-letter ISO currency code, in lowercase. Must be a supported currency.
- customer str
- The ID of the customer to bill for this invoice item.
- date float
- Time at which the object was created. Measured in seconds since the Unix epoch.
- description str
- An arbitrary string attached to the object. Often useful for displaying to users.
- discountable bool
- If true, discounts will apply to this invoice item. Always false for prorations.
- discounts
Sequence[Invoice
Item Discount Args] - The discounts which apply to the invoice item. Item discounts are applied before invoice discounts. Use
expand[]=discountsto expand each discount. - invoice str
- The ID of the invoice this invoice item belongs to.
- livemode bool
- If the object exists in live mode, the value is
true. If the object exists in test mode, the value isfalse. - metadata Mapping[str, str]
- 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.
- object str
- String representing the object's type. Objects of the same type share the same value.
- parent
Invoice
Item Parent Args - The parent that generated this invoice item.
- period
Invoice
Item Period Args - price_
data InvoiceItem Price Data Args - Data used to generate a new Price object inline.
- pricing
Invoice
Item Pricing Args - The pricing information of the invoice item.
- proration bool
- Whether the invoice item was created automatically as a proration adjustment when the customer switched plans.
- proration_
details InvoiceItem Proration Details Args - quantity float
- Quantity of units for the invoice item in integer format, with any decimal precision truncated. For the item's full-precision decimal quantity, use
quantity_decimal. This field will be deprecated in favor ofquantity_decimalin a future version. If the invoice item is a proration, the quantity of the subscription that the proration was computed for. - quantity_
decimal float - Non-negative decimal with at most 12 decimal places. The quantity of units for the invoice item.
- subscription str
- The ID of a subscription to add this invoice item to. When left blank, the invoice item is added to the next upcoming scheduled invoice. When set, scheduled invoices for subscriptions other than the specified subscription will ignore the invoice item. Use this when you want to express that an invoice item has been accrued within the context of a particular subscription.
- tax_
behavior str - 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. - tax_
code str - A tax code ID.
- tax_
rates Sequence[str] - The tax rates which apply to the invoice item. When set, the
default_tax_rateson the invoice do not apply to this invoice item. - test_
clock str - ID of the test clock this invoice item belongs to.
- unit_
amount_ floatdecimal - The decimal unit amount in cents (or local equivalent) of the charge to be applied to the upcoming invoice. This
unit_amount_decimalwill be multiplied by the quantity to get the full amount. Passing in a negativeunit_amount_decimalwill reduce theamount_dueon the invoice. Accepts at most 12 decimal places.
- amount Number
- Amount (in the
currencyspecified) of the invoice item. This should always be equal tounit_amount * quantity. - currency String
- Three-letter ISO currency code, in lowercase. Must be a supported currency.
- customer String
- The ID of the customer to bill for this invoice item.
- date Number
- Time at which the object was created. Measured in seconds since the Unix epoch.
- description String
- An arbitrary string attached to the object. Often useful for displaying to users.
- discountable Boolean
- If true, discounts will apply to this invoice item. Always false for prorations.
- discounts List<Property Map>
- The discounts which apply to the invoice item. Item discounts are applied before invoice discounts. Use
expand[]=discountsto expand each discount. - invoice String
- The ID of the invoice this invoice item belongs to.
- livemode Boolean
- If the object exists in live mode, the value is
true. If the object exists in test mode, the value isfalse. - metadata Map<String>
- 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.
- object String
- String representing the object's type. Objects of the same type share the same value.
- parent Property Map
- The parent that generated this invoice item.
- period Property Map
- price
Data Property Map - Data used to generate a new Price object inline.
- pricing Property Map
- The pricing information of the invoice item.
- proration Boolean
- Whether the invoice item was created automatically as a proration adjustment when the customer switched plans.
- proration
Details Property Map - quantity Number
- Quantity of units for the invoice item in integer format, with any decimal precision truncated. For the item's full-precision decimal quantity, use
quantity_decimal. This field will be deprecated in favor ofquantity_decimalin a future version. If the invoice item is a proration, the quantity of the subscription that the proration was computed for. - quantity
Decimal Number - Non-negative decimal with at most 12 decimal places. The quantity of units for the invoice item.
- subscription String
- The ID of a subscription to add this invoice item to. When left blank, the invoice item is added to the next upcoming scheduled invoice. When set, scheduled invoices for subscriptions other than the specified subscription will ignore the invoice item. Use this when you want to express that an invoice item has been accrued within the context of a particular subscription.
- tax
Behavior String - 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. - tax
Code String - A tax code ID.
- tax
Rates List<String> - The tax rates which apply to the invoice item. When set, the
default_tax_rateson the invoice do not apply to this invoice item. - test
Clock String - ID of the test clock this invoice item belongs to.
- unit
Amount NumberDecimal - The decimal unit amount in cents (or local equivalent) of the charge to be applied to the upcoming invoice. This
unit_amount_decimalwill be multiplied by the quantity to get the full amount. Passing in a negativeunit_amount_decimalwill reduce theamount_dueon the invoice. Accepts at most 12 decimal places.
Supporting Types
InvoiceItemDiscount, InvoiceItemDiscountArgs
- Coupon string
- ID of the coupon to create a new discount for.
- Discount string
- ID of an existing discount on the object (or one of its ancestors) to reuse.
- Promotion
Code string - ID of the promotion code to create a new discount for.
- Coupon string
- ID of the coupon to create a new discount for.
- Discount string
- ID of an existing discount on the object (or one of its ancestors) to reuse.
- Promotion
Code string - ID of the promotion code to create a new discount for.
- coupon string
- ID of the coupon to create a new discount for.
- discount string
- ID of an existing discount on the object (or one of its ancestors) to reuse.
- promotion_
code string - ID of the promotion code to create a new discount for.
- coupon String
- ID of the coupon to create a new discount for.
- discount String
- ID of an existing discount on the object (or one of its ancestors) to reuse.
- promotion
Code String - ID of the promotion code to create a new discount for.
- coupon string
- ID of the coupon to create a new discount for.
- discount string
- ID of an existing discount on the object (or one of its ancestors) to reuse.
- promotion
Code string - ID of the promotion code to create a new discount for.
- coupon str
- ID of the coupon to create a new discount for.
- discount str
- ID of an existing discount on the object (or one of its ancestors) to reuse.
- promotion_
code str - ID of the promotion code to create a new discount for.
- coupon String
- ID of the coupon to create a new discount for.
- discount String
- ID of an existing discount on the object (or one of its ancestors) to reuse.
- promotion
Code String - ID of the promotion code to create a new discount for.
InvoiceItemParent, InvoiceItemParentArgs
- Subscription
Details InvoiceItem Parent Subscription Details - Details about the subscription that generated this invoice item
- Type string
- The type of parent that generated this invoice item
- Subscription
Details InvoiceItem Parent Subscription Details - Details about the subscription that generated this invoice item
- Type string
- The type of parent that generated this invoice item
- subscription_
details object - Details about the subscription that generated this invoice item
- type string
- The type of parent that generated this invoice item
- subscription
Details InvoiceItem Parent Subscription Details - Details about the subscription that generated this invoice item
- type String
- The type of parent that generated this invoice item
- subscription
Details InvoiceItem Parent Subscription Details - Details about the subscription that generated this invoice item
- type string
- The type of parent that generated this invoice item
- subscription_
details InvoiceItem Parent Subscription Details - Details about the subscription that generated this invoice item
- type str
- The type of parent that generated this invoice item
- subscription
Details Property Map - Details about the subscription that generated this invoice item
- type String
- The type of parent that generated this invoice item
InvoiceItemParentSubscriptionDetails, InvoiceItemParentSubscriptionDetailsArgs
- Subscription string
- The subscription that generated this invoice item
- Subscription
Item string - The subscription item that generated this invoice item
- Subscription string
- The subscription that generated this invoice item
- Subscription
Item string - The subscription item that generated this invoice item
- subscription string
- The subscription that generated this invoice item
- subscription_
item string - The subscription item that generated this invoice item
- subscription String
- The subscription that generated this invoice item
- subscription
Item String - The subscription item that generated this invoice item
- subscription string
- The subscription that generated this invoice item
- subscription
Item string - The subscription item that generated this invoice item
- subscription str
- The subscription that generated this invoice item
- subscription_
item str - The subscription item that generated this invoice item
- subscription String
- The subscription that generated this invoice item
- subscription
Item String - The subscription item that generated this invoice item
InvoiceItemPeriod, InvoiceItemPeriodArgs
InvoiceItemPriceData, InvoiceItemPriceDataArgs
- Currency string
- Three-letter ISO currency code, in lowercase. Must be a supported currency.
- Product string
- The ID of the Product that this Price will belong to.
- Tax
Behavior string - 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. - Unit
Amount double - A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
- Unit
Amount doubleDecimal - Same as
unit_amount, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one ofunit_amountandunit_amount_decimalcan be set.
- Currency string
- Three-letter ISO currency code, in lowercase. Must be a supported currency.
- Product string
- The ID of the Product that this Price will belong to.
- Tax
Behavior string - 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. - Unit
Amount float64 - A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
- Unit
Amount float64Decimal - Same as
unit_amount, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one ofunit_amountandunit_amount_decimalcan be set.
- currency string
- Three-letter ISO currency code, in lowercase. Must be a supported currency.
- product string
- The ID of the Product that this Price will belong to.
- tax_
behavior string - 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. - unit_
amount number - A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
- unit_
amount_ numberdecimal - Same as
unit_amount, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one ofunit_amountandunit_amount_decimalcan be set.
- currency String
- Three-letter ISO currency code, in lowercase. Must be a supported currency.
- product String
- The ID of the Product that this Price will belong to.
- tax
Behavior String - 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. - unit
Amount Double - A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
- unit
Amount DoubleDecimal - Same as
unit_amount, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one ofunit_amountandunit_amount_decimalcan be set.
- currency string
- Three-letter ISO currency code, in lowercase. Must be a supported currency.
- product string
- The ID of the Product that this Price will belong to.
- tax
Behavior string - 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. - unit
Amount number - A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
- unit
Amount numberDecimal - Same as
unit_amount, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one ofunit_amountandunit_amount_decimalcan be set.
- currency str
- Three-letter ISO currency code, in lowercase. Must be a supported currency.
- product str
- The ID of the Product that this Price will belong to.
- tax_
behavior str - 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. - unit_
amount float - A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
- unit_
amount_ floatdecimal - Same as
unit_amount, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one ofunit_amountandunit_amount_decimalcan be set.
- currency String
- Three-letter ISO currency code, in lowercase. Must be a supported currency.
- product String
- The ID of the Product that this Price will belong to.
- tax
Behavior String - 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. - unit
Amount Number - A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
- unit
Amount NumberDecimal - Same as
unit_amount, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one ofunit_amountandunit_amount_decimalcan be set.
InvoiceItemPricing, InvoiceItemPricingArgs
- Price string
- The ID of the price object.
- Price
Details InvoiceItem Pricing Price Details - Type string
- The type of the pricing details.
- Unit
Amount doubleDecimal - The unit amount (in the
currencyspecified) of the item which contains a decimal value with at most 12 decimal places.
- Price string
- The ID of the price object.
- Price
Details InvoiceItem Pricing Price Details - Type string
- The type of the pricing details.
- Unit
Amount float64Decimal - The unit amount (in the
currencyspecified) of the item which contains a decimal value with at most 12 decimal places.
- price string
- The ID of the price object.
- price_
details object - type string
- The type of the pricing details.
- unit_
amount_ numberdecimal - The unit amount (in the
currencyspecified) of the item which contains a decimal value with at most 12 decimal places.
- price String
- The ID of the price object.
- price
Details InvoiceItem Pricing Price Details - type String
- The type of the pricing details.
- unit
Amount DoubleDecimal - The unit amount (in the
currencyspecified) of the item which contains a decimal value with at most 12 decimal places.
- price string
- The ID of the price object.
- price
Details InvoiceItem Pricing Price Details - type string
- The type of the pricing details.
- unit
Amount numberDecimal - The unit amount (in the
currencyspecified) of the item which contains a decimal value with at most 12 decimal places.
- price str
- The ID of the price object.
- price_
details InvoiceItem Pricing Price Details - type str
- The type of the pricing details.
- unit_
amount_ floatdecimal - The unit amount (in the
currencyspecified) of the item which contains a decimal value with at most 12 decimal places.
- price String
- The ID of the price object.
- price
Details Property Map - type String
- The type of the pricing details.
- unit
Amount NumberDecimal - The unit amount (in the
currencyspecified) of the item which contains a decimal value with at most 12 decimal places.
InvoiceItemPricingPriceDetails, InvoiceItemPricingPriceDetailsArgs
InvoiceItemProrationDetails, InvoiceItemProrationDetailsArgs
- Credited
Items InvoiceItem Proration Details Credited Items - For a credit proration, links to the debit invoice line items or invoice item that the credit applies to.
- Discount
Amounts List<InvoiceItem Proration Details Discount Amount> - Discount amounts applied when the proration was created.
- Credited
Items InvoiceItem Proration Details Credited Items - For a credit proration, links to the debit invoice line items or invoice item that the credit applies to.
- Discount
Amounts []InvoiceItem Proration Details Discount Amount - Discount amounts applied when the proration was created.
- credited_
items object - For a credit proration, links to the debit invoice line items or invoice item that the credit applies to.
- discount_
amounts list(object) - Discount amounts applied when the proration was created.
- credited
Items InvoiceItem Proration Details Credited Items - For a credit proration, links to the debit invoice line items or invoice item that the credit applies to.
- discount
Amounts List<InvoiceItem Proration Details Discount Amount> - Discount amounts applied when the proration was created.
- credited
Items InvoiceItem Proration Details Credited Items - For a credit proration, links to the debit invoice line items or invoice item that the credit applies to.
- discount
Amounts InvoiceItem Proration Details Discount Amount[] - Discount amounts applied when the proration was created.
- credited_
items InvoiceItem Proration Details Credited Items - For a credit proration, links to the debit invoice line items or invoice item that the credit applies to.
- discount_
amounts Sequence[InvoiceItem Proration Details Discount Amount] - Discount amounts applied when the proration was created.
- credited
Items Property Map - For a credit proration, links to the debit invoice line items or invoice item that the credit applies to.
- discount
Amounts List<Property Map> - Discount amounts applied when the proration was created.
InvoiceItemProrationDetailsCreditedItems, InvoiceItemProrationDetailsCreditedItemsArgs
- Invoice
Item string - When
typeisinvoice_item, the invoice item id for the debited invoice item corresponding to this credit proration. - Invoice
Line InvoiceItem Details Item Proration Details Credited Items Invoice Line Item Details - Type string
- Whether the credit references a pending invoice item or one or more invoice line items on an invoice.
- Invoice
Item string - When
typeisinvoice_item, the invoice item id for the debited invoice item corresponding to this credit proration. - Invoice
Line InvoiceItem Details Item Proration Details Credited Items Invoice Line Item Details - Type string
- Whether the credit references a pending invoice item or one or more invoice line items on an invoice.
- invoice_
item string - When
typeisinvoice_item, the invoice item id for the debited invoice item corresponding to this credit proration. - invoice_
line_ objectitem_ details - type string
- Whether the credit references a pending invoice item or one or more invoice line items on an invoice.
- invoice
Item String - When
typeisinvoice_item, the invoice item id for the debited invoice item corresponding to this credit proration. - invoice
Line InvoiceItem Details Item Proration Details Credited Items Invoice Line Item Details - type String
- Whether the credit references a pending invoice item or one or more invoice line items on an invoice.
- invoice
Item string - When
typeisinvoice_item, the invoice item id for the debited invoice item corresponding to this credit proration. - invoice
Line InvoiceItem Details Item Proration Details Credited Items Invoice Line Item Details - type string
- Whether the credit references a pending invoice item or one or more invoice line items on an invoice.
- invoice_
item str - When
typeisinvoice_item, the invoice item id for the debited invoice item corresponding to this credit proration. - invoice_
line_ Invoiceitem_ details Item Proration Details Credited Items Invoice Line Item Details - type str
- Whether the credit references a pending invoice item or one or more invoice line items on an invoice.
- invoice
Item String - When
typeisinvoice_item, the invoice item id for the debited invoice item corresponding to this credit proration. - invoice
Line Property MapItem Details - type String
- Whether the credit references a pending invoice item or one or more invoice line items on an invoice.
InvoiceItemProrationDetailsCreditedItemsInvoiceLineItemDetails, InvoiceItemProrationDetailsCreditedItemsInvoiceLineItemDetailsArgs
- Invoice string
- The invoice id for the debited line item(s).
- Invoice
Line List<string>Items - IDs of the debited invoice line item(s) on the invoice that correspond to the credit proration.
- Invoice string
- The invoice id for the debited line item(s).
- Invoice
Line []stringItems - IDs of the debited invoice line item(s) on the invoice that correspond to the credit proration.
- invoice string
- The invoice id for the debited line item(s).
- invoice_
line_ list(string)items - IDs of the debited invoice line item(s) on the invoice that correspond to the credit proration.
- invoice String
- The invoice id for the debited line item(s).
- invoice
Line List<String>Items - IDs of the debited invoice line item(s) on the invoice that correspond to the credit proration.
- invoice string
- The invoice id for the debited line item(s).
- invoice
Line string[]Items - IDs of the debited invoice line item(s) on the invoice that correspond to the credit proration.
- invoice str
- The invoice id for the debited line item(s).
- invoice_
line_ Sequence[str]items - IDs of the debited invoice line item(s) on the invoice that correspond to the credit proration.
- invoice String
- The invoice id for the debited line item(s).
- invoice
Line List<String>Items - IDs of the debited invoice line item(s) on the invoice that correspond to the credit proration.
InvoiceItemProrationDetailsDiscountAmount, InvoiceItemProrationDetailsDiscountAmountArgs
Package Details
- Repository
- stripe stripe/terraform-provider-stripe
- License
- Notes
- This Pulumi package is based on the
stripeTerraform Provider.
published on Friday, Aug 14, 2026 by Pulumi