Skip to content

FAQ: Import Export

Michael Totschnig edited this page Aug 1, 2022 · 18 revisions

Can I send the QIF file to Google Docs or Dropbox?

Yes, in the settings, activate Share export file and leave Upload URL empty. After each export, you will see a chooser for selecting an app (like Google Docs or Dropbox) capable of sending the file.

How do I import categories in batch?

My Expenses can import your categories from your Grisbi file (from Settings -> Import -> Import from Grisbi). You can also import the parties (payers and payees) stored in this file. When you choose your custom file as import source, you can decide to import both parties and categories, or only categories. Parties will be used for the autocomplete function of the payer/payee field in the transaction form. If you create an XML file on your own, respect the following structure:

<root>
  <Category Nb="1" Na="Main category A" />
  <Sub_category Nbc="1" Nb="1" Na="Sub category A.1" />
  <Sub_category Nbc="1" Nb="2" Na="Sub category A.2" />
  <Category Nb="2" Na="Main category B" />
  <Sub_category Nbc="2" Nb="1" Na="Sub category B.1" />
  <Sub_category Nbc="2" Nb="2" Na="Sub category B.2" />
  <Party Na="N.N." />
</root>

This method only supports one level of subcategories. Alternatively, create a QIF category file, which allows to import a deeper hierarchy, for example:

!Type:Cat
NMain category A
^
NMain category A:Sub category A.1
^
NMain category A:Sub category A.1:Sub sub category A.1.1
^

Is there a schema for the JSON export?

From version 3.4.3:

{
  "$schema": "http://json-schema.org/schema#",
  "type": "object",
  "properties": {
    "uuid": {
      "type": "string"
    },
    "label": {
      "type": "string"
    },
    "currency": {
      "type": "string"
    },
    "openingBalance": {
      "type": "number"
    },
    "transactions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "number"
          },
          "category": {
            "type": "string"
          },
          "date": {
            "type": "string"
          },
          "transferAccount": {
            "type": "string"
          },
          "methodLabel": {
            "type": "string"
          },
          "payee": {
            "type": "string"
          },
          "pictureFileName": {
            "type": "string"
          },
          "referenceNumber": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "uuid": {
            "type": "string"
          }
        },
        "dependencies": {
          "category": {
            "not": {
              "required": [
                "transferAccount"
              ]
            }
          },
          "transferAccount": {
            "not": {
              "required": [
                "category"
              ]
            }
          }
        }
      }
    }
  }
}
Clone this wiki locally