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)
| Name | Description | Type | Length | |
|---|---|---|---|---|
| id Required | Sokochan advice ID or External ID (Please prefix External ID with the @ symbol). | string | 60 | |
Request body
| Name | Description | Type | Length | |
|---|---|---|---|---|
| expect_date | Expect date | date | - | |
| comment | Advice comment. | string | 250 | |
| 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 SKU | string | 60 | |
| item_code | Item code | string | 20 | |
| item_qty | Item quantity | number | 11 | |
| comment | Item comment | string | 50 | |
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"
}