A haskell program that converts a Shopify Order Export CSV into an XLSX for AvaTax Transaction Imports.
- From your Shopify admin, go to the Orders page.
- Filter this however you'd like(e.g., only last month), then click the Export button.
- Wait for the order export email to arrive & download it.
- Copy the order export to this directory, renaming it to
orders_export_1.csv
. - Run the script using
stack run
. - Open the generated
avatax-wholesale-transactions.csv
in Excel/LibreOffice. - Review the generated fields & perform any necessary cleanup.
- Copy each generated column into the appropriate column of AvaTax's
Transaction Import
template spreadsheet. - Import the template spreadsheet from
Transactions > Import Transactions
on the Avalara website.
There's some hardcoded stuff here that you might want to switch out if you use it yourself:
- Input/output file names from
app/Main.hs
- Shipping item code/name.
- Origin region & postal code.
- Prefixes for the customer ID & order ID.
Pull requests to abstract those out are welcome.
GPL-3.0+