开放平台

扒书 ERP Open API

转移店铺归属

把店铺转到另一个账号名下。转完后原账号就看不到这个店了,操作不可逆。

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

请求体字段

字段类型必填说明
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 个)

curl 调用

curl -s 'https://www.8shu8.com/api/shop/updateOwner' \
  -H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
  "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": "..."
}'

响应示例

{
  "code": 200,
  "message": "操作成功",
  "success": true,
  "data": true
}