Update advice

Updates a pending advice

If items array is given in the update data, system will be:
- replace the existing items with the new items.


Resource URL

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


Parameter(s)

NameDescriptionTypeLength
id
Required
Sokochan advice ID or External ID
(Please prefix External ID with the @ symbol).
string60

Request body

NameDescriptionTypeLength
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 PUT -H "Authorization: Basic ZnJlZDpmcmVk="\
-H "Content-Type: application/json"\ -d '{ "expect_date":"2016-11-03", "commment" :"", "items":[ {"item_code":"00600001","item_qty":99,"comment":""}, {"item_sku":"5769089_3852259","item_qty":50,"comment":""} ] }' "https://oms.sokochan.com/api/1.0/advices/@av001"
curl -X PUT -H "Authorization: Basic ZnJlZDpmcmVk="\
-H "Content-Type: application/json"\ -d '{ "expect_date":"2016-11-03", "commment" :"", "items":[ {"item_code":"00600001","item_qty":99,"comment":""}, {"item_sku":"5769089_3852259","item_qty":50,"comment":""} ] }' "https://oms.sokochan.com/api/1.0/advices/108"
{
  "id": "108",
  "external_id": "av001",
  "updated": "2016-11-01 15:34:03"
}