Oten Tecnologia
Oten Fiscal
Documentation
POST/nfse/pdf/{idNota}

Regenerate the invoice PDF by ID

Regenerates an NFS-e PDF by ID. Notes: - Use this POST only when a PDF must be rebuilt because of a file error. The main download route is GET. - Available only when the status is CONCLUIDO or CANCELADO. - Up to 3 regenerations per document (may vary by city). - The returned protocol identifies the PDF reprocessing for the download route.

Production: https://api.otentecnologia.com.brSandbox: https://api.sandbox.otentecnologia.com.br

Parameters

This route has no path or query parameters.

Request

cURL
curl -X POST 'https://api.otentecnologia.com.br/nfse/pdf/{idNota}' \
  -H 'x-api-key: $OTEN_API_KEY' \
  -H 'Content-Type: application/json'

Responses

202Accepted
JSON
{
  "message": "Solicitação para regerar PDF de NFS-e recebida. Aguarde alguns minutos e realize o download do arquivo.",
  "protocolo": "014b955b-233c-4212-8a9c-f08e8feae713"
}
400Bad Request
JSON
{
  "error": {
    "message": "Operação interrompida pela ausência de parâmetros obrigatórios",
    "data": {
      "idNfse": "Parâmetro de Preenchimento Obrigatório."
    }
  }
}
401Unauthorized
JSON
{
  "error": {
    "message": "O token informado é inválido. Para o ambiente de produção, Acesse https://www.otentecnologia.com.br/, e gere o seu TOKEN de acesso"
  }
}
404Not Found
JSON
{
  "error": {
    "message": "Não localizamos qualquer NFSe com os parâmetros informados",
    "data": {
      "id": "0000000000"
    }
  }
}
429Too Many Requests
JSON
{
  "error": {
    "message": "Limite de 3 tentativas de regerar PDF de atingido. Entre em contato com o suporte técnico."
  }
}