API中心

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

仓库档案查询

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

参数填写指南

请求方式:POST

请求参数(header):

参数填写指南
参数名必填描述默认值
Content-Type请求体数据类型application/json
usercode用户
password密码
system系统参数

请求参数(body):

参数名类型是否数组必填描述默认值
addresscode地点编码
calbodycode库存组织编码
corpcode公司编码
endTs结束时间戳(v3.5版本支持)
page_now当前页
page_size每页条数
principalcode负责人编码
startTs开始时间戳(v3.5版本支持)
storaddr仓库地址(模糊)
storcode仓库编码
storcode_begin编码区间
storcode_end编码区间
storname仓库名称

返回类型参数:

参数名类型是否数组必填描述默认值
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时间戳

请求参数示例:

复制代码

{
	"addresscode": "",
	"calbodycode": "",
	"corpcode": "1000",
	"page_now": "1",
	"page_size": "1",
	"principalcode": "",
	"storaddr": "",
	"storcode": "",
	"storcode_begin": "",
	"storcode_end": "",
	"storname": "",
	"startTs": "2021-08-09 14:32:00",
	"endTs": "2021-08-10 14:32:00"
}

正确返回示例:

复制代码

{
status: "success",
data: "{"allcount":16,"retcount":1,"datas":[{"pk_corp":"1001","corpcode":"1000","corpname":"天海总公司","storcode":"zyc_c000OQ","storname":"zyc_n000OQ","pk_calbody":"100111100000000000OQ","calbodycode":"1000","calbodyname":"天海集团库存组织","gubflag":false,"proflag":false,"mrpflag":false,"csflag":false,"sealflag":false,"iscapitalstor":false,"isatpaffected":false,"iscalculatedinvcost":true,"isdirectstore":true,"isstoreontheway":false,"isuseretail":false,"isshopstor":false,"ts":"2017-09-05 09:37:24"}]}"
}

错误返回示例:

复制代码

{
status: "falied",
errorcode: "-32000",
errormsg: "查询条件不能输入单引号!"
}