API – Outgoing invoices¶
Paths are under https://api.innovanet.com. Header Authorization: Bearer inv_mcp_…. The innovanet() function is in the API chapter.
Invoice type: 1 regular, 2 proforma, 3 credit note, 4 debit note, 5 tax document for a received payment (created only from a paid proforma, it cannot be created through create). If you do not send the number, the system fills it in.
GET /api/outgoing-invoices¶
| Parameter | Type | Required | Description |
|---|---|---|---|
page |
integer | no | default 1 |
limit |
integer | no | default 20 |
search |
string | no | |
sort_by |
string | no | default invoice_invoiced |
sort_order |
string | no | ASC or DESC |
status |
string | no | |
invoice_type |
integer | no | 1–5 |
year |
integer | no | |
month_from, month_to |
integer | no | |
project_id |
integer | no | |
owner_id |
integer | no | |
customer_id |
integer | no | customer company_id |
PHP
$res = innovanet('GET', '/api/outgoing-invoices?page=1&limit=20&year=2026');
Response 200
{
"success": true,
"data": {
"records": [
{
"invoice_id": 80,
"invoice_number": "FV20260001",
"invoice_type": 1,
"invoice_invoiced": "2026-11-05",
"invoice_due": "2026-11-19",
"invoice_total": 1000,
"invoice_total_with_vat": 1230,
"company_id": 120,
"company_name": "Acme s.r.o."
}
],
"pagination": {
"current_page": 1,
"per_page": 20,
"total_records": 1,
"total_pages": 1
}
}
}
Other reads: GET /api/outgoing-invoices/available-years, GET /api/outgoing-invoices/stats, GET /api/outgoing-invoices/permissions, GET /api/outgoing-invoices/next-number, GET /api/outgoing-invoices/report?year=2026.
GET /api/outgoing-invoices/report returns 403 without the "view all invoices" level.
Detail: GET /api/outgoing-invoices/80 or GET /api/outgoing-invoices/detail?id=80. The PDF is a file: GET /api/outgoing-invoices/80/pdf.
POST /api/outgoing-invoices/create¶
| Field | Type | Required | Description |
|---|---|---|---|
invoice_type |
integer | yes | 1–4 |
invoice_date |
date | yes | issue date |
due_date |
date | yes | due date |
company_id |
integer | yes | customer from the address book |
items |
array | yes | at least one item |
invoice_number |
string | no | when missing, the system generates it |
project_id |
integer | no | |
contract_id |
integer | no | |
order_id |
integer | no | |
proforma_id |
integer | no | for a regular invoice that follows a proforma |
invoice_currency_id |
integer | no | |
payment_type |
integer | no | |
variable_symbol |
string | no | |
constant_symbol |
string | no | |
invoice_description |
string | no | |
invoice_note |
string | no |
Item in items:
| Field | Type | Required | Description |
|---|---|---|---|
item_subject |
string | yes | name |
item_unitprice |
number | yes | unit price without VAT |
item_pcs |
number | yes | quantity |
item_vat |
number | yes | VAT rate in percent |
item_unit |
string | no | default ks |
item_desc |
string | no |
Request
{
"invoice_type": 1,
"invoice_date": "2026-11-05",
"due_date": "2026-11-19",
"company_id": 120,
"variable_symbol": "20260001",
"items": [
{
"item_subject": "Servis",
"item_unitprice": 1000,
"item_pcs": 1,
"item_vat": 23,
"item_unit": "ks"
}
]
}
cURL
curl -sS -X POST "https://api.innovanet.com/api/outgoing-invoices/create" \
-H "Authorization: Bearer inv_mcp_…" \
-H "Content-Type: application/json" \
-d "{\"invoice_type\":1,\"invoice_date\":\"2026-11-05\",\"due_date\":\"2026-11-19\",\"company_id\":120,\"items\":[{\"item_subject\":\"Servis\",\"item_unitprice\":1000,\"item_pcs\":1,\"item_vat\":23}]}"
PHP
$res = innovanet('POST', '/api/outgoing-invoices/create', [
'invoice_type' => 1,
'invoice_date' => '2026-11-05',
'due_date' => '2026-11-19',
'company_id' => 120,
'items' => [[
'item_subject' => 'Servis',
'item_unitprice' => 1000,
'item_pcs' => 1,
'item_vat' => 23,
]],
]);
Response 201
{
"success": true,
"data": {
"message": "Invoice created successfully",
"invoice_id": 80,
"invoice_number": "FV20260001"
}
}
The server calculates the totals from the items. A duplicate number returns 409. Without permission, 403. A missing required field returns 400 and the text Field items is required (or the name of another field).
PUT /api/outgoing-invoices/update?id={id}¶
Send the fields you change. id can be in the query or in the body.
innovanet('PUT', '/api/outgoing-invoices/update?id=80', [
'due_date' => '2026-11-26',
'invoice_note' => 'Splatnosť predĺžená',
]);
Deletion: DELETE /api/outgoing-invoices/delete?id=80.
Email with the PDF: POST /api/outgoing-invoices/80/send-email. Manual payment: POST /api/outgoing-invoices/payments with invoice_id, payment_amount and payment_date.
Other paths¶
Each path below belongs to this module. Field names are the ones the API reads. A downloaded file is not JSON.
POST /api/outgoing-invoices/action¶
403 when the user may not see the invoice (only its owner and users who see all invoices may).
Body
| Field | Type | Required |
|---|---|---|
invoice_id |
string | no |
reason_id |
string | no |
comment |
string | no |
{
"invoice_id": "text",
"reason_id": "text",
"comment": "text"
}
$res = innovanet('POST', '/api/outgoing-invoices/action', [
'invoice_id' => 'text',
'reason_id' => 'text',
'comment' => 'text',
]);
The API reads these fields. A field is required when the table says yes.
Response 200 – Envelope { "success": true, "data": ... }.
POST /api/outgoing-invoices/attachments¶
Attach a file to an outgoing invoice. Both invoice_id and file are required. The user needs invoice access and attachment write permission. Missing values return 400; missing permission returns 403. Success returns JSON.
| Field | Type | Required |
|---|---|---|
invoice_id |
integer | yes |
file |
file | yes |
Send the file as multipart/form-data. Bash example:
curl -sS -X POST "https://api.innovanet.com/api/outgoing-invoices/attachments" -H "Authorization: Bearer inv_mcp_…" -H "Accept: application/json" -F "invoice_id=55" -F "file=@document.pdf"
GET /api/outgoing-invoices/attachments/download¶
403 when the user may not see the invoice (only its owner and users who see all invoices may).
Parameters
| Field | Type | Required |
|---|---|---|
id |
string | no |
The API reads these fields. A field is required when the table says yes.
Response – The response is a file, not JSON.
DELETE /api/outgoing-invoices/attachments¶
403 when the user may not see the invoice, or is neither its owner, a financial manager nor an admin.
Parameters
| Field | Type | Required |
|---|---|---|
id |
string | no |
The API reads these fields. A field is required when the table says yes.
Response 200 – Envelope { "success": true, "data": ... }.
GET /api/outgoing-invoices/proformas¶
Only proformas the user may see are returned: all with the "view all" level, otherwise only own invoices.
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/outgoing-invoices/{id}/advance-tax-document¶
Issues a tax document for the received payment from the paid proforma invoice {id}. Requires the right to create invoices and access to the proforma. The document takes over the customer, items and references of the proforma, its tax point is the day the payment arrived and it is settled at once. The proforma stays, the regular invoice settles it later.
Parameters
| Field | Type | Required |
|---|---|---|
issue_date |
string | no |
issue date YYYY-MM-DD, default today.
400 when the proforma is not paid, a document already exists or a regular invoice has already settled it. 201 returns invoice_id and invoice_number of the new document.
GET /api/outgoing-invoices/email-template¶
Parameters
| Field | Type | Required |
|---|---|---|
language |
string | no |
The API reads these fields. A field is required when the table says yes.
Response 200 – Envelope { "success": true, "data": ... }.
PUT /api/outgoing-invoices/email-template¶
403 unless the user is a super admin or a financial manager.
Body
| Field | Type | Required |
|---|---|---|
language |
string | yes |
subject |
string | yes |
body |
string | yes |
{
"language": "text",
"subject": "text",
"body": "text"
}
$res = innovanet('PUT', '/api/outgoing-invoices/email-template', [
'language' => 'text',
'subject' => 'text',
'body' => 'text',
]);
Response 200 – Envelope { "success": true, "data": ... }.
GET /api/outgoing-invoices/{id}/pdf/download¶
403 when the user may not see the invoice (this also applies to GET /api/outgoing-invoices/{id}/pdf).
Parameters
| Field | Type | Required |
|---|---|---|
language |
string | no |
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 →