开放平台

扒书 ERP Open API

订单列表(平铺)

按状态、时间、店铺等条件分页查订单,一笔子订单占一行。

请求方式GET/POST
接口路径/api/order/buyer/list
Content-Type-
鉴权X-Nideshop-Token

请求参数

参数类型必填位置
searchString否URL 参数
curPageInteger是URL 参数
pageSizeInteger否URL 参数
orderStatus对象否URL 参数

curl 调用

curl -s 'https://www.8shu8.com/api/order/buyer/list?search=xxx&curPage=1&pageSize=1&orderStatus=xxx' \
  -H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN'

响应示例

data 为分页对象,业务数据在 records。

{
  "code": 200,
  "message": "操作成功",
  "success": true,
  "data": {
    "records": [
      {
        "id": 1,
        "orderSn": "string",
        "userId": 1,
        "orderStatus": "...",
        "payStatus": "...",
        "shippingStatus": "...",
        "consignee": "string",
        "consigneeMask": "string",
        "country": "string",
        "province": "string",
        "city": "string",
        "district": "string",
        "address": "string",
        "addressMask": "string",
        "addressId": "string",
        "mobile": "string",
        "mobileMask": "string",
        "shippingId": 1,
        "shippingName": "string",
        "payId": "string",
        "payName": "...",
        "shippingFee": 0.0,
        "isbn": "string",
        "actualPrice": 0.0,
        "orderPrice": 0.0,
        "addTime": "string",
        "tradeNo": "string",
        "confirmTime": "string",
        "payTime": "string",
        "shippingNo": "string",
        "orderType": "...",
        "payOrderId": "string",
        "deliveryTime": "string",
        "sellerDelete": 1,
        "goodsPrice": 0.0,
        "buyerDelete": 1,
        "applyRefundTime": "string",
        "returnExpressName": "string",
        "returnExpressNo": "string",
        "outTradeNo": "string",
        "isLocalSchool": true,
        "fulfillmentType": "...",
        "pickupPointId": 1,
        "schoolId": 1,
        "voucherAmount": 0.0,
        "bookCondition": "string",
        "refundReasonType": "...",
        "refundReason": "string",
        "orderFrom": "string",
        "delaySendTime": 1,
        "inviteUserId": 1,
        "shippingImage": "string",
        "goodsId": 1,
        "goodsName": "string",
        "goodsSn": "string",
        "number": 1,
        "listPicUrl": "string",
        "singlePrice": 0.0,
        "goodsCreator": 1,
        "isSelfSell": true,
        "storeNo": "string",
        "purchasePrice": 0.0,
        "complain": "...",
        "complainTime": "string",
        "refundFee": 0.0,
        "purchaseSource": "...",
        "purchaseShopNo": "string",
        "shopId": 1,
        "wayBillId": "string",
        "outOrderId": "string",
        "tryBuyTimes": 1,
        "memo": "string",
        "platformMemo": "string",
        "orderFlag": "...",
        "fullRegion": "string",
        "orderStatusText": "string",
        "shippingCode": "string",
        "sellerName": "string",
        "sellerPhone": "string",
        "buyerMajor": "string",
        "search": "string",
        "alert": "string",
        "orderTypeDesc": "string",
        "addressDetail": "string",
        "operate": [
          {
            "operation": "...",
            "desc": "..."
          }
        ],
        "second": true
      }
    ],
    "total": 0,
    "size": 10,
    "current": 1,
    "pages": 0
  }
}