开放平台

扒书 ERP Open API

更新店铺

修改店铺名称、联系方式、发货策略等基础信息。

请求方式POST
接口路径/api/shop/update
Content-Typeapplication/json
鉴权X-Nideshop-Token

请求体字段

字段类型必填说明
keyString否-
valueObject否-
idInteger否-
kvs对象数组否-
keyString否-
valueObject否-

curl 调用

curl -s 'https://www.8shu8.com/api/shop/update' \
  -H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
  "key": "string",
  "value": "...",
  "id": 1,
  "kvs": [
    "..."
  ]
}'

响应示例

{
  "code": 200,
  "message": "操作成功",
  "success": true,
  "data": {
    "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": [
      "string"
    ],
    "limitType": "string",
    "getLimitTypeList": [
      "..."
    ],
    "bsShopFunction": {
      "serialVersionUID": 1,
      "id": 1,
      "addTime": "string",
      "shopId": 1,
      "functionType": "...",
      "enableFlag": true
    },
    "filterSuit": true,
    "filterMess": true,
    "dueTime": "string",
    "shippingFee": 0.0,
    "erpShopId": "string",
    "erpType": "...",
    "supplyId": 1,
    "autoDeleteNoStock": true,
    "settleType": {
      "desc": "string"
    },
    "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": "..."
  }
}

返回字段(data)

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