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

Download the invoice PDF

Downloads the NFS-e PDF by ID. Notes: - Available only when the invoice status is CONCLUIDO or CANCELADO.

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 GET 'https://api.otentecnologia.com.br/nfse/pdf/{idNota}' \
  -H 'x-api-key: $OTEN_API_KEY' \
  -H 'Content-Type: application/json'

Responses

200OK
202Accepted
JSON
{
  "message": "pdf em processamento, aguarde alguns minutos e tente novamente."
}
400Bad Request
JSON
{
  "error": {
    "message": "Falha ao buscar NFSE, o ID utilizado é inválido",
    "data": {
      "id": "5f57da21e8bfcfbe1191"
    }
  }
}
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"
    }
  }
}