The SIEG Baixar Eventos API downloads the fiscal events linked to Brazilian electronic documents such as NF-e, CT-e, and NFC-e, for example cancellations, from a SIEG account. A request identifies the document with ChaveXml and TipoXml and can narrow results by TipoEvento, an event date range, and the CNPJ of the issuer, recipient, sender, or service taker. Each returned event carries its TipoEvento code, Descricao, Protocolo, DataEvento, and the raw event XML, with Skip and Take for paging.
The SIEG Baixar XML por NSU API downloads the fiscal document XMLs associated with an NSU, the sequential number SIEG assigns to stored documents. A request sends a single Nsu value and the response is a ZIP archive containing one or more XMLs. Because NSUs are sequential, a client can walk forward from the last number it processed to collect documents in order.
The SIEG BaixarXml API downloads a single Brazilian electronic fiscal document XML, such as an NF-e, CT-e, NFC-e, or NFS-e, from a SIEG account by its access key. A request names the document with ChaveXml and its type with TipoXml (1 for NF-e, 2 for CT-e, 3 for NFS-e, among other codes), and setting BaixarEventos to true also returns the events linked to that document. Responses carry a Status, Codigo, and Mensagens list describing the result.
The SIEG BaixarXmls API downloads Brazilian fiscal document XMLs in batches from a SIEG account, filtered by document type and issue date. A request sets TipoXml to pick the document type and DataEmissaoInicio and DataEmissaoFim to bound the issue-date window, then pages through the results with Take and Skip. The response returns a success flag, a message, and a data array holding the documents for that page, which makes it suited to bulk exports rather than single-document lookups.
The SIEG Buscar XMLs por NSU API lists the Brazilian fiscal documents available in a SIEG account starting from a given NSU, the sequential number SIEG assigns as documents arrive. A request sends NsuInicial and an optional LimiteResultados cap, and the response returns ListaNsuConsulta, where each entry carries its NumeroNsu, TipoXml, DataEmissao, and the CNPJ or CPF of the issuer, recipient, service taker, and sender. Storing the highest NumeroNsu seen and starting the next call after it gives an incremental sync that only picks up new documents.
The SIEG Contar Xmls API counts the Brazilian fiscal document XMLs stored in a SIEG Cofre, broken down by document type. A request filters by issue date (DataEmissaoInicio and DataEmissaoFim), by upload date (DataUploadInicio and DataUploadFim), or both, with a window of up to three months, and can narrow the count to a CNPJ for the issuer, recipient, or, for CT-e transport documents, the service taker and sender. The response returns separate totals for NFe, NFCe, CTe, CFe, and NFSe.
The SIEG Enviar Xmls API uploads a Brazilian fiscal document XML from an external system into a SIEG account. The request carries the document as a Base64-encoded string in the Xml field, and the response returns isSuccess, isFailure, statusCode, errorMessage, and a data string describing the result. A 409 Conflict response signals that the XML belongs to a company that is not valid for the account, so an upload job can tell a rejected document from a transport error.
Step 1: Jentic One Host machine
# On the machine that will host your Jentic One instance:
curl -fsSL "https://jentic.com/install.sh?src=apis&api=%2Fapis%2Fsieg.com" | shStep 2: Agent machine
# On the machine where your agent runs (keep this separate from the instance):
curl -fsSL "https://jentic.com/install.sh?src=apis&api=%2Fapis%2Fsieg.com" | sh
jentic register # connects your agent to your Jentic One instanceJentic One is in public beta. The setup above keeps your agent separate from the instance, which is what you want before using real credentials: an agent running as the same OS user as Jentic One can read its stored keys directly. Just evaluating? A single local install is fine to start. See the secure deployment guide for the tiers.
BOOK A DEMO
Browse thousands of APIs and connect them all to your agent with Jentic One. One layer, one credential — every API your agent needs.