开放平台

扒书 ERP Open API

订单详情

按子订单 ID 查详情,商品、收件人、金额、物流都在里面。

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

请求参数

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

curl 调用

curl -s 'https://www.8shu8.com/api/order/buyer/detail?orderId=1' \
  -H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN'

响应示例

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

返回字段(data)

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