开放平台

扒书 ERP Open API

添加孔网账号

新增孔网账号时会立即验一次登录,登录成功才保存。

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

请求体字段

字段类型必填说明
phoneString是-
pwdString是-
accountType对象是-

curl 调用

curl -s 'https://www.8shu8.com/api/shop/kfzSnap/accountAdd' \
  -H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
  "phone": "string",
  "pwd": "string",
  "accountType": "..."
}'

响应示例

{
  "code": 200,
  "message": "操作成功",
  "success": true,
  "data": {
    "phone": "string",
    "accountType": "...",
    "accountTypeName": "string",
    "addTime": "string",
    "loggedIn": true,
    "bindShopId": 1,
    "bindShopName": "string",
    "pwd": "string"
  }
}

返回字段(data)

字段类型说明
phoneString-
accountType对象-
accountTypeNameString-
addTimeLocalDateTime-
loggedInbooleantoken 是否非空
bindShopIdInteger绑定的孔网店铺
bindShopNameString-
pwdString已保存的孔网登录密码(用于重新登录回填)