Settings and activity
3 results found
-
11 votes
An error occurred while saving the comment -
2 votes
Alex
shared this idea
·
-
12 votes
Alex
supported this idea
·
An error occurred while saving the comment
Alex
commented
I managed to find a workaround for this, although it's still a bit annoying that the api doesn't support multi-currency transfers.
It's possible to do currency transfers through a regular account listed in your chart of accounts, so just create a new transfer account for the currency pair you are dealing with, then use the api to add regular bank transactions to it and then withdraw the same amount with the correct exchange rate.
e.g.
create GBP_AUD_TRANSFER account
Add "spend money" transaction from AUD account to the transfer account, e.g. A$30
Add "receive money" transaction to GBP account from the transfer account and pass "currencyRate" as one of the fields for the transaction set to the rate you want to get back in GBP to zero out the transfer account, e.g. if you receive £15 the exchange is A$30/£15 meaning it will withdraw the original $A30 from the transfer account leaving it empty.
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