Skip to content

List Documents ​

Retrieves a paginated list of documents for the authenticated issuer with optional filtering by status, document type, date range, sequential, and buyer name, and optional sorting.

GET /v1/documents

Authentication ​

Authorization: Bearer <api-key> and X-Issuer-Id: <issuer-id> (UUID from GET /v1/issuers)

Query parameters ​

ParameterTypeDescription
statusstringFilter by status: SIGNED, RECEIVED, RETURNED, AUTHORIZED, NOT_AUTHORIZED (optional)
documentTypestringFilter by document type code: 01, 03, 04, 05, 06, 07 (optional)
fromstringFilter by issue date >= DD/MM/YYYY format (optional)
tostringFilter by issue date <= DD/MM/YYYY format (optional)
sequentialstringFilter by sequential, contains match against the zero-padded 9-digit value (e.g. 000000001), case-insensitive (optional)
buyerNamestringFilter by buyer name, contains match, case-insensitive (optional)
sortBystringSort by sequential, buyerName, issueDate, or status (optional). When omitted, results are sorted by creation date (newest first) — no behavior change for existing callers
sortDirstringasc or desc (optional). Defaults to desc when sortBy is given without sortDir
pageintegerPage number, defaults to 1 (optional)
limitintegerResults per page, 1-100, defaults to 10 (optional)

All filters combine with AND.

Example ​

No filters, first page at the default size:

http
GET /v1/documents
Authorization: Bearer <your-api-key>
X-Issuer-Id: 00000000-0000-0000-0000-000000000001

Combining several filters and sorting — query parameters are joined with &, same as in any URL:

http
GET /v1/documents?status=AUTHORIZED&documentType=01&from=01/03/2026&to=31/03/2026&sortBy=issueDate&sortDir=desc&page=1&limit=20
Authorization: Bearer <your-api-key>
X-Issuer-Id: 00000000-0000-0000-0000-000000000001

Response ​

200 OK

json
{
  "ok": true,
  "data": [
    {
      "accessKey": "1503202601179234567800110010010000000011234567810",
      "documentType": "01",
      "sequential": "000000001",
      "status": "AUTHORIZED",
      "issueDate": "15/03/2026",
      "total": "115.00",
      "authorizationNumber": "1503202601179234567800110010010000000011234567810",
      "authorizationDate": "2026-03-15T14:22:00-05:00",
      "email": {
        "status": "DELIVERED",
        "sentAt": "2026-03-15T14:22:05.123Z"
      }
    }
  ],
  "pagination": {
    "total": 42,
    "page": 1,
    "limit": 10
  }
}

Errors ​

CodeStatusWhen
BAD_REQUEST400X-Issuer-Id header missing or malformed
VALIDATION_FAILED400Invalid query parameter (e.g., invalid status, invalid date format)
UNAUTHORIZED401Missing or invalid API key, or environment mismatch (sandbox key targeting a production tenant or vice versa)
FORBIDDEN403X-Issuer-Id issuer belongs to a different tenant
NOT_FOUND404X-Issuer-Id issuer does not exist

Comprobify API Documentation — API v1.3.1