Sometimes customers don’t want to make use of our functionality that we create customers via the integration in the case of consumer but in case of a company they want to do this.
In the example above we check the following values is there a storeID present(so you can also differentiate on this criterium) is there Company Name filled in or a vatnumber filled in? and what is the delivery country.
When the value cannot be mapped use the data from the source if the data can be mapped it will use that value.
So in the case of a Dutch Customer, that is coming from a storeId, without a company name or vatnumber we will use a default email address firstname.lastname@example.org to use as email criterium for searching for the customer.
In case of a Customer from Belgium with a Store ID and with a Company name we will use the email address as provided by the source.