Obter XML
Responsável por fornecer ao integrador o XML em formato string ou base64 de uma NF-e, utilizando o conjunto CNPJ do emitente, número e série da nota ou sua chave de acesso.
Endpoint
POST
https://sandbox-api.invoisys.com.br/api/nfe/obterxml
Headers
Name
Type
Value
Content-Type
string
application/json
Accept
string
application/json
Authorization
string
Bearer <token>
Body
Name
Type
Description
ambiente
integer
Ambiente da requisição 1 - Produção 2 - Homologação
cnpj
string
CNPJ da empresa emitente
serie
integer
Série da NF-e emitida
numero
integer
Número da NF-e emitida
chaveDeAcesso
string
Chave de Acesso da NF-e emitida
tipoRetornoXML
integer
Tipo de retorno do XML 0 - String do XML 1 - Base64
Response
{
"xml": "<nfeProc xmlns=\"http://www.portalfiscal.inf.br/nfe\" versao=\"4.00\"><NFe><infNFe versao=\"4.00\" Id=\"NFe43240917921427000125558820000006821324105157\"><ide><cUF>43</cUF><cNF>22470715</cNF><natOp>Entrada de mercadoria ou bem recebido p/ conserto ou reparo</natOp><mod>55</mod><serie>882</serie><nNF>681</nNF><dhEmi>2024-09-03T17:18:53-03:00</dhEmi><tpNF>1</tpNF><idDest>1</idDest><cMunFG>4314902</cMunFG><tpImp>1</tpImp><tpEmis>1</tpEmis><cDV>0</cDV><tpAmb>2</tpAmb><finNFe>1</finNFe><indFinal>1</indFinal><indPres>1</indPres><procEmi>0</procEmi><verProc>1.0.0</verProc></ide><emit><CNPJ>17921427000125</CNPJ><xNome>INVOISYS SISTEMAS LTDA HML</xNome><xFant>INVOISYS SISTEMAS LTDA RFB</xFant><enderEmit>....",
"xmlCancelamento": ""
}
Modelo de Envio 📝
{
"ambiente": 1,
"cnpj": "string",
"serie": 0,
"numero": 0,
"chaveDeAcesso": "string",
"tipoRetornoXML": 0
}
Referências à API 📌
Last updated
Was this helpful?