新增老人的联系人
HTTP方法
POST
HTTP URL
/v1/customer/contact/add
Header参数
- Content-Type采用 application/json
- 认证相关头字段,请参考wsse认证
Body数据
参数 | 类型 | 必需 | 描述 |
---|---|---|---|
cId | string | 是 | 老人cId |
name | string | 是 | 老人姓名 |
mobile | string | 是 | 电话号码 |
nickName | string | 否 | 昵称 对小度设备下发时用昵称作为小度通讯录联系人姓名 |
contactType | string | 是 | ORDINARY-普通联系人 URGENT-紧急联系人 |
numberType | string | 是 | 小度号-0, 11位移动手机电话号-1, SIP号-2, 固定电话-3, 三方uid-4, 呼叫中心(三方虚拟号)-5 |
relationType | string | 是 | 与客户关系 |
identityType | string | 否 | 证件类型 |
relationType枚举:
{
SPOUSE("SPOUSE", "配偶"),
SON("SON", "子/婿"),
DAUGHTER("DAUGHTER", "女/媳"),
GRANDSON("GRANDSON", "孙子、女/外孙子、女"),
PARENT("PARENT", "父、母/岳父、母/公、婆"),
GRANDPARENT("GRANDPARENT", "祖父、母/外祖父、母"),
SIBLING("SIBLING", "兄、弟、姐、妹"),
CHILD("CHILD", "子女"),
FATHERSON("FATHERSON","父子"),
FATHERDAU("FATHERDAU","父女"),
MOTHERSON("MOTHERSON","母子"),
MOTHERDAU("MOTHERDAU","母女"),
CALLCENTER("CALLCENTER","呼叫中心"),
SERVICEORGANIZATION("SERVICEORGANIZATION","服务组织"),
ELDERLYHELPER("ELDERLYHELPER","助老员"),
OTHER("OTHER", "其他")
}
identityType枚举:
{
IDENTITY_CARD("IDENTITY_CARD", "身份证"),
PASSPORT("PASSPORT", "海外护照"),
IDENTITY_CARD_HK("IDENTITY_CARD_HK", "香港身份证"),
IDENTITY_CARD_MC("IDENTITY_CARD_MC", "澳门身份证"),
IDENTITY_CARD_TW("IDENTITY_CARD_TW", "台湾身份证"),
MILITARY_OFFICER("MILITARY_OFFICER", "军官证"),
SOLDIERS("SOLDIERS", "士兵证"),
OTHER("OTHER", "其他")
}
请求示例
{
"cId": "1648224831838867456",
"name": "贾玲",
"mobile": "123456",
"nickName": "",
"contactType": "URGENT",
"numberType": "1",
"relationType": "SPOUSE",
"identityType": "IDENTIFY_CARD"
}
HTTP响应
参数 | 类型 | 描述 |
---|---|---|
code | int | 状态码,0为成功,非0为失败 |
message | string | 对于状态码的简单描述 |
正常响应
{
"code": 0,
"message": "Success",
"data": 1,
"traceId": "3c63ac9314760c191648223233452527616x"
}