Collect Packaging API

Manage collect packaging line items

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.

GET /api/collect_packaging/get

Retrieve a single packaging line item by ID.

Query Parameters

ParameterTypeRequiredDescription
idintIdentifier of the packaging line item

Example Request

GET /api/collect_packaging/get?id=1
X-API-KEY: {your_api_key}
GET /api/collect_packaging/list

Paginated list of packaging line items.

Query Parameters

ParameterTypeRequiredDescription
list_offsetintPagination offset (default: 0)
list_conditionobjectFilter 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}
POST /api/collect_packaging/save

Create a packaging line item. Every save creates a new record.

POST Fields — data object

FieldTypeRequiredDescription
receipt_idintIdentifier of the collection document
product_idintIdentifier of the packaging material product
quantityfloatQuantity 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
  }
}
POST /api/collect_packaging/delete

Delete a packaging line item by ID.

POST Fields — data object

FieldTypeRequiredDescription
idintIdentifier 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 } }

Get in touch with us

Interested in our software? Feel free to write to us!

Need help?

If you can't find the answer and need assistance

Create your account now,
pay later!

Try it free for 3 days, no risk, no obligation!