Base URL
https://{tenant}.logzi.com/api/order_out_pre/
Every request returns a JSON response. On success result.code == 1, on failure result.code == 0. This API manages the outgoing order preparation workflow — it lets you create preparation records (from an existing order or as a new order), update, retrieve, and delete them.
/api/order_out_pre/get_pre
Retrieve a single preparation record by identifier.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | int | Preparation record identifier |
Example Request
GET /api/order_out_pre/get_pre?id=1
X-API-KEY: {your_api_key}
/api/order_out_pre/list_pre
Paginated list of preparation records.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
list_offset | int | Pagination offset (default: 0) | |
list_condition | object | Object of filter conditions |
Example Request
GET /api/order_out_pre/list_pre?list_offset=0
X-API-KEY: {your_api_key}
/api/order_out_pre/list_pre_light
Lightweight list of preparation records with minimal data.
Same parameters as the /list_pre endpoint.
/api/order_out_pre/save_pre
Update an existing preparation record.
POST Fields — data object
The data object must contain the preparation record's identifier and the fields to update.
Example Request
POST /api/order_out_pre/save_pre
X-API-KEY: {your_api_key}
Content-Type: application/json
{ "data": { "id": 5, ... } }
/api/order_out_pre/save_pre_new
Create a new preparation record (for a new order).
POST Fields — data object
The data object must contain the new preparation record's data (partner, line items, date, etc.).
Example Request
POST /api/order_out_pre/save_pre_new
X-API-KEY: {your_api_key}
Content-Type: application/json
{ "data": { ... } }
/api/order_out_pre/delete_pre
Delete a preparation record by identifier.
POST Fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | Identifier of the preparation record to delete |
Example Request
POST /api/order_out_pre/delete_pre
X-API-KEY: {your_api_key}
Content-Type: application/json
{ "data": { "id": 5 } }
Create your account now,
pay later!