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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"customer": "<customer>"
},
"name": "create_invoice"
}
}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 |