Get Advice
Get a single advice detail.
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). | number | 11 |
curl -X GET -H "Authorization: Basic ZnJlZDpmcmVk="\
"https://oms.sokochan.com/api/1.0/advices/@cmz_adv_00001"
curl -X GET -H "Authorization: Basic ZnJlZDpmcmVk="\
"https://oms.sokochan.com/api/1.0/advices/103"
{
"external_id": "cmz_adv_00001",
"id": "103",
"comment": "ของมารอบบ่าย",
"status": "Pending",
"created": "2016-10-04 13:11:16",
"updated": "2016-10-05 13:52:20",
"expect_transfer_date": "2016-10-10",
"total_qty": "25",
"items": [
{
"item_code": "00600001",
"item_number": "TEST001",
"item_sku": "624295_1467662",
"item_name": "TSG2721/รองเท้าแตะเปิดหน้ามีโบว์ฟ้าอมเทา/12",
"item_qty": "25",
"received_qty": "0",
"putaway_status": "Pending",
"comment": ""
}
]
}
Documentation
The fields of the result have the following type and meaning:
| Name | Description | Type | Length | |
|---|---|---|---|---|
| external_id | External ID is a unique key that allows you to link Sokochan advice with the Advice ID from your system. | string | 60 | |
| id | Sokochan advice ID | number | 11 | |
| comment | Advice comment | string | 250 | |
| created | Created date | datetime | - | |
| updated | Updated date | datetime | - | |
| expect_transfer_date | Expect transfer date | date | - | |
| status |
Advice status
|
string | 30 | |
| total_qty | Total item quantity | number | 11 | |
| items[] Required | Array of item(s) in advice | |||
| item_sku | Item SKU | string | 60 | |
| item_code | Item code | string | 20 | |
| item_number | Item number | string | 20 | |
| item_name | Item name | string | 20 | |
| item_qty | Item quantity | number | 11 | |
| received_qty | Received quantity | number | 11 | |
| putaway_status | Putaway status | number | 1 | |
| comment | comment | string | 50 | |