> ## Documentation Index
> Fetch the complete documentation index at: https://foliant-help.iforiti.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Save issued invoices to Google Drive or Dropbox

> Keep a copy of every issued invoice and credit note, and a monthly list for your accountant, in your own Google Drive or Dropbox.

The cloud archive saves a copy of every invoice and credit note Foliant issues to your own Google Drive or Dropbox, as soon as it's issued. The copies are yours: they stay in your storage if you disconnect the service or uninstall Foliant.

Each month also gets a list of its documents as a CSV file, ready to hand to your accountant.

## Before you start

* **Your plan:** the cloud archive is included in the Growth and Scale plans.
* **Locked invoices:** only issued documents are saved, so turn on [locked invoices](https://foliant-help.iforiti.com/invoices-and-numbering/locked-invoices.md) first. Until you do, the **Cloud archive** card says **Only locked invoices are saved**.

## Connect Google Drive or Dropbox

1. In Foliant, open **Issued invoices**.
2. In **Cloud archive**, click **Connect Google Drive** or **Connect Dropbox**.
3. Check the settings (see [Choose how files are organised](#choose-how-files-are-organised)) and click **Continue to Google Drive** or **Continue to Dropbox**.
4. Sign in and choose the account to connect.
5. Allow Foliant to save files. On Google's page, keep the box for Google Drive ticked: without it, Foliant can't save anything.

You come back to Foliant, and the service shows **Connected** with the account you chose.

You can also connect from **Settings › Integrations**.

### What Foliant can see

Foliant only gets access to its own files:

| Service | Access |
| - | - |
| Google Drive | Only the files and folders Foliant creates. Foliant can't see anything else in your Drive. |
| Dropbox | Only its own app folder, **Apps/Foliant**. |

## Where your files go

Foliant creates a folder for your store and sorts documents by type, year and month:

| Service | Example |
| - | - |
| Google Drive | **Foliant › Bramble & Co › Invoices › 2026 › 11 › INV-2026-0042.pdf** |
| Dropbox | **Apps › Foliant › Bramble & Co › Invoices › 2026 › 11 › INV-2026-0042.pdf** |

* Credit notes go in a **Credit notes** folder beside **Invoices**.
* Each PDF is named after its number. Characters that aren't allowed in file names, such as a slash, become a hyphen.
* The folder names follow your store's language, and the months follow your store's time zone.
* The names are set the first time a document is saved, so renaming your store later doesn't move any files.
* If another store connects the same account and has the same name, its folder gets the store's handle too, for example **Bramble & Co (bramble-eu)**.

Foliant never overwrites a file you put there yourself. If a different file already has a document's name, the document is saved beside it with a short code added to its name.

## Documents issued before you connected

When you connect, Foliant also saves the documents issued before, starting with the oldest. A store with years of invoices can take a while. The card shows the progress, for example **33 of 113 documents saved · Saving earlier documents…**.

After that, each new document is saved within a few minutes of being issued. Once a day, Foliant checks for anything missing and saves it.

## The monthly list

With **Add a monthly list** on (it's on by default), each month gets a CSV file in a **Ledgers** folder, for example **Ledgers › 2026 › ledger-2026-11.csv**. It has one line per document:

| Column | What it is |
| - | - |
| `number` | The document's number. |
| `kind` | `invoice` or `credit_note`. |
| `order` | The order it was issued for. |
| `currency`, `total` | The document's total. |
| `issued_at` | When it was issued, in your store's time zone. |
| `pdf_sha256` | The PDF's fingerprint, to [verify the PDF](https://foliant-help.iforiti.com/invoices-and-numbering/verify-a-pdf.md). |
| `row_sha256` | The record's fingerprint in the hash chain. |
| `file` | The PDF's file name. |
| `einvoice` | `en16931` when the PDF carries [e-invoice data](https://foliant-help.iforiti.com/invoices-and-numbering/e-invoices.md), empty otherwise. |

Foliant updates the lists once a day, only for months that changed. It's the same format as `manifest.csv` in the [archive download](https://foliant-help.iforiti.com/invoices-and-numbering/archive-and-retention.md).

## Choose how files are organised

Open the service's settings from **Settings** on the **Cloud archive** card, or from **Settings › Integrations**:

| Setting | What it does |
| - | - |
| **Folders** | **Year / month** (the default), **Year**, or **One folder** for all documents of a type. |
| **Save credit notes too** | Saves credit notes as well as invoices. On by default. |
| **Add a monthly list** | Writes the monthly CSV list. On by default. |

Changing **Folders** affects documents saved from then on. Files already saved stay where they are.

## Check what was saved

* The **Cloud archive** card on **Issued invoices** shows each connected service, how many documents are saved and when it last saved one. **Open folder** opens the store's folder in Google Drive or Dropbox.
* The **Saved** column of the documents table shows a tick on each document that's saved.
* The service's page in **Settings › Integrations** lists every upload under **Activity**, for example **Save document** for **Invoice INV-2026-0042 · #1310**, and **Save monthly list** for each month's list. See [Integration activity](https://foliant-help.iforiti.com/integrations/integration-activity.md).

## When something goes wrong

If documents couldn't be saved, the card says how many and why, for example that your storage is full. Fix the cause, then click **Try again**.

If the service refused Foliant's access, for example because you removed Foliant from your Google or Dropbox account, the card shows **Needs attention**. Click **Reconnect** and sign in again. Foliant then saves the documents it missed.

Foliant tries again by itself when Google or Dropbox is busy or doesn't respond.

## Use your own app (advanced)

Foliant connects through its own Google and Dropbox apps, so you don't need to set anything up. If your company requires its own app, for example to control access centrally:

1. Create an app with Google (a web client with the Google Drive API and the `drive.file` scope) or Dropbox (an app folder app that can write files and read their metadata).
2. In the service's settings in Foliant, click **Show advanced settings**.
3. Enter your app's client ID and client secret, and allow the redirect URI shown under the client ID in your app.
4. Connect, or disconnect and connect again if you were already connected.

To switch to another app later, disconnect first, then connect with the new one.

## Disconnect a service

In **Settings › Integrations**, open the service, click **Disconnect Google Drive** or **Disconnect Dropbox**, then confirm with **Disconnect**. Foliant stops saving to it. The files already saved stay in your Google Drive or Dropbox.

If you connect the same account again later, Foliant carries on where it stopped. If you connect a different account, Foliant saves all your documents to it again.

## When your plan changes or you uninstall

* **Your plan no longer includes the cloud archive:** documents issued from then on aren't saved. The files already saved stay where they are.
* **You uninstall Foliant:** Foliant deletes your issued documents 48 hours after you uninstall it. The copies in your Google Drive or Dropbox stay yours.

## Related articles

* [Download the archive and how long documents are kept](https://foliant-help.iforiti.com/invoices-and-numbering/archive-and-retention.md)
* [The Issued invoices page](https://foliant-help.iforiti.com/invoices-and-numbering/issued-invoices-page.md)
* [Lock issued invoices](https://foliant-help.iforiti.com/invoices-and-numbering/locked-invoices.md)
* [Connect and manage an integration](https://foliant-help.iforiti.com/integrations/connect-an-integration.md)
* [Integration activity](https://foliant-help.iforiti.com/integrations/integration-activity.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.