---
title: "Download every invoice of the workspace"
description: "Other routes API"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.certinvo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Download every invoice of the workspace

{/* Generated by apps/docs/scripts/generate.ts from contracts/api/openapi.yaml. Do not edit. */}
<div class="cvo-op">
<div class="cvo-op-main">

<div class="cvo-op-header">
<div class="cvo-op-path-row">
<span class="cvo-method" data-method="get">GET</span>
<code class="cvo-op-path-code">/v1/workspace/export</code>
</div>
</div>

Returns one ZIP with every invoice of the workspace, live and sandbox. Each invoice has its own folder, `<environment>/<received|issued>/<issue date>_<number>_<id>/`, holding what its evidence download holds: `manifest.json`, `files/` and `history.json`. A file a single download holds back is left out and named in its manifest. `index.csv` lists every invoice and its folder. A closed workspace still downloads. Each invoice whose file left is recorded in its history. Only an owner or an admin, signed in, can download.

## Status codes

| Status | Meaning |
|---|---|
| `200` | Every invoice, as a ZIP. |
| `401` | No usable credential was sent (`invalid_credentials`), or an API key was used (`session_required`). |
| `403` | The person is not an owner or an admin of this workspace (`role_required`). |
| `501` | This deployment has no database (`no_database`). Sending the same request again will not help. |

</div>
<div class="cvo-op-aside">

</div>
</div>

Source: https://docs.certinvo.com/reference/api/other/download-every-invoice-of-the-workspace/index.mdx
