批量获取存货信息
GET
/api/inventory/batch_get
适用版本:支持U8V12.0 及更高版本
使用场景:基础数据同步或前端展示
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://api.yonyouup.com/api/inventory/batch_get?from_account&to_account&app_key=&token='
响应示例响应示例
{
"errcode": "string",
"errmsg": "string",
"page_index": "string",
"rows_per_page": "string",
"row_count": "string",
"page_count": "string",
"code": "string",
"name": "string",
"invaddcode": "string",
"specs": "string",
"sort_code": "string",
"main_measure": "string",
"puunit_code": "string",
"puunit_name": "string",
"puunit_ichangrate": 0,
"saunit_code": "string",
"saunit_name": "string",
"saunit_ichangrate": 0,
"stunit_code": "string",
"stunit_name": "string",
"stunit_ichangrate": 0,
"unitgroup_code": "string",
"unitgroup_type": 0,
"bbarcode": true,
"barcode": "string",
"ref_sale_price": 0,
"bsuitretail": true,
"bottom_sale_price": 0,
"start_date": "string",
"end_date": "string",
"ModifyDate": "string",
"defwarehouse": "string",
"defwarehousename": "string",
"iSupplyType": "string",
"drawtype": "string",
"iimptaxrate": 0,
"tax_rate": 0,
"self_define1": "string",
"self_define2": "string",
"self_define3": "string",
"self_define4": "string",
"self_define5": "string",
"self_define6": "string",
"self_define7": "string",
"self_define8": "string",
"self_define9": "string",
"self_define10": "string",
"self_define11": "string",
"self_define12": "string",
"self_define13": "string",
"self_define14": "string",
"self_define15": "string",
"self_define16": "string",
"invcode": "string",
"free1": "string",
"free2": "string",
"free3": "string",
"free4": "string",
"free5": "string",
"free6": "string",
"free7": "string",
"free8": "string",
"free9": "string",
"free10": "string"
}
请求参数
Query 参数
from_account
调用方id
to_account
提供方id
app_key
应用编码
token
全局访问唯一识别码
ds_sequence
可选
page_index
页号
rows_per_page
每页行数
code_begin
起始存货编码
code_end
结束存货编码
name
存货名称关键字
invaddcode
存货代码
specs
规格型号关键字
sort_code
所属分类码
sort_name
所属分类
start_date_begin
可选
start_date_end
可选
modifydate_begin
可选
modifydate_end
可选
sale_flag
可选
bexpsale
可选
返回响应
修改于 2021-11-15 13:06:25