跳到主要内容

登录账号停用

请求地址

环境服务地址(HTTP/HTTPS)
V2正式环境(推荐)https://gw.superboss.cc/router

2022年4月1日以后申请的APP Key,统一使用V2正式环境的请求地址:https://gw.superboss.cc/router

公共参数

调用任何一个API都必须传入的参数,目前支持的公共参数有:

参数名称参数类型是否必须参数描述
methodstringAPI接口名称
appKeystring分配给应用的AppKey
timestampstring时间戳,时区为GMT+8,例如:2020-09-21 16:58:00。API服务端允许客户端请求最大时间误差为10分钟
formatstring响应格式。默认为json格式,可选值:json
versionstringAPI协议版本 可选值:1.0
sign_methodstring签名的摘要算法(默认 hmac),可选值为:hmac,md5,hmac-sha256。
signstring签名
sessionstring授权会话信息 (即access_token,由系统分配)

请求头

全部展开
参数名
类型
描述
必填
Content-Type
string
multipart/form-data
必填

API接口地址

全部展开
参数名
类型
描述
必填
method
string
erp.index.account.switch
必填

请求参数

全部展开
参数名
类型
描述
必填
companyName
string
公司名称
必填
accountName
string
账号名称
必填
status
Integer
状态:0-停用,1-启用
必填
phone
string
手机号码
必填

请求示例

示例一:

{
"companyName":"测试公司",
"accountName":"张三",
"status":0,
"phone":"18895662299",
}

响应参数

全部展开
参数名
类型
描述
必填
message
string
账号已启用/停用
必填

响应示例

{
"traceId": "2310023233178015607",
"success": true,
"data": [
{
"message": "账号已停用"
}
]
}

异常示例

{
"code": "25",
"msg": "服务方法(erp.distributor.list.query)的签名无效",
"success": false,
"trace_id": "3553483395423660"
}

错误码解释

错误码错误信息解决方案
content1content2content3