Product Type API

Classify products by type (goods, service, etc.) — retrieve, create, update, and delete

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.

GET /api/product_type/get

Retrieve a single product type by ID or language.

Query parameters

ParameterTypeRequiredDescription
idintUnique ID of the product type
language_idintLanguage variant ID

Example request

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

Retrieve the list of product types, optionally filtered by language.

Query parameters

ParameterTypeRequiredDescription
language_idintFilter by language ID

Example request

GET /api/product_type/list?language_id=1
X-API-KEY: {your_api_key}
POST /api/product_type/save

Create or update a product type. Use data[id] = 0 for a new record.

POST fields — data object

FieldTypeRequiredDescription
idint0 = new product type, >0 = update
namestringName 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"
  }
}
POST /api/product_type/delete

Delete a product type by ID.

POST fields — data object

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

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!