cURL
curl --request GET \ --url https://api.validanfe.com/NFe/ConsultarNFe/{chave} \ --header 'X-API-KEY: <x-api-key>'
{ "200": {}, "400": {}, "401": {}, "404": {}, "429": {}, "500": {}, "Versao": "<string>", "TpAmb": "<string>", "CStat": "<string>", "XMotivo": "<string>", "ChNFe": "<string>", "DhRecbto": "<string>", "ProtNFe": { "InfProt.NProt": "<string>", "InfProt.DigVal": "<string>" }, "Xml": "<string>" }
Consulte informações básicas de uma NFe usando a chave de acesso
35170608530528000184550000000154301000771561
curl -X GET "https://api.validanfe.com/NFe/ConsultarNFe/35170608530528000184550000000154301000771561" \ -H "Accept: application/json" \ -H "X-API-KEY: SEU_TOKEN_AQUI"
{ "Versao": "4.00", "TpAmb": "1", "VerAplic": "SERPRO-API", "CStat": "100", "XMotivo": "Autorizado o uso da NF-e", "CUF": "35", "DhRecbto": "2024-03-10T12:34:56Z", "ChNFe": "35170608530528000184550000000154301000771561", "ProtNFe": { "Versao": "4.00", "InfProt": { "TpAmb": "1", "VerAplic": "SERPRO-API", "ChNFe": "35170608530528000184550000000154301000771561", "DhRecbto": "2024-03-10T12:34:56Z", "NProt": "123456789012345", "DigVal": "ABCDEFGHIJKLMNO", "CStat": "100", "XMotivo": "Autorizado o uso da NF-e" } }, "Xml": "<xml_data_here>" }
Show Propriedades do ProtNFe
87878774456468954646464654654546545446579312