Create advice
Create a new advice.
Resource URL
https://oms.sokochan.com/api/1.0/advices
Request body
Name | Description | Type | Length | |
---|---|---|---|---|
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. | string | 60 | |
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 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, }