Create Invoice Item
create_invoice_itemAdd a line item to an invoice or the customer's next upcoming invoice. Provide customer ID, optionally invoice ID, price ID or amount with currency.
Instructions
Add a line item to an invoice (or to the customer's next upcoming invoice).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| customer | Yes | Customer ID (cus_...) | |
| invoice | No | Invoice ID (in_...). Omit to add to next upcoming invoice. | |
| price | No | Price ID (price_...) - use this OR amount+currency | |
| amount | No | Amount in smallest currency unit (use with currency, not price) | |
| currency | No | Currency code (use with amount) | |
| description | No | Line item description | |
| quantity | No | Quantity | |
| metadata | No | Metadata | |
| idempotency_key | No | Optional idempotency key for safe retries |