Get list of order

Get list of order detail.


Resource URL

https://oms.sokochan.com/api/1.0/orders


Parameter(s)

Name Description TypeLength
created Date of creation
format YYYY-mm-dd
example 2016-12-01
date-
status Order status (default is any)
  • any
  • draft
  • pending
  • processed
  • picked
  • packed
  • shipped
  • cancelled
string 30
limit Number of items per page (max 100)
offset Result set offset
curl -X GET -H "Authorization: Basic ZnJlZDpmcmVk="\
"https://oms.sokochan.com/api/1.0/orders"
curl -X GET -H "Authorization: Basic ZnJlZDpmcmVk="\
"https://oms.sokochan.com/api/1.0/orders"

Documentation

The fields of the result have the following type and meaning:

NameDescription
orders[]Array of order object
pagingPaging object

Paging Object

NameDescription
paging.totalTotal number of items
paging.limitNumber of items per page
paging.offsetResult set offset

Order Object

NameDescriptionTypeLength
external_idExternal ID is a unique key that allows you to link Sokochan order with the Order ID from your system.string50
order_number
Order numberstring20
comment
Order comment.string50
special_order
Special requirement to this order.string50
representative
Your representativestring50
cod_amount
COD amountdecimal7,2
insert_qty
Insert-item quantitynumber2
wrap
Wrap is 1. No wrap is 0.number1
shipping The shipping method code.
  • EMS is ไปรษณีย์ไทย Express / ThaiPost EMS
  • REG is ไปรษณีย์ไทย ลงทะเบียน / ThaiPost Registered
  • KND is Kerry Express (วันรุ่งขึ้น/Next Day)
  • K2D is Kerry Express (2 วัน/2 Day)
string 3
tracking_no
Tracking No.string20
package
Order packagestring6
created
Created Date/Timedatetime-
updated
Updated Date/Timedatetime-
status
Order Status
  • draft
  • pending
  • processed
  • picked
  • packed
  • shipped
  • cancelled
string 30
shipping_status
Order Status
  • pending
  • shipping
  • delivered
  • delay
string 30
customerCustomer object
order_items[]Array of item(s) in order
order_history[]Array of history item
billingBilling detail

Customer Object

NameDescriptionTypeLength
nameCustomer full namestring200
addressCustomer addressstring255
district
District namestring50
provinceProvince namestring50
postal_codePostal Codestring20
mobile_no
Mobile numberstring50
phone_no
Phone numberstring20
email
Emailstring180

Order Item Object

NameDescriptionTypeLength
item_sku
Item SKUstring60
item_code
Item codestring60
item_name
Item namestring100
item_qty
Item quantitynumber11

History Item Object

NameDescriptionTypeLength
date_time
Display date time (fixed format)number30
location
Locationstring180
remark
Remarkstring180
timestmap
Unix timestamptimestamp-

Billing Object

NameDescriptionTypeLength
no_of_item_1
No. of 1st itemnumber-
no_of_item_2
No. of item 2-10number-
no_of_item_3
No. of item 11+number-
picking_fee
Picking Feedecimal-
packing_fee
Packing Feedecimal-
charge_bubble_wrap
Bubble wrap chargenumber1
charge_insert_time
Insert item chargetimestamp-
shipping_fee
Shipping Feedecimal-
cod_fee
COD Feedecimal-
total_fee
Total Feedecimal-