How do I manually merge customer customer information?
When customers use separate credit/debit cards for repeat purchases, the system creates new "customers" from each transaction. I'd like to merge the separate customer files into a single customer file, including their purchases.
Customers are associated with Payments only through Orders. Payments do not have a Customer field and Customers do not have a Payments field. That said, a Customer can be added or removed from an order, meaning you can modify the association.
If you have Customer A and Customer B and you would like to merge Customer B's order history to Customer A. You can use the following endpoint to fetch all orders associated with customer B:
You can then run a script over the fetched orders which adds Customer A and removes Customer B from each order.
After your script finishes you can hit the following endpoint to see that the orders have been added to your customer A's order history: