Serial Numbers API

Retrieve and manage product serial numbers

Base URL

https://{tenant}.logzi.com/api/stock_serial/

Every request returns a JSON response. On success result.code == 1, on error result.code == 0.

Note: Serial numbers are generated automatically during the warehouse receipt/issue process. Direct save/delete via the API is not available.
GET /api/stock_serial/get

Retrieve a single serial number record by ID.

Query parameters

Parameter Type Required Description
id int The serial number record's unique identifier

Example request

GET /api/stock_serial/get?id=42
X-API-KEY: {your_api_key}

Example response

{
  "result": { "code": 1, "message": "success" },
  "data": {
    "id": 42,
    "product_id": 5,
    "serial_number": "SN-2024-00042",
    "store_id": 1,
    "date_create": "2024-03-15 10:22:00",
    "status_id": 1
  }
}
GET /api/stock_serial/list

Retrieve a paginated list of serial numbers with filtering options.

Query parameters

Parameter Type Required Description
list_offset int Pagination offset (default: 0)
list_condition[product_id] int Filter by product ID
list_condition[store_id] int Filter by warehouse ID
list_condition[serial_number] string Filter by serial number (LIKE)

Example request

GET /api/stock_serial/list?list_offset=0&list_condition[product_id]=5
X-API-KEY: {your_api_key}

Example response

{
  "result": { "code": 1, "message": "success" },
  "data": [
    {
      "id": 42,
      "product_id": 5,
      "product_name": "Laptop XYZ",
      "serial_number": "SN-2024-00042",
      "store_id": 1,
      "date_create": "2024-03-15"
    }
  ],
  "params": {
    "list_count": 10,
    "list_offset": 0,
    "list_all": 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!