开放平台

扒书 ERP Open API

卖家按主单号查订单

卖家侧按主单号查这张主单和它的子订单。

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

请求参数

参数类型必填位置
paramString否URL 参数

curl 调用

curl -s 'https://www.8shu8.com/api/order/seller/trade?param=xxx' \
  -H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN'

响应示例

{
  "code": 200,
  "message": "操作成功",
  "success": true,
  "data": {
    "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"
  }
}

返回字段(data)

字段类型说明
userIdLong-
orderStatus对象-
payStatus对象-
shippingStatus对象-
mobileString-
payIdString-
payNameString-
shippingNoString-
goodsCreatorLong-
payOrderIdString-
outTradeNoString-
tradeNoString交易单号 trade_no
countint-
addTimeLocalDateTime-
orders对象数组-
orders[].idInteger-
orders[].orderSnString-
orders[].userIdLong-
orders[].orderStatus对象-
orders[].payStatus对象-
orders[].shippingStatus对象-
orders[].consigneeString-
orders[].consigneeMaskString-
orders[].countryString-
orders[].provinceString-
orders[].cityString-
orders[].districtString-
orders[].addressString-
orders[].addressMaskString-
orders[].addressIdString收货地址合单标识: 拼多多=open_address_id;淘宝=oaid+店铺+订单日期; 孔网/扒书/闲鱼=店铺类型+店铺ID+收货信息+订单日期的 MD5。
orders[].mobileString-
orders[].mobileMaskString-
orders[].shippingIdInteger-
orders[].shippingNameString-
orders[].payIdString-
orders[].payName对象-
orders[].shippingFeeBigDecimal-
orders[].isbnString-
orders[].actualPriceBigDecimal-
orders[].orderPriceBigDecimal订单总价
orders[].addTimeLocalDateTime-
orders[].tradeNoString-
orders[].confirmTimeLocalDateTime-
orders[].payTimeLocalDateTime-
orders[].shippingNoString-
orders[].orderType对象-
orders[].payOrderIdString-
orders[].deliveryTimeLocalDateTime-
orders[].sellerDeleteInteger-
orders[].goodsPriceBigDecimal-
orders[].buyerDeleteInteger-
orders[].applyRefundTimeLocalDateTime-
orders[].returnExpressNameString-
orders[].returnExpressNoString-
orders[].outTradeNoString-
orders[].isLocalSchoolBoolean-
orders[].fulfillmentType对象-
orders[].pickupPointIdInteger-
orders[].schoolIdInteger-
orders[].voucherAmountBigDecimal-
orders[].bookConditionString-
orders[].refundReasonType对象-
orders[].refundReasonString-
orders[].orderFromString-
orders[].delaySendTimeInteger-
orders[].inviteUserIdLong-
orders[].shippingImageString-
orders[].goodsIdLong-
orders[].goodsNameString-
orders[].goodsSnString-
orders[].numberInteger-
orders[].listPicUrlString-
orders[].singlePriceBigDecimal-
orders[].goodsCreatorLong-
orders[].isSelfSellBoolean-
orders[].storeNoString-
orders[].purchasePriceBigDecimal-
orders[].complain对象-
orders[].complainTimeLocalDateTime-
orders[].refundFeeBigDecimal-
orders[].purchaseSource对象-
orders[].purchaseShopNoString采购店铺
orders[].shopIdInteger-
orders[].wayBillIdString-
orders[].outOrderIdString外部子订单ID
orders[].tryBuyTimesInteger尝试买的次数
orders[].memoString-
orders[].platformMemoString平台订单备注(拼多多等平台同步)
orders[].orderFlag对象插旗颜色
orders[].fullRegionString-
orders[].orderStatusTextString-
orders[].shippingCodeString-
orders[].sellerNameString-
orders[].sellerPhoneString-
orders[].buyerMajorString-
orders[].searchString-
orders[].alertString-
orders[].orderTypeDescString-
orders[].addressDetailString-
orders[].operate对象数组-
orders[].secondBoolean-
orderStatusTextString-
sellerPhoneString-
sellerNameString-
paramString-
orderTypeDescString-
totalMoneyBigDecimal-
operate对象数组-
tradeMd5String-
…(字段较多,仅列前 60 个)