Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/272.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/arrays/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 更新项目会导致业务验证错误-询问我_Php_Quickbooks_Intuit Partner Platform - Fatal编程技术网

Php 更新项目会导致业务验证错误-询问我

Php 更新项目会导致业务验证错误-询问我,php,quickbooks,intuit-partner-platform,Php,Quickbooks,Intuit Partner Platform,我正在更新我们物品的购买成本。API返回此错误 A business validation error has occurred while processing your request Business Validation Error: Do you want to update existing purchase transactions to use the new purchase account 知道我如何在API调用中回答这个问题吗 这是我的API调用 <?xml ve

我正在更新我们物品的购买成本。API返回此错误

A business validation error has occurred while processing your request Business Validation Error: 
Do you want to update existing purchase transactions to use the new purchase account
知道我如何在API调用中回答这个问题吗

这是我的API调用

<?xml version="1.0" encoding="utf-8"?>
<Item xmlns="http://schema.intuit.com/finance/v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schema.intuit.com/finance/v3 IntuitRestServiceDef.xsd">    
    <Id>598</Id>
    <Name>64-U9K0-92QN</Name>
    <PurchaseCost>22.00</PurchaseCost>
    <SyncToken>1</SyncToken>
</Item>

598
64-U9K0-92QN
22
1.
下面是正在调用的API url

https://quickbooks.api.intuit.com/v3/company/<<company_id>>/item?operation=update
https://quickbooks.api.intuit.com/v3/company//item?operation=update
使用API资源管理器时也会出现同样的错误


谢谢

Api文档说明了不发送更新请求所需的多个字段,如下所示:;Id(IdType)和SyncToken(字符串)。将Synctoken添加到您的请求中

收到了。您需要在更新调用中提供ExpenseAccountRef以通过验证检查。请更新文档,说明这是通过验证所必需的。

导致该错误的请求是什么?如何访问API?这里的信息太少。我添加了API调用。我通过PHP代码访问API。我自己的集成。由于错误消息来自API,您可能应该检查API文档,但我已经彻底阅读了它们。这一页应该解释一下。我也在谷歌上搜索了大约一个小时。SyncToken以前从来没有被需要过,但我尝试过。同样的错误也会发生。嗨,肖恩,业务规则-业务规则中已经提到了这一点。项目名称必须是唯一的。销售项目必须具有IncomeAccountRef。采购物品必须有ExpenseAccountRef。嗨,尼米莎,为什么我需要提供AccountRef,而它没有变化?我只是在重复更新工作的数据。我需要的只是Id和我想要更改的任何数据,这难道没有意义吗?除了Id和Synctoken之外,还有许多实体需要为QBO V3指定一些必填字段。我知道这不是一个理想的行为,但现在这就是它的工作原理。您是否可以在上提交一份支持通知单,以便我们可以与工程团队核实这是否是添加的新验证。我已经昏迷两周了,有人会给你回复的。