Create Invoice
create_invoiceCreate a draft invoice for a customer with configurable payment method and due date, and add items before finalizing.
Instructions
Create a draft invoice for a customer. Add invoice items before finalizing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| customer | Yes | Customer ID (cus_...) | |
| collection_method | No | Payment collection method | |
| days_until_due | No | Days until due (for send_invoice) | |
| description | No | Invoice description | |
| metadata | No | Metadata | |
| auto_advance | No | Auto-finalize when ready (default true) | |
| idempotency_key | No | Optional idempotency key for safe retries |