A payment connects a dated cash movement to a particular approved invoice or bill. Check the document ID, bank account, amount and reference before saving it. A partial payment reduces the open amount by that payment, leaving the rest outstanding. A full payment clears the amount due.
Use the supplied bank evidence. An invoice can also be cleared by credit, so a paid-looking document isn't enough to prove cash arrived. Xero permits a payment date before its invoice date; the date must follow the source evidence rather than a rule borrowed from another system. These tasks record local accounting payments only. They don't move money through a bank or email a customer. Later reconciliation will link an imported statement line to the existing payment instead of recording the same cash movement again.