简要描述:

  • 商品列表

请求域名:

  • http://xx.com

请求URL:

GET/&route=plugin.erp-api.api.order.list.index

参数:

参数名 是否必须 类型 说明
start_time int 起始时间戳
end_time int 结束时间戳
time_field string 时间范围类型 create_time:创建时间,pay_time:支付时间,cancel_time:关闭时间,send_time:发货时间,finish_time:完成时间,updated_at:更新时间
page_size int 分页 - 每页数量; 默认是 10
page int 分页 - 页码

返回示例:

正确时返回:

{
    "result":1,
    "msg":"成功",
    "data":{
        "total":23524,
        "per_page":"2",
        "current_page":2,
        "last_page":11762,
        "from":3,
        "to":4,
        "data":[
            {
                "id":14148,
                "nickname":"姚友",
                "uid":17,
                "order_sn":"SN20190304094722bu",
                "create_time":"2019-03-04 09:47:22",
                "pay_time":"1970-01-01 08:00:00",
                "created_at":1551664042,
                "updated_at":1551664042,
                "send_time":"1970-01-01 08:00:00",
                "goods_price":"1.00",
                "status":0,
                "price":"0.00",
                "discount_price":"0.00",
                "dispatch_price":"0.00",
                "note":"",
                "remark":"",
                "address":null,
                "mobile":null,
                "realname":null,
                "collect_name":"",
                "status_name":"待付款",
                "pay_type_name":"未支付",
                "order_goods":[
                    {
                        "id":14506,
                        "goods_id":748,
                        "title":"数字资产名称",
                        "thumb":"https://www.yunzong.com/attachment/image/aaaf4bf3cad20416f78dcef2fdf60366_1.png",
                        "goods_option_id":0,
                        "payment_amount":"1.00",
                        "total":1,
                        "goods_price":"1.00"
                    }
                ]
            },
            {
                "id":14147,
                "nickname":"姚友",
                "uid":17,
                "order_sn":"SN20190131150433h9",
                "create_time":"2019-01-31 15:04:33",
                "pay_time":"1970-01-01 08:00:00",
                "created_at":1548918274,
                "updated_at":1548918274,
                "send_time":"1970-01-01 08:00:00",
                "goods_price":"1.00",
                "status":0,
                "price":"1.00",
                "discount_price":"0.00",
                "dispatch_price":"0.00",
                "note":"",
                "remark":"",
                "address":null,
                "mobile":null,
                "realname":null,
                "collect_name":"",
                "status_name":"待付款",
                "pay_type_name":"未支付",
                "express_company_name": "韵达快运",
                "express_sn": "1202731058965",
                "order_goods":[
                    {
                        "id":14505,
                        "goods_id":749,
                        "title":"数字资产名称",
                        "thumb":"https://www.yunzong.com/attachment/image/aaaf4bf3cad20416f78dcef2fdf60366_1.png",
                        "goods_option_id":0,
                        "payment_amount":"1.00",
                        "total":1,
                        "goods_price":"1.00"
						"vip_price":"0.90"
                    }
                ]
            }
        ]
    }
}

错误时返回:

  {
  "result": 0,
  "msg": "错误信息",
}

返回参数说明:

参数名 类型 说明
total int 分类总条数
per_page int 每页条数
current_page int 当前页码
last_page int 最后一页的页码
from int 第几条开始
to int 第几条结束
data [order] 订单数组
data参数名 类型 说明
id int 订单id
nickname string 用户昵称
uid int 用户id
order_sn string 订单编号
create_time string 创建时间
pay_time string 支付时间
created_at int 创建时间
updated_at int 更新时间
send_time string 发货时间
address string 收货地址
mobile string 收件人电话
realname string 收件人姓名
collect_name string 发票抬头
is_refunding int 1退款中,0正常
goods_price float 订单总价
price float 订单实付金额
discount_price float 订单优惠金额
dispatch_price float 订单配送费
note string 商户备注
remark string 用户备注
status_name string 订单状态名
status int 订单状态 -1:关闭,0待付款,1待发货,2待收货,3已完成
pay_type_name string 支付类型
order_goods [order_goods] 订单商品数组
express_company_name string 快递公司名
express_sn string 快递单号
order_goods参数名 类型 说明
id int 订单商品id
goods_id int 商品id
title string 商品名称
thumb string 商品图片url
goods_option_id int 商品规格id
payment_amount float 商品支付金额
total int 数量
goods_price float 成交价格(商品价格x数量)
vip_price float 会员价

备注: