开通商家账号
请求地址(POST)
https://openapi.1card1.cn/BusinessApi/Add_Business?agentAccount=[AgentAccount]&signature=[Signature]×tamp=[TimeStamp]
| 字段 | 说明 |
|---|---|
| AgentAccount | 代理商账号 |
| Signature | 签名=md5(AgentAccount+md5(Password).ToUpper()+Timestamp+data),格式:32位md5加密 |
| TimeStamp | 发起请求的时间戳,查看标准timestamp |
请求说明
data={"businessAccount":"KeHu","password":"987456","businessName":"飞达集团","edition":"EnterpriseEdition","contact":"小李","sex":1,"qq":"313464081","tel":"075588888888","email":"","provinceId":6, "cityId":37, "countyId":473, "address":"嘉熙业","postCode":"471000", "webAddress":"", "introduction":"","industryId":1, "meno":"13632651195","account":"10000" }
| 字段 | 是否必须 | 说明 |
|---|---|---|
| businessAccount | 是 | 商家账号 |
| password | 是 | 密码 |
| businessName | 是 | 商家名称 |
| edition | 是 | 注册版本(通过“获取版本列表”获得“EditionKeyName”字段) |
| contact | 否 | 联系人 |
| sex | 否 | 性别(1,先生;2,女士;) |
| 否 | ||
| tel | 否 | 联系电话 |
| 否 | 邮箱 | |
| provinceId | 否 | 省份Id(通过“获取省份列表”获得) |
| cityId | 否 | 城市Id(通过“获取城市列表”获得) |
| countyId | 否 | 县区Id(通过“获取县区列表”获得) |
| address | 否 | 详细地址 |
| postCode | 否 | 邮编 |
| webAddress | 否 | 网址 |
| introduction | 否 | 企业介绍 |
| meno | 否 | 备注 |
返回说明
成功时返回:
{"status":0,"message":"开通成功",,"openId":"4864A1DD75C14ADE9F070160DA043B28","secret":"NNZXZB","chainStoreGuid":"e6fe6aac-0e3f-e411-97f7-0013d4497493","businessGuid":"e7fe6aac-0e3f-e411-97f7-0013d4497493"}}
失败时返回:
{"status":-1,"message":"开通失败"}
| 字段 | 是否必须 | 说明 |
|---|---|---|
| status | 是 | 状态(0,成功;-1,失败) |
| message | 是 | 是否成功及提示 |
| openId | 否 | OpenId |
| secret | 否 | Secret |
| chainStoreGuid | 否 | 店面唯一标识 |
| businessGuid | 否 | 商家唯一标识唯一标识 |
