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 Bill.com and the corresponding bill is not approved in Xero.

How to fix the sync error

Approve the bill in Xero and sync again.