保存客户及房产
请求方式: POST
请求路径:
https://prod.open-api.mysre.cn/business/member-room/save-member-room
| 参数名 | 参数位置 | 参数类型 | 必填 | 默认值 | 示例 | 描述 |
|---|---|---|---|---|---|---|
| tenant_code | query | string | 是 | 租户code | ||
| room_id | body | string | 是 | 000013af-dbbf-e811-80bf-e61f13c57837 | 房间ID | |
| member_id | body | string | 是 | 000040a3-9f63-e711-80ba-e61f13c57837 | 客户ID 如果没有匹配到客户ID则新增加,否则修改客户信息 | |
| type | body | string | 是 | 业主 | 类型 业主、同住人 | |
| relationship_with_owner | body | string | 是 | 亲人 | 同住人类型 亲属、好友、租户、其他 ;type=同住人必填 | |
| mobiles | body | string | 是 | 13161122001,13611203166 | 手机号 多个用,隔开 | |
| name | body | string | 否 | 程执 | 客户名字 | |
| id_type | body | string | 否 | 身份证 | 证件类型 | |
| id_code | body | string | 否 | 421127190008901234 | 证件号码 | |
| birthday | body | string | 否 | 1991-09-01 | 客户出生年月 | |
| sex | body | string | 否 | 男 | 性别 | |
| zip_code | body | string | 否 | 邮编 | 邮编 | |
| corp_id | body | string | 否 | 000040a3-9f63-e711-80ba-e61f13c57337 | 公司ID | |
| mailing_address | body | string | 否 | 山东省青岛市黄岛区崇明岛西路65号 | 通讯地址 | |
| is_trade | body | string | 是 | Y是 N否 | 是否发生买卖,type=业主必填。Y表示发生过买卖,此时为二手业主;N表示没有发生过买卖,此时为一手 |
[
{
"room_id": "123456",
"member_id": "123456",
"is_trade":"Y",
"type": "业主",
"relationship_with_owner": "亲人",
"mobiles": "13161101,1361126",
"name": "xx",
"id_type": "身份证",
"id_code": "421087198901234",
"birthday": "1991-09-01",
"sex": "男",
"zip_code": "邮编",
"corp_id": "654321",
"mailing_address": "xxxx"
}
]
{
"errcode": 0,
"errMsg": "ok",
"rowVersion": "",
"data": []
}
| 参数名 | 参数类型 | 描述 |
|---|---|---|
{
"errcode": 1001,
"errMsg": "租户代码参数为空",
"rowVersion": "",
"data": []
}
| 参数名 | 参数类型 | 描述 |
|---|---|---|
| errcode | number | |
| errMsg | string | |
| rowVersion | string | |
| data | array |