店铺详情
按店铺 ID 返回详细资料和经营概况。
| 请求方式 | GET/POST |
| 接口路径 | /api/shop/stats |
| Content-Type | - |
| 鉴权 | X-Nideshop-Token |
请求参数
| 参数 | 类型 | 必填 | 位置 |
id | Integer | 否 | 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.id | Integer | - |
shop.shopType | 对象 | - |
shop.shopTypeDesc | String | - |
shop.shopName | String | - |
shop.outShopId | String | - |
shop.mallUserId | String | - |
shop.token | String | - |
shop.refreshToken | String | - |
shop.phone | String | - |
shop.userId | Long | 扒书用户id |
shop.addTime | LocalDateTime | - |
shop.sellerNick | String | - |
shop.postCostId | Integer | - |
shop.smartPostSettingId | String | 智能物流策略指定的电子面单配置;为空时沿用平台默认智能选择。 |
shop.bindStore | Boolean | - |
shop.discount | BigDecimal | 默认折扣 |
shop.code | String | - |
shop.second | Boolean | - |
shop.minPrice | BigDecimal | - |
shop.twoPiecesDiscount | Integer | 两件以上折扣 |
shop.deliveryOneDay | Integer | - |
shop.waterMark | String | - |
shop.tailImage | String | - |
shop.video | String | - |
shop.titlePrefix | String | - |
shop.titleSuffix | String | - |
shop.importantDesc | String | 孔网推荐语;咸鱼上书时追加到商品详情 |
shop.stockPrefix | String | 货号前缀 |
shop.titleCombine | String | 商品标题组成 |
shop.titleCombineList | Array<String> | - |
shop.limitType | String | - |
shop.getLimitTypeList | 对象数组 | - |
shop.bsShopFunction | 对象 | - |
shop.bsShopFunction.id | Integer | - |
shop.bsShopFunction.addTime | LocalDateTime | - |
shop.bsShopFunction.shopId | Integer | - |
shop.bsShopFunction.functionType | 对象 | 功能类型 |
shop.bsShopFunction.enableFlag | Boolean | - |
shop.filterSuit | Boolean | - |
shop.filterMess | Boolean | - |
shop.dueTime | LocalDateTime | - |
shop.shippingFee | BigDecimal | - |
shop.erpShopId | String | - |
shop.erpType | 对象 | - |
shop.supplyId | Integer | - |
shop.autoDeleteNoStock | Boolean | - |
shop.settleType | 对象 | - |
shop.settleType.desc | String | - |
shop.genImageWhenNoImage | Boolean | - |
shop.followMinPrice | Boolean | - |
shop.realTimeFreshPrice | Boolean | - |
shop.apiBalance | Integer | - |
shop.apiNeedMoney | Boolean | - |
shop.expireTime | LocalDateTime | - |
shop.tokenExpire | Boolean | - |
shop.erpShopName | String | - |
shop.erpShopNo | String | - |
shop.authUrl | String | - |
shop.onWork | Boolean | - |
shop.shopLabel | 对象 | - |
shop.bookFlag | Boolean | - |
shop.erpInnerId | String | - |
shop.addPrice | BigDecimal | - |
shop.addPricePercent | BigDecimal | - |
shop.pushOrderBs | Boolean | - |
shop.kfzAccount | String | - |
shop.kfzPassword | String | - |
shop.kfzToken | String | - |
shop.autoBuyApi | Boolean | - |
shop.erpToken | String | - |
shop.appType | 对象 | - |
postCosts | 对象数组 | - |
linkWarehouse | 对象数组 | - |
| …(字段较多,仅列前 60 个) |