Documentation › Help
Changelog
Changes to the API and documentation, organized by date.
API v1. Since 02/10/2026 the issuance contract is frozen: only changes that
add are made (field, route, event, readiness item, error code). Nothing
that exists is renamed, removed or changes HTTP status. A rule that needs to
change meaning gets a new id.
10/11/2026
Added (NF-e)
- Returns built from the source invoice:
GET /v1/nfe/{id}/devolucao(remaining quantity per item),POST /v1/nfe/{id}/devolucao/previaandPOST /v1/nfe/{id}/devolucao. You specify what was returned; Sudrel builds the inbound NF-e with CFOP, proportional taxes and the source item reference. New errors:nfe_sem_devolucao,item_inexistente,item_repetido,quantidade_acima_do_saldo,devolucao_sem_saldo,cfop_sem_devolucaoanddevolucao_com_ipi. - Returns for NF-e issued by another system:
POST /v1/nfe/devolucoes/consulta,POST /v1/nfe/devolucoes/previaandPOST /v1/nfe/devolucoes, using the key (with the XML Sudrel captured from SEFAZ) or the submitted XML. New errors:origem_obrigatoria,xml_origem_necessario,xml_origem_invalido,origem_divergente,origem_de_outro_emitente,origem_sem_autorizacao,nfe_emitida_pela_sudrelanditem_nao_suportado; newbloqueiofield on each remaining quantity item.
18/10/2026
Added (NFC-e, modelo 65)
POST /v1/nfce, with the response in the same call and a requiredIdempotency-Key; preview, query, list, XML, discard, e-mail delivery and voided numbers (inutilizações).- Registers (
/v1/caixas), each with its own series. - QR Code version 3, without CSC; optional CSC at
PUT /v1/nfce/csc/{empresa_id}, used only if the state refuses version 3. - 80 mm receipt as PDF and as 48-column text (
GET /v1/nfce/{id}/danfe). - Cancellation in its own queue, with
cancelavel_ateon the invoice and thecancelamento_fora_do_prazoerror. - Readiness items
caixa,csc,nfce_ufandnfce_producao. - Webhooks
NFCE_AUTORIZADA,NFCE_REJEITADA,NFCE_DENEGADA,NFCE_CANCELADA,NFCE_DESCARTADA,NFCE_DESCARTE_PROXIMOandNFCE_ENVIO_PAUSADO. - TypeScript and PHP SDKs (
nfce,caixas) and four read tools in the MCP server. - Guide: NFC-e issuance.
Added (NF-e)
chave_referenciadaininformadomode, required for returns and complementary invoices (errorchave_referenciada_obrigatoria), anditem_referenciadoon the item.
17/10/2026
Added (NF-e, contingency)
- Per-company contingency policy (
politica_contingencia:esperar,svc,epec) in the tax profile; SVC-AN/SVC-RS and EPEC only for invoices that never went out. - Status
contingencia_epec,contingenciaobject on the invoice,falha_envio.motivouf_indisponivel, and the DANFE for an invoice with a registered EPEC. GET /v1/sefaz/statusand the webhooksSEFAZ_STATUS_ALTERADOandNFE_CONTINGENCIA.- Simulator:
uf_indisponivel,uf_indisponivel_svc_ativo,epec_pendente,epec_rejeitado.
Added (NF-e)
falha_envio.motivoenvio_pausadoandfalha_envio.pausado_em, and theNFE_ENVIO_PAUSADOwebhook: after repeated certificate refusals, Sudrel stops resending until the certificate passes the test.
16/10/2026
Added (NF-e tax engine, extended Bahia coverage)
- Wholesaler Termo de Acordo (Decreto 7.799/2000):
termo_acordoin the company profile and in the product profile. - ICMS-ST:
st_substitutoin the product profile (ICMS10/ICMS70 with MVA from Anexo 1), CST 10 and 70 in informado mode (stgroup), ST withheld on purchases via link (/v1/produtos/{codigo}/vinculos-entrada) andst_retidoon the item in calcular mode. - 7% for ME/EPP with the explicit discount, and the recipient's size from the CNPJ lookup.
exclui_icms_base_pis_cofinsin the company profile.- GTIN checked at SEFAZ (
gtin_sefaz, errorgtin_ncm_divergente). fcpin ICMS20 in informado mode.
Changed (recorded decision)
- The sandbox key now registers and approves products and profiles, in a registry of its own (before: 403). The production registry does not change.
Added (NF-e tax engine)
- Product registry (
/v1/produtos) with NCM, CEST and GTIN validated against the official tables, and a tax profile approved by a person. - Company tax profile (
/v1/nfe/perfil-fiscal/{empresa_id}). calcularandconferirmodes inPOST /v1/nfeandPOST /v1/nfe/previas, withoperacao,fora_de_coberturaand each calculated value inajusteswith rule, version and source.ipigroup on the item in informado mode.
Added
- NF-e modelo 55 issuance (
/v1/nfe) in informado mode: issuance, preview, query, list, XML, DANFE, correction, discard, cancellation, correction letter, voided numbers and readiness, in SEFAZ homologação (sandbox) and production. - Webhooks
NFE_AUTORIZADA,NFE_REJEITADA,NFE_DENEGADA,NFE_CANCELADA,NFE_CARTA_CORRECAO_REGISTRADA,NFE_DESCARTADAandNFE_DESCARTE_PROXIMO. - NF-e scenarios in the failure simulator.
03/10/2026
Documentation
- New task-based organization: "What do you want to do?", integration rules, idempotency, errors and HTTP status, NFS-e states, readiness, pagination, recipes, common problems, glossary.
- Error responses documented route by route, in both formats (problem+json and NestJS), including 401 and 429.
- Documentation also in Spanish (
/docs/es) and English (/docs/en). - OpenAPI specification also published as YAML (
/docs/openapi.yaml) and an index for AI assistants at/docs/llms.txt.
02/10/2026
Added
- Batches through the API:
POST /v1/lotes(JSON up to 50 thousand items, spreadsheet up to 200 thousand), query, items, report, manual issuance and reprocessing. WebhookLOTE_EMISSAO_CONCLUIDO. - Event log
GET /v1/eventos, with cursor and 90-day retention. - Webhooks through the API (
/v1/webhooks): timestampedX-Sudrel-Signature-V2signature,X-Sudrel-Event-IdandX-Sudrel-Delivery-Id, 72-hour retries, secret rotation with a 24-hour overlap, redelivery, custom headers and test webhooks separate from production ones. - Failure simulator (
X-Sudrel-Simular) with the test key. - API request log in the dashboard (Integrações › Log da API), for 30 days.
- Company readiness (
GET /v1/companies/{id}/prontidao), 412empresa_nao_prontaand theEMPRESA_PRONTIDAO_ALTERADAwebhook. NFSE_FALHA_TRANSMISSAOwebhook.- Official municipality parameters (
GET /v1/municipios/{ibge}/parametros). - IBS and CBS in the regular-regime DPS, and
GET /v1/servicos/{codigo}/nbs. - NFS-e replacement (
substituicaoblock inPOST /v1/nfse) and construction work data (servico.obra).
Changed
- The
GET /v1/eventoscursor (proximo_cursor,seqandcursor_mais_antigo) became an opaque string. The old numeric cursor is still accepted inapos.
01/10/2026
Added
- Test key
sdr_test_: issues for real in the Sistema Nacional produção restrita, with no fiscal value and no charge. - Status
aguardando_confirmacao,POST /v1/nfse/{id}/confirmacaoand theNFSE_AGUARDANDO_CONFIRMACAOwebhook. processamento_prolongadowarning and theNFSE_PROCESSAMENTO_PROLONGADOwebhook.
30/09/2026
Added
- NFS-e issuance through the API:
POST /v1/nfse,POST /v1/nfse/validacoes,GET /v1/nfse,GET /v1/nfse/{id}, XML, PDF and cancellation. Errors as problem+json,Idempotency-Key,Prefer: wait=N,ajustesand a timeline ineventos. WebhooksNFSE_AUTORIZADA,NFSE_REJEITADAandNFSE_CANCELADA.