Skip to content

API reference

List the invoices in the GoBD archive

Other routes API

GET/v1/archive

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

  • cursorstring

    The nextCursor of the page before.

Response

A 200 answer carries these fields.

  • invoicesarray of objectRequired
    Show 8 child fields
    • invoiceIdstring (uuid)Required
    • invoiceNumberstring or nullRequired
    • issueDatestring (date) or nullRequired
    • directionstringRequired
      One of in, out.
    • retainUntilstring (date) or nullRequired
    • archivedintegerRequired
    • waitingintegerRequired
    • lastErrorstring or nullRequired
  • nextCursorstring or nullRequired

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).
GET/v1/archive
Example
curl https://api.certinvo.com/v1/archive \
  -H "Authorization: Bearer $CERTINVO_API_KEY"
const response = await fetch(`https://api.certinvo.com/v1/archive`, {
  headers: {
    Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
  },
})
console.log(response.status, await response.json())
import os

import requests

response = requests.get(
    "https://api.certinvo.com/v1/archive",
    headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)
200
application/json
{
  "invoices": [
    {
      "invoiceId": "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a",
      "invoiceNumber": "string",
      "issueDate": "2026-09-17",
      "direction": "in",
      "retainUntil": "2026-09-17",
      "archived": 0,
      "waiting": 0,
      "lastError": "string"
    }
  ],
  "nextCursor": "string"
}
Success response
GET
/v1/archive
List the invoices in the GoBD archive
All
›AuthenticationRequiredBearerAuth

Provide your API key in the Authorization: Bearer <key> header. Keys are stored locally in your browser.

›Headers2
›Query Parameters1
›Code Snippet
curl -X GET "https://api.certinvo.com/v1/archive" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response

No request sent yet

Configure parameters and click Send to view the response.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close