API – Incoming invoices¶
All paths are under https://api.innovanet.com. Header Authorization: Bearer inv_mcp_…. The innovanet() function is in the API chapter. Creating and editing require permission to create incoming invoices. Approval requires the corresponding role, the same as in the portal.
GET /api/incoming-invoices¶
List. Pagination and filters go in the query.
| Parameter | Type | Required | Description |
|---|---|---|---|
page |
integer | no | default 1 |
limit |
integer | no | default 20, at most 500 |
search |
string | no | number, supplier, text |
sort_by |
string | no | default invoice_invoiced |
sort_order |
string | no | ASC or DESC |
status |
string | no | a status, or vspl (not yet due), pospl (overdue) |
year |
integer | no | by due date |
month_from, month_to |
integer | no | months in the year |
project_id |
integer | no | |
owner_id |
integer | no | owner |
supplier_id |
integer | no | supplier company_id |
invoice_type |
integer | no | 1 regular, 2 advance, 3 credit note, 4 debit note |
cURL
curl -sS "https://api.innovanet.com/api/incoming-invoices?page=1&limit=20&year=2026&sort_by=invoice_invoiced&sort_order=DESC" \
-H "Authorization: Bearer inv_mcp_…" \
-H "Accept: application/json"
PHP
$res = innovanet('GET', '/api/incoming-invoices?page=1&limit=20&year=2026&status=pospl');
Response 200
{
"success": true,
"data": {
"records": [
{
"invoice_id": 55,
"invoice_number": "FA2026-0042",
"invoice_type": 1,
"invoice_invoiced": "2026-11-03",
"invoice_due": "2026-11-17",
"invoice_total": 1000,
"invoice_total_vat": 230,
"invoice_total_with_vat": 1230,
"status": 1,
"company_id": 120,
"company_name": "Acme s.r.o.",
"company_ico": "12345678",
"project_id": null,
"project_name": null,
"invoice_owner": 15,
"created_by_name": "Jana Nováková",
"is_overdue": false,
"attachments_count": 1
}
],
"pagination": {
"current_page": 1,
"per_page": 20,
"total_records": 1,
"total_pages": 1,
"has_next": false,
"has_prev": false
}
}
}
status is calculated from the approval history. It is not a column you would send when creating the invoice.
Years in the filter: GET /api/incoming-invoices/available-years. Counts by status: GET /api/incoming-invoices/stats?year=2026. What you may do: GET /api/incoming-invoices/permissions.
GET /api/incoming-invoices/detail¶
| Parameter | Type | Required |
|---|---|---|
id |
integer | yes |
$res = innovanet('GET', '/api/incoming-invoices/detail?id=55');
The same: GET /api/incoming-invoices/55. Response 200, data is the invoice with payment details, VAT, history, attachments and payments. An unknown id returns an error with success: false.
POST /api/incoming-invoices/create¶
| Field | Type | Required | Description |
|---|---|---|---|
invoice_number |
string | yes | number from the supplier |
invoice_date |
date | yes | issue date, not in the future |
due_date |
date | yes | due date |
company_id |
integer | yes | supplier from the address book |
invoice_delivered |
date | no | delivery |
invoice_realised |
date | no | taxable supply |
project_id |
integer | no | |
contract_id |
integer | no | |
order_id |
integer | no | an approved order only |
invoice_type |
integer | no | 1–4, default regular |
payment_type |
integer | no | payment method |
invoice_currency_id |
integer | no | currency, 1 is the default |
invoice_vat_regime |
string | no | for example S |
variable_symbol |
string | no | |
constant_symbol |
string | no | |
invoice_description |
string | no | |
invoice_note |
string | no | |
vat_details |
array | no | VAT breakdown, not on an advance invoice |
A vat_details item: vat_rate (number), vat_category (string), vat_base, vat_value, vat_total (number). vat_id may be null.
Request
{
"invoice_number": "FA2026-0042",
"invoice_date": "2026-11-03",
"due_date": "2026-11-17",
"invoice_realised": "2026-11-03",
"company_id": 120,
"invoice_type": 1,
"invoice_currency_id": 1,
"payment_type": 1,
"invoice_vat_regime": "S",
"variable_symbol": "20260042",
"constant_symbol": "0308",
"invoice_description": "Servis vozidla",
"vat_details": [
{
"vat_rate": 23,
"vat_category": "S",
"vat_base": 1000.0,
"vat_value": 230.0,
"vat_total": 1230.0
}
]
}
cURL
curl -sS -X POST "https://api.innovanet.com/api/incoming-invoices/create" \
-H "Authorization: Bearer inv_mcp_…" \
-H "Content-Type: application/json" \
-d "{\"invoice_number\":\"FA2026-0042\",\"invoice_date\":\"2026-11-03\",\"due_date\":\"2026-11-17\",\"company_id\":120,\"invoice_type\":1}"
PHP
$res = innovanet('POST', '/api/incoming-invoices/create', [
'invoice_number' => 'FA2026-0042',
'invoice_date' => '2026-11-03',
'due_date' => '2026-11-17',
'invoice_realised' => '2026-11-03',
'company_id' => 120,
'invoice_type' => 1,
'invoice_currency_id' => 1,
'payment_type' => 1,
'variable_symbol' => '20260042',
'vat_details' => [[
'vat_rate' => 23,
'vat_category' => 'S',
'vat_base' => 1000.00,
'vat_value' => 230.00,
'vat_total' => 1230.00,
]],
]);
$invoiceId = $res['json']['data']['invoice_id'];
Response 201
{
"success": true,
"data": {
"message": "Invoice created successfully",
"invoice_id": 55
}
}
The same number from the same supplier returns 409 and code: invoice_number_exists_for_supplier. A missing required field returns 422. Without permission, 403.
PUT /api/incoming-invoices/update?id={id}¶
Send only the fields you change. id can also be in the body.
{
"id": 55,
"due_date": "2026-11-24",
"invoice_note": "Splatnosť predĺžená na 21 dní",
"vat_details": [
{
"vat_id": null,
"vat_rate": 23,
"vat_category": "S",
"vat_base": 1000.0,
"vat_value": 230.0,
"vat_total": 1230.0
}
]
}
innovanet('PUT', '/api/incoming-invoices/update?id=55', [
'due_date' => '2026-11-24',
'invoice_note' => 'Splatnosť predĺžená na 21 dní',
]);
Deletion: DELETE /api/incoming-invoices/delete?id=55.
POST /api/incoming-invoices/action¶
One approval step. reason_id is the step code.
reason_id |
Step | comment |
|---|---|---|
6 |
approve | no |
7 |
finally approve | no |
10 |
reject | yes |
11 |
return | no |
12 |
hold the payment | no |
13 |
release the payment | no |
14 |
comment | yes |
18 |
entered in the bank | no |
Request
{
"invoice_id": 55,
"reason_id": 10,
"comment": "Neobjednané plnenie"
}
PHP
innovanet('POST', '/api/incoming-invoices/action', [
'invoice_id' => 55,
'reason_id' => 7,
]);
Response 200
{ "success": true, "data": {} }
A step you do not have the role for returns 403 and success: false.
Payment and files¶
A manual payment, POST /api/incoming-invoices/payments:
{
"invoice_id": 55,
"payment_amount": 1280.0,
"payment_date": "2026-11-10",
"movement_type": 1,
"payment_note": "Uhradené prevodom"
}
payment_amount is a number, payment_date a date, movement_type an integer.
The Excel export is a file, not JSON: GET /api/incoming-invoices/export?year=2026. The row count before export: GET /api/incoming-invoices/export-count?year=2026.
A ZIP with PDF and ISDOC, POST /api/incoming-invoices/export-isdoc-zip, the response is a file:
{ "invoice_ids": [55, 56] }
An attachment (multipart, not JSON): POST /api/incoming-invoices/attachments with the fields invoice_id and file. Download: GET /api/incoming-invoices/attachments/download?id={attachment_id}.
Year report: GET /api/incoming-invoices/report?year=2026. Response 200, data is the summaries for the year.
Other paths¶
Each path below belongs to this module. Field names are the ones the API reads. A downloaded file is not JSON.
GET /api/incoming-invoices/edit-form-data¶
Parameters
| Field | Type | Required |
|---|---|---|
company_id |
string | no |
The API reads these fields. A field is required when the table says yes.
Response 200 – Envelope { "success": true, "data": ... }.
POST /api/incoming-invoices/extract¶
Body
| Field | Type | Required |
|---|---|---|
file |
file | yes |
The file is sent as multipart, not in JSON.
Response 200 – Envelope { "success": true, "data": ... }.
GET /api/incoming-invoices/attachments/check¶
Parameters
| Field | Type | Required |
|---|---|---|
id |
integer | yes |
The API reads these fields. A field is required when the table says yes.
Response 200 – Envelope { "success": true, "data": ... }.
Want to try this feature? Start your innovanet trial →