You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

通过REST API向Acumatica的VendorPricesInquiry插入记录遇错求助

问题分析与解决方案

核心问题:错误使用查询界面进行写入操作

VendorPricesInquiry是Acumatica的查询类屏幕,这类界面仅用于查询数据,不支持通过API执行插入/更新操作。你需要切换到对应的维护类屏幕端点——VendorPrices(对应AP303000表单)来提交供应商价格数据。

正确的数据结构示例

针对VendorPrices端点,PUT请求的合规数据结构需包含主记录与明细的完整嵌套,确保字段键名与Acumatica API要求一致:

{
    "InventoryID": {"value": "Telecommunications"},
    "VendorID": {"value": "Telecom NZ"},
    "UOM": {"value": "EACH"},
    "VendorPriceDetails": [
        {
            "Price": {"value": 1234.00},
            "EffectiveDate": {"value": "2024-01-01"},
            "ExpirationDate": {"value": "2024-12-31"}
        }
    ]
}

额外注意事项

  • 确认VendorID和InventoryID在系统中已存在,且拼写完全匹配(区分大小写)。
  • 明细行的EffectiveDate为必填字段,未提供会触发验证错误。
  • 请求端点路径格式应为/entity/Default/[你的Acumatica版本号]/VendorPrices,例如/entity/Default/23.200.001/VendorPrices。

内容的提问来源于stack exchange,提问作者James Lin

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.16 18:01:06