Error
Invoices
Create an invoice item
Records a pending charge for a customer. It remains pending until an invoice for that customer is created, which drains it onto the invoice.
POST
Error
Authorizations
A merchant secret key (sk_…) sent as Authorization: Bearer <key>.
Headers
A unique key that makes retries safe: the same key with the same request body returns the original response instead of repeating the operation.
Maximum string length:
255Body
application/json
Customer id (cus_…).
Required range:
x >= 1Per-unit price in minor units.
Three-letter ISO currency code.
Optional price id (price_…) for catalog reference.
Response
The created invoice item.
Available options:
invoice_item Total amount in minor units.
The invoice this item was drained onto, or null while pending.
Unix epoch seconds.

