Create Product

Create a new product


Resource URL

https://oms.sokochan.com/api/1.0/products


Request body

Name Description TypeLength
sku
Required
Must be a unique valuestring60
number
Required
Product numberstring20
name
Required
Product namestring100
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
curl -X POST -H "Authorization: Basic ZnJlZDpmcmVk="\
-H "Content-Type: application/json"\ -d '{ "sku": "new_sku_0002", "number": "new0001", "name": "กล้องมือโปร", "width": "", "height": "", "length": "", "weight": "", "cost": 10030.00, "selling_price": 15990.00, "description": "", "ean":"" }' "https://oms.sokochan.com/api/1.0/products"
{
  "item_code": "00600039",
  "sku": "new_sku_0002",
  "created": "2016-11-02 11:31:28"
}