开放平台

扒书 ERP Open API

店铺详情

按店铺 ID 返回详细资料和经营概况。

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

请求参数

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

curl 调用

curl -s 'https://www.8shu8.com/api/shop/stats?id=1' \
  -H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN'

响应示例

{
  "code": 200,
  "message": "操作成功",
  "success": true,
  "data": {
    "shop": {
      "id": 1,
      "shopType": "...",
      "shopTypeDesc": "string",
      "shopName": "string",
      "outShopId": "string",
      "mallUserId": "string",
      "token": "string",
      "refreshToken": "string",
      "phone": "string",
      "userId": 1,
      "addTime": "string",
      "sellerNick": "string",
      "postCostId": 1,
      "smartPostSettingId": "string",
      "bindStore": true,
      "discount": 0.0,
      "code": "string",
      "second": true,
      "minPrice": 0.0,
      "twoPiecesDiscount": 1,
      "deliveryOneDay": 1,
      "waterMark": "string",
      "tailImage": "string",
      "video": "string",
      "titlePrefix": "string",
      "titleSuffix": "string",
      "importantDesc": "string",
      "stockPrefix": "string",
      "titleCombine": "string",
      "titleCombineList": [
        "..."
      ],
      "limitType": "string",
      "getLimitTypeList": [
        "..."
      ],
      "bsShopFunction": {
        "serialVersionUID": "...",
        "id": "...",
        "addTime": "...",
        "shopId": "...",
        "functionType": "...",
        "enableFlag": "..."
      },
      "filterSuit": true,
      "filterMess": true,
      "dueTime": "string",
      "shippingFee": 0.0,
      "erpShopId": "string",
      "erpType": "...",
      "supplyId": 1,
      "autoDeleteNoStock": true,
      "settleType": {
        "desc": "..."
      },
      "genImageWhenNoImage": true,
      "followMinPrice": true,
      "realTimeFreshPrice": true,
      "apiBalance": 1,
      "apiNeedMoney": true,
      "expireTime": "string",
      "tokenExpire": true,
      "erpShopName": "string",
      "erpShopNo": "string",
      "authUrl": "string",
      "onWork": true,
      "shopLabel": "...",
      "bookFlag": true,
      "erpInnerId": "string",
      "addPrice": 0.0,
      "addPricePercent": 0.0,
      "pushOrderBs": true,
      "kfzAccount": "string",
      "kfzPassword": "string",
      "kfzToken": "string",
      "autoBuyApi": true,
      "erpToken": "string",
      "appType": "..."
    },
    "postCosts": [
      {
        "id": "...",
        "shopId": "...",
        "postId": "...",
        "name": "...",
        "onSale": "...",
        "content": "...",
        "partnerId": "...",
        "partnerKey": "...",
        "partnerSecret": "...",
        "partnerName": "...",
        "net": "...",
        "code": "...",
        "checkMan": "...",
        "company": "...",
        "postCnName": "...",
        "postDicId": "...",
        "minPrice": "...",
        "addTime": "..."
      }
    ],
    "linkWarehouse": [
      {
        "serialVersionUID": "...",
        "id": "...",
        "name": "...",
        "warehouseId": "...",
        "supplyId": "...",
        "userId": "...",
        "ownName": "...",
        "checkedStatusDesc": "...",
        "checked": "...",
        "repeatScore": "...",
        "linkShopCount": "...",
        "settleType": "...",
        "isDisabled": "...",
        "logicSendPoint": "...",
        "cancelRate": "...",
        "holiday": "...",
        "bookFlag": "...",
        "commissionRate": "...",
        "serviceFeeRate": "...",
        "addTime": "...",
        "inviteUserId": "...",
        "inviteRate": "...",
        "goodsCondition": "...",
        "virtualWarehouse": "...",
        "minRank": "...",
        "maxRank": "...",
        "minPrice": "...",
        "priceFilterComplateRate": "...",
        "priceByCondition": "...",
        "priceMinCondition": "...",
        "goodsCount": "...",
        "phone": "...",
        "bsWarehouseFlag": "...",
        "address": "...",
        "lat": "...",
        "lon": "...",
        "distanceKm": "...",
        "selfErp": "...",
        "forbidAllocate": "...",
        "shipHours": "..."
      }
    ]
  }
}

返回字段(data)

字段类型说明
shop对象-
shop.idInteger-
shop.shopType对象-
shop.shopTypeDescString-
shop.shopNameString-
shop.outShopIdString-
shop.mallUserIdString-
shop.tokenString-
shop.refreshTokenString-
shop.phoneString-
shop.userIdLong扒书用户id
shop.addTimeLocalDateTime-
shop.sellerNickString-
shop.postCostIdInteger-
shop.smartPostSettingIdString智能物流策略指定的电子面单配置;为空时沿用平台默认智能选择。
shop.bindStoreBoolean-
shop.discountBigDecimal默认折扣
shop.codeString-
shop.secondBoolean-
shop.minPriceBigDecimal-
shop.twoPiecesDiscountInteger两件以上折扣
shop.deliveryOneDayInteger-
shop.waterMarkString-
shop.tailImageString-
shop.videoString-
shop.titlePrefixString-
shop.titleSuffixString-
shop.importantDescString孔网推荐语;咸鱼上书时追加到商品详情
shop.stockPrefixString货号前缀
shop.titleCombineString商品标题组成
shop.titleCombineListArray<String>-
shop.limitTypeString-
shop.getLimitTypeList对象数组-
shop.bsShopFunction对象-
shop.bsShopFunction.idInteger-
shop.bsShopFunction.addTimeLocalDateTime-
shop.bsShopFunction.shopIdInteger-
shop.bsShopFunction.functionType对象功能类型
shop.bsShopFunction.enableFlagBoolean-
shop.filterSuitBoolean-
shop.filterMessBoolean-
shop.dueTimeLocalDateTime-
shop.shippingFeeBigDecimal-
shop.erpShopIdString-
shop.erpType对象-
shop.supplyIdInteger-
shop.autoDeleteNoStockBoolean-
shop.settleType对象-
shop.settleType.descString-
shop.genImageWhenNoImageBoolean-
shop.followMinPriceBoolean-
shop.realTimeFreshPriceBoolean-
shop.apiBalanceInteger-
shop.apiNeedMoneyBoolean-
shop.expireTimeLocalDateTime-
shop.tokenExpireBoolean-
shop.erpShopNameString-
shop.erpShopNoString-
shop.authUrlString-
shop.onWorkBoolean-
shop.shopLabel对象-
shop.bookFlagBoolean-
shop.erpInnerIdString-
shop.addPriceBigDecimal-
shop.addPricePercentBigDecimal-
shop.pushOrderBsBoolean-
shop.kfzAccountString-
shop.kfzPasswordString-
shop.kfzTokenString-
shop.autoBuyApiBoolean-
shop.erpTokenString-
shop.appType对象-
postCosts对象数组-
linkWarehouse对象数组-
…(字段较多,仅列前 60 个)