Xero sync error: Payments can only be made against authorised documents

Why the sync error occurs

This error occurs when a payment is entered in Key CashFlow and the corresponding bill is not approved in Xero.

How to fix the sync error

Approve the bill in Xero and sync again.