Ask to issue an invoice
invoice_issueIssue, send or mark as sent an invoice or credit note (by id or number). what=issue (the default, with reason and idempotency_key): the draft is frozen and its release is asked for at once. Under My AI decides with the owner's switch for the AI's issue of invoices on (the default) it is issued now; otherwise it waits on the approval page. The release draws the number, makes and stores the PDF and the XML, and posts the entry; issuing is final. withdraw=true withdraws the request and makes it a draft again. what=send_again: the same mail once more when the person asks (the same mail within 24 hours is otherwise not sent twice). what=send: mail the issued invoice's PDF to the customer from Octobooks (From hello@octobooks.ai with the company's name, Reply-To the company's own address), to = another address than the customer's on file (several by comma), cc = copies, message = the text (the company's company's default email text otherwise, its mail_text); only where the owner's switch Send invoices from Octobooks is on, and not from books that are a copy or a demo. what=mark_sent: record that it went out some other way (sent_on YYYY-MM-DD, note). what=xrechnung: make, validate and store the XRechnung 3.0 of an issued invoice (syntax ubl or cii; an Austrian invoice also ebinterface, ebInterface 6.1, and at_public, the Peppol file for e-Rechnung.gv.at), which a German public body asks for (a buyer reference, the Leitweg-ID, and email addresses of both sides needed; the draft takes buyer_reference); it is stored with the invoice and sent nowhere. Round 650, Approve and email in one step: what=issue with email=true (to and message as for send) issues and mails it together: once released (by the owner's switches) the PDF goes to the customer; where it waits, Approve and email on the approval page does both. Whatever what is, no money moves: the customer pays at their bank.
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": {
"invoice": "<invoice>"
},
"name": "invoice_issue"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | ||
| to | No | ||
| note | No | ||
| what | No | issue | |
| No | |||
| reason | No | ||
| syntax | No | ubl | |
| company | No | ||
| invoice | Yes | ||
| message | No | ||
| sent_on | No | ||
| withdraw | No | ||
| issue_anyway | No | ||
| idempotency_key | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||