# History & Reports

Read-back endpoints for reprinting, reconciliation and reporting. These query stored records and do not touch the card.

## Invoice history

```
GET /api/v3/invoices?from=2026-08-01&to=2026-08-13&uid=EKLBHT3Y
```

Returns fiscalised invoice records for the period (defaults to the last 30 days). Each row includes `dateAndTime`, `invoiceNumber`, `uid`, `type`, `transaction`, `amount`, `referenceDocumentNumber`, `source` and `itemCount`. `uid` is optional.

## Single invoice (drill-down)

```
GET /api/v3/invoices/detail?number=EKLBHT3Y-EKLBHT3Y-31
```

Returns the full stored record for one invoice: items, per-invoice tax breakdown and payments. `404` if the number is unknown.

## Receipt PDF (reprint)

```
GET /api/v3/invoices/journal-pdf?number=EKLBHT3Y-EKLBHT3Y-31
```

Returns the rendered receipt as `application/pdf` — use it to reprint from history. `404` if the invoice has no stored textual representation (e.g. it was signed with `omitTextualRepresentation`).

## Recovery by RequestId

```
GET /api/v3/invoices/{requestId}
```

Returns the invoice previously signed under that `RequestId` (or null). Useful after a lost response — no re-signing occurs.

## Reports

All report endpoints take `from`, `to` and optional `uid`.

<table id="bkmrk-endpointreturns-get-"><thead><tr><th>Endpoint</th><th>Returns</th></tr></thead><tbody><tr><td>`GET /api/v3/reports/daily`</td><td>Daily totals.</td></tr><tr><td>`GET /api/v3/reports/payment-types`</td><td>Totals by payment type.</td></tr><tr><td>`GET /api/v3/reports/tax-amounts`</td><td>Tax totals by label/category.</td></tr><tr><td>`GET /api/v3/reports/list-of-items`</td><td>Item sales.</td></tr><tr><td>`GET /api/v3/reports/detailed`</td><td>A combined detailed report (summary + all breakdowns).</td></tr><tr><td>`GET /api/v3/reports/detailed/excel`</td><td>The detailed report as a multi-sheet `.xlsx` workbook.</td></tr></tbody></table>

## Audit status

```
GET /api/v3/audit/status?uid=EKLBHT3Y
```

Returns `queuedPackages` (unsent audit packages), `awaitingProof` (a proof-of-audit is pending) and `lastAuditStartUtc`. Auditing is automatic in the background; this is for visibility, not something the POS drives.