{
    "method": "crm.customer.edit",
    "summary": "客户档案修改",
    "description": "客户档案修改",
    "request": {
        "contentType": "application/json",
        "schema": {
            "type": "object",
            "properties": {
                "refereeId": {
                    "type": "string",
                    "example": "52691345816821",
                    "description": "客户经理名称"
                },
                "country": {
                    "type": "string",
                    "example": "中国",
                    "description": "国家"
                },
                "vipPassword": {
                    "type": "string",
                    "example": "password123456",
                    "description": "会员密码"
                },
                "headPhotoUrl": {
                    "type": "string",
                    "example": "https://jkyun.oss-cn-hangzhou.aliyuncs.com/longterm/423629554128265600/system/crm/1221554351855961216/1773953269106704640.png?Expires=4848271714&OSSAccessKeyId=LTAI5tPkb173kAgKZCTXcZWt&Signature=GFuW%2BDRrGcyAQANghW59d269lyo%3D",
                    "description": "头像url"
                },
                "customerSourceArr": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "properties": {
                            "channelType": {
                                "type": "string",
                                "example": "jd",
                                "description": "渠道类型"
                            },
                            "channelTypeName": {
                                "type": "string",
                                "example": "京东",
                                "description": "渠道类型名"
                            },
                            "salesmanName": {
                                "type": "string",
                                "example": "李四",
                                "description": "业务员名称"
                            },
                            "isDefault": {
                                "type": "string",
                                "example": "1（是），0（否）",
                                "description": "是否为默认项"
                            },
                            "salesman": {
                                "type": "string",
                                "example": "1216546498",
                                "description": "业务员id"
                            },
                            "customerAccount": {
                                "type": "string",
                                "example": "abc10101",
                                "description": "客户账号"
                            },
                            "sourceChannel": {
                                "type": "string",
                                "example": "来源渠道1",
                                "description": "渠道名称"
                            },
                            "channelId": {
                                "type": "string",
                                "example": "132146546832132",
                                "description": "渠道id"
                            }
                        }
                    },
                    "description": "客户来源们"
                },
                "referee": {
                    "type": "string",
                    "example": "王五",
                    "description": "推荐人名称"
                },
                "customerManagerName": {
                    "type": "string",
                    "example": "王五",
                    "description": "客户经理名称"
                },
                "debtAmountMax": {
                    "type": "number",
                    "example": 10000.0,
                    "description": "欠款额度"
                },
                "defaultChannelName": {
                    "type": "string",
                    "example": "门店0001",
                    "description": "默认销售渠道名称"
                },
                "customerType": {
                    "type": "string",
                    "example": "ada8z32c1a56asdc",
                    "description": "客户类别id"
                },
                "weiXin": {
                    "type": "string",
                    "example": "chat11111",
                    "description": "微信"
                },
                "noDisturb": {
                    "type": "string",
                    "example": "1（是），0（否）",
                    "description": "免打扰"
                },
                "vipLevelName": {
                    "type": "string",
                    "example": "金牌会员",
                    "description": "会员等级名称"
                },
                "state": {
                    "type": "string",
                    "example": "浙江省",
                    "description": "省份"
                },
                "tagArr": {
                    "type": "string",
                    "example": "[\"网红\", \"土豪\"]",
                    "description": "客户标签们"
                },
                "zip": {
                    "type": "string",
                    "example": "310000",
                    "description": "邮编"
                },
                "qq": {
                    "type": "string",
                    "example": "1135888899",
                    "description": "QQ"
                },
                "town": {
                    "type": "string",
                    "example": "三墩镇",
                    "description": "镇"
                },
                "customerManager": {
                    "type": "string",
                    "example": "a1d56ad1q56da321",
                    "description": "客户经理id"
                },
                "defaultChannelId": {
                    "type": "string",
                    "example": "4826442132654621",
                    "description": "默认销售渠道id"
                },
                "taxNumber": {
                    "type": "string",
                    "example": "SH123456798",
                    "description": "开票税号"
                },
                "phone": {
                    "type": "string",
                    "example": "13588889999",
                    "description": "联系电话"
                },
                "district": {
                    "type": "string",
                    "example": "西湖区",
                    "description": "区"
                },
                "birthday": {
                    "type": "string",
                    "example": "2019-07-25",
                    "description": "生日"
                },
                "gender": {
                    "type": "string",
                    "example": "0（男），1（女）",
                    "description": "性别（枚举）"
                },
                "city": {
                    "type": "string",
                    "example": "杭州市",
                    "description": "城市"
                },
                "createChannelInfo": {
                    "type": "object",
                    "properties": {
                        "channelId": {
                            "type": "string",
                            "example": "4826442132654621",
                            "description": "销售渠道id"
                        },
                        "channelName": {
                            "type": "string",
                            "example": "门店0001",
                            "description": "销售渠道名称"
                        }
                    },
                    "description": "建档渠道"
                },
                "customerCode": {
                    "type": "string",
                    "example": "C201907050001",
                    "description": "客户编号"
                },
                "remark": {
                    "type": "string",
                    "example": "这是一个备注",
                    "description": "备注"
                },
                "receivablesAccountArr": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "properties": {
                            "accountType": {
                                "type": "string",
                                "example": "0(支付宝)，1(微信)，2(银行)",
                                "description": "账号类型"
                            },
                            "isDefault": {
                                "type": "string",
                                "example": "1（是），0（否）",
                                "description": "是否为默认联系人"
                            },
                            "accountName": {
                                "type": "string",
                                "example": "zhname",
                                "description": "开户账户名"
                            },
                            "openingBank": {
                                "type": "string",
                                "example": "中国银行",
                                "description": "开户行"
                            },
                            "accountNumber": {
                                "type": "string",
                                "example": "abc123456",
                                "description": "账号"
                            }
                        }
                    },
                    "description": "收款账号们"
                },
                "vipLevel": {
                    "type": "string",
                    "example": "ad1a2w3q1ada65zc5621asd",
                    "description": "会员等级id"
                },
                "detailedAddress": {
                    "type": "string",
                    "example": "西园十路8号笛佛大厦",
                    "description": "基本信息地址-详细地址"
                },
                "customerId": {
                    "type": "string",
                    "example": "424621996213339008",
                    "description": "客户id"
                },
                "nickname": {
                    "type": "string",
                    "example": "张三",
                    "description": "客户名称"
                },
                "blackList": {
                    "type": "string",
                    "example": "1（是），0（否）",
                    "description": "黑名单"
                },
                "alias": {
                    "type": "string",
                    "example": "张飞",
                    "description": "别名"
                },
                "email": {
                    "type": "string",
                    "example": "13588889999@163.com",
                    "description": "email"
                },
                "specialReminding": {
                    "type": "string",
                    "example": "重点客户",
                    "description": "特别提醒"
                },
                "address": {
                    "type": "string",
                    "example": "浙江省杭州市西湖区三墩镇",
                    "description": "基本信息地址-地址"
                },
                "editReason": {
                    "type": "string",
                    "example": "积分修改原因",
                    "description": "积分修改原因"
                },
                "customerTypeName": {
                    "type": "string",
                    "example": "类别1",
                    "description": "客户类别名称"
                },
                "integralBalance": {
                    "type": "string",
                    "example": "360.6",
                    "description": "积分余额"
                },
                "invoice": {
                    "type": "object",
                    "properties": {
                        "country": {
                            "type": "string",
                            "example": "中国",
                            "description": "国家"
                        },
                        "state": {
                            "type": "string",
                            "example": "浙江省",
                            "description": "省份"
                        },
                        "invoiceTitle": {
                            "type": "string",
                            "example": "TD",
                            "description": "发票抬头"
                        },
                        "town": {
                            "type": "string",
                            "example": "三墩镇",
                            "description": "镇"
                        },
                        "taxNumber": {
                            "type": "string",
                            "example": "d1a32d6465a4dsa23",
                            "description": "开票税号"
                        },
                        "phone": {
                            "type": "string",
                            "example": "15645612342",
                            "description": "联系电话"
                        },
                        "district": {
                            "type": "string",
                            "example": "西湖区",
                            "description": "区"
                        },
                        "city": {
                            "type": "string",
                            "example": "杭州市",
                            "description": "城市"
                        },
                        "openingBank": {
                            "type": "string",
                            "example": "中国银行",
                            "description": "开户行"
                        },
                        "detailedAddress": {
                            "type": "string",
                            "example": "西园十路8号笛佛大厦",
                            "description": "详细地址"
                        },
                        "accountNumber": {
                            "type": "string",
                            "example": "abc1234561",
                            "description": "账号"
                        }
                    },
                    "description": "开票信息"
                },
                "contacts": {
                    "type": "string",
                    "example": "李四",
                    "description": "联系人"
                },
                "age": {
                    "type": "integer",
                    "example": 18,
                    "description": "年龄"
                }
            }
        },
        "example": {
            "refereeId": "52691345816821",
            "country": "中国",
            "vipPassword": "password123456",
            "headPhotoUrl": "https://jkyun.oss-cn-hangzhou.aliyuncs.com/longterm/423629554128265600/system/crm/1221554351855961216/1773953269106704640.png?Expires=4848271714&OSSAccessKeyId=LTAI5tPkb173kAgKZCTXcZWt&Signature=GFuW%2BDRrGcyAQANghW59d269lyo%3D",
            "customerSourceArr": [
                {
                    "channelType": "jd",
                    "channelTypeName": "京东",
                    "salesmanName": "李四",
                    "isDefault": "1（是），0（否）",
                    "salesman": "1216546498",
                    "customerAccount": "abc10101",
                    "sourceChannel": "来源渠道1",
                    "channelId": "132146546832132"
                }
            ],
            "referee": "王五",
            "customerManagerName": "王五",
            "debtAmountMax": 10000.0,
            "defaultChannelName": "门店0001",
            "customerType": "ada8z32c1a56asdc",
            "weiXin": "chat11111",
            "noDisturb": "1（是），0（否）",
            "vipLevelName": "金牌会员",
            "state": "浙江省",
            "tagArr": "[\"网红\", \"土豪\"]",
            "zip": "310000",
            "qq": "1135888899",
            "town": "三墩镇",
            "customerManager": "a1d56ad1q56da321",
            "defaultChannelId": "4826442132654621",
            "taxNumber": "SH123456798",
            "phone": "13588889999",
            "district": "西湖区",
            "birthday": "2019-07-25",
            "gender": "0（男），1（女）",
            "city": "杭州市",
            "createChannelInfo": {
                "channelId": "4826442132654621",
                "channelName": "门店0001"
            },
            "customerCode": "C201907050001",
            "remark": "这是一个备注",
            "receivablesAccountArr": [
                {
                    "accountType": "0(支付宝)，1(微信)，2(银行)",
                    "isDefault": "1（是），0（否）",
                    "accountName": "zhname",
                    "openingBank": "中国银行",
                    "accountNumber": "abc123456"
                }
            ],
            "vipLevel": "ad1a2w3q1ada65zc5621asd",
            "detailedAddress": "西园十路8号笛佛大厦",
            "customerId": "424621996213339008",
            "nickname": "张三",
            "blackList": "1（是），0（否）",
            "alias": "张飞",
            "email": "13588889999@163.com",
            "specialReminding": "重点客户",
            "address": "浙江省杭州市西湖区三墩镇",
            "editReason": "积分修改原因",
            "customerTypeName": "类别1",
            "integralBalance": "360.6",
            "invoice": {
                "country": "中国",
                "state": "浙江省",
                "invoiceTitle": "TD",
                "town": "三墩镇",
                "taxNumber": "d1a32d6465a4dsa23",
                "phone": "15645612342",
                "district": "西湖区",
                "city": "杭州市",
                "openingBank": "中国银行",
                "detailedAddress": "西园十路8号笛佛大厦",
                "accountNumber": "abc1234561"
            },
            "contacts": "李四",
            "age": 18
        }
    },
    "response": {
        "contentType": "application/json",
        "schema": {
            "type": "object",
            "properties": {
                "code": {
                    "type": "integer",
                    "example": 200
                },
                "msg": {
                    "type": "string",
                    "example": ""
                },
                "result": {
                    "type": "object",
                    "properties": {
                        "data": {
                            "type": "object",
                            "properties": {}
                        },
                        "contextId": {
                            "type": "string",
                            "example": "1924610087250035584"
                        }
                    }
                },
                "subCode": {
                    "type": "string",
                    "example": ""
                }
            }
        },
        "example": {
            "code": 200,
            "msg": "",
            "result": {
                "data": {},
                "contextId": "1924610087250035584"
            },
            "subCode": ""
        }
    }
}