I'm trying to update the purchase costs of our items. The API returns this error
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
Any idea how I can answer this in the API call?
Here is my API call
<?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>
Here is the API url being called
https://quickbooks.api.intuit.com/v3/company/<<company_id>>/item?operation=update
The same error comes from using the API explorer.
Thanks!
Got it. You need to supply a ExpenseAccountRef in the Update call to pass that validation check. Please update the documentation to state that this is needed to pass validation.