API中心

  1. 基本档案
  2. 存货分类
返回

存货分类新增

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

参数填写指南

请求方式:POST

请求参数(header):

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

请求参数(body):

全量参数最简参数
参数名类型是否数组必填描述默认值示例值
invcl
averagecostdouble平均成本
averagemmaheadint平均生产提前期
averagepuraheadint平均采购提前期
avgpricedouble平均单价
forinvnamestring外文名称
invclasscodestring分类编码
invclassnamestring分类名称
iselectransstring电子采购分类
pk_corpstring公司编码

返回类型参数:

参数名类型是否数组必填描述默认值
invclvos存货分类实体_返回
averagecoststring平均成本
averagemmaheadstring平均生产提前期
averagepuraheadstring平均采购提前期
avgpricestring平均单价
endflagboolean末级标志
forinvnamestring外文名称
invclasscodestring分类编码
invclasslevint分类级别
invclassnamestring分类名称
iselectransboolean电子采购分类
pk_corpstring公司主键
pk_invclstring主键
sealdatestring封存标志

请求参数示例:

最简参数

复制代码

{
    "invcl": [
        {
            "forinvname": "test",
            "invclasscode": "0112",
            "invclassname": "测试api2",
            "pk_corp": "3401"
        }
    ]
}

正确返回示例:

最简参数

复制代码

{
    "status": "success",
    "data": "[{\"pk_invcl\":\"0001A21000000004C4O1\",\"invclasscode\":\"0112\",\"invclassname\":\"测试api2\",\"invclasslev\":\"2\",\"forinvname\":\"test\",\"pk_corp\":\"1015\",\"unitcode\":\"3401\",\"unitname\":\"hjx建设银行有限公司\"}]",
    "taskNumber": "202309220030"
}

错误返回示例:

复制代码

{

status: "falied",

errorcode: "-32000",

errormsg: "编码不能重复:0111"

}


Spend Time: 70 ms