{"info":{"_postman_id": "fd3107a1-7ac8-4644-bac7-9e8bcfe19109","name":"ZP","schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json","_exporter_id": "38871889"},"item": [{"name": "NF-e (Chave)","description": "Retorna as chaves","item": [{"name": "NF-e (Chave)","request": {"method": "GET","header": [],"body": {"mode": "raw","raw": "","options": { "raw": { "language": "json" } }},"url": {"raw": "{{url_base}}/v1/terceiro/nfeChave?CNPJ={{CNPJ}}&SENHA={{SENHA}}&A={{A}}","host": ["{{url_base}}"],"path": ["/v1/terceiro/nfeChave"],"query": [{"key": "CNPJ","value": "{{CNPJ}}","description": "CNPJ do estabelecimento"},{"key": "SENHA","value": "{{SENHA}}","description": "SENHA do dia"},{"key": "A","value": "{{A}}","description": "id do aplicativo"},{"key": "chave","value": "","description": "chave da NF-e","disabled": true},{"key": "data_final","value": "","description": "data final da NF-e","disabled": true},{"key": "data_inicial","value": "","description": "data inicial da NF-e","disabled": true},{"key": "manifesto","value": "","description": "manifesto da NF-e (CIÊNCIA, CONFIRMADA, DESCONHECIDA, NÃO REALIZADA)","disabled": true},{"key": "modal","value": "","description": "modal da NF-e (RODOVIÁRIO, FERROVIÁRIO, AEROVIÁRIO, DUTOVIÁRIO, HIDROVIÁRIO)","disabled": true},{"key": "situacao","value": "","description": "situação da NF-e (AUTORIZADA, CANCELADA, ENVIADA, REJEITADA, DENEGADA)","disabled": true},{"key": "xml","value": "","description": "já tem o XML? S ou N","disabled": true}]}},"response": []}]},{"name": "NF-e (PDF)","description": "Download (PDF) da NF-e","item": [{"name": "NF-e (PDF)","request": {"method": "GET","header": [],"body": {"mode": "raw","raw": "","options": { "raw": { "language": "json" } }},"url": {"raw": "{{url_base}}/v1/generica/nfePdf?CNPJ={{CNPJ}}&SENHA={{SENHA}}&A={{A}}","host": ["{{url_base}}"],"path": ["/v1/generica/nfePdf"],"query": [{"key": "CNPJ","value": "{{CNPJ}}","description": "CNPJ do estabelecimento"},{"key": "SENHA","value": "{{SENHA}}","description": "SENHA do dia"},{"key": "A","value": "{{A}}","description": "id do aplicativo"},{"key": "chave","value": "","description": "chave da NF-e"}]}},"response": []}]},{"name": "NF-e (Recebida/Status)","description": "Status das NF-e recebidas","item": [{"name": "NF-e (Recebida/Status)","request": {"method": "GET","header": [],"body": {"mode": "raw","raw": "","options": { "raw": { "language": "json" } }},"url": {"raw": "{{url_base}}/v1/terceiro/nfeRecebidaStatus?CNPJ={{CNPJ}}&SENHA={{SENHA}}&A={{A}}","host": ["{{url_base}}"],"path": ["/v1/terceiro/nfeRecebidaStatus"],"query": [{"key": "CNPJ","value": "{{CNPJ}}","description": "CNPJ do estabelecimento"},{"key": "SENHA","value": "{{SENHA}}","description": "SENHA do dia"},{"key": "A","value": "{{A}}","description": "id do aplicativo"}]}},"response": []}]},{"name": "NF-e (XML)","description": "Download (XML) da NF-e","item": [{"name": "NF-e (XML)","request": {"method": "GET","header": [],"body": {"mode": "raw","raw": "","options": { "raw": { "language": "json" } }},"url": {"raw": "{{url_base}}/v1/generica/nfeXml?CNPJ={{CNPJ}}&SENHA={{SENHA}}&A={{A}}","host": ["{{url_base}}"],"path": ["/v1/generica/nfeXml"],"query": [{"key": "CNPJ","value": "{{CNPJ}}","description": "CNPJ do estabelecimento"},{"key": "SENHA","value": "{{SENHA}}","description": "SENHA do dia"},{"key": "A","value": "{{A}}","description": "id do aplicativo"},{"key": "chave","value": "","description": "chave da NF-e"}]}},"response": []}]},{"name": "Tabelas","description": "Utilize esse endpoint para consultar uma tabela","item": [{"name": "Tabelas","request": {"method": "GET","header": [],"body": {"mode": "raw","raw": "","options": { "raw": { "language": "json" } }},"url": {"raw": "{{url_base}}/v1/terceiro/tabelas?CNPJ={{CNPJ}}&SENHA={{SENHA}}&A={{A}}","host": ["{{url_base}}"],"path": ["/v1/terceiro/tabelas"],"query": [{"key": "CNPJ","value": "{{CNPJ}}","description": "CNPJ do estabelecimento"},{"key": "SENHA","value": "{{SENHA}}","description": "SENHA do dia"},{"key": "A","value": "{{A}}","description": "id do aplicativo"},{"key": "id_tabela","value": "","description": "id da tabela"}]}},"response": []}]}],"event": [{"listen": "prerequest","script": {"type": "text/javascript","packages": {},"exec": ["const CryptoJS = require(\"crypto-js\");","","const CNPJ = pm.variables.get(\"CNPJ\");","const Identificador = pm.variables.get(\"Identificador\");","","const hoje = new Date().toISOString().split('T')[0];","","const senhaMd5 = CryptoJS.MD5(","  Identificador + ","  hoje.toString() + ","  CNPJ","  ).toString();","","pm.variables.set(\"SENHA\", senhaMd5);"]}}],"variable": [{"key": "url_base","value": "https://zp2.txfuel.com.br/api","type": "string"},{"key": "CNPJ","value": "","type": "string"},{"key": "Identificador","value": "","type": "string"},{"key": "SENHA","value": "","type": "string"},{"key": "A","value": "","type": "string"}]}