Base URL
https://{tenant}.logzi.com/api/receipt_status_reason/
Every request returns a JSON response. On success result.code == 1; on error result.code == 0. A receipt status reason is a predefined text that the user can select when changing a status (e.g. reason for rejection, reason for deletion).
/api/receipt_status_reason/get
Retrieve a single status reason by identifier.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | int | Status reason identifier |
Example request
GET /api/receipt_status_reason/get?id=1
X-API-KEY: {your_api_key}
/api/receipt_status_reason/list
Paginated list of status reasons.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
list_offset | int | Pagination offset (default: 0) | |
list_condition | object | Filter conditions object |
Example request
GET /api/receipt_status_reason/list?list_offset=0
X-API-KEY: {your_api_key}
/api/receipt_status_reason/save
Create or update a status reason. For a new reason use data[id] = 0.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | 0 = new reason, >0 = update | |
status_reason_name | string | Reason text | |
status_reason_default | int | 1 = default reason |
Example request
POST /api/receipt_status_reason/save
X-API-KEY: {your_api_key}
Content-Type: application/json
{
"data": {
"id": 0,
"status_reason_name": "Ügyfél kérésére törölve",
"status_reason_default": 0
}
}
/api/receipt_status_reason/delete
Delete a status reason by identifier.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | Identifier of the reason to delete |
Example request
POST /api/receipt_status_reason/delete
X-API-KEY: {your_api_key}
Content-Type: application/json
{ "data": { "id": 1 } }
Create your account now,
pay later!