Unique account details per payment remove most matching work. Here is how the pattern works.
Where the work comes from
When every customer pays into the same account, someone has to work out which transfer belongs to which invoice. References get mistyped, amounts are rounded, and two customers pay the same sum on the same day.
One destination per payment
The alternative is to give each order, invoice or customer its own account details. A transfer that arrives there can only mean one thing, so it is matched the moment it lands.
Single-use details go a step further: they expire after the payment, or after a time limit, which closes the door on late and duplicate transfers.
What your systems need
Three things: a call to create the details, a notification when money arrives, and a rule for mismatched amounts. With those in place, a paid invoice can be marked off without anyone looking at a statement.