Base URL
https://{tenant}.logzi.com/api/product_type/
Every request returns a JSON response. On success result.code == 1; on failure result.code == 0.
/api/product_type/get
Retrieve a single product type by ID or language.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | int | Unique ID of the product type | |
language_id | int | Language variant ID |
Example request
GET /api/product_type/get?id=1
X-API-KEY: {your_api_key}
/api/product_type/list
Retrieve the list of product types, optionally filtered by language.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
language_id | int | Filter by language ID |
Example request
GET /api/product_type/list?language_id=1
X-API-KEY: {your_api_key}
/api/product_type/save
Create or update a product type. Use data[id] = 0 for a new record.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | 0 = new product type, >0 = update | |
name | string | Name of the product type (e.g. "Goods") |
Example request
POST /api/product_type/save
X-API-KEY: {your_api_key}
Content-Type: application/json
{
"data": {
"id": 0,
"name": "Áru"
}
}
/api/product_type/delete
Delete a product type by ID.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | ID of the product type to delete |
Example request
POST /api/product_type/delete
X-API-KEY: {your_api_key}
Content-Type: application/json
{ "data": { "id": 1 } }
Create your account now,
pay later!