This is a simple python script that will convert PayPal transaction export files in CSV format to a GnuCash importable CSV file.
- Open GnuCash
- Open your PayPal asset Account
- Note the Last entry's date and time
- Login to Paypal
- Navigate to Activity -> All Reports -> Activity Download
- Change the Date to Custom, using the date you noted from GnuCash
- Leave Format as CSV
- Click "Create Report"
- PayPal will take 1-3 minutes to generate the report
- Once the progress has changed to "Download", click Download.
- Save the report to the same folder as the python script
- Run the script using the date and time of the last entry you noted from GnuCash. Example:
- python3 paypalscript.py -i "Paypal Export.CSV" -d "4/5/2022 5:25:00"
- In GnuCash, select File -> Import -> Import Transactions from CSV...
- Select Next
- Select the output file generated by the script
- Example: Output.csv
- In the "Account" box, select your GnuCash PayPal asset account
- Change Date Format to m-d-y
- Change Currency Format to 'Period'
- Set "Leading Lines to Skip" to 1
- You will see the data you are importing in a table below. Note that the column header should be in strike-out.
- Change the Date to "Date"
- Ignore the Time column
- Change the Name column to "Transfer Account"
- Change the Amount column to "Deposit"
- Change the Description column to "Description"
- (Optional, Recommended) In the upper right hand of the page, populate "Load and Save Settings" with a name, and click Save Settings icon
- Click Next
- Map each Account ID to an Account Name
- This step can be time-consuming, but GnuCash will remember the mapping for the next time you run the import
- Click Next
- When the Match screen comes up, make sure all are checked as "A" for add
After the last step, some mappings may come back colored red. So far accepting them has not resulted in errors, but GnuCash is not forthcoming on why the mappings are colored red.
If you want to work on this application we’d love your pull requests and tickets on GitHub!
- If you open up a ticket, please make sure it describes the problem or feature request fully.
You can make requests by opening issues at https://github.com/makerslocal/paypalToGnuCashImport/issues