Action 13:创建管理层帐号
功能说明
- 创建管理层帐号(僅限创建管理层相关账号)。
- 角色说明:董事 House → 经理 Manager → 总代理 Master Agent → 代理 Agent(不可跨层建立)
- 自动过滤掉创建重複的下线管理层帐号
同一个 dc 底下的账号不可以重复。
如需要单独加密金钥请洽本公司业务索取。
参数
参数 | 格式 | 强制 | 说明 |
---|---|---|---|
action | Integer | Y | 13 |
ts | Long | Y | 当前系统时间 |
parent | String(50) | Y | 代理账号 |
downLineUsers | Array(10) | Y | 下線管理层帐号数组 |
downLineUsers
参数 | 格式 | 强制 | 说明 |
---|---|---|---|
uid | String(50) | Y | 下線管理层帐号,只限 a-z、0-9、底线(_)、连字符(-) 。只限小写的英文与数值组合,若输入大写的英文,系统会自动转为小写存入 同一个 DC 底下的账号不可以重复。 |
password | String(16) | Y | 后台密码,必须至少包含6个字符,且需包含1个字母和1个数字。 |
Example
{
"action": 13,
"ts": 1447452951820,
"parent": "testma",
"downLineUsers": [
{
"uid": "test12ag",
"password": "abc45678"
}
]
}
返回结果
参数 | 格式 | 说明 |
---|---|---|
status | String(4) | 成功:0000 错误:参照附录 错误代码 |
data | JSON Object | 回传的数据将列于下列表中 |
err_text | String(255) | 错误讯息 |
Data 对象
参数 | 格式 | 说明 |
---|---|---|
failedCreationUsers | Array of String | 创建失败帐号列表,uid 或 password 格式不符合规则 。 |
existedUsers | Array of String | 已存在的帐号列表 |
操作范例
// Http Request
http://{API_Address}/apiRequest.do?dc=jb&x=udbFVt_xv0tsAmLDpz5Z3Ct4-p0gedUPdQO-UWsfd6PHz9Ky-wM3mIC9El4kwl_SlX3lpraVaCLnp-K0WsgKmpYTV9XpYncHzbtvn591qfaAwpGyOvsS4v1Yj7OvpRw_iU4554RuSsvHpI9jaj4XUgTK5yzbWKEddANjAAbxF0s=
// Http Response (success)
{
"status": "0000",
"data": {
"failedCreationUsers": [
"uid_format_error", "password_format_error"
],
"existedUsers": [
"existed1", "existed2"
]
}
}
// Http Response (failed)
1. 若输入参数有误,我方会回传:
{
"status": "7001",
"err_text": "The specified parent ID cannot be found."
}
{
"status": "8000",
"err_text": "The parameter of input error, please check your parameter is correct or not. parameter:The maximum is ten downLineUsers"
}