I cannot see how to map the data from Magento to Xero or vice versa. Is this possible? For example, if I try to map M2 address > phone to Xero Contact > Phone
If you want to map multiple addresses into Xero, there are two options.
You can either map it to the addresses field in Xero which doesn't contain name/and phone number information.
Or you can map the addresses to Contact Persons which don't have address information.
A common practice is to use the "Attention To" field in Xero to link this information together.
The Contact Person field doesn't allow multiple persons by default, but you can change it easily. Here are the steps to make the field a multiple fields.
1. Click the Endpoint and goes to the endpoint edit page.
2. Click the Contact Person Edit button.
3. check the "multiple" box in setting then click save.
4. save the endpoint then go to mapping, you should be able to map addresses into Xero Contact person and addresses now.
Note: Xero only allows 5 contact persons in one contact, if you tried to sync more it will cause the sync failing.
After enabling the Contact person to be a "multiple" field, you can map the first name, last name and email in Magento2 addresses to Xero Contact Persons.
Then map the "street", "company", "region" into addresses in Xero and put the same person's "First Name" and "Last Name" to "attention To" Field in Xero.