帮助中心
当前位置: 网站首页 > 商店API > 获取订单

获取订单

获取订单

编号  :  orderList

POST -  http://域名/v1/orderList.html



请求参数

参数名               参数类型      必传 缺省值 描述

token                 VARCHAR Y

order_by INT N                 排序。1:按照 pay_time 升序,0:按照 id 升序

order_status VARCHAR N 状态,多个用英文逗号隔开

page_size INT N      50 每页数量

page_no INT N      1 页码

time_type INT      N 1: pay_time,留空: create_time , 2: act_time(修改时间)

start_time DATE      N 开始日期。2016-9-9

end_time                 DATE      N 结束日期。2016-9-9

itemno                 VARCHAR N 订单编号,多个用英文逗号隔开

payment_id VARCHAR N 支付id,多个用英文逗号隔开


返回值


{
    "code":0,
    "count":"400",
    "data":[
        {
            "id":"595",
            "itemno":"SY20160902-595",
            "outer_itemno":null,
            "store_id":"24073",
            "user_id":"6",
            "user_name":null,
            "order_status":"8",
            "payment_status":"1",
            "shipping_status":"0",
            "account_descript":null,
            "system_descript":null,
            "admin_descript":null,
            "total_weight":"0.1300",
            "currency_rate":"1.0000",
            "shipping_id":"136",
            "shipping_method":"SHUNFENG",
            "shipping_corp_id":"0",
            "payment_id":"142",
            "payment_method":"Amazon Payment",
            "currency_code":"USD",
            "cost_product":"1.8000",
            "cost_shipping":"10.0000",
            "cost_payment":"0.1300",
            "cost_insurance":"1.0000",
            "cost_offer":"0.0000",
            "total_amount":"12.9300",
            "country_id":"45",
            "ip":"2043462356",
            "remark":"",
            "marked":"0",
            "create_time":"1472789032",
            "pay_time":"0",
            "act_time":"0",
            "source_device":"phone",
            "source":"",
            "utm_source":"",
            "utm_medium":"",
            "shipping_corp_codeno":null,
            "item":[
                {
                    "id":"780",
                    "order_id":"595",
                    "goods_id":"4911",
                    "store_id":"24073",
                    "goods_name":"Low Rise Flowery Legging",
                    "goods_codeno":"LC79246",
                    "sku_code":"17028_17122",
                    "sku_codeno":"LC79246S",
                    "sku_value":"Color:As shownSize:S",
                    "buy_num":"1",
                    "price":"1.8000",
                    "weight":"0.1300",
                    "image":"http://cn01.imgcdn.domain.com/24073/2016/07/18/a/a/aae1d529a581e72a.jpg",
                    "remark":""
                }
            ],
            "delivery":null,
            "address":[
                {
                    "id":"593",
                    "order_id":"595",
                    "store_id":"24073",
                    "address_type":"1",
                    "first_name":"cqz",
                    "last_name":"",
                    "country_id":"45",
                    "state":"fujian",
                    "city":"xiamen",
                    "address":"tian rui 99",
                    "address_spare":"",
                    "postcode":"361004",
                    "mobilephone":"1541441",
                    "telephone":"",
                    "14":"8888@qq.com",
                    "email":"8888@qq.com",
                    "country_code_2":"CN",
                    "country_code_3":"CHN",
                    "country_name":"China"
                }
            ]
        }
    ]
}


备注
order_status 允许的值如下 1 : 新订单,7:付款失败,2:付款确认中,8:付款成功,3:已发货,0:作废,10:完成 
id : 数据库自增ID 
itemno : 订单号 
outer_itemno : 分销商编号 
store_id : 店铺id 
user_id : 下单用户id 
user_name : 下单用户名 
order_status : 订单状态 (1 : 新订单,7:付款失败,2:付款确认中,8:付款成功,3:已发货,0:作废,10:完成) 
payment_status : 订单支付状态 (0未支付 1已支付) 
shipping_status : 订单配送状态(0未发货 1已发货) 
account_descript : 会员描述 
system_descript : 系统描述 
admin_descript: 管理员描述 
total_weight : 重量(kg) 
currency_rate : 汇率 
shipping_id : 配送方式ID 
shipping_method : 配送方式 
shipping_corp_id : 物流公司id 
payment_id : 支付方式ID 
payment_method : 支付方式 
currency_code : 货币 
cost_product : 商品金额 
cost_shipping : 运费金额 
cost_payment : 支付手续费 
cost_insurance : 运费险 
cost_offer : 优惠金额 
total_amount : 订单总金额(小计+运费) 
country_id : 国家ID 
ip : 下单客户ip 
remark : 订单备注 
marked : 订单标记 
create_time : 订单创建时间 
pay_time : 订单支付时间 
act_time : 最后操作时间 
source_device : 来源设备 
source : 订单来源 
utm_source : 业务来源 
utm_medium : 业务设备 
shipping_corp_codeno : 物流公司编号 
item : 订单详细列表 
{ 
id : 数据库自增id 
order_id : 订单id 
goods_id : 商品id 
store_id : 店铺id 
goods_name : 商品名称 
goods_codeno : 商品编号 
sku_code : SKU系统编码 
sku_codeno : SKU编号 
sku_value : 购买的商品SKU规格值 
buy_num : 购买数量 
price : 商品单价 
weight : 商品重量(kg) 
image : 商品主图 
remark : 商品备注 
old_price : 商品原价 
user_id : 会员ID 
category_id : 分类ID 
} 
delivery : 物流信息 
address : 会员详细信息 
{ 
id : 数据库自增id 
order_id : 订单id 
store_id : 店铺id 
address_type : #0配送地址 #1账单地址 
first_name : 名字 
last_name : 姓氏 
country_id : 国家ID 
state : 洲/省份 
city : 城市 
address : 地址 
address_spare : 备用地址 
postcode : 邮编 
mobilephone : 移动电话 
telephone : telephone 是一个综合字段,可能是 电话/whatsapp/Compnay Name 
email : 电子邮箱 
country_code_2 : 国家两位编码 
country_code_3 : 国家三位编码 
country_name : 国家名称 } 
user:用户列表 
{ id 
base_name: 登陆用户名 
store_id:语言站点ID 
contact :附属联系方式 
status:状态 
user_group_id:账户组别 
ip : 会员IP 
source:来源 
country_id:国家ID 
create_time 
source_device:来源设备 
is_cart:是否有购物车 
utm_source: utm_medium:来源标识(比如link) 
login_time:来源信息(比如链接) 
order_time:下单时间 
pay_time:支付时间 
admin_id:管理员ID 
credit:预留字段(用于提取现金) 
growth:成长值数 
} 
payment:订单支付单据列表 
{ 
trade_n交易单号 
pay_method_n第三方支付单号 
create_time:创建时间 
payment_id:支付方式ID 
remark:备注 
order_id:订单ID 
payment_method:支付方式
 } 
offer:订单优惠列表 
{ 
id 
order_id:订单 
store_id:语言站点ID 
offer_id:父ID 
base_name:优惠名称 
offer_type:优惠类型 
coupon:优惠券号 如无则为空 
remark:备注 
amount:优惠金额,赠品按赠品销售价- price is_return: 
} 
order_remark:订单备注 
{ 
id 
order_id:订单 
store_id:语言站点ID 
remark:备注 
create_time 
}