627. An apparent heir is obliged, by the recognition of the heirship of the successor, to restore everything he has received from the succession without being entitled to it, in accordance with the rules in the Book on Obligations relating to restitution of prestations.