Get invoice
One invoice with its lines, buyer, payments and KSeF status.
MCP tool ifirma_read → get_invoice
read
Returns one invoice as the app shows it: number, buyer, lines, net, VAT and gross totals, payments recorded, reminders and the KSeF number and status. Use it after send_invoice_to_ksef to see whether KSeF accepted the invoice.
Parameters
| Name | Type | Description |
|---|---|---|
| invoice_id integer required | integer | Invoice ID from list_invoices. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "ifirma_read",
"arguments": {
"operation": "get_invoice",
"arguments": {
"invoice_id": 1
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"id": 7020118,
"number": "41/2026",
"buyer": "Blue Fern Studio",
"contractor_id": "c_4817",
"lines": [
{
"name": "Website retainer",
"quantity": 2,
"unit": "month",
"unit_price": 500,
"vat_rate": 23
}
],
"net": 1000,
"vat": 230,
"gross": 1230,
"currency": "PLN",
"due_date": "2026-10-28",
"paid": 0,
"reminders": 0,
"ksef_status": "queued",
"ksef_number": null
},
"isError": false
}