API – Address book¶
All paths are under https://api.innovanet.com. Header Authorization: Bearer inv_mcp_…. The innovanet() function is in the API chapter. A write (POST, PUT, DELETE) requires a read and write token and permission for the address book.
company_is_business: 1 legal entity, 2 natural person, 3 employee. For type 1 and country SK or CZ the company ID is required.
GET /api/address-book¶
List of partners.
| Parameter | In query | Type | Required | Description |
|---|---|---|---|---|
page |
yes | integer | no | default 1 |
limit |
yes | integer | no | default 20, at most 5000 |
search |
yes | string | no | name, company ID, tax ID, VAT ID |
sort_by |
yes | string | no | company_name, company_ico, company_dic, company_is_active, company_is_business, company_id |
sort_order |
yes | string | no | ASC or DESC |
removed |
yes | string | no | active (default), removed, all |
type |
yes | integer | no | 1, 2 or 3 |
cURL
curl -sS "https://api.innovanet.com/api/address-book?page=1&limit=20&search=Acme&sort_by=company_name&sort_order=ASC&removed=active" \
-H "Authorization: Bearer inv_mcp_…" \
-H "Accept: application/json"
PHP
$res = innovanet('GET', '/api/address-book?page=1&limit=20&search=Acme&type=1');
Response 200
{
"success": true,
"data": {
"records": [
{
"company_id": 120,
"company_name": "Acme s.r.o.",
"company_ico": "12345678",
"company_dic": "2020000000",
"company_vat": "SK2020000000",
"company_is_business": 1,
"company_is_active": 1
}
],
"pagination": {
"current_page": 1,
"per_page": 20,
"total_records": 1,
"total_pages": 1,
"has_next": false,
"has_prev": false
}
}
}
Counts in the list header: GET /api/address-book/stats.
{
"success": true,
"data": {
"active": 40,
"removed": 2,
"legal": 30,
"natural": 8,
"employees": 2,
"vat_payers": 25
}
}
Selection for a form: GET /api/address-book/select?search=Acme.
GET /api/address-book/detail/{id}¶
Partner detail, including addresses, contacts and accounts. {id} is company_id.
$res = innovanet('GET', '/api/address-book/detail/120');
Response 200 – data is the partner. tabs_visibility says whether you see the tabs for incoming invoices, outgoing invoices, contracts and orders. An unknown id returns 404.
POST /api/address-book/create¶
A new partner.
| Field | Type | Required | Description |
|---|---|---|---|
company_is_business |
integer | yes | 1, 2 or 3 |
company_name |
string | for type 1 and 2 | at most 255. For type 3 the name is composed from the person's name |
company_ico |
string | for type 1 and country SK/CZ | at most 20 |
company_dic |
string | no | |
company_vat |
string | no | VAT ID |
company_vat_payer |
0 or 1 | no | |
company_registration |
string | no | entry in the register |
company_www |
string | no | |
company_note |
string | no | |
company_code |
string | no | internal code, at most 50 |
address_street, address_street_number, address_city, address_zip, address_region |
string | no | the first address |
address_country |
string | no | SK, CZ, … |
contact_first_name, contact_family_name |
string | for type 2 and 3 | |
contact_gender |
string | no | M or F |
contact_email |
string | no | |
contact_phone |
string | no | |
contact_position |
string | no | |
company_industries |
array of strings | no | industries |
Request
{
"company_is_business": 1,
"company_name": "Acme s.r.o.",
"company_ico": "12345678",
"company_dic": "2020000000",
"company_vat": "SK2020000000",
"address_street": "Hlavná",
"address_street_number": "1",
"address_zip": "81101",
"address_city": "Bratislava",
"address_country": "SK",
"contact_first_name": "Jana",
"contact_family_name": "Nováková",
"contact_email": "jana@acme.example"
}
cURL
curl -sS -X POST "https://api.innovanet.com/api/address-book/create" \
-H "Authorization: Bearer inv_mcp_…" \
-H "Content-Type: application/json" \
-d "{\"company_is_business\":1,\"company_name\":\"Acme s.r.o.\",\"company_ico\":\"12345678\",\"address_country\":\"SK\",\"address_city\":\"Bratislava\"}"
PHP
$res = innovanet('POST', '/api/address-book/create', [
'company_is_business' => 1,
'company_name' => 'Acme s.r.o.',
'company_ico' => '12345678',
'address_street' => 'Hlavná',
'address_street_number' => '1',
'address_zip' => '81101',
'address_city' => 'Bratislava',
'address_country' => 'SK',
'contact_first_name' => 'Jana',
'contact_family_name' => 'Nováková',
'contact_email' => 'jana@acme.example',
]);
$companyId = $res['json']['data']['company_id'];
Response 201
{
"success": true,
"data": {
"message": "Company created",
"company_id": 120,
"company": {
"company_id": 120,
"company_name": "Acme s.r.o.",
"company_ico": "12345678"
}
}
}
A missing company ID for a Slovak company returns 422 and errors.company_ico.
PUT /api/address-book/update¶
Send id and only the fields you change.
{
"id": 120,
"company_www": "https://acme.example",
"company_is_active": 1
}
innovanet('PUT', '/api/address-book/update', [
'id' => 120,
'company_www' => 'https://acme.example',
'company_is_active' => 1,
]);
Removal from the list (it stays in the history): DELETE /api/address-book/delete?id=120. Restore: POST /api/address-book/restore?id=120. Before deletion: GET /api/address-book/can-delete?id=120.
Addresses, contacts, accounts, notes¶
POST /api/address-book/addresses/create
{
"company_id": 120,
"address_one": "Hlavná 1",
"address_city": "Bratislava",
"address_zip": "81101",
"address_country": "SK",
"address_registered_address": 1,
"address_delivery_address": 1
}
Update: PUT /api/address-book/addresses/update with the address id. Deletion: DELETE /api/address-book/addresses/delete?id={address_id}.
POST /api/address-book/contacts/create
{
"company_id": 120,
"contact_gender": "M",
"contact_title_before": "Ing.",
"contact_first_name": "Ján",
"contact_family_name": "Tester",
"contact_position": "Konateľ",
"contact_phone": "+421900000000",
"contact_email": "jan.tester@example.com"
}
List: GET /api/address-book/{company_id}/contacts. Update: PUT /api/address-book/contacts/update with id. Deletion: DELETE /api/address-book/contacts/delete?id={contact_id}.
POST /api/address-book/bank-accounts/validate-iban checks the format and the checksum.
{ "iban": "SK3111000000002612345678" }
POST /api/address-book/bank-accounts/verify-iban fills in the BIC and the bank name. The body is the same.
POST /api/address-book/bank-accounts/create
{
"company_id": 120,
"country": "SK",
"iban": "SK3111000000002612345678",
"bic": "TATRSKBX",
"bank": "Tatra banka",
"is_account_default": 1
}
List: GET /api/address-book/bank-accounts/by-company/120. Update: PUT /api/address-book/bank-accounts/update with id. Deletion: DELETE /api/address-book/bank-accounts/delete?id={bank_account_id}.
POST /api/address-book/notes/create
{
"company_id": 120,
"company_note_text": "Dohodnutá splatnosť 30 dní."
}
List: GET /api/address-book/notes/by-company/120. Update: PUT /api/address-book/notes/update with id and company_note_text. Deletion: DELETE /api/address-book/notes/delete?id={note_id}.
PHP – note
innovanet('POST', '/api/address-book/notes/create', [
'company_id' => 120,
'company_note_text' => 'Dohodnutá splatnosť 30 dní.',
]);
A successful write returns 200 or 201 and success: true. A field error returns 422 and an errors object.
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/address-book/emails¶
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/address-book/permissions¶
No body.
Response 200 – Envelope { "success": true, "data": ... }.
GET /api/address-book/{companyId}/contacts¶
No body.
Response 200 – Envelope { "success": true, "data": ... }.
GET /api/address-book/industries¶
No body.
Response 200 – Envelope { "success": true, "data": ... }.
GET /api/address-book/finstat/query¶
Parameters
| Field | Type | Required |
|---|---|---|
ico |
string | no |
The API reads these fields. A field is required when the table says yes.
Response 200 – Envelope { "success": true, "data": ... }.
GET /api/address-book/company-search¶
Parameters
| Field | Type | Required |
|---|---|---|
q |
string | no |
The API reads these fields. A field is required when the table says yes.
Response 200 – Envelope { "success": true, "data": ... }.
GET /api/address-book/vat-check¶
Parameters
| Field | Type | Required |
|---|---|---|
vat |
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 →
Access rights (2026-11)
PUT /api/address-book/notes/update and DELETE /api/address-book/notes/delete: a note can be changed or deleted only by its author or a user with Address book - Admin permission (otherwise 403).