Object containing error information in case the consult cannot be carried out successfully. Details in the table below
Only when status is different from 200
“Erro” object details
cStat
Error status code
xMotivo
Error literal description
Return examples
Successful return
{
"status": 200,
"motivo": "Consulta realizada com sucesso",
"chNFe": "43161107364617000135550000000099461000094833",
"cStat": 100,
"nProt": "143160001491309",
"xMotivo": "Autorizado o uso da NF-e",
"dhRecbto": "2016-11-21T11:19:42",
"xml": "<?xml version=\"1.0\" encoding=\"utf-8\"?><nfeProc versao=\"3.10\" xmlns=\"http://www.portalfiscal.inf.br/nfe\"><NFe>...</NFe><protNFe versao=\"3.10\">...</protNFe></nfeProc>"
}
Return with error
{
"status": -2,
"motivo": "Nao foi possivel carregar o status da NF-e",
"erro": {
"cStat": 0,
"xMotivo": "Documento não localizado em nosso banco de dados"
}
}
Return codes
Code
Description
200
Consult carried out successfully
-2
It was not possible to load the NF-e processing status. Check the "erro" object for more information
-6
Document already received, but without processing status, please consult the nsNRec processing status informed