# Voucher API

Bookkeeping: voucher bases and settlement reports.

Base URL: `https://voucher-api.ancon.io` · OpenAPI spec: https://ancon.dev/specs/voucher.json · API version: public-v1

Authenticate every request with an `Access-Token` header. See https://ancon.dev/get-started.md.

## SettlementReports

- [Get settlement report as SIE](https://ancon.dev/api/voucher/settlement-reports/get-settlement-report-as-sie.md): `GET /public/api/v1/Outlets/{outletId}/SettlementReports/{settlementReportId}/SIE`
- [Get settlement report](https://ancon.dev/api/voucher/settlement-reports/get-settlement-report.md): `GET /public/api/v1/Outlets/{outletId}/SettlementReports/{settlementReportId}`

## VoucherBases

Voucher basis can be in two statuses:

Draft: The ongoing voucherbasis, each new order will be added to the voucher basis in draft.

Published: Each day / when configured in outlet settings a new draft will be created and the current one is moved to published status.

- [Get voucher basis list](https://ancon.dev/api/voucher/voucher-bases/get-voucher-basis-list.md): `GET /public/api/v1/Outlets/{outletId}/OrderVoucherBases`
- [Get voucher basis as SIE](https://ancon.dev/api/voucher/voucher-bases/get-voucher-basis-as-sie.md): `GET /public/api/v1/Outlets/{outletId}/OrderVoucherBases/{voucherBasisId}/SIE`
- [Get voucher basis as PDF](https://ancon.dev/api/voucher/voucher-bases/get-voucher-basis-as-pdf.md): `GET /public/api/v1/Outlets/{outletId}/OrderVoucherBases/{voucherBasisId}/PDF`
- [Get voucher details](https://ancon.dev/api/voucher/voucher-bases/get-voucher-details.md): `GET /public/api/v1/Outlets/{outletId}/OrderVoucherBases/{voucherBasisId}/Voucher`
- [Get voucher basis details v1.1](https://ancon.dev/api/voucher/voucher-bases/get-voucher-basis-details-v1-1.md): `GET /public/api/v1.1/Outlets/{outletId}/OrderVoucherBases/{voucherBasisId}`

1 deprecated endpoint is left out of this index; their pages still exist and name the replacement.
