Create a draft invoice
create_invoiceCreates a draft invoice for a customer with line items and optional taxes, computes totals automatically, and keeps it editable until finalized for payment.
Instructions
Create a draft invoice.
Create a draft invoice for a customer with line items and optional taxes (basis points, 750 = 7.5%). Totals are computed for you. A draft can be edited; finalize it to make it payable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memo | No | ||
| items | Yes | ||
| split | No | Split rule (spl_…) | |
| taxes | No | ||
| customer | Yes | Customer (cus_…) | |
| due_date | Yes | ||
| metadata | No | ||
| idempotency_key | No | Optional. A unique key for this request; retrying with the same key returns the original result instead of acting twice. One is generated if omitted. |