Base URL
https://{tenant}.logzi.com/api/collect_packaging/
Every request returns a JSON response. On success result.code == 1, on failure result.code == 0. Collect packaging records the packaging material consumption assigned to a collection document — based on product and quantity.
/api/collect_packaging/get
Retrieve a single packaging line item by ID.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | int | Identifier of the packaging line item |
Example Request
GET /api/collect_packaging/get?id=1
X-API-KEY: {your_api_key}
/api/collect_packaging/list
Paginated list of packaging line items.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
list_offset | int | Pagination offset (default: 0) | |
list_condition | object | Filter conditions (e.g. filtering by receipt_id) |
Example Request
GET /api/collect_packaging/list?list_condition[receipt_id]=100&list_offset=0
X-API-KEY: {your_api_key}
/api/collect_packaging/save
Create a packaging line item. Every save creates a new record.
POST Fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
receipt_id | int | Identifier of the collection document | |
product_id | int | Identifier of the packaging material product | |
quantity | float | Quantity consumed |
Example Request
POST /api/collect_packaging/save
X-API-KEY: {your_api_key}
Content-Type: application/json
{
"data": {
"receipt_id": 100,
"product_id": 55,
"quantity": 2
}
}
/api/collect_packaging/delete
Delete a packaging line item by ID.
POST Fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | Identifier of the packaging line item to delete |
Example Request
POST /api/collect_packaging/delete
X-API-KEY: {your_api_key}
Content-Type: application/json
{ "data": { "id": 1 } }
Create your account now,
pay later!