1. Inicio
  2. Documentos
  3. NS CTe (English)
  4. CTe Events
  5. CT-e Disablement Download

CT-e Disablement Download

Through this endpoint, it’s possible to obtain the XML of a CT-e numeration disablement.


Production: POST https://cte.ns.eti.br/cte/download/inut

Input data
X-AUTH-TOKENUser access token
chaveCT-e disablement key
tpAmbDisablement environment type: 1 - Production, 2 - HomologationDefault value: 1
Request example

Disablement download request

curl -X POST 
    \-H "Content-Type: application/json"
    \-d '{
          "X-AUTH-TOKEN": "YOUR_TOKEN", 
          "chave": "99999999999999999999999999999999999999", 
          "tpAmb": 1 
     }' \
Returned data
statusProcessing status code
motivoProcessing status literal description
retInutObject containing the processing data of the disablement at SefazOnly when status = 200
retInut.cStatDisablement situation code at Sefaz
retInut.xMotivoDisablement situation literal description at Sefaz
retInut.chaveCT-e disablement access key
retInut.tpAmbCT-e disablement environment type
retInut.dhRecbtoDate and time of receipt of the disablement at SefazSefaz Standard: YYYY-MM-DDTHH:MM:SS+UTC
E.g.: 2016-06-13T15:04:10-02:00
retInut.nProtDisablement authorization protocol number by Sefaz
retInut.xmlDisablement XML
erroObject contaning the error information in case the download could not be carried out successfullyOnly when status is different from 200
erro.cStatError status code
erro.xMotivoError literal description
Return example

Successful return

    "status": 200,
    "motivo": "Inutilizacao localizada com sucesso",
    "retInut": {
        "cStat": 102,"xMotivo": "Inutilizacao de numero homologado",
        "chave": "430736461700013557000000000883000000883",
        "tpAmb": 2,
        "dhRecbto": "2020-03-09T11:57:15-03:00",
        "nProt": "143200000042460",
        "xml": "<?xml version..."
Return codes
200Download carried out successfully
-3Not possible to load the disablement

Como podemos ajudar?