1 Export Format
Niels Franke edited this page 2026-06-10 23:50:28 +02:00

Export Format

What the ZIP contains

When you click Download ZIP on the Export page, Billdozer produces a single archive with this layout:

invoices-<year>.zip
├── manifest.csv
└── Invoices/
    └── <year>/
        ├── 01-Equipment-Supplies/
        │   └── 2025-03-14_Amazon_149.00.pdf
        ├── 02-Phone-Internet/
        │   └── 2025-01-07_Swisscom_85.00.pdf
        ├── 03-Software-Subscriptions/
        │   ├── 2025-02-01_Adobe_54.99.pdf
        │   └── 2025-04-15_Dropbox_11.99.pdf
        └── ...

PDFs are organized by category and named using a consistent convention.

PDF filename format

YYYY-MM-DD_Vendor_Amount.pdf

Examples:

  • 2025-03-14_Amazon_149.00.pdf
  • 2025-01-07_Swisscom_CHF85.00.pdf

The date is the invoice date parsed from the email, the vendor is extracted from the sender domain, and the amount is parsed from the subject line or snippet. If any field can't be parsed, it's omitted.

CSV manifest

manifest.csv lists every file in the ZIP with its metadata. Columns:

Column Description
Date Invoice date (YYYY-MM-DD)
Vendor Vendor name extracted from sender
Description Email subject line
Amount Amount string as found in the email
Currency Currency code (e.g. CHF, EUR, USD)
Category Category folder name (e.g. 03-Software-Subscriptions)
Filename Relative path to the PDF inside the ZIP
Source attachment (PDF was an email attachment) or html_render (body rendered via Playwright) or manual (uploaded manually)

Sources

Source value Meaning
attachment PDF was downloaded directly from a Gmail attachment
html_render The email had no PDF attachment — the HTML body was rendered to PDF via Playwright/Chromium
manual You uploaded a PDF manually via the card upload zone

Handing off to a bookkeeper

The ZIP + CSV is designed to be self-contained:

  1. Share the ZIP as-is — the folder structure mirrors the chart of accounts.
  2. The CSV can be imported into spreadsheet software or accounting tools. Open as UTF-8, comma-separated.
  3. Each PDF filename encodes the key fields, so the folder is usable without the CSV as a fallback.

Re-running extraction

Extraction is safe to re-run. Already-extracted files are overwritten in place, not duplicated. Only rows with review_status = approved or needs_manual_download (with an uploaded file) are included.