创建/升级会员
POST
/open/v1/crm/createOrUpgradeMember(下行接口)合作方创建(升级)会员
注意: 如果loginType!=0时,需要在客如云商户后台开通微信关注及会员,否则,微信会员无法使用该接口升级为会员
请求参数
Body 参数application/json
loginId
string
必需
手机号码\微信openId
birthday
integer
生日(时间戳)
sex
integer
必需
性别(-1:未知;0:女;1:男;)
name
string
顾客名
environmentHobby
string
兴趣爱好
memo
string
备注
invoiceTitle
string
发票抬头
email
string
电子邮箱
address
string
地址
groupId
string
顾客分组
wxIconUrl
string
微信头像URL
attentionWxTime
integer
可选
关注微信时间(时间戳)
nationalTel
#/definitions/2356411必需
电话国际区码信息(为空默认中国)
consumePwd
string
必需
消费密码(6位整数或者MD5加密)
customerId
integer
必需
顾客ID,传0表示为创建会员
customerMainId
string
必需
顾客主ID,传0表示为创建会员
loginType
string
必需
登陆类型(0:手机注册客户;1:微信注册用户;2:座机号;101:微信会员卡卡号;)
示例
{
"customerId": 800000095,
"customerMainId": 800000095,
"loginType": 0,
"loginId": "18980808088",
"consumePwd": "098f6bcd4621d373cade4e832627b4f6",
"birthday": 1475116492,
"sex": 1,
"name": "李华",
"environmentHobby": "喜欢安静",
"memo": "",
"invoiceTitle": "",
"email": "adsad@asd.com",
"address": "",
"groupId": "",
"wxIconUrl": "",
"attentionWxTime": 1475116492
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
result
可选
返回响应数据,json对象或数组,可空
One of
message
string
返回信息
messageUuid
string
消息uuid
示例
{
"code": 1,
"result": {
"brandId": 6339,
"commercialId": 89877,
"customerId": 800000095,
"customerMainId": 800000095,
"userId": -777,
"source": 16,
"loginType": 0,
"loginId": "18980808088",
"birthday": 1475116492,
"sex": 1,
"name": "李华",
"environmentHobby": "喜欢安静",
"memo": "",
"invoiceTitle": "",
"email": "adsad@asd.com",
"address": "",
"groupId": "",
"wxIconUrl": "",
"isDisable": 1
}
}
修改于 3 年前