GET
/nfcom/{cnpj}/relatorioNFCom issuance report by CNPJ
Generates a summary NFCom issuance report for a specific CNPJ.
Production: https://api.otentecnologia.com.brSandbox: https://api.sandbox.otentecnologia.com.br
Parameters
from query | Start date of the issuance report period (Ex. 2018-11-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. 2018-12-01T23: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/nfcom/{cnpj}/relatorio' \
-H 'x-api-key: $OTEN_API_KEY' \
-H 'Content-Type: application/json'Responses
200OK
JSON
[
{
"situacao": "PROCESSANDO",
"quantidade": 19
},
{
"situacao": "CONCLUIDO",
"quantidade": 42
},
{
"situacao": "REJEITADO",
"quantidade": 138
},
{
"situacao": "CANCELADO",
"quantidade": 5
}
]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"
}
}