更新时间:2023-05-15 GMT+08:00
分享

查询物料(Items)

接口地址

https://api-service.sperp.myhuaweicloud.com/xxx/b1s/v1/Items

接口API功能描述

查询物料列表

调用方式

Get

请求地址参数

参数名称

参数说明

地址示例

()

在地址中加入(单据内部标识)返回指定单据

https://api-service.sperp.myhuaweicloud.com/xxx/b1s/v1/Items('c001')

filter

筛选条件,可用于过滤过去一分钟内更新的物料

https://api-service.sperp.myhuaweicloud.com/xxx/b1s/v1/Items?$filter=UpdateDate gt '2022-12-31' and UpdateTime gt

'15:00:01'

select

返回参数筛选,不包括在值中的单据头参数将不会返回,无法限制行明细参数

https://api-service.sperp.myhuaweicloud.com/xxx/b1s/v1/Items?$select=ItemCode,ItemName,Valid,InventoryUOM,ProcurementMethod,ManageBatchNumbers

请求头参数

参数名称

参数说明

Cookie

登录时获取的sessionid,值格式为 “B1SESSION=获取的sessionid”

返回参数(部分)

参数名称

上级参数

参数描述

参数类型

参数说明

ItemCode

物料代码

String

ItemName

物料描述

String

PurchaseItem

采购物料

String

tYES-是;tNO-否

SalesItem

销售物料

String

tYES-是;tNO-否

U_Specifications

规格

ForeignName

物料名称

String

ItemsGroupCode

物料组

Int

InventoryUOM

库存计量单位

String

返回样例(部分)

{

"odata.metadata": "https://api-service.sperp.myhuaweicloud.com/6160/b1s/v1/$metadata#Items/@Element",

"odata.etag": "W/\"356A192B7913B04C54574D18C28D46E6395428AB\"",

"ItemCode": "A00006",

"ItemName": "HP 600 Series Inc 喷墨打印机",

"ForeignName": null,

"ItemsGroupCode": 102

}

分享:

    相关文档

    相关产品