开放平台

扒书 ERP Open API

卖家订单(按主单聚合)

卖家视角按主单合并返回。一个买家一次买好几本时只显示一行,点开看明细。

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

请求参数

参数类型必填位置
userIdLong否URL 参数
orderStatus对象否URL 参数
payStatus对象否URL 参数
shippingStatus对象否URL 参数
mobileString否URL 参数
payIdString否URL 参数
payNameString否URL 参数
shippingNoString否URL 参数
goodsCreatorLong否URL 参数
payOrderIdString否URL 参数
outTradeNoString否URL 参数
buyerDeleteInteger否URL 参数
sellerDeleteInteger否URL 参数
searchString否URL 参数
tidString否URL 参数
startTimeLocalDateTime否URL 参数
endTimeLocalDateTime否URL 参数
linkUserIdLong否URL 参数
shopIds对象否URL 参数
excludePayNames对象否URL 参数
excludeOrderStatuses对象否URL 参数

curl 调用

curl -s 'https://www.8shu8.com/api/order/seller/group?userId=1&orderStatus=xxx&payStatus=xxx&shippingStatus=xxx&mobile=xxx&payId=xxx&payName=xxx&shippingNo=xxx&goodsCreator=1&payOrderId=xxx&outTradeNo=xxx&buyerDelete=1&sellerDelete=1&search=xxx&tid=xxx&startTime=xxx&endTime=xxx&linkUserId=1&shopIds=xxx&excludePayNames=xxx&excludeOrderStatuses=xxx' \
  -H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN'

响应示例

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

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