Skip to main content
Skip table of contents

Emitir CT-eOS em Contingência

POST /api/CTeOSEmissao/contingencia 

O endpoint de emissão permite o envio de conhecimento de transporte para emissão em contingência. 

O layout da string de “Conteudo” deve seguir o layout padrão conforme documentação fornecida pela Secretaria de Fazenda (Sefaz), através dos Schemas XSD distribuídos com os pacotes de liberação (PL).  

A seguir, link para arquivo tipo XML CT-eOS:  

Portal do Conhecimento de Transporte Eletrônico 

Após acessar o portal, clique no menu Documentos, e na opção Esquemas XML

Exemplo de Requisição: 

CODE
{ 

  "header": { 

    "cnpjEmpresa": "99999999999999", 

    "tipoEnvio": 1 

  }, 

  "body": { 

    "conteudo": "{\"@versao\":\"3.00\",\"idLote\":\"000000000000001\",\"MDFe\":{\"infMDFe\":{\"@Id\":\"MDFe41221299999999999999581000000000051677194840\",\"@versao\":\"3.00\",\"ide\":{\"cUF\":\"41\",\"tpAmb\":\"2\",\"tpEmit\":\"1\",\"tpTransp\":\"1\",\"mod\":\"58\",\"serie\":\"100\",\"nMDF\":\"5\",\"cMDF\":\"67719484\",\"cDV\":\"0\",\"modal\":\"1\",\"dhEmi\":\"2022-12-22T17:27:45-03:00\",\"tpEmis\":\"1\",\"procEmi\":\"0\",\"verProc\":\"NddTech Fiscal 4.9.2\",\"UFIni\":\"SP\",\"UFFim\":\"SP\",\"infMunCarrega\":{\"cMunCarrega\":\"3548500\",\"xMunCarrega\":\"Santos\"}},\"emit\":{\"CNPJ\":\"99999999999999\",\"IE\":\"999999999\",\"xNome\":\"TRANSPORTA\",\"enderEmit\":{\"xLgr\":\"Rodovia\",\"nro\":\"4652\",\"xCpl\":\"Saída\",\"xBairro\":\"Industrial\",\"cMun\":\"4115200\",\"xMun\":\"MARINGÁ\",\"CEP\":\"87035510\",\"UF\":\"PR\",\"fone\":\"4788996655\"}},\"infModal\":{\"@versaoModal\":\"3.00\",\"rodo\":{\"infANTT\":{\"RNTRC\":\"12345678\",\"infCIOT\":{\"CIOT\":\"456789789\",\"CNPJ\":\"99999999999999\"},\"infContratante\":{\"xNome\":\"TRANSPORTES\",\"CNPJ\":\"99999999999999\"}},\"veicTracao\":{\"cInt\":\"1234567\",\"placa\":\"MDS1122\",\"RENAVAM\":\"123456789\",\"tara\":\"6000\",\"capKG\":\"27000\",\"capM3\":\"1\",\"prop\":{\"CNPJ\":\"99999999999999\",\"RNTRC\":\"123456789\",\"xNome\":\"NOME\",\"IE\":\"999999999\",\"UF\":\"PR\",\"tpProp\":\"1\"},\"condutor\":{\"xNome\":\"LAZARO DA COSTA MELO\",\"CPF\":\"42453135449\"},\"tpRod\":\"03\",\"tpCar\":\"00\",\"UF\":\"PR\"},\"veicReboque\":[{\"cInt\":\"ASD4567\",\"placa\":\"ASD1234\",\"RENAVAM\":\"001245789\",\"tara\":\"5000\",\"capKG\":\"18000\",\"capM3\":\"1\",\"prop\":{\"CNPJ\":\"99999999999999\",\"RNTRC\":\"123456789\",\"xNome\":\"NOME\",\"IE\":\"999999999\",\"UF\":\"PR\",\"tpProp\":\"1\"},\"tpCar\":\"03\",\"UF\":\"PR\"},{\"cInt\":\"ASD1234\",\"placa\":\"ASD1234\",\"RENAVAM\":\"123456789\",\"tara\":\"6500\",\"capKG\":\"18000\",\"capM3\":\"1\",\"prop\":{\"CNPJ\":\"99999999999999\",\"RNTRC\":\"123456789\",\"xNome\":\"NOME\",\"IE\":\"999999999\",\"UF\":\"PR\",\"tpProp\":\"1\"},\"tpCar\":\"03\",\"UF\":\"PR\"}]}},\"infDoc\":{\"infMunDescarga\":{\"cMunDescarga\":\"3513504\",\"xMunDescarga\":\"CUBATÃO\",\"infCTe\":{\"chCTe\":\"41221199999999999999570010000122201635688989\",\"infUnidTransp\":[{\"tpUnidTransp\":\"1\",\"idUnidTransp\":\"ASD1234\",\"qtdRat\":\"100\"},{\"tpUnidTransp\":\"2\",\"idUnidTransp\":\"AXY2231\",\"qtdRat\":\"100\"}]}}},\"seg\":{\"infResp\":{\"respSeg\":\"2\",\"CNPJ\":\"92660604017077\"},\"infSeg\":{\"xSeg\":\"SEGURADORA\",\"CNPJ\":\"99999999999999\"},\"nApol\":\"2780842\",\"nAver\":\"0619005239999999999999957001000066441127\"},\"prodPred\":{\"tpCarga\":\"02\",\"xProd\":\"3,25 29,35 00 11,5Ca\",\"NCM\":\"31055900\",\"infLotacao\":{\"infLocalCarrega\":{\"latitude\":\"-23.840398\",\"longitude\":\"-46.378066\"},\"infLocalDescarrega\":{\"latitude\":\"-16.513054\",\"longitude\":\"-54.644613\"}}},\"tot\":{\"qCTe\":\"1\",\"vCarga\":\"10.00\",\"cUnid\":\"01\",\"qCarga\":\"100.0000\"}}}}" 

  } 

}

Exemplo de Retorno: 

CODE
{ 

    "tipoRetorno": 11, 

    "processamento": { 

        "message": "Documento enviado para processamento", 

        "protocolo": "5ceaefd3-6464-46ca-8582-d7d761854737" 

    } 

}

{{component-feedback-article}}

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.