Override tax amount of line items in Bank Transactions endpoint
Since overriding of line item's tax amount is possible in Invoices endpoint, same capability should also be possible in BankTransactions endpoint.
-
Virgil Ierubino
commented
In the Xero interface, both an Invoice and a Bank Transaction can be given a tax adjustment, e.g. to resolve a rounding error.
Via the API, only an Invoice can be given a tax adjustment. If sending a POST request with the exact same structure/data to create a Bank Transaction, the tax adjustment is ignored.
This doesn't make sense given that the tax adjustment on the Bank Transaction is possible via the UI.
Please amend this so that API POST requests to create Bank Transactions respect the TaxAmount field on the Line Item.
-
Alex
commented
This seems like a fairly basic request as the UI already supports this and it just seems to be a validation issue blocking it. The same issue was raised here https://xero.uservoice.com/forums/5528-accounting-api/suggestions/39816040-fix-bug-override-taxamount-in-banktransaction-end
There is no reason to validate the provided "taxAmount" in the lineItems as if you don't specify it, it will be calculated automatically, so the only reason to specify it is if you want to override it, which the UI lets you do.
The workaround is creating a Invoice and adding a custom taxAmount there, but this requires a request for the invoice and payment and messes up our real invoices
-
Receipt Bot
commented
Hello Xero Community,
We also believe in this change as it will be beneficial for posting bank transactions with manual tax adjustment via API.
Currently, users are able to record bank transactions with tax adjustments from the user interface, but this capability is not mirrored in the API functionality, particularly in the 'Spend Money' and 'Receive Money' APIs.
This discrepancy poses a challenge in explaining to our Xero users who are accustomed to this feature in the user interface.
It's essential for the API to provide similar flexibility as the UI.