# FOLIOS_EXHAUSTED: no folios (CAF) left for that document type

> The issuing RUT has no folios left for the document type you tried to issue. Each tax document needs a folio from a CAF issued by the SII.

Source: https://api.sharkpos.cl/en/errors/folios-exhausted/

Checked on 2026-11-25 against the SharkPOS API code · [Markdown](/en/errors/folios-exhausted.md)
`FOLIOS_EXHAUSTED` · HTTP 409
Message you may see:
- `No quedan folios disponibles para este tipo de boleta. (No folios are available for this type of boleta.)`
- `Folio range exhausted for this document type.`

## What it means
The issuing RUT (Chilean tax ID) has no folios available for the document type you are trying to issue. Each tax document needs a folio (its unique number) from a CAF (Código de Autorización de Folios, the folio authorization file) issued by the SII.

## Why it happens
- The last authorized range of folios was used up.
- The SII did not hand out new folios (for example, the RUT is still enrolled in e-Boleta or the signer is not authorized).

## How to fix it
- With automatic folios (the default mode), SharkPOS requests a new range from the SII: retry in a few minutes with the same Idempotency-Key.
- If you upload your own CAF files, upload a new range before issuing again.
- If the SII rejects the folio request, check [e-Boleta](/en/errors/rut-enrolled-in-sii-eboleta/) and [signer not authorized](/en/errors/signer-not-authorized-for-folios/).

**Should you retry?** With automatic folios, yes: in a few minutes and with the same key.
All API errors are JSON: `{"status": "error", "code": "...", "message": "...", "solution": "..."}`. The `code` is stable; `message` and `solution` are in Spanish. Full table in the [guide for agents](/en/docs/agents.md).

## Related
- [The SII does not hand out boleta folios: the RUT is still in e-Boleta](/en/errors/rut-enrolled-in-sii-eboleta/)
- [The SII does not hand out folios: the certificate holder is not authorized](/en/errors/signer-not-authorized-for-folios/)

Integrating receipts or invoices? Try it in the [sandbox](/sandbox/), without touching the real SII.
