How do I resolve the "Xero API 400 error" during the Xero integration?

How do I resolve the "Xero API 400 error" during the Xero integration?

The "Xero API 400 error" will display when the journal posted to Xero does not balance and the total debits do not equal to the total credits. 



The  GL account numbers in the affected General Ledger have to be corrected to resolve the error.

      Navigate > Configuration > Payroll > Payroll Config > General Ledger Parameters




Note!
The General Ledger Report can be extracted to check that the journal balances. 

      Navigate > Reports > Reports > Standard Classic > Costing



Important!
In instances where the Excel journal balances but the user still receives an error, verify that all account numbers are advised inside brackets on the General Ledger Parameters screen.