Base URL
https://{tenant}.logzi.com/api/receipt_status/
Every request returns a JSON response. On success result.code == 1; on error result.code == 0. A receipt status is a state shown on documents — e.g. planned, closed, paid. Statuses can also store translations in multiple languages.
/api/receipt_status/get
Retrieve a single receipt status by identifier and language.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | int | Status identifier | |
language_id | int | Translation language identifier |
Example request
GET /api/receipt_status/get?id=1&language_id=1
X-API-KEY: {your_api_key}
/api/receipt_status/get_all
Retrieve all receipt statuses — without filtering.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | int | Optional status identifier filter |
Example request
GET /api/receipt_status/get_all
X-API-KEY: {your_api_key}
/api/receipt_status/list
Paginated list of receipt statuses.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
list_offset | int | Pagination offset (default: 0) | |
list_condition | object | Filter conditions object | |
language_id | int | Translation language identifier |
Example request
GET /api/receipt_status/list?language_id=1
X-API-KEY: {your_api_key}
/api/receipt_status/save
Create or update a receipt status. For a new status use data[id] = 0. The data array can also contain translations in multiple languages.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | 0 = new status, >0 = update | |
name_key | string | Status key name (translation key) | |
outer_resource_name | string | Status name in the external system | |
data | object | Translations object: { "1": "Tervezett", "2": "Planned" } (key = language_id) |
Example request
POST /api/receipt_status/save
X-API-KEY: {your_api_key}
Content-Type: application/json
{
"data": {
"id": 0,
"name_key": "receipt_status_custom",
"outer_resource_name": "PENDING",
"data": { "1": "Várakozik", "2": "Pending" }
}
}
/api/receipt_status/delete
Delete a receipt status by identifier. Only removable (removeable = 1) statuses can be deleted.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | Identifier of the status to delete |
Example request
POST /api/receipt_status/delete
X-API-KEY: {your_api_key}
Content-Type: application/json
{ "data": { "id": 5 } }
Create your account now,
pay later!