GET Single Product
Prod Env
{{subdomain}}/api2
Prod Env
{{subdomain}}/api2
GET
{{subdomain}}/api2
Last modified:2025-03-23 23:11:40
Maintainer:Not configured
id
: Product ID (required){
"result": "success",
"code": 200,
"data": {
"Product": {
"id": 1,
"name": "Premium Widget",
"description": "High-quality premium widget for industrial applications",
"unit_price": 199.99,
"tax1": 1,
"tax2": 0,
"supplier_id": 1,
"brand": "WidgetCo",
"tags": "premium, industrial, widget",
"buy_price": 149.99,
"product_code": "WID-001",
"track_stock": 1,
"stock_balance": 100,
"low_stock_thershold": 20,
"barcode": "1234567890123",
"type": 1,
"availabe_online": 1,
"created": "2023-01-05 10:15:22",
"modified": "2023-03-02 14:30:45",
"category_id": 3,
"category_name": "Industrial Components",
// Additional product fields...
"custom_fields": {
"warranty_period": "2 years",
"country_of_origin": "Germany"
}
},
"StockLevels": [
{
"store_id": 1,
"store_name": "Main Warehouse",
"quantity": 75
},
{
"store_id": 2,
"store_name": "Downtown Store",
"quantity": 25
}
],
"Supplier": {
"id": 1,
"business_name": "Supply Co",
"email": "jane.smith@example.com"
// Additional supplier summary fields...
}
}
}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET '{{subdomain}}/api2/api2/products/{{id}}.json'
Response Response Example
200 - Success Response
{
"result": "success",
"code": 200,
"data": {
"Product": {
"id": 1,
"name": "Premium Widget",
"description": "High-quality premium widget for industrial applications",
"unit_price": 199.99,
"tax1": 1,
"tax2": 0,
"supplier_id": 1,
"brand": "WidgetCo",
"tags": "premium, industrial, widget",
"buy_price": 149.99,
"product_code": "WID-001",
"track_stock": 1,
"stock_balance": 100,
"low_stock_thershold": 20,
"barcode": "1234567890123",
"type": 1,
"availabe_online": 1,
"created": "2023-01-05 10:15:22",
"modified": "2023-03-02 14:30:45",
"category_id": 3,
"category_name": "Industrial Components",
"is_active": 1,
"custom_fields": {
"warranty_period": "2 years",
"country_of_origin": "Germany"
}
},
"StockLevels": [
{
"store_id": 1,
"store_name": "Main Warehouse",
"quantity": 75
},
{
"store_id": 2,
"store_name": "Downtown Store",
"quantity": 25
}
],
"Supplier": {
"id": 1,
"business_name": "Supply Co",
"email": "jane.smith@example.com",
"phone1": "555-9876"
}
}
}
Request
None