Un-Merge Customers

Is there a way in Moqui to un-merge customers that were accidentally merged? Not sure how it happened, but I need to figure out how to undo it.

There is nothing automated to un-merge parties, but in theory much of it can be done. For reference here is the merge service:

For data in entities like ContactMech the PartyContactMech for the original party is still there, so it would be a matter of deleting/expiring those from the merge-to party.

For data in entities like OrderPart (customerPartyId, vendorPartyId), Invoice (fromPartyId, toPartyId), etc those party ID fields are audit logged so you can find the old party ID in the EntityAuditLog history and change them back to before the merge.