Try the sandbox

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

Checked on 2026-11-25 against the SharkPOS API code · Markdown

FOLIOS_EXHAUSTED · HTTP 409

Message you may see:

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

How to fix it

  1. With automatic folios (the default mode), SharkPOS requests a new range from the SII: retry in a few minutes with the same Idempotency-Key.
  2. If you upload your own CAF files, upload a new range before issuing again.
  3. If the SII rejects the folio request, check e-Boleta and signer not authorized.

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.

Related

Integrating receipts or invoices? Try it in the sandbox, without touching the real SII.

Try it today in the sandbox

Get a sandbox API key: a test company with certificate and folios already loaded and a simulated SII. When you are ready, each RUT costs CLP 5,990 a month (VAT included) with 20,000 documents a month.