Skip to main content
GET
Documentos tributarios que la empresa puede emitir
Returns the DTE documents your company can issue right now and whether it allows credit invoices. A document is listed only when the issuer is active, its certificate is installed, and it has folios left for that document. Read it before offering a receipt (boleta) or an invoice (factura) at your point of sale, so you never send a dte.document the company cannot issue.

Endpoint

Required scope

ecommerce:invoicing:read

Headers

Example request

Response

200 OK

Documents

401 Unauthorized

Missing, invalid, revoked, or expired token.

403 Forbidden

The token does not have the ecommerce:invoicing:read scope.

502 Bad Gateway

ECOMMERCE_UPSTREAM_ERROR — the ecommerce service could not answer.

Operational notes

  • Credit invoices are a company setting. They are enabled in Sales › Settings in the Keebai portal, off by default. Receipts always need full payment.
  • An empty list means the company cannot issue. The issuer is not configured or active, the certificate is missing, or the folios ran out. That is fixed in the portal, not through this API.
  • A document can drop out of the list. When the folios of a document run out, it stops appearing until more are loaded. Read the list again instead of caching it for days.

Authorizations

Authorization
string
header
required

Personal Access Token con prefijo kbai_pk_. Generar desde el portal con permiso developer.manage_tokens.

Response

200 - application/json
documents
enum<string>[]
required

Documentos que la empresa puede emitir hoy

Available options:
invoice,
exempt_invoice,
receipt,
exempt_receipt
types
number[]
required

Los mismos documentos, con su código SII

credit_invoices
object
required
env
string | null
required

Ambiente del SII configurado, null sin emisor activo