创建顾客
POST
/open/v1/crm/createCustomer(下行接口)合作方调用此接口可创建顾客
请求参数
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必需
电话国际区码信息(为空默认中国)
示例
{
"loginId": "18980808088",
"birthday": 1475116492000,
"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 年前