Make an invoice PDF
render_invoiceMake a professional invoice PDF and get a link to it. Send the line items and rates; Platemark does the math (subtotal, discount, tax, shipping, amount paid, amount due) in exact cents and formats money for the currency. Returns the PDF link, page count and the totals it used. Costs 2 credits.
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": {
"from": "<from>",
"to": "<to>",
"items": "<items>"
},
"name": "render_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Who is being billed. | |
| tax | No | ||
| from | Yes | Who is billing. | |
| items | Yes | ||
| notes | No | ||
| paper | No | ||
| terms | No | ||
| accent | No | Hex color for the title and total, like #1d4ed8. | |
| locale | No | Like en-US or de-DE, for date and number formats. | |
| number | No | Invoice number, like INV-1042. | |
| currency | No | ISO code like USD, EUR, GBP. Default USD. | |
| discount | No | ||
| due_date | No | YYYY-MM-DD. | |
| due_days | No | Days after the issue date, if no due_date. 30 means Net 30. | |
| shipping | No | ||
| po_number | No | ||
| issue_date | No | YYYY-MM-DD. Defaults to today. | |
| amount_paid | No | Already paid, subtracted from the total. | |
| payment_instructions | No |