If the Amazon Invoicing Report is used, the Ship to rule is applied if the VAT ID numbers of the arrival countries are available and provided to Amazon. 

Based on the Ship to rule the transactions are taxed in the arrival country.

If the Amazon Invoicing report is not used, the Ship from rule applied unless the distance selling threshold for a specific country has been reached.

Based on the Ship from rule the transactions are taxed in the dispatch country.