customer/edit


目录

[隐藏]

1.接口说明

1.1接口描述

     修改一个客户

1.2适用版本

     支持U8/12.0及以上版本

2.使用场景

基础数据同步

3.接口调用说明

3.1请求说明

url https://api.yonyouup.com/api/customer/edit
格式 JSON
https请求方式 POST
编码类型 UTF-8


3.2url参数说明

参数 类型 是否必填 描述
from_account string 调用方id
to_account string 提供方id
app_key string 应用编码
token string api调用唯一识别码
ds_sequence number 数据源序号(默认取应用的第一个数据源)


3.3请求体参数说明

参数 类型 参数路径 是否必填 描述
code string 客户编码
name string 客户名称
abbrname string 客户简称
sort_code string 所属分类码
domain_code string 所属地区码
industry string 所属行业
address string 地址
bank_open string 开户银行
bank_acc_number string 银行账号
contact string 联系人
phone string 电话
fax string 传真
mobile string 手机
devliver_site string 发货地址
end_date date 停用日期
ccusexch_name string 币种
bcusdomestic string 国内
bcusoverseas string 国外
bserviceattribute string 服务
ccusmngtypecode string 客户管理类型
ccusmngtypename string 客户管理类型名称
spec_operator string 专管业务员编码
spec_operator_name string 专管业务员名称
memo string 备注
self_define1 string 自定义项1
self_define2 string 自定义项2
self_define3 string 自定义项3
self_define4 string 自定义项4
self_define5 string 自定义项5
self_define6 string 自定义项6
self_define7 string 自定义项7
self_define8 string 自定义项8
self_define9 string 自定义项9
self_define10 string 自定义项10
self_define11 string 自定义项11
self_define12 string 自定义项12
self_define13 string 自定义项13
self_define14 string 自定义项14
self_define15 string 自定义项15
self_define16 string 自定义项16

3.4请求示例

POST https://api.yonyouup.com/api/customer/edit?from_account=openapi_dev&to_account=openapi_ent&app_key=opa6fdd4bea98b95ad7&token=843d03f66e6544e19707ccec11030296&ds_sequence=1

POST 内容:
{
	"customer":{
		"code":"0979",
		"name":"0979修改后的名称"
	}
}


3.5返回参数说明

参数说明 类型 描述
errcode string 错误码,0 为正常。
errmsg string 错误信息。

3.6正确返回示例

JSON示例:

{
  "errcode" : "0", 
  "errmsg" : ""
}  

3.7错误返回示例

application/json;charset=UTF-8
{
	"errcode" : "30021",
	"errmsg" : "此应用未上线"
} 

4.API测试

API测试 SDK下载