getDealersList:批量获取客户
入参
参数名称 |
是否必须 |
类型 |
描述 |
sKey |
Y |
String |
令牌 |
begin |
N |
Int |
起始位置,默认0 |
step |
N |
Int |
获取条数,最大1000,默认100 |
status |
N |
Int |
1(启用的客户) 2(启用,待激活的客户 ) 3(启用,待激活,待审核,禁用的客户) 默认1 |
data_type |
N |
Int |
1:未同步的客户;2:已同步的客户;3:所有客户;默认1,获取未同步的客户 |
time_type |
N |
enum(create_date,update_date) |
指定根据哪种时间来筛选客户,只有传了筛选时间才有意义:create_date:客户创建时间;update_date:客户最后更新时间;默认update_date |
start_time |
N |
String |
时间段筛选——开始时间;Y-m-d H:i:s的形式(例如:2019-08-07 17:59:58) |
end_time |
N |
String |
时间段筛选——结束时间;Y-m-d H:i:s的形式(例如:2019-08-07 17:59:58) |
client_no |
N |
String |
客户编号 |
入参示例
{
"f":"getDealersList",
"v":{
"sKey":"d6eeb8243c589b7f5dc840b3a4c0a31a",
"begin":0,
"step":100,
"status":1,
"data_type":2,
"time_type":"create_date",
"start_time":"2020-05-07 09:54:55",
"end_time":"2020-05-10 09:54:55",
"client_no": "10019"
}
}
返回参数
参数名称 |
类型 |
描述 |
rStatus |
String |
状态码 100:正常,其他:异常 |
message |
String |
运行信息 |
rTotal |
Int |
数据总数 |
rData |
Object |
具体数据 |
rData
参数名称 |
类型 |
描述 |
clientGUID |
String |
订货宝客户ID(如果客户已同步则返回 erp 的 clientGUID) |
clientAccount |
String |
登陆账号为手机号 |
clientCompanyName |
String |
客户名称 |
clientNO |
String |
客户编号 |
clientType |
Int |
客户类型ID |
clientArea |
Int |
归属地区ID |
clientAreaGUID |
String |
归属地区GUID |
clientAbout |
String |
备注 |
clientTrueName |
String |
联系人 |
clientEmail |
String |
电子邮箱 |
clientPhone |
String |
电话号码 |
clientAdd |
String |
联系地址 |
staffName |
String |
客户关联业务员名称 |
clientTypeName |
String |
客户类型名称 |
clientAreaName |
String |
客户归属地区名称 |
Inviter |
String |
邀请人 |
staffID |
String |
所属业务员ID |
createDate |
String |
创建时间 |
updateDate |
String |
最后更新时间 |
clientStatus |
String |
客户状态:T:正常;F:停用;A:待激活;C:待审核 |
clientClearingForm |
String |
结算方式:prepaid:预付;forward:现付;postpaid:后付 |
clientCity |
String |
客户所在省市区的名称 |
返参示例
{
"rStatus": 100,
"message": "获取客户列表成功",
"rTotal": "1",
"rData": [
{
"clientGUID": "2020050801",
"clientAccount": "13540069740",
"clientCompanyName": "ERP接口添加测试客户1",
"clientNO": "2020050801",
"clientType": "1416",
"clientArea": "2349",
"clientAbout": "",
"clientTrueName": "",
"clientEmail": "",
"clientPhone": "",
"clientAdd": "",
"staffName": "",
"clientTypeName": "100%",
"clientAreaName": "默认地区",
"Inviter": "",
"staffID": "0",
"createDate": "2020-05-08 09:54:55",
"updateDate": "2020-05-08 10:00:17",
"clientStatus": "T",
"clientClearingForm": "forward",
"clientCity": ""
}
]
}