ποΈProducts
Product API (api/product)
api/product)This API is available for versions v.2.62.11 and later after 2024-10-04.
Search Products
Request method: GET
Endpoint: /api/v1/product
Instructions: Search for a list of products that match the criteria.
Curl Example
curl -X GET \
-H "Content-Type: application/json" \
'{
"name": "phone",
"sku": "SKU12345",
"price__lower": 1000,
"price__upper": 5000,
}' \
https://{API_HOST}/api/v1/productURL Parameters
name
String
Product name keyword search
sku
String
Product SKU number
price__lower
Number
Minimum price filter
price__upper
Number
Maximum price filter
Response Example
Get Single Product
Request method: GET
Endpoint: /api/v1/product/{product_id}
Instructions: Get detailed information for a single product by product ID.
Curl Example
URL Parameters
product_id
Number
Unique identifier for the product
Response Example
Add product
Request method: POST
Endpoint: /api/v1/product
Instructions: Add a new product.
Curl Example
Form Data
name
String
Product name
Yes
sku
String
Product SKU number
Yes
description
String
Product description
No
price
Number
Product price
Yes
stock
Number
Stock quantity
Yes
category
String
Product category
Yes
Response Example
Update Product
Request method: PUT
Endpoint: /api/v1/product/{product_id}
Instructions: Update the specified product's data.
Curl Example
URL Parameters
product_id
Number
Unique identifier for the product
Form Data
name
String
Product name
No
sku
String
Product SKU number
No
description
String
Product description
No
price
Number
Product price
No
stock
Number
Stock quantity
No
category
String
Product category
No
Response Example
Product Data Model
The following are the structure and descriptions of product data:
Field Name
Type
Instructions
id
Number
Product ID
name
String
Product name
sku
String
Product SKU number
description
String
Product description
price
Number
Price
stock
Number
Stock quantity
created_at
String
Creation time
updated_at
String
Updated at
Last updated