Try the sandbox

How to connect your point of sale (POS) to Chile's SII to issue electronic receipts

Short answer: your POS does not connect to the SII (Servicio de Impuestos Internos, Chile's tax authority). When each sale closes it sends a JSON to SharkPOS API, and SharkPOS signs the boleta (receipt), stamps it with the folio (document number) and sends it to the SII. The business only needs its RUT (Chilean tax ID) enabled, a digital certificate, and to connect both once; SharkPOS requests the folios.

What does the business need?

In the dashboard, the business clicks Conectar al SII ("Connect to the SII") and uploads the certificate. The RUT's API key appears right there, shown once.

What does the POS do when the sale closes?

A single call. Prices include VAT and the total must equal the sum of the lines:

curl -X POST https://sandbox.sharkpos.cl/api/v1/dte/boleta/emit/ \
  -H "Authorization: Bearer $SHARKPOS_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: caja1-venta-884" \
  -d '{
    "document_type": 39,
    "amount_total": 7990,
    "medio_pago": 1,
    "items": [{"name": "Corte de pelo", "qty": 1, "price": 7990}]
  }'

Use the sale identifier from your system as the Idempotency-Key. If the network drops in the middle of the call, you repeat it with the same key and the same body: you get the same document, not a new one. document_type is 39 (taxed boleta) or 41 (exempt). The response carries folio and links for the PDF and the timbre (the stamp).

How do I print the receipt?

The documentation states that for in-person sales paid in cash or by bank transfer the printed boleta is mandatory (SII Res. Ex. No. 12 of 2025).

How do I handle several stores?

Each RUT includes one location, its casa matriz (head office) or first branch. Each additional active branch costs CLP 2,990 a month, VAT included, with no limit on branches. They are created with POST /api/v1/dte/branches/ (fields name, direccion, comuna and, optionally, ciudad and sii_code). On each sale from that branch you add branch_id to the body:

{ "document_type": 39, "branch_id": "9b7c...", "amount_total": 4990, "items": [ ... ] }

The document goes out with that branch's address; without branch_id it goes out as the casa matriz. To reconcile, GET /api/v1/dte/documents/summary/ returns totals per branch (by_branch).

What if a register loses internet?

There is an offline mode for boletas 39 and 41: the register receives a batch of folios with its CAF (Código de Autorización de Folios, the SII's folio authorization file), stamps the boleta itself, prints it and sends it when the connection returns. It is contracted per branch: CLP 4,990 a month for each branch with the mode enabled, VAT included, on top of the branch price. If the branch does not have it active, registering the register responds 403 OFFLINE_NOT_CONTRACTED. The details are in how to issue electronic receipts without internet.

How do I know the SII accepted it?

Issuing is synchronous, but SII acceptance is asynchronous: it arrives minutes later. Register a webhook with POST /api/v1/dte/webhooks/ and you will receive dte.accepted or dte.rejected. Verify the signature over the raw body and use data.idempotency_key to find the sale. It also warns about low folios (caf.folios_low). If a boleta ends up rejected, review_required or failed, do not issue another one for the same sale: contact support with the folio.

If you are going to code it, there are guides for Python, Node and PHP (in Spanish).

Try it in the sandbox

Request a test API key at api.sharkpos.cl/sandbox: it comes with a company, certificate and test folios, and nothing reaches the real SII. In the sandbox you can also try offline mode without contracting it. In production, CLP 5,990 a month per RUT, VAT included, with 20,000 documents a month.

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.