2022
The error will come when you Inserting the voided payments from salesforce to QucikbooksOnline.
While inserting the voided payments you are sending the Total Amount zero(0.0).
As the QuickBooks does not allow the zero values for the Total amount , it will throw the below error.
Below is the detailed Error:
<BatchItemResponse bId="1">
<Fault type="ValidationFault">
<Error code="6000" element="">
<Message>A business validation error has occurred while processing your request</Message>
<Detail>Business Validation Error: You must set a transaction amount.</Detail>
</Error>
</Fault>
</BatchItemResponse>
Instead of sending the Zero value to the Total Amount send the non -zero values while inserting and once it is inserted you can do the upsert with Zero(0.0) for the Total Amount.