添加业主
该接口用于第三方系统(如招商系统)同步业主信息到物业管理系统中,支持添加业主和家庭成员信息,并可同步门禁人脸信息。
http://{ip}:{port}/iot/api/owner.saveOwner
POST
| 参数名称 | 必填 | 类型 | 描述 | 
|---|---|---|---|
| Authorization | 是 | String | 用户认证token | 
| app-id | 是 | String | 应用ID | 
| transaction-id | 是 | String | 请求流水号 | 
| sign | 是 | String | 签名,请参考物业系统签名 | 
| req-time | 是 | String | 请求时间 YYYYMMDDhhmmss | 
| 参数名称 | 必填 | 类型 | 长度 | 描述 | 示例值 | 
|---|---|---|---|---|---|
| communityId | 是 | String | 30 | 小区ID | "2022121921870161" | 
| name | 是 | String | 64 | 业主姓名 | "王王" | 
| link | 是 | String | 11 | 业主手机号 | "18909718888" | 
| idCard | 否 | String | 30 | 业主身份证号 | "" | 
| address | 否 | String | 512 | 地址 | "张三" | 
| sex | 是 | String | 12 | 性别(男:1,女:0) | "0" | 
| ownerTypeCd | 是 | String | 12 | 业主类型(1001:业主,2002:家庭成员) | "1001" | 
| remark | 否 | String | 512 | 备注 | "" | 
| ownerId | 是 | String | 30 | 业主ID(业主类型填-1,家庭成员填业主ID) | "-1" | 
| ownerPhoto | 否 | String | - | 业主人脸照片(用于门禁同步) | "" | 
| age | 是 | String | - | 年龄 | "" | 
| roomId | 否 | String | - | 房屋ID(绑定房屋时需要) | "" | 
| state | 条件必填 | String | - | 状态(绑定房屋时需要) | "" | 
| storeId | 条件必填 | String | - | 商铺ID(绑定房屋时需要) | "" | 
| attrs | 否 | JSONArray | - | 业主扩展属性 | [] | 
| 参数名称 | 类型 | 长度 | 描述 | 示例值 | 
|---|---|---|---|---|
| code | int | 11 | 返回码(0成功) | 0 | 
| msg | String | 250 | 返回信息 | "成功" | 
{
    "name": "王王",
    "age": "",
    "link": "18909718888",
    "address": "张三",
    "sex": "0",
    "ownerTypeCd": "1001",
    "remark": "",
    "ownerId": -1,
    "ownerPhoto": "",
    "idCard": "",
    "communityId": "2022121921870161"
}
{
    "code": 0,
    "msg": "成功"
}
参数校验:
数据校验:
业务处理:
事务处理: