API中心

  1. 基本档案
  2. 库存组织
返回

库存组织新增

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

参数填写指南

请求方式:POST

请求参数(header):

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

请求参数(body):

全量参数最简示例
参数名类型是否数组必填描述默认值示例值
billvo请求参数
aheaddaysstring运输提前期
areastring地址
bodycodestring库存组织编号
bodynamestring库存组织名称
createdatestring创建日期
def1string自定义项1
def2string自定义项2
def3string自定义项3
def4string自定义项4
def5string自定义项5
isuseretailstring是否用于零售
pk_addressstring地点档案主键
pk_areaclstring地区分类
pk_corpstring公司主键
propertystring性质
rationmnystring资金定额
sealflagstring封存标志
vnotestring说明

返回类型参数:

参数名类型是否数组必填描述默认值
billvo库存组织实体_返回
address_codestring地址编号
address_namestring地址名称
aheaddaysstring运输提前期
areastring地址
areacl_codestring地区编号
areacl_namestring地区名称
bodycodestring库存组织编号
bodynamestring库存组织名称
corpcodestring公司编号
corpnamestring公司名称
createdatestring创建日期
drstring删除标志
pk_addressstring地点
pk_areaclstring地区
pk_calbodystring主键
pk_corpstring公司主键
propertystring性质
tsstring时间戳
vnotestring说明

请求参数示例:

最简示例

复制代码

{
    "billvo": [
        {
            "pk_corp": "3401",
            "bodycode": "APITest02",
            "bodyname": "API库存组织02",
            "pk_areacl": "88",
            "property": "0"
        }
    ]
}

正确返回示例:

最简示例

复制代码

{
    "status": "success",
    "data": "[{\"pk_corp\":\"1015\",\"corpcode\":\"3401\",\"corpname\":\"hjx建设银行有限公司\",\"bodycode\":\"APITest02\",\"bodyname\":\"API库存组织02\",\"createdate\":\"2023-09-12\",\"property\":\"0\",\"pk_areacl\":\"0001F410000000044TG3\",\"areacl_code\":\"88\",\"areacl_name\":\"韩继向专用客商\",\"pk_calbody\":\"1015A210000000001R9U\",\"ts\":\"2023-09-12 19:54:32\",\"dr\":\"0\"}]",
    "taskNumber": "202309120126"
}

错误返回示例:

复制代码

{
    "status": "falied",
    "errorcode": "-32000",
    "errormsg": "U8C返回信息:集团不可添加库存组织!",
    "taskNumber": "202009160046"
}