Complicated situation (I think): automated multicurrency accounting
I am almost done developing an app to book hotels around the world and I have been asked to integrate an accounting system into it (through an API of course).
I explain briefly how it will work.
First of all we will have a payment gateway in each currency we are going to use, starting with 12 currencies.
1 - client pays us through one of our gateways (he sees the price in the currency of country where he is booking, he is paying in his CC currency converted by his CC provider to the currency of the country where he is booking...so forex is between him and his CC provider)
2 - Hotel invoices us
3 - we give money to the Hotel (currency of the country where the client booked)
4 - our agent in that country invoices us (we give him part of the revenues)
5 - we give money to the agent (currency of the country where the client booked)
6 - we invoice the client (currency of the country where the client booked)
I would need to manage all that. I already learned that I can intercept invoices that hotels and agents send us through a third party software integrated into Quickbooks.
But would it be possible to manage this kind of multicurrency interaction through the API?