简要描述

  • 调用接口添加客户

接口版本

版本号 制定人 制定日期 修订日期
V 1.0 xxxx-xx-xx

请求URL:

请求方式:

  • POST

请求头:

参数名 是否必须 类型 说明
Content-Type string 请求类型: multipart/form-data

请求参数:

参数名 是否必须 类型 说明
access_token string 获取到的授权码access_token
unified_social_credit_code string 本公司社会统一信用代码
customer_name string 客户名称
province string 客户所在省份(如:广东)
city string 客户所在城市 (如:广州)
area string 客户所在县(区)(如:天河区)
customer_id_card string 客户身份证号码
customer_phone string 客户(雇主)手机号码
customer_number string 客户固定电话
customer_weixin string 客户微信
customer_qq string 客户QQ
customer_mail string 客户邮箱地址
customer_address string 客户联系地址
customer_remark string 客户备注

返回示例:

正确时返回一:

  1. {
  2. "code": 200,
  3. "msg": "客户添加成功!",
  4. "data": {
  5. "status": "success",
  6. "time": 1559405713,
  7. "耗时": 0.17000000000000001
  8. }
  9. }

说明:当返回此结果时说明客户添加成功,time为添加入库时间戳。

错误返回一:

  1. {
  2. "code": 400,
  3. "msg": "客户已存在!",
  4. "data": {
  5. "status": "error",
  6. "time": 1559405744,
  7. "耗时": 0.112
  8. }
  9. }

说明:当返回此结果时说明客户已存在,time为客户创建时间戳。