【发布时间】:2018-01-10 00:04:22
【问题描述】:
我需要检索所有库存商品的库存摘要,以便我可以根据库存摘要上的“可发货”字段更新外部站点的库存。登录后,我尝试使用以下方法通过其余 API 运行库存摘要:
URL: https://mycompany.acumatica.com/entity/Default/6.00.001/InventorySummaryInquiry
Method: PUT
Request Body:
{
"InventoryID": "CW-500-MC-30"
}
但是我收到了这个回复:
{
"message": "The request is invalid.",
"modelState": {
"": [
"Error reading JObject from JsonReader. Current JsonReader item is not an object: String. Path 'InventoryID', line 2, position 30."
]
}
}
如果有办法运行查询并让它返回数组中的所有库存项目,那将是理想的。
如果这不可行,我需要进行哪些更改才能使单个库存项目库存汇总起作用?
更新: 按照@samol518 的建议修改我的请求正文后,请求有效,但返回的数据集非常有限(如下)。我正在寻找“可发货数量”。是否需要提供额外的参数才能返回更多数据?
{
"id": "bf8e0bbc-63dc-4491-802d-090367af203a",
"rowNumber": 1,
"note": null,
"ExpandByLotSerialNumber": {},
"InventoryID": {
"value": "CW-500-MC-30"
},
"LocationID": {},
"WarehouseID": {},
"custom": {},
"files": []
}
【问题讨论】:
-
我已编辑我的答案以响应您的更新
标签: acumatica