文档首页> ISDP> API参考> API接口> 基础数据管理> 批量保存客户(API名称:batchSave)
更新时间:2024-01-18 GMT+08:00
分享

批量保存客户(API名称:batchSave)

功能介绍

批量保存客户,最大支持5个,客户编码存在更新,不存在新增。

相关接口

接口名称

调用说明

获取Token

调用该接口获取到Token,再调用其他接口时,需要在请求消息头中添加“Authorization”,其值即为Token。

URL

请求方式

HTTPS地址

服务架构

消息体类型

POST

https://isdp+域名/openapi/v1/customer/batchSave

OpenAPI

application/json

请求头

KEY

VALUE

是否必填

描述

Content-Type

application/json

Authorization

bearer ${access_token}

bearer +“ ”+5.2.1中获取的access_token的值

请求参数

参数

类型

是否必填

描述

customerList

Array

客户列表。

customerList字段说明:

参数

类型

是否必填

描述

customerCode

String

客户编码。

customerName

String

客户名称。

customerClassify

String

客户类型编码。

customerGroupCode

String

客户分组编码。

customerOrgCode

String

客户行政区域编码,多个行政区需用“>”分隔。

address

String

客户地址。

contact

String

联系人。

telephone

String

联系电话。

description

String

描述。

响应参数

参数

类型

描述

status

String

状态,failed | success。

msg

String

消息。客户名称不能为空。

data

Object

响应结果内容data。

请求示例

{
  "customerList":[
    {"customerName":”xx名称","customerCode":"xx编码"}
  ]
}

响应示例

成功出参案例:
{
  "status": “success”
  “msg”:null,
  “data”:null
}
失败出参案例:
{
  "status": “failed”
  “msg”:”客户名称不能为空”,
  “data”:null
}
分享:

    相关文档

    相关产品