文档
测试

新增用户

POST
/crmApi/addCustomer

请求参数

参数名
类型
描述
必填
customerName
String
/**客户姓名 | ERP(purchasere)*/
可选
customerNo
String
/**客户号 | ERP(No)*/
可选
sex
Integer
/**性别 0:女, 1:男 | ERP(sex)*/
可选
email
String
/**客户邮箱 | ERP(e_mail)*/
可选
nickName
String
/**昵称*/
可选
storeId
Integer
/**会员所属店铺 | (ERP(cusId关联, type=2 purchasere))*/
可选
provinceId
Integer
/**省ID(对应地址表id:provinces)*/
可选
cityId
Integer
/**市ID(对应地址表id:provinces)*/
可选
areaId
Integer
/**区域Id*/
可选
identityNo
String
/**身份证号码 | ERP(id_card)*/
可选
birthday
Date
/**生日 | ERP(birthday)*/
可选
specialDay
Date
/**特殊纪念日 | ERP(date_s)*/
可选
lastPurchaseDate
Date
/**最近购买时间*/
可选
salesManid
Integer
/**销售员\经办人Id*/
可选
address
String
/**客户详细地址 | ERP(addr)*/
可选
phone
String
/**客户手机号 | ERP(mobile)*/
必填
vipNo
String
/**会员卡号*/
可选
photo
String
/**客户头像*/
可选
affectiveStates
Integer
/**感情状态;1单身,2恋爱中,3已婚*/
可选

响应参数

参数名
类型
描述
必填
code
String
000000 表示成功
必填
msg
String
错误提示
必填
data
objct
返回流水id
必填