Get Advice

Get a single advice detail.


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).
number11
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:

NameDescriptionTypeLength
external_idExternal ID is a unique key that allows you to link Sokochan advice with the Advice ID from your system.string60
id
Sokochan advice IDnumber11
comment
Advice commentstring250
created
Created datedatetime-
updated
Updated datedatetime-
expect_transfer_date
Expect transfer datedate-
status Advice status
  • Pending
  • Received
  • Putaway
  • Partial Putaway
  • Completed
string 30
total_qty
Total item quantitynumber11
items[]
Required
Array of item(s) in advice
item_sku
Item SKUstring60
item_code
Item codestring20
item_number
Item numberstring20
item_name
Item namestring20
item_qty
Item quantitynumber11
received_qty
Received quantitynumber11
putaway_status
Putaway statusnumber1
comment
commentstring50