Base URL
https://{tenant}.logzi.com/api/product_picture/
Every request returns a JSON response. On success result.code == 1, on error result.code == 0. The product picture API lets you upload, list, and download images linked to products by product ID, group, or part number.
/api/product_picture/get
Retrieve the metadata of a single product picture record.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | int | Picture record identifier | |
product_group_id | int | Product group identifier | |
product_partnumber | string | Product part number | |
product_id | int | Product identifier |
Example request
GET /api/product_picture/get?product_partnumber=PROD-001
X-API-KEY: {your_api_key}
/api/product_picture/picture
Download a product picture file (binary response).
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | int | Picture record identifier | |
product_partnumber | string | Product part number | |
pic_name | string | Picture file name | |
product_group_id | int | Product group identifier | |
product_id | int | Product identifier |
Example request
GET /api/product_picture/picture?product_partnumber=PROD-001&pic_name=main.jpg
X-API-KEY: {your_api_key}
/api/product_picture/list
Paginated list of product pictures.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
list_count | int | Maximum number of records to return | |
list_offset | int | Pagination offset (default: 0) | |
list_condition | object | Filter conditions object |
Example request
GET /api/product_picture/list?list_offset=0&list_count=100
X-API-KEY: {your_api_key}
/api/product_picture/save
Upload or update a product picture.
POST fields — data object
Provide the picture metadata in the data object (product identifier, part number, picture file name, sort order).
Example request
POST /api/product_picture/save
X-API-KEY: {your_api_key}
Content-Type: application/json
{ "data": { "product_id": 1, "pic_name": "main.jpg" } }
/api/product_picture/delete
Delete a product picture.
POST fields — data object
Provide the details of the picture to delete in the data object.
Example request
POST /api/product_picture/delete
X-API-KEY: {your_api_key}
Content-Type: application/json
{ "data": { "id": 1 } }
Create your account now,
pay later!