There is an issue while exporting a payment for credit notes that are linked to invoices from Odoo to QuickBooks. The issue occurs while passing the data to QuickBooks.
There is an issue while exporting a payment for credit notes that are linked to invoices from Odoo to QuickBooks. The issue occurs while passing the data to QuickBooks.
Request data:
{'data': {'Line': [{'Amount': 100, 'LinkedTxn': [{'TxnId': '201', 'TxnType': 'CreditMemo'}]}, {'Amount': 100, 'LinkedTxn': [{'TxnId': '198', 'TxnType': 'Invoice'}]}], 'TotalAmt': 0.0, 'CustomerRef': {'name': 'apple', 'value': '61'}}, 'url': 'payment'}
Response from the Quickbook:
{ "Fault": { "Error": [ { "Message": "A business validation error has occurred while processing your request", "Detail": "Business Validation Error: The Amount Received (plus credits) can't be less than the selected charges. Also, the selected charges can't be less than the selected credits.", "code": "6000", "element": "" } ], "type": "ValidationFault" }, "time": "2025-05-13T22:19:16.520-07:00" }
Can anyone explain what is the issue with the request APi