stripe_invoice_items_create
Add a line item to a Stripe invoice, either from an existing price or a custom amount. Attach it to a draft invoice or let it bill on the next subscription cycle.
Instructions
Add a line to an invoice. Name an existing price as pricing.price, or give an amount directly. Without invoice the line waits for the customer's next subscription invoice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | The amount in the smallest currency unit. Negative reduces what the invoice is due. Cents, not dollars: $15.00 is 1500, and 15 puts fifteen cents on the invoice. Multiply a decimal amount by 100. | |
| period | No | The service period this line covers. | |
| invoice | No | The draft invoice to add this line to, at most 250 lines. Absent, the line waits for the customer's next subscription invoice and a standalone invoice will not collect it on its own. | |
| pricing | No | An existing price to bill, named as `pricing.price`. | |
| taxCode | No | The tax code for what is being billed. | |
| currency | No | Three-letter lowercase ISO currency code. | |
| customer | Yes | The ID of the customer to bill. | |
| metadata | No | Set of key-value pairs attached to the line. | |
| quantity | No | How many units this line bills. | |
| discounts | No | Coupons or promotion codes applying to this line alone. | |
| priceData | No | A price created inline for this line. | |
| description | No | What this line says on the invoice. | |
| taxBehavior | No | Whether the amount includes tax. Once set to inclusive or exclusive it cannot be changed. | |
| discountable | No | Whether invoice-level discounts apply to this line. | |
| subscription | No | Bill this line on that subscription's invoices only. |