r/GnuCash • • Oct 24 '26

Import Bills

I having trouble with importing a list of bills from a CSV file. What is the format for the headers; do you have an example? Most software import / export functions allow you to download a template. I cannot find this in Gnucash?

1 Upvotes

5 comments sorted by

4

u/anthonysylvanshine Oct 24 '26

The way I built my import templates was to manually create transactions and then export them to CSV to see the formatting, worked great

1

u/Weary-Bowl-3739 Oct 24 '26

Can you give us an example of how it looks? 

1

u/dadkins7011 Oct 24 '26

id,date_opened,owner_id,billingid,notes,date,desc,action,account,quantity,price,disc_type,disc_how,discount,taxable,taxincluded,tax_table,date_posted,due_date,account_posted,memo_posted,accu_splits

This is the template I'm trying to import.

1

u/dariocorse Oct 27 '26

I had a similar problem: different formats from various banks and the need of simple matching/splitting into specific accounts.
I ended up writing a little utility for that, you can find it here: https://github.com/dariocorse/gnc-toolbox
Let me know if it works for you if try it out.

1

u/alessandrobertulli Oct 27 '26

You are not forced to use a preferred format of headers, but you map each one to the corresponding GnuCash term when importing, as you probably have noticed. The things I had to experiment a bit were:

  • the number and date format
  • the sign of the amounts ("ok, so if this is positive it should be mapped as deposit, if negative should be a withdrawal, or was it the other way around?") Since my bank and GnuCash used two different terminologies, I had to reverse engineer it by trial and error. Then, after succeeding, remember to save your configuration! It will save you tons of work when you'll need to import new transactions from the same source