Product
Get a single product data.
Resource URL
https://oms.sokochan.com/api/1.0/products/{id}
Parameter(s)
| Name | Description | Type | Length |
|---|---|---|---|
| id Required |
Item Code or SKU (Please prefix SKU with the @ symbol). | string | 60 |
curl -X GET -H "Authorization: Basic ZnJlZDpmcmVk="\
"https://oms.sokochan.com/api/1.0/products/@624295_1467662"
curl -X GET -H "Authorization: Basic ZnJlZDpmcmVk="\
"https://oms.sokochan.com/api/1.0/products/00600001"
{
"item_code": "00600001",
"sku": "624295_1467662",
"ean": "",
"number": "TEST001",
"name": "TSG2721/รองเท้าแตะเปิดหน้ามีโบว์ฟ้าอมเทา/12",
"width": 10.00,
"height": 10.00,
"length": 10.00,
"weight": 400.00,
"cost": 6000.00,
"selling_price": 8900.00,
"description": "Product 1 Long",
"enable": "1",
"inventory": {
"in_stock": 10,
"on_order": 10,
"available": 0
}
}
Documentation
The fields of the result have the following type and meaning:
| Name | Description | Type | Length |
|---|---|---|---|
| item_code | Product code | string | 20 |
| sku | Product SKU | string | 60 |
| number | Product number | string | 20 |
| name | Product name | string | 100 |
| created | Created date | date | - |
| description | Product description | string | 250 |
| width | Product width | decimal | 10,2 |
| height | Product height | decimal | 10,2 |
| length | Product length | decimal | 10,2 |
| weight | Product weight | decimal | 10,2 |
| cost | Cost price | decimal | 8,2 |
| selling_price | Selling price | decimal | 8,2 |
| ean | EAN number | string | 13 |
| enable | Product enable in OMS
| number | 1 |
| inventory.in_stock | Quantity of item in stock | number | 11 |
| inventory.on_order | Quantity of ordered item | number | 11 |
| inventory.available | Quantity of available item | number | 11 |