Product

Get a single product data.


Resource URL

https://oms.sokochan.com/api/1.0/products/{id}


Parameter(s)

Name Description TypeLength
id
Required
Item Code or SKU
(Please prefix SKU with the @ symbol).
string60
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:

NameDescriptionTypeLength
item_codeProduct codestring20
skuProduct SKUstring60
numberProduct numberstring20
nameProduct namestring100
createdCreated datedate-
description
Product descriptionstring250
width
Product widthdecimal10,2
height
Product heightdecimal10,2
length
Product lengthdecimal10,2
weight
Product weightdecimal10,2
cost
Cost pricedecimal8,2
selling_price
Selling pricedecimal8,2
ean
EAN numberstring13
enableProduct enable in OMS
  • 1 = enable
  • 0 = disable
number1
inventory.in_stockQuantity of item in stocknumber11
inventory.on_orderQuantity of ordered itemnumber11
inventory.availableQuantity of available itemnumber11