API中心

  1. 基本档案
  2. 销售组织
返回

销售组织修改

接口所在U8C版本:U8 cloud3.1以及更高版本
详细描述:用于销售组织修改
API视频讲解API详情补丁列表常见问题参考
接口地址
请求方式
请求参数header
请求参数body
返回类型参数
代码示例
请求参数示例
正确返回示例
错误返回示例
接口地址:http://ip:port/u8cloud/api/uapbd/salestrubd/update

参数填写指南

请求方式:POST

请求参数(header):

参数填写指南
参数名必填描述默认值
Content-Type请求体数据类型application/json
usercode用户
password密码
trantype翻译类型,按编码为code,不需要翻译为pkcode
system系统参数

请求参数(body):

参数名类型是否数组必填描述默认值
billvo请求参数
belongcorpstring所属公司主键
createdatestring创建日期
csalestruidstring销售组织主键
def1string自定义项1
def2string自定义项2
def3string自定义项3
def4string自定义项4
def5string自定义项5
isuseretailstring是否用于零售N
phonestring电话
pk_corpstring公司主键
pk_deptdocstring所属部门主键
pk_fathsalestrustring上级销售组织主键
sealdatestring封存标志
vaddressstring办公地址
vprincipalstring负责人
vsalestrucodestring销售组织编码
vsalestrunamestring销售组织名称

返回类型参数:

参数名类型是否数组必填描述默认值
billvo销售组织实体_返回
belongcorpstring所属公司编码
corp_codestring所属公司编码
corp_namestring所属公司名称
deptdoc_codestring所属部门编码
deptdoc_namestring所属部门名称
drstring删除标志
phonestring电话
pk_corpstring公司主键
pk_deptdocstring所属部门编码
pk_fathsalestrustring上级销售组织
salestru_codestring上级销售组织编码
salestru_namestring上级销售组织名称
sealdatestring封存标志
tsstring时间戳
vaddressstring办公地址
vprincipalstring负责人
vsalestrucodestring销售组织编码
vsalestrunamestring销售组织名称

请求参数示例:

最简示例销售组织修改全属性示例

复制代码

{
    "billvo":[{"parentvo":{"vsalestrucode":"Test","vsalestruname":"Test","csalestruid":"0001ZZ1000000000334H"}}]
}

正确返回示例:

复制代码

{
    "status": "success",
    "data": "[{\"parentvo\":{\"vsalestrucode\":\"Test\",\"vsalestruname\":\"Test\",\"vaddress\":\"TestAdd\",\"phone\":\"TestPhone\",\"belongcorp\":\"1012\",\"corp_code\":\"0000\",\"corp_name\":\"测试公司\",\"pk_corp\":\"@@@@\"},\"childrenvo\":[]}]",
    "taskNumber": "202009070099"
}

错误返回示例:

复制代码

{
    "status": "falied",
    "errorcode": "-32000",
    "errormsg": "U8C返回信息:[销售组织编码=Test2]重复,[销售组织名称=Test2]重复,"
    "taskNumber": "202009070100"
}