currentstock/batch_get


目录

[隐藏]

1.接口说明

1.1接口描述

     现存量查询

1.2适用版本

     支持U8V12.0 及更高版本

2.使用场景

供销存应用

3.接口调用说明

3.1请求说明

url https://api.yonyouup.com/api/currentstock/batch_get
格式 JSON
https请求方式 GET
编码类型 UTF-8


3.2url参数说明

参数 是否必填 类型 描述
from_account string 调用方id
to_account string 提供方id
app_key string 应用编码
token string 全局访问唯一识别码
ds_sequence number 数据源序号(默认取应用的第一个数据源)
page_index string 页号
rows_per_page string 每页行数
whcode_begin string 起始仓库编码
whcode_end string 结束仓库编码
whname string 仓库名称关键字
invcode_begin string 起始存货编码
invcode_end string 结束存货编码
invname string 存货名称关键字
batch string 批号

3.3请求示例

GET https://api.yonyouup.com/api/currentstock/batch_get?from_account=openapi_dev&to_account=openapi_ent&app_key=opa6fdd4bea98b95ad7&token=843d03f66e6544e19707ccec11030296&page_index=1&rows_per_page=20&ds_sequence=1


3.4返回参数说明

参数说明 类型 参数路径 描述
errcode string   错误码,0 为正常。
errmsg string   错误信息。
page_index string   页号
rows_per_page string   每页行数
row_count string   总行数
page_count string   页数
whcode string 仓库编码
whname string 仓库名称
invcode string 存货编码
invname string 存货名称
invstd string 规格型号
invccode string 存货分类代码
invcname string 存货分类名称
free1 string 存货自由项1
free2 string 存货自由项2
free3 string 存货自由项3
free4 string 存货自由项4
free5 string 存货自由项5
free6 string 存货自由项6
free7 string 存货自由项7
free8 string 存货自由项8
free9 string 存货自由项9
free10 string 存货自由项10
batch string 批号
qty number 现存数量
stopqty number 其中冻结数量
inqty number 到货/在检数量
transinqty number 调拨在途数量
inqtysum number 预计入库数量合计
outqty number 待发货数量
transoutqty number 调拨待发数量
outqtysum number 预计出库数量
disableqty number 不合格品数量
availqty number 可用数量
mdate number 生产日期
vdate number 失效日期
massdate number 保质期
massunitname number 保质期单位
expirationdate number 有效期至
expiratdatecalcu number 有效期推算方式
batchproperty1 number 批次属性1
batchproperty2 number 批次属性2
batchproperty3 number 批次属性3
batchproperty4 number 批次属性4
batchproperty5 number 批次属性5
batchproperty6 string 批次属性6
batchproperty7 string 批次属性7
batchproperty8 string 批次属性8
batchproperty9 string 批次属性9
batchproperty10 date 批次属性10

3.5正确返回示例

JSON示例:

application/json;charset=UTF-8
{
	"page_index":"1",
	"rows_per_page":"10",
	"row_count":"8",
	"errmsg":"",
	"errcode":"0",
	"page_count":"1",
	"currentstock":[
		{
			"whcode":"04",
			"transoutqty":"0.000000",
			"availqty":"200.000000",
			"invname":"TEH500S-INT01C普通型交换机",
			"qty":"200.000000",
			"invcname":"自制产成品",
			"invcode":"F010-3300209",
			"invstd":"TEH500S-INT01C",
			"batchproperty9":null,
			"batchproperty8":null,
			"batch":"",
			"batchproperty7":null,
			"batchproperty6":null,
			"batchproperty5":null,
			"batchproperty4":null,
			"batchproperty3":null,
			"batchproperty10":null,
			"batchproperty2":null,
			"batchproperty1":null,
			"invccode":"12",
			"outqty":"0.000000",
			"free1":null,
			"free3":null,
			"free2":null,
			"free5":null,
			"free4":null,
			"free7":"",
			"outqtysum":"0.000000",
			"free6":null,
			"free9":"",
			"free10":null,
			"free8":null,
			"inqtysum":"0.000000",
			"inqty":"0.000000",
			"whname":"成品库",
			"stopqty":"0.000000",
			"disableqty":"0.000000",
			"transinqty":"0.000000"
		},
		{
			"whcode":"04",
			"transoutqty":"0.000000",
			"availqty":"1000.000000",
			"invname":"027PE",
			"qty":"1000.000000",
			"invcname":"自制产成品",
			"invcode":"F010-027PE1021",
			"invstd":"100-200",
			"batchproperty9":null,
			"batchproperty8":null,
			"batch":"",
			"batchproperty7":null,
			"batchproperty6":null,
			"batchproperty5":null,
			"batchproperty4":null,
			"batchproperty3":null,
			"batchproperty10":null,
			"batchproperty2":null,
			"batchproperty1":null,
			"invccode":"12",
			"outqty":"0.000000",
			"free1":null,
			"free3":null,
			"free2":null,
			"free5":null,
			"free4":null,
			"free7":"",
			"outqtysum":"0.000000",
			"free6":null,
			"free9":"",
			"free10":null,
			"free8":null,
			"inqtysum":"0.000000",
			"inqty":"0.000000",
			"whname":"成品库",
			"stopqty":"0.000000",
			"disableqty":"0.000000",
			"transinqty":"0.000000"
		}
	]
}

3.6错误返回示例

application/json;charset=UTF-8
{
	"errcode" : "30021",
	"errmsg" : "此应用未上线"
} 

4.API测试

API测试 SDK下载