开放平台

开通商家账号

请求地址(POST)

https://openapi.1card1.cn/BusinessApi/Add_Business?agentAccount=[AgentAccount]&signature=[Signature]&timestamp=[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,女士;)
qq QQ
tel 联系电话
email 邮箱
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 商家唯一标识唯一标识

开通商家账号 调试