Get invoice
get_invoiceReturns one document (invoice or proforma): a summary and the parts listed in fields. Files (PDF, XML, UPO) are not returned; they are available in the app at app_url.
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": {
"company_id": "<company_id>",
"invoice_id": "<invoice_id>"
},
"name": "get_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | Parts to return; the summary (type, status, number, dates, customer id and name, currency, total, app_url) is always returned. "parties" (seller and customer as printed on the document, buyer and order references), "items" (description, type, quantity, unit, price, VAT rate, category and exemption reason), "totals" (net, VAT, gross, VAT per rate, VAT category, exemption reason and note), "payment" (bank account, payment terms and reference, split payment, exchange rate, payment QR codes), "ksef" (KSeF status, number, the KSeF environment it was sent to with a notice when it is a test environment that is not legally binding, sent and accepted time, offline mode, deadline), "deliveries" (e-mails sent: address, status, opens), "notes" (notes printed on the document). | |
| company_id | Yes | The id of the company, from list_companies. | |
| invoice_id | Yes | The id of the document, from list_invoices. |