达人店后台接口-交易中心

1,订单列表获取

request

method: GET  
url: /shop/v1/trade/list?key1=value1&key2=value2  

参数说明

参数名 类型 必填 描述

skuId

string

itemName

string

orderNumber

string

订单号

expressNum

string

物流单号

userName

string

用户名

shopName

string

店铺名

orderStatuses

string

订单状态

outTradeNo

string

gmtStartTime

string

开始时间(格式2016-10-11)

gmtEndTime

string

结束时间(格式2016-11-01)

orderBy

string

排序规则

page

string

页数

pageSize

string

每页纪录数

response

body:{  
  'code': 1,
  'message': 'success',
  'pageCount': 1,
  'pageCurrent': 1,
  'data': [    {
      "orderProducts": [
        {
          "itemName": "欧舒丹玫瑰味女士淡香水20ml",
          "skuId": 4784,
          "spuId": 405,
          "price": 160,
          "quantity": 1,
          "saledShopId": 4141,
          "saledShopName": "拖雷亲测店"
        },
        {
          "itemName": "汤姆农场水果糖 酸甜  10ml",
          "skuId": 124419,
          "spuId": 145998,
          "price": 100,
          "quantity": 1,
          "saledShopId": 4141,
          "saledShopName": "拖雷亲测店"
        }
      ],
      "orderNumber": 4147946710483560,
      "orderedTime": "2016-11-18 07:05:04",
      "totalPrice": 260,
      "buyerId": 639760,
      "buyerName": "拖雷",
      "orderStatus": -2,//0:全部,20:交易成功, 21:待支付, 22:待发货,23:已发货, -2:交易关闭
      "payType": 10,
      "outTradeNumber": "",
      "buyserAdderss": "浙江杭州西湖区尚妆",
      "buyserRemark": "",
      "payTypeZh": "wap微信支付"
    },...],
  'isRedirect': 0,
  'redirect': 'url',
  'login': 0
}

可能出现的状态码及描述

code message

1

success

1000

系统内部错误

1100

请求参数确实或格式不正确

5000

店铺不存在

6000

订单不存在

2,订单获取

request

method: GET  
url: /shop/v1/trade/shop-order/list?  
userId=123&page=1&pageSize=10

参数说明

参数名 类型 必填 描述

userId

string

开店用户ID

response

body = {  
  "code": 1,
  "message": "success",
  "data": [
    {
      "orderNumber": "9147861500120876",
      "status": 22,
      "actualPrice": 171,
      "postFee": 0,
      "buyerId": 714076,
      "buyerName": "aaa",
      "payOrderId": "1532375",
      "outTradeNo": "",
      "addressDetail": "北京东城区无视测试",
      "buyerRemark": "",
      "paidTime": "2016-11-08 11:02:41",
      "createOrderTime": "2016-11-08 10:23:21",
      "preferentialInfo": "",
      "payTypeZh": "wap微信支付",
      "branchItems": [
        {
          "branchOrderNumber": "9147861500120876000",
          "itemShopRelations": [
            {
              "itemName": "安娜苏紫境魔钥女士淡香水30ml",
              "price": 1,
              "quantity": 1,
              "skuId": 8329,
              "selledShopId": 4880,
              "selledShop": "A"
            }
          ],
          "statusCode": 22,
          "supplierId": 0,
          "chargeMan": "尚妆自营"
        },
        {
          "branchOrderNumber": "9147861500120876001",
          "itemShopRelations": [
            {
              "itemName": "九朵云气垫BB霜15g",
              "price": 170,
              "quantity": 1,
              "skuId": 112772,
              "selledShopId": 4880,
              "selledShop": "A"
            }
          ],
          "expressCompany": "韵达",
          "expressNumber": "11111111111",
          "shippingTime": "2016-11-08 11:06:15",
          "statusCode": 23,
          "supplierId": 1,
          "chargeMan": "米奇"
        }
      ]
    }
  ],
  "pageCount": 451,
  "pageCurrent": "1",
  "isRedirect": 0,
  "redirect": "",
  "login": 0
}

可能出现的状态码及描述

code message

1

success

1000

系统内部错误

1100

请求参数确实或格式不正确

5000

店铺不存在

6000

订单不存在

沐风

继续阅读此作者的更多文章