Base URL
https://{tenant}.logzi.com/api/invoice_in/
Every request returns a JSON response. On success result.code == 1; on error result.code == 0.
/api/invoice_in/getRetrieve a single incoming invoice by identifier, with full details.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | int | Unique identifier of the incoming invoice | |
identify | string | Can also be retrieved by invoice number |
Example request
GET /api/invoice_in/get?id=77
X-API-KEY: {your_api_key}
/api/invoice_in/listPaginated retrieval of the incoming invoice list with filtering options.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
list_offset | int | Pagination offset (default: 0) | |
list_count | int | Number of records per page | |
list_condition[identify] | string | Filter by invoice number (LIKE) | |
list_condition[company_name] | string | Filter by supplier name (LIKE) | |
list_condition[status_id] | int | Filter by status | |
list_condition[date_create_from] | date | Creation date - from (YYYY-MM-DD) | |
list_condition[date_create_to] | date | Creation date - to (YYYY-MM-DD) |
Example request
GET /api/invoice_in/list?list_offset=0&list_condition[status_id]=1
X-API-KEY: {your_api_key}
/api/invoice_in/list_onlinePaginated list of incoming invoices downloaded from the NAV Online Invoicing system, with filtering options. The XML source is not included in the list, the page size is 10.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
list_offset | int | Pagination offset (default: 0) | |
list_condition[date_create_from] | date | Download date - from (YYYY-MM-DD) | |
list_condition[date_create_to] | date | Download date - to (YYYY-MM-DD) | |
list_condition[currency] | string | Filter by currency (e.g. HUF) | |
list_condition[supplier_name] | string | Filter by supplier name (LIKE) | |
list_condition[invoice_number] | string | Filter by invoice number (exact match) | |
list_condition[invoice_is_inserted] | int | Filter by booking status: 1 = booked, 2 = pending booking, other = all |
Example request
GET /api/invoice_in/list_online?list_offset=0&list_condition[invoice_is_inserted]=2
X-API-KEY: {your_api_key}
/api/invoice_in/get_onlineRetrieve a single incoming invoice downloaded from the NAV Online Invoicing system by identifier or invoice number, including the XML source. At least one of the two parameters is required.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | int | Unique identifier of the invoice downloaded from NAV | |
invoice_number | string | Can also be retrieved by invoice number (partial match) |
Example request
GET /api/invoice_in/get_online?id=15
X-API-KEY: {your_api_key}
/api/invoice_in/saveCreate or update an incoming invoice. For a new invoice use data[id] = 0.
POST fields - data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | 0 = new invoice, >0 = update | |
company_id | int | Company identifier | |
company_user_id | int | ID of the responsible employee | |
company_address_id | int | Company site ID | |
currency_id | int | Currency identifier | |
partner_id | int | Supplier partner identifier | |
date_perform | date | Performance date (YYYY-MM-DD) | |
date_pay | date | Payment due date (YYYY-MM-DD) | |
paymod_id | int | Payment method identifier | |
comment_top | string | Comment | |
comment_bottom | string | Internal comment | |
item | array | Array of line items (see below) |
Line item fields - data[item][]
| Field | Type | Required | Description |
|---|---|---|---|
product_id | int | Product identifier | |
quantity | float | Quantity | |
price | float | Net unit price | |
tax_id | int | VAT rate identifier | |
store_id | int | Destination warehouse identifier | |
remove | int | 1 = delete the line item on update |
Example request
POST /api/invoice_in/save
X-API-KEY: {your_api_key}
Content-Type: application/json
{
"data": {
"id": 0,
"company_id": 1,
"company_user_id": 3,
"company_address_id": 1,
"currency_id": 1,
"partner_id": 8,
"date_perform": "2024-06-30",
"date_pay": "2024-07-30",
"item": [
{ "product_id": 2, "quantity": 100, "price": 500, "tax_id": 2 }
]
}
}
/api/invoice_in/deleteDelete an incoming invoice. Only an open (status_id=1) invoice can be deleted.
POST fields - data object
| Field | Type | Required | Description |
|---|---|---|---|
receipt_id | int | Identifier of the invoice to delete |
Example request
POST /api/invoice_in/delete
X-API-KEY: {your_api_key}
Content-Type: application/json
{ "data": { "receipt_id": 77 } }
/api/invoice_in/closeClose an incoming invoice. Closing generates the accounting entries. Warehouse receiving is handled through the warehouse receipt (booking) module. Only an open (status_id=1) invoice can be closed.
POST fields - data object
| Field | Type | Required | Description |
|---|---|---|---|
receipt_id | int | Identifier of the invoice to close |
Example request
POST /api/invoice_in/close
X-API-KEY: {your_api_key}
Content-Type: application/json
{ "data": { "receipt_id": 77 } }
Create your account now,
pay later!