Mass. Gen. Laws ch. 106, § 4A-207
(b) If a payment order received by the beneficiary's bank identifies the beneficiary both by name and by an identifying or bank account number and the name and number identify different persons, the following rules shall apply:
(c) If (i) a payment order described in subsection (b) is accepted, (ii) the originator's payment order described the beneficiary inconsistently by name and number, and (iii) the beneficiary's bank pays the person identified by number as permitted by paragraph (1) of subsection (b), the following rules shall apply:
(d) In a case governed by paragraph (1) of subsection (b), if the beneficiary's bank rightfully pays the person identified by number and that person was not entitled to receive payment from the originator, the amount paid may be recovered from that person to the extent allowed by the law governing mistake and restitution as follows: