API中心

  1. 基本档案
  2. 仓库档案
返回

仓库档案新增

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

参数填写指南

请求方式:POST

请求参数(header):

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

请求参数(body):

全量参数最简参数
参数名类型是否数组必填描述默认值示例值
stordoc仓库档案
csflagboolean是否货位管理false
def1string集团自定义项
def2string集团自定义项
def3string集团自定义项
def4string集团自定义项
def5string集团自定义项
gubflagboolean是否废品库false
isatpaffectedboolean是否影响atptrue
iscalculatedinvcostboolean是否进行存货成本计算true
iscapitalstorboolean是否资产仓false
isforeignstorboolean是否寄存供应商false
isgathersettleboolean是否供应商寄存false
isshopstorboolean是否门店仓库false
isstoreonthewayboolean是否在途仓false
isuseretailboolean是否用于零售false
memostring备注
mrpflagboolean是否mrp运算false
phonestring电话号码
pk_addressstring地点编码
pk_calbodystring库存组织编码
pk_corpstring公司
principalcodestring负责人编码
proflagboolean是否生产仓库false
storaddrstring仓库地址
storcodestring仓库编码
stornamestring仓库名称

返回类型参数:

参数名类型是否数组必填描述默认值
stordoc返回字段说明
addresscodestring所属地点编码
addressnamestring所属地点名称
calbodycodestring库存组织编码
calbodynamestring库存组织名称
corpcodestring公司编码
corpnamestring公司名称
csflagboolean是否货位管理
def1string自定义项1
def2string自定义项2
def3string自定义项3
def4string自定义项4
def5string自定义项5
gubflagboolean是否废品库
isatpaffectedboolean是否影响ATP
iscalculatedinvcostboolean是否进行存货成本计算
isdirectstoreboolean是否直运仓
isforeignstorboolean是否寄存供应商
isgathersettleboolean是否供应商寄存
isshopstorboolean是否门店仓库
isstoreonthewayboolean是否在途仓
isuseretailboolean是否用于零售
memostring备注
mrpflagboolean是否MRP运算
phonestring电话号码
pk_addressstring所属地点主键
pk_calbodystring库存组织主键
pk_corpstring公司主键
pk_stordocstring仓库主键
principalcodestring负责人编码
principalnamestring负责人名称
proflagboolean是否生产仓库
sealflagboolean暂封标志
storaddrstring仓库地址
storcodestring仓库编码
stornamestring仓库名称
tsstring时间戳

请求参数示例:

最简参数

复制代码

{"stordoc":[{"pk_corp":"3401","pk_calbody":"APITest01","storcode":"APITest01-01","storname":"API库存组织01仓"}]}

正确返回示例:

最简参数

复制代码

{"status":"success","data":"[{\"pk_corp\":\"1015\",\"corpcode\":\"3401\",\"corpname\":\"hjx建设银行有限公司\",\"storcode\":\"APITest01-01\",\"storname\":\"API库存组织01仓\",\"pk_calbody\":\"1015A210000000001QI7\",\"calbodycode\":\"APITest01\",\"calbodyname\":\"API库存组织01\",\"gubflag\":false,\"proflag\":false,\"mrpflag\":false,\"csflag\":false,\"sealflag\":false,\"isgathersettle\":false,\"isforeignstor\":false,\"iscapitalstor\":false,\"isatpaffected\":true,\"iscalculatedinvcost\":true,\"isdirectstore\":false,\"isstoreontheway\":false,\"isuseretail\":false,\"isshopstor\":false,\"pk_stordoc\":\"1015A210000000001QIA\"}]","taskNumber":"202309070014"}

错误返回示例:

复制代码

{
status: "falied",
errorcode: "-32000",
errormsg: "[{"line":1,"errormsg":"[仓库编码]重复,[仓库名称]重复"}]"
}