Invoice or quote (PDF and Word)
invoice_quote_pdfBuilds a clean invoice or price quote from structured line items: quantities, unit prices, per-line or default tax percent, discounts, shipping and amount paid. All math is done server-side in integer cents and returned as JSON alongside a PDF and a Word file. Optional expected_total is checked and the call fails (free) if it does not match. Your branding fields (business name, address, tax id, accent text) go on the document. 20 credits ($0.02) per successful document. PAID: 20 credits ($0.02) per successful call from one-time prepaid credits; send Authorization: Bearer <api_key>. Failed or empty calls are free. Keyless callers get 3 free trial calls per day.
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": {
"items": "<items>"
},
"name": "invoice_quote_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Default invoice. | |
| brand | No | ||
| buyer | No | ||
| items | Yes | Line items. | |
| notes | No | ||
| terms | No | ||
| format | No | Output files (default both). | |
| number | No | ||
| seller | No | ||
| api_key | No | Optional. Only for clients that cannot send an Authorization header. | |
| currency | No | ISO 4217 code, default USD. | |
| discount | No | Whole-document discount (amount). | |
| due_date | No | Invoice due date, or quote valid-until date. | |
| shipping | No | ||
| tax_rate | No | Default tax percent for lines without their own. | |
| issue_date | No | ||
| amount_paid | No | ||
| expected_total | No | If given, must equal the computed total to the cent. | |
| payment_instructions | No |