EAS has developed a comprehensive EU VAT and customs compliance SaaS tool. Currently it is running on Magento and WooCommerce.
Unfortunately, during the plugin development, we have come across two unexpected problems. So far we have been unable to resolve the problems with Shopify. We are sure that these issues have been resolved earlier and could easily be clarified by experienced Shopify development specialists.
- In accordance with Shopify API documentation for the section (DraftOrder ) it is possible while creating DraftOrder to change attributes for fields that are connected with calculation of taxes , specifically:
tax_exempt , tax_lines , taxes_included , total_tax , line_items.tax_lines
API documentation does not state that these fields are read_only during our plugin operation we perform a request , that contains data for the following fields : taxes_included , tax_lines etc with expected result that the fields should be populated with our data. Contrary to the expectations the mentioned fields are left empty after DraftOrder is created.
- As an alternative, our developer team tried to change/populate fields connected to taxation in the existing order by using command Order . According to the Shopify API documentation the following field in the order are not read only tax_exempt , tax_lines , taxes_included , total_tax , line_items.tax_lines
Is there someone who could clarify the behavior of Shopify API concerning the population of the above fields and/or provide other possible methods to add tax data to the draft or existing order via Shopify API?