创建档案
POST
https://www.tizhicm.com/open-api/openapi_customer/record
1.通过API接口批量创建用户档案信息
2.创建用户数据每次请求不得超过200条
3.接口包含创建和修改两种业务,根据身份证号作为唯一依据,当信息不包含身份证号视作为新用户进行添加,如果包含身份证信息则根据身份证信息进行相应的修改,如果该身份证信息未查询到对应用户则进行添加。
Query 参数
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
access_token | string | 是 | 调用凭证 |
Body 参数 (application/json)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
customer_list | array | 是 | 档案集合 |
customer_list.name | string | 是 | 档案名称 |
customer_list.gender | string | 是 | 性别 1: 男 2:女 |
customer_list.phone | string | 否 | 手机号 |
customer_list.birthday | integer | 是 | 生日(时间戳) |
customer_list.id_card | string | 否 | 身份证号 |
customer_list.height | string | 否 | 身高 CM |
customer_list.weight | string | 否 | 体重 KG |
customer_list.waistline | string | 否 | 腰围 CM |
customer_list.sickness | array | 否 | 疾病 |
请求示列
{
"customer_list":[
{
"name":"小青小青小青小青小青小青小青小青小青",
"gender":"1",
"phone":"176****4222",
"birthday":1,
"id_card":"",
"height":"175",
"weight":"1",
"waistline":"1",
"sickness":[]
}
]
}
返回参数
参数 | 类型 | 说明 |
---|---|---|
errcode | int | 返回码 |
errmsg | string | 返回装填描述 |
error_count | integer | 失败条数 |
error_list | array | 错误集合 |
success_count | integer | 成功条数 |
返回实例
{
"errcode": 0,
"errmsg": "ok",
"error_count": 0,
"error_list": [],
"success_count": 1
}