Create advice

Create a new advice.


Resource URL

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


Request body

NameDescriptionTypeLength
external_id
Required
External ID is a unique key that allows you to link Sokochan advice with the advice ID from your system without the need to store additional data on your side.string60
expect_date
Expect datedate-
comment
Advice comment.string250
items[]
Required
Array of item(s) in advice
You can use item_code or item_sku in the array but cannot both be blank
item_sku
Item SKUstring60
item_code
Item codestring20
item_qty
Item quantitynumber11
comment
Item commentstring50
curl -X POST -H "Authorization: Basic ZnJlZDpmcmVk="\
-H "Content-Type: application/json"\ -d '{ "external_id":"test01", "expect_date":"2016-11-02", "commment" :"", "items":[ {"item_code":"00600001","item_qty":99,"comment":""}, {"item_sku":"5769089_3852259","item_qty":50,"comment":""} ] }' "https://oms.sokochan.com/api/1.0/advice"
{
  "id": 108,
}