{
  "info": {
    "name": "P&S2B ADN Gateway",
    "description": "Coleção operacional do ADN Gateway Multiempresa. Defina a variável api_key sem salvá-la no repositório.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": { "type": "apikey", "apikey": [{ "key": "key", "value": "X-API-Key", "type": "string" }, { "key": "value", "value": "{{api_key}}", "type": "string" }, { "key": "in", "value": "header", "type": "string" }] },
  "variable": [{ "key": "base_url", "value": "https://adn-gateway.pes2b.com" }, { "key": "api_key", "value": "" }],
  "item": [
    {
      "name": "Status público",
      "request": { "auth": { "type": "noauth" }, "method": "GET", "url": { "raw": "{{base_url}}/health", "host": ["{{base_url}}"], "path": ["health"] } }
    },
    {
      "name": "Consultar DFe",
      "request": {
        "method": "POST",
        "header": [{ "key": "Content-Type", "value": "application/json" }],
        "body": { "mode": "raw", "raw": "{\n  \"empresa_codigo\": \"JORGEPLA_CONTABILIDADE\",\n  \"cnpj_consulta\": \"10576541000116\",\n  \"nsu\": 2144\n}", "options": { "raw": { "language": "json" } } },
        "url": { "raw": "{{base_url}}/adn/consultar-dfe", "host": ["{{base_url}}"], "path": ["adn", "consultar-dfe"] }
      }
    },
    {
      "name": "Distribuir NF-e por NSU",
      "request": {
        "method": "POST",
        "header": [{ "key": "Content-Type", "value": "application/json" }],
        "body": { "mode": "raw", "raw": "{\n  \"empresa_codigo\": \"JORGEPLA_CONTABILIDADE\",\n  \"cnpj_consulta\": \"10576541000116\",\n  \"ult_nsu\": \"000000000000000\"\n}", "options": { "raw": { "language": "json" } } },
        "url": { "raw": "{{base_url}}/nfe/distribuicao-dfe", "host": ["{{base_url}}"], "path": ["nfe", "distribuicao-dfe"] },
        "description": "Uma requisição corresponde a uma chamada distNSU. O docZip permanece compactado em Base64."
      }
    }
  ]
}
