Clean a Shopify Payments transactions CSV export
The transactions export of a Shopify Payments payout has one line per charge, refund or adjustment, with a timestamp, the card and payout columns, and the amount, the fee and the net at the end. Choose the file below: the page cleans it in your browser, shows the first 20 cleaned rows and lists every line it left out, with the reason.
Clean your Shopify Payments transactions CSV
The cleaner looks for the Transaction Date, Amount, Fee and Net columns in the header row and writes eight fixed columns: date, description, amount, currency, fee, net, reference and source. The file is read with the general bank layout of this site; there is no layout written for Shopify alone.
Your file is read in your browser and is never uploaded, stored or logged. It is held in the memory of this tab only, and closing or reloading the page discards it. Operator: Augeo. See the privacy notice.
Shopify can change the columns of this export, and this page makes no promise about yours: the free preview shows what it does to your file. If the header names are not recognised, the page says so and outputs nothing.
The cleaning logic is checked by an automated test script that runs the engine file of this site over six synthetic sample files and a set of checks of the parsing rules; it ran in a sandbox before this site was published and finished with no failed check. The script does not open this page in a browser, does not test the licence key step, and nothing was tested against a real export from any provider. Use the free preview to check your own file.
One more synthetic sample, written in the Shopify Payments transactions layout with invented values, was read by the same engine file: rows in 10, rows out 10. Its header line is the list of columns the Shopify Help Center gives for this export. The way it writes the amount, the fee and the net (numbers with a decimal point, a minus sign on a refund and a fee without a sign) is an assumption of that sample, not something Shopify has published, so your file may differ.
Report
Warnings
Lines not parsed
Lines dropped
Preview of the cleaned rows
| line | date | description | amount | currency | fee | net | reference | source |
|---|
Download the full cleaned file
- Price: 6 USD, paid once on Gumroad. No subscription. You receive a licence key.
- What the key unlocks: the download of every cleaned row of the file you chose, as one CSV named after your file with -cleaned.csv at the end, instead of the first 20 rows on screen. The report and the way files are read stay the same.
- The key is for one buyer. Runs are not counted and no number of runs is promised. The key is kept in the memory of this page only, so you enter it again after closing or reloading the page.
- Refunds are requested through your Gumroad receipt and follow Gumroad's refund policy.
- Try the free preview first. If the preview cannot read your file, the full download cannot either.
Get a licence key on Gumroad for 6 USD
Prefer a file you keep? Offline CSV cleaner, single HTML file, 6 USD on Gumroad. The offline file was built from an earlier version of the engine, and its build self-check covered the six original sample layouts (PayPal activity, Etsy sold orders, Etsy monthly statement and three bank layouts); it does not include the later Fee/Net column reading used for the Stripe, Shopify, eBay and Square pages. The offline file was not checked against the layout of this page.
What a Shopify Payments transactions CSV looks like
The header line this page was written from names these columns, in this order: Transaction Date, Type, Order, Card Brand, Card Source, Payout Status, Payout Date, Available On, Amount, Fee and Net.
Each line is one movement of a payout: a charge, a refund or an adjustment. The transaction date is a timestamp with a time and a time zone offset, such as 2024-05-02 10:15:42 -0400. The amount is what the customer paid, the fee is what the payment cost, and the net is the difference between the two. This is the transactions export of Shopify Payments, not the orders export of the shop.
What the cleaner changes in a Shopify Payments export
- The timestamp becomes a date.
2024-05-02 10:15:42 -0400is written as2024-05-02. The time and the offset are left out, and the date is the one written in the file: it is not moved to another time zone. - The amount stays one signed decimal. The Amount column becomes the amount column, with two decimals and a leading minus where the file has one. Thousands separators and currency symbols, if your file has them, are taken out.
- The fee is written as the file has it. The Fee column becomes the fee column with the sign it has in your file. It is not turned into a negative number and it is not added to or taken from the amount.
- The net is the Net column. It is copied from the file, not worked out again from the amount and the fee.
- The description and the reference stay empty. This layout has no column the cleaner reads as a description or as a reference: the Type and the Order columns are not carried over. If you need the order number next to each line, keep your original file beside the cleaned one.
- The wide layout becomes eight columns. The card brand, the card source, the payout status, the payout date and the available-on date are not carried over. The date of the cleaned file is the transaction date, not the payout date.
- The currency column is filled only when the file names one, in a Currency column or as a code or symbol inside the amounts. Amounts are never converted between currencies.
- Exact repeated rows are dropped and listed with their line numbers, and a row whose amount, fee or net is not a number is left out and listed under "Lines not parsed" with the reason. A value that is not a number is never turned into zero; an empty Fee cell is written as 0.00.
Look at the fee and net columns in the preview of your own file before you rely on them: the sign of the fee in your export may not be the one of the sample below.
Dates, amounts, fees and net of the Shopify-layout sample
| Transaction Date in the export | Amount in the export | Fee in the export | Net in the export | date in the cleaned file | amount in the cleaned file | fee in the cleaned file | net in the cleaned file |
|---|---|---|---|---|---|---|---|
| 2024-05-02 10:15:42 -0400 | 48.00 | 1.69 | 46.31 | 2024-05-02 | 48.00 | 1.69 | 46.31 |
| 2024-05-29 15:57:44 -0400 | 64.50 | 2.17 | 62.33 | 2024-05-29 | 64.50 | 2.17 | 62.33 |
How to do the same by hand in a spreadsheet
These steps work in Excel, Google Sheets and LibreOffice Calc. The formula below uses a placeholder column letter: Transaction Date in A. Read your own header row and change the letter to match.
- Work on a copy and keep the downloaded file untouched.
- Import the Transaction Date column as text. A spreadsheet that reads the timestamp by itself may drop the offset or shift the time. In LibreOffice Calc set the column to Text in the Text Import dialog. In Excel use Data, From Text/CSV, Transform Data, and set the column type to Text.
- Cut the date out of the timestamp. With the timestamp as text in A2,
=LEFT(A2,10)turns2024-05-02 10:15:42 -0400into2024-05-02. - Keep the columns you need (the new date, Type, Order, Amount, Fee, Net) and delete the others, after checking that none of them holds something your books require.
- Check one line by eye: the amount minus the fee should be the net when the fee is written without a sign.
- Look at repeated rows before removing them. Two charges of the same amount on one day carry different timestamps or order numbers, and both should stay.
- Paste formulas back as values and save as CSV UTF-8. Then open the saved file in a text editor and read one line.
Notices
- Privacy: files are read in your browser and never uploaded, stored or logged. Operator: Augeo.
- Independent tool, not affiliated with or endorsed by Shopify, Etsy, PayPal, QuickBooks or any bank.
- Check the output before you use it. This is not accounting, tax or financial advice.
- Price of the full download: 6 USD one-time. The key is for one buyer. Refunds are requested through the Gumroad receipt.
- Only upload data you have the right to process. Choosing a file here does not send it anywhere, but you remain responsible for the data in it.
Other exports
- Clean a PayPal activity CSV
- Gross, Fee and Net columns of a PayPal CSV
- Clean an Etsy sold orders CSV
- Clean an Etsy monthly statement CSV
- Clean a Wise statement CSV
- Convert CSV dates to YYYY-MM-DD
- Remove duplicate rows from a CSV export
- Clean a CSV before importing it into accounting software
- Fix date and decimal format in a bank CSV
- Any other CSV export of transactions