Oten Tecnologia
Oten Fiscal
Documentation
GET/nfse/{cnpj}/relatorio

Service invoice issuance report by CNPJ

Generates a summary NFS-e issuance report for a specific CNPJ. The informed period cannot exceed 31 days.

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

Parameters

from
query
Start date of the issuance report period (Ex. 2023-03-01T00:00:00). If omitted together with 'to', the API automatically filters the last 31 days.
to
query
End date of the issuance report period (Ex. 2023-03-10T23:59:59). If omitted together with 'from', the API automatically filters the last 31 days.

Request

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

Responses

200OK
JSON
[
  {
    "situacao": "REJEITADO",
    "quantidade": 17
  },
  {
    "situacao": "CONCLUIDO",
    "quantidade": 36
  }
]
400Bad Request
JSON
{
  "error": {
    "message": "A data final deve ser informada."
  }
}
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"
  }
}