Two way integration of invoices with salesforce account

SUGGESTED

I have integrated my salesforce account with sage accounting.
Invoices are shared with both the platform; I need two-way integration for the invoice payment status. If it is marked as paid in either platform it should get updated in other one. 

I have created an apex class for salesforce to sage update, but for sage to salesforce i need help.