获取订单列表

最后更新:2023/05/16

企业可通过接口获取商城中心的订单信息

请求方式: GET(HTTPS)

请求地址: https://open.wshoto.com/openapi/mall/order/list?access_token=x

Query参数:

参数 类型 必填 说明
access_token string 调用接口凭证

Body参数:

{
  "type":1,
  "start_time":1628499408,
  "end_time":1628608356,
  "status_list":[1,2],
  "current_index":1,
  "page_size":10
}
参数 类型 必填 说明
type int 查询时间类型1:下单时间,2:完成时间(购买用户确认收货时间)3:更新时间
start_time long 开始时间
end_time long 结束时间
current_index int 当前页数
page_size int 每页条数

返回值:

{
  "code": 0,
  "msg": "请求成功",
  "data": {
    "total": 5,
    "records": [
      {
        "order_code": "1821092913377060002",
        "parent_order_code": null,
        "tenant_id": "ww8923d8e5cd61963a",
        "type": 0,
        "user_id": "katie",
        "customer_id": "fengxiCustomerId",
        "buyer_nick": null,
        "status": 2,
        "pay_status": 1,
        "total_price": 6.00,
        "coupon_price": null,
        "freight_price": 0.00,
        "pay_price": 6.00,
        "coupon_id": null,
        "detail_list": [
          {
            "order_detail_id": 1,
            "sku_id": 1432523873634512903,
            "spu_id": 1432523870895632386,
            "spec_desc": "颜色:橙;容量:512G",
            "spu_no": "00002",
            "sku_no": "22",
            "goods_name": "多规格值商品20210831",
            "goods_num": 1,
            "thumbnail": "https://javatest-1253767630.file.myqcloud.com/mall-f82a4cb6-28dc-4565-91e2-e135e00cd738.jpeg",
            "total_price": 6.00,
            "goods_price": 6.00,
            "coupon_price": null,
            "pay_price": 6.00,
            "cid": "1430397666256252929"
          }
        ],
        "express_no": null,
        "express_name": null,
        "express_type": 0,
        "create_time": 1632893852,
        "update_time": 1632893863,
        "remark": "",
        "finish_time": null,
        "pay_time": 1632893863,
        "send_time": null,
        "source": 1,
        "cancel_remark": null,
        "order_status_tag": null,
        "close_time": 1632893972,
        "pay_num": "test00001",
        "refund_status": null,
        "refund_failure_reasons": null,
        "seller_comments": null,
        "activity_id": null,
        "ump_ext": null,
        "order_address_info": {
          "name": "katie",
          "mobile": "13255815771",
          "address": "111",
          "area_code": "354271",
          "province": "11",
          "city": "11",
          "district": "11"
        }
      },
      {
        "order_code": "1821092913322460001",
        "parent_order_code": null,
        "tenant_id": "ww8923d8e5cd61963a",
        "type": 0,
        "user_id": "katie",
        "customer_id": "fengxiCustomerId",
        "buyer_nick": null,
        "status": 2,
        "pay_status": 1,
        "total_price": 6.00,
        "coupon_price": null,
        "freight_price": 0.00,
        "pay_price": 6.00,
        "coupon_id": null,
        "detail_list": [
          {
            "order_detail_id": 2,
            "sku_id": 1432523873634512903,
            "spu_id": 1432523870895632386,
            "spec_desc": "颜色:橙;容量:512G",
            "spu_no": "00002",
            "sku_no": "22",
            "goods_name": "多规格值商品20210831",
            "goods_num": 1,
            "thumbnail": "https://javatest-1253767630.file.myqcloud.com/mall-f82a4cb6-28dc-4565-91e2-e135e00cd738.jpeg",
            "total_price": 6.00,
            "goods_price": 6.00,
            "coupon_price": null,
            "pay_price": 6.00,
            "cid": "1430397666256252929"
          }
        ],
        "express_no": null,
        "express_name": null,
        "express_type": 0,
        "create_time": 1632893528,
        "update_time": 1632893569,
        "remark": "",
        "finish_time": null,
        "pay_time": 1632893569,
        "send_time": null,
        "source": 1,
        "cancel_remark": null,
        "order_status_tag": null,
        "close_time": 1632893649,
        "pay_num": "test00001",
        "refund_status": null,
        "refund_failure_reasons": null,
        "seller_comments": null,
        "activity_id": null,
        "ump_ext": null,
        "order_address_info": {
          "name": "katie",
          "mobile": "13255815771",
          "address": "111",
          "area_code": "354271",
          "province": "11",
          "city": "11",
          "district": "11"
        }
      }
    ]
  }
}

参数说明:

参数 类型 说明
code int 返回码
msg string 对返回码的文本描述内容
data object[] 返回数据
total int 总量
records Order[] 订单列表
order_code string 订单号
parent_order_code string 父订单号
tenant_id string 租户id
type int 订单类型:0:正常订单,1:团购订单,2:秒杀订单,3:购物车订单
user_id string 员工id
customer_id string 顾客id
buyer_nick string 客户网名
status int 订单状态 0:待付款,1:待确认,包含待成团、待接单,2:待发货,3:待收货,4:已完成,5:已关闭
pay_status int 支付状态 0:未支付,1:已支付
total_price double 订单总金额
coupon_price double 优惠金额
freight_price double 运费金额
pay_price double 支付金额
coupon_id long 优惠券id
detail_list OrderDetailInfo[] 明细集合
 order_detail_id long 订单行id
 sku_id long skuid
 spu_id long spuid
 spec_desc string sku 规格描述
 spu_no string spu编码
 sku_no string 规格编码
 goods_name string 商品名称
 goods_num int 商品数量
 thumbnail string 商品缩略图
 total_price double 商品总价
 goods_price double 商品单价
 coupon_price double 优惠金额
 pay_price double 支付金额
 cid string 类目
express_no string 快递编码
express_name string 物流公司名称
express_type int 发货方式 -1:包含快递和无需快递的形式,0:无需发货,1:快递发货
create_time long 创建时间
update_time long 修改时间
remark string 备注
finish_time long 完成时间
pay_time long 支付时间
send_time long 发货时间
source int 订单来源
cancel_remark string 取消订单原因
order_status_tag int 订单状态转变因素 1:超时关闭,2:买家取消,3:退款完成关闭,4:交易完成, 5:成团待确认失效, 6:成团退款中, 7:成团退款失败,8:成团退款成功, 9:卖家取消关闭, 10:售后关闭
close_time long 关闭时间
pay_num string 支付交易号
refund_status int 售后状态 1:售后中 2:售后结束
refund_failure_reasons string 失败原因
seller_comments string 卖家备注
activity_id long 活动id
ump_ext string 活动自定义字段扩展字段
order_address_info OrderAddressInfo 收货地址
 name String 收货人姓名
 mobile String 收货人手机
 address String 收货详细地址
 area_code String 地区编码
 province String 收货地址-省 名称
 city String 收货地址-市 名称
 district String 收货地址-区 名称

results matching ""

    No results matching ""