Skip to main content
All CollectionsLink My Books for Shopify
Shopify destination country logic
Shopify destination country logic

How Link My Books determines the country for an order on Shopify

Daniel Little avatar
Written by Daniel Little
Updated over 3 months ago

In order to determine the correct tax treatment for an order and to categorise it correctly, Link My Books needs to determine the destination country.

In most cases this is very easy as Shopify include the country code in the Shipping Address for the order in the data we receive from them.

However, in some cases the country code or entire shipping address for an order is missing from the data. In these cases we follow this logic to determine the destination country for an order.

This logic is in priority order, so if we find the location in one step we don't need to move to the next step.

  1. Country code in shipping address

  2. Country name in shipping address

  3. Country code/name in customer default address

  4. Country code/name in customer billing address

  5. Customer IP address

  6. Store location (for POS orders)

  7. Customer language

  8. Customer currency

There are some exceptions to this country ruling too:

  • If country is UK but postcode starts with JE we change the country to Jersey

  • If country is UK but postcode starts with GY we change the country to Guernsey

If you have any questions about this article or feedback on how we could make it better please reach out to the support team via the blue chat icon on the bottom right of the page or via email to [email protected].

Did this answer your question?