---
title: "List the invoices in the GoBD archive"
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.

# List the invoices in the GoBD archive

{/* 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/archive</code>
</div>
</div>

Returns this company's invoices that have files in the GoBD archive, the most recently queued first, 50 at a time. `retainUntil` is the last day the invoice is kept. `waiting` counts files not yet written.

## Query parameters

## Response

A `200` answer carries these fields.

## Status codes

| Status | Meaning |
|---|---|
| `200` | `{invoices: [ArchivedInvoice], nextCursor}`. `nextCursor` is null on the last page. |
| `400` | The cursor was not issued by this service (`invalid_cursor`). |
| `401` | No usable credential was sent (`invalid_credentials`). |
| `503` | This deployment has no database (`no_database`). |

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

</div>
</div>

Source: https://docs.certinvo.com/reference/api/other/list-the-invoices-in-the-gobd-archive/index.mdx
