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.
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>",
"items": "<items>",
"due_date": "<due_date>"
},
"name": "create_invoice"
}
}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. |