Base URL
https://{tenant}.logzi.com/api/order_in_customer_status/
Every request returns a JSON response. On success result.code == 1; on failure result.code == 0. The customer order status defines custom workflow states for customer orders — with a customizable name, color, and invoicing logic. These statuses can be assigned on the customer order document.
/api/order_in_customer_status/get
Retrieve a single customer status by ID.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | int | Status ID |
Example request
GET /api/order_in_customer_status/get?id=1
X-API-KEY: {your_api_key}
/api/order_in_customer_status/list
List of all customer order statuses.
No parameters required — returns all statuses.
Example request
GET /api/order_in_customer_status/list
X-API-KEY: {your_api_key}
/api/order_in_customer_status/save
Create or update a customer status. Use data[id] = 0 for a new status.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | 0 = new status, >0 = update | |
customer_status_name | string | Status name (e.g. "In preparation") | |
customer_status_color | string | Hexadecimal color code (e.g. #3498db) | |
customer_status_key | string | Unique key (e.g. in_progress) | |
customer_status_invoice | int | 1 = an invoice can be issued in this status | |
customer_status_sort | int | Sort order |
Example request
POST /api/order_in_customer_status/save
X-API-KEY: {your_api_key}
Content-Type: application/json
{
"data": {
"id": 0,
"customer_status_name": "Előkészítés alatt",
"customer_status_color": "#f39c12",
"customer_status_key": "preparing",
"customer_status_invoice": 0,
"customer_status_sort": 2
}
}
/api/order_in_customer_status/delete
Delete a customer order status by ID.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | ID of the status to delete |
Example request
POST /api/order_in_customer_status/delete
X-API-KEY: {your_api_key}
Content-Type: application/json
{ "data": { "id": 1 } }
Create your account now,
pay later!