API – Payments¶
Paths are under https://api.innovanet.com. Header Authorization: Bearer inv_mcp_…. The innovanet() function is in the API chapter.
Reading and writing both need permission for the Payments module. A SEPA file requires a higher level (export in the portal).
GET /api/payments¶
| Parameter | Type | Required | Description |
|---|---|---|---|
page |
integer | no | default 1 |
per_page |
integer | no | default 20, at most 100 |
date_from, date_to |
date | no | |
amount_from, amount_to |
number | no | |
accounted |
string | no | accounted / unaccounted |
direction |
string | no | received or sent |
company_id |
integer | no | |
search |
string | no | |
sort_by |
string | no | default payment_id |
sort_dir |
string | no | asc or desc |
PHP
$res = innovanet('GET', '/api/payments?page=1&per_page=20&date_from=2026-11-01&date_to=2026-11-30');
Response 200
{
"success": true,
"data": [
{
"payment_id": 300,
"payment_type": 1,
"payment_date": "05.11.2026",
"payment_amount": "1 230,00",
"payment_amount_raw": 1230,
"payment_currency": "EUR",
"payment_party": "Acme s.r.o.",
"payment_company_id": 120,
"payment_variable": "20260001",
"payment_accounted": 0,
"payment_intiban": "SK31...",
"payment_extiban": "SK89..."
}
],
"total": 1,
"page": 1,
"per_page": 20
}
data is an array directly under the root, not inside another object. payment_date is the text dd.mm.yyyy. The number for calculation is payment_amount_raw.
Detail: GET /api/payments/300. Statistics: GET /api/payments/stats. Unmatched: GET /api/payments/unaccounted. Cashflow: GET /api/payments/cashflow (optional account_unit_id – a view of one branch; without it, the whole company). The response is described in the cashflow section below.
POST /api/payments¶
Add a payment manually.
| Field | Type | Required | Description |
|---|---|---|---|
payment_date |
date | yes | |
payment_amount |
number | yes | |
payment_bank_account |
integer | yes | id of the company's internal account |
payment_iban |
string | no | counterparty IBAN, at most 34 |
company_id |
integer | no | partner |
payment_currency |
integer | no | currency id |
payment_reference |
string | no | |
payment_variable |
string | no | variable symbol, at most 10 |
payment_constant |
string | no | |
payment_specific |
string | no | |
payment_description |
string | no |
Request
{
"payment_date": "2026-11-05",
"payment_amount": 1230,
"payment_bank_account": 1,
"company_id": 120,
"payment_currency": 1,
"payment_variable": "20260001",
"payment_iban": "SK3111000000002612345678"
}
cURL
curl -sS -X POST "https://api.innovanet.com/api/payments" \
-H "Authorization: Bearer inv_mcp_…" \
-H "Content-Type: application/json" \
-d "{\"payment_date\":\"2026-11-05\",\"payment_amount\":1230,\"payment_bank_account\":1,\"company_id\":120,\"payment_variable\":\"20260001\"}"
PHP
$res = innovanet('POST', '/api/payments', [
'payment_date' => '2026-11-05',
'payment_amount' => 1230,
'payment_bank_account' => 1,
'company_id' => 120,
'payment_variable' => '20260001',
]);
$paymentId = $res['json']['newid'];
Response 201
{
"success": true,
"newid": 300,
"message": "Platba bola úspešne vytvorená",
"data": {
"payment_id": 300,
"payment_amount": 1230,
"payment_date": "2026-11-05"
}
}
The new payment id is in newid and in data.payment_id. Updating an unaccounted payment: PATCH /api/payments/300 with the same fields as on create.
POST /api/payments/{id}/assign¶
Assigning a payment to documents. The key is id-type, the value is the amount.
| Type in the key | Document |
|---|---|
1 |
incoming invoice |
2 |
outgoing invoice |
4 |
other payment (category) |
Request – 1000 € on incoming invoice 55 and 230 € on outgoing invoice 80:
{
"assignments": {
"55-1": 1000,
"80-2": 230
}
}
PHP
innovanet('POST', '/api/payments/300/assign', [
'assignments' => [
'55-1' => 1000,
'80-2' => 230,
],
]);
Response 200
{
"success": true,
"message": "Platba bola úspešne priradená"
}
The sum of the assignments must not exceed the payment amount, otherwise 422.
Payment orders (batches)¶
The portal generates them in Payments → Export by calling POST /api/payments/orders/generate. The older call POST /api/payments/sepa/generate returns only the file and does not store a batch. The batches below are for tracking exports. Permission to export payments is required.
GET /api/payments/orders/candidates¶
Invoices ready for payment from one account.
| Parameter | Type | Required | Description |
|---|---|---|---|
bank_account_id |
integer | yes | company account |
profile |
string | no | bank profile, otherwise determined from the IBAN |
$res = innovanet('GET', '/api/payments/orders/candidates?bank_account_id=1');
Response 200
{
"success": true,
"data": {
"account": {
"id": 1,
"iban": "SK3112000000198742637541",
"currency": "EUR",
"profile": "sk_generic",
"profile_name": "SEPA"
},
"invoices": [
{
"invoice_id": 55,
"invoice_number": "FA2026-0042",
"due_amount": 1230,
"currency_code": "EUR",
"recipient_iban": "SK3111000000002612345678"
}
]
}
}
POST /api/payments/orders/generate¶
Generates the file, stores the batch and marks the invoices as entered in the bank. Without download=1 the response is JSON. With ?download=1 the response is the file itself.
| Field | Type | Required | Description |
|---|---|---|---|
bank_account_id |
integer | yes | |
items |
array | yes | at least one item |
items[].invoice_id |
integer | yes | |
items[].amount |
number | no | otherwise the invoice balance |
items[].execution_date |
date | no | YYYY-MM-DD |
scheme |
string | no | sepa, nonsepa or domestic |
payday_mode |
string | no | from_invoice, last_weekday, today, override |
payday |
date | when override |
Request
{
"bank_account_id": 1,
"items": [
{ "invoice_id": 55, "amount": 1230, "execution_date": "2026-11-17" }
],
"payday_mode": "from_invoice",
"scheme": "sepa"
}
PHP
$res = innovanet('POST', '/api/payments/orders/generate', [
'bank_account_id' => 1,
'items' => [
['invoice_id' => 55, 'amount' => 1230, 'execution_date' => '2026-11-17'],
],
'scheme' => 'sepa',
]);
$batchId = $res['json']['data']['batch']['id'];
Response 200
{
"success": true,
"data": {
"batch": {
"id": 4,
"status": "generated",
"scheme": "sepa",
"orders_count": 1,
"total_amount": 1230,
"currency": "EUR",
"file_name": "pain001-4.xml"
},
"filename": "pain001-4.xml",
"skipped": [],
"warnings": []
}
}
Preview without writing: POST /api/payments/orders/preview with the same body.
GET /api/payments/orders/batches¶
Tracking generated batches.
| Parameter | Type | Required | Description |
|---|---|---|---|
year |
integer | no | year by creation date |
bank_account_id |
integer | no | |
status |
string | no | generated or cancelled |
$res = innovanet('GET', '/api/payments/orders/batches?year=2026&status=generated');
Response 200
{
"success": true,
"data": [
{
"id": 4,
"bank_account_id": 1,
"scheme": "sepa",
"format": "pain001",
"currency": "EUR",
"orders_count": 1,
"total_amount": 1230,
"file_name": "pain001-4.xml",
"has_file": true,
"status": "generated",
"created_at": "2026-11-05 09:12:00",
"cancel_in_window": true
}
]
}
Detail with orders and a check against imported payments: GET /api/payments/orders/batches/4. Each order is in data.items, and data.check has the counts matched and unmatched. An item has payment with payment_id when it already matches a statement, otherwise null.
Batch file: GET /api/payments/orders/batches/4/download returns the file, not JSON.
Cancellation: POST /api/payments/orders/batches/4/cancel.
{ "reason": "omylom vygenerované" }
Within a short window after creation, a call without a reason is enough. After the window an administrator requires a reason. The 200 response has success: true and data is the batch with status: cancelled.
POST /api/payments/sepa/generate¶
Older call. The response is a pain.001 file, and the batch is not stored. Body:
{
"bank_account_id": 1,
"invoice_ids": [55],
"amounts": { "55": 1230 },
"paydays": { "55": "2026-11-17" }
}
Candidates for this older call: GET /api/payments/sepa/invoices.
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/payments/create-form¶
No body.
Response 200 – Envelope { "success": true, "data": ... }.
PUT /api/payments/orders/profile¶
Body
| Field | Type | Required |
|---|---|---|
bank_account_id |
integer | yes |
profile |
string | no |
{
"bank_account_id": 1,
"profile": "text"
}
$res = innovanet('PUT', '/api/payments/orders/profile', [
'bank_account_id' => 1,
'profile' => 'text',
]);
Response 200 – Envelope { "success": true, "data": ... }.
GET /api/payments/import-adapters¶
No body.
Response 200 – Envelope { "success": true, "data": ... }.
GET /api/payments/import/formats¶
No body.
Response 200 – Envelope { "success": true, "data": ... }.
POST /api/payments/import/preview¶
Body
| Field | Type | Required |
|---|---|---|
format |
string | no |
adapter_key |
string | no |
payment_bank_account |
string | no |
has_header |
string | no |
force_account |
string | no |
{
"format": "text",
"adapter_key": "text",
"payment_bank_account": "text",
"has_header": "text",
"force_account": "text"
}
$res = innovanet('POST', '/api/payments/import/preview', [
'format' => 'text',
'adapter_key' => 'text',
'payment_bank_account' => 'text',
'has_header' => 'text',
'force_account' => 'text',
]);
The API reads these fields. A field is required when the table says yes.
Response 200 – Envelope { "success": true, "data": ... }.
GET /api/payments/import/mappings¶
No body.
Response 200 – Envelope { "success": true, "data": ... }.
DELETE /api/payments/import/mappings/{id}¶
No body.
Response 200 – Envelope { "success": true, "data": ... }.
GET /api/payments/import/statements¶
Parameters
| Field | Type | Required |
|---|---|---|
account_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/payments/import¶
Body
| Field | Type | Required |
|---|---|---|
format |
string | no |
adapter_key |
string | no |
payment_bank_account |
string | no |
has_header |
string | no |
force_account |
string | no |
{
"format": "text",
"adapter_key": "text",
"payment_bank_account": "text",
"has_header": "text",
"force_account": "text"
}
$res = innovanet('POST', '/api/payments/import', [
'format' => 'text',
'adapter_key' => 'text',
'payment_bank_account' => 'text',
'has_header' => 'text',
'force_account' => 'text',
]);
The API reads these fields. A field is required when the table says yes.
Response 200 – Envelope { "success": true, "data": ... }.
POST /api/payments/settlement¶
Body
| Field | Type | Required |
|---|---|---|
date |
date | yes |
assignments |
array | no |
{
"date": "2026-11-05",
"assignments": []
}
$res = innovanet('POST', '/api/payments/settlement', [
'date' => 'text',
'assignments' => [],
]);
Response 201 – Envelope { "success": true, "data": ... }.
PUT /api/payments/settlement/{id}¶
Body
| Field | Type | Required |
|---|---|---|
date |
date | no |
assignments |
array | yes |
{
"date": "2026-11-05",
"assignments": []
}
$res = innovanet('PUT', '/api/payments/settlement/1', [
'date' => 'text',
'assignments' => [],
]);
Response 200 – Envelope { "success": true, "data": ... }.
GET /api/payments/available-months¶
No body.
Response 200 – Envelope { "success": true, "data": ... }.
GET /api/payments/exchange-rate¶
Parameters
| Field | Type | Required |
|---|---|---|
from_currency_id |
integer | yes |
to_currency_id |
integer | no |
date |
date | no |
Response 200 – Envelope { "success": true, "data": ... }.
GET /api/payments/cashflow/detail¶
Parameters
| Field | Type | Required |
|---|---|---|
bucket_start |
string | no |
bucket_end |
string | no |
direction |
string | no |
date_from |
string | no |
date_to |
string | no |
project_id |
string | no |
account_unit_id |
integer | no |
The API reads these fields. A field is required when the table says yes. account_unit_id limits the documents to one branch (accounting unit), project_id to one project.
Response 200 – Envelope { "success": true, "data": ... }. Besides the amount, every document row has vat_amount (the VAT contained in the amount).
Cashflow – VAT and branches¶
GET /api/payments/cashflow and GET /api/projects/{id}/cashflow return new VAT fields in every period (buckets) and in the totals (totals):
| Field | Meaning |
|---|---|
vat_collected |
VAT collected in income |
vat_paid |
VAT paid in expenses |
vat_collected_exp |
VAT collected, expected (forecast) |
vat_paid_exp |
VAT paid, expected (forecast) |
Both routes accept account_unit_id (the branch id). In GET /api/projects/{id}/cashflow the project is given by the path.
You write fixed items (wages, rent, loan repayments) with POST /api/payments/cashflow/fixed-items and change them with PUT /api/payments/cashflow/fixed-items/{id}. Both calls accept an optional account_unit_id (a number or null). An item without a branch (null) is for the whole company and does not appear in a branch view.
GET /api/payments/settlement/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": ... }.
GET /api/payments/other-costs¶
403 without the Payments permission (level 1 or higher).
No body.
Response 200 – Envelope { "success": true, "data": ... }.
POST /api/payments/other-costs¶
403 without the Payments permission (level 1 or higher).
Body
| Field | Type | Required |
|---|---|---|
other_cost_name |
string | yes |
company_id |
integer | no |
other_amount |
number | no |
{
"other_cost_name": "text",
"company_id": 1,
"other_amount": 1
}
$res = innovanet('POST', '/api/payments/other-costs', [
'other_cost_name' => 'text',
'company_id' => 1,
'other_amount' => 1,
]);
Response 201 – Envelope { "success": true, "data": ... }.
PATCH /api/payments/other-costs/{id}¶
403 without the Payments permission (level 1 or higher).
No body.
Response 200 – Envelope { "success": true, "data": ... }.
GET /api/payments/{id}/suggestions¶
No body.
Response 200 – Envelope { "success": true, "data": ... }.
Want to try this feature? Start your innovanet trial →