curl --request GET \
--url https://api.owem.com.br/v4/i/ledger/extract/{id} \
--header 'Authorization: <authorization>'{
"requestId": "edfaaae5-27c3-4930-8d86-f2506fdbac38",
"success": true,
"size": 1,
"data": {
"id": "bd17bf27-1b14-490d-bcd8-ab6e679010ff",
"status": "done",
"format": "pdf",
"accountId": "572471111234",
"userId": "usr_551862c8",
"requestedBy": "API - EMPRESA - 572471111234",
"startDate": 1770778800000,
"endDate": 1770951600000,
"options": {
"sections": {
"summary": true,
"monthlyTable": true,
"monthSummary": true,
"transactionTable": true
},
"columns": {
"dateTime": true,
"type": true,
"description": true,
"endToEndId": true,
"payerReceiver": true,
"payerBankInfo": true,
"grossAmount": true,
"fee": true,
"netAmount": true,
"status": true
}
},
"reportId": "20260214_572471111234_7367e833.pdf",
"reportUrl": "https://storage.googleapis.com/files.owem.com.br/ledger/extracts/572471111234/20260214_572471111234_7367e833.pdf?X-Goog-Algorithm=...",
"reportPath": "ledger/extracts/572471111234/20260214_572471111234_7367e833.pdf",
"sizeInMb": 2.134,
"errorMessage": null,
"createdAt": 1771077652000,
"updatedAt": 1771088470942
}
}
Consulta o status e detalhes de um extrato bancário gerado previamente. Retorna o link de download quando o processamento estiver concluído.
curl --request GET \
--url https://api.owem.com.br/v4/i/ledger/extract/{id} \
--header 'Authorization: <authorization>'{
"requestId": "edfaaae5-27c3-4930-8d86-f2506fdbac38",
"success": true,
"size": 1,
"data": {
"id": "bd17bf27-1b14-490d-bcd8-ab6e679010ff",
"status": "done",
"format": "pdf",
"accountId": "572471111234",
"userId": "usr_551862c8",
"requestedBy": "API - EMPRESA - 572471111234",
"startDate": 1770778800000,
"endDate": 1770951600000,
"options": {
"sections": {
"summary": true,
"monthlyTable": true,
"monthSummary": true,
"transactionTable": true
},
"columns": {
"dateTime": true,
"type": true,
"description": true,
"endToEndId": true,
"payerReceiver": true,
"payerBankInfo": true,
"grossAmount": true,
"fee": true,
"netAmount": true,
"status": true
}
},
"reportId": "20260214_572471111234_7367e833.pdf",
"reportUrl": "https://storage.googleapis.com/files.owem.com.br/ledger/extracts/572471111234/20260214_572471111234_7367e833.pdf?X-Goog-Algorithm=...",
"reportPath": "ledger/extracts/572471111234/20260214_572471111234_7367e833.pdf",
"sizeInMb": 2.134,
"errorMessage": null,
"createdAt": 1771077652000,
"updatedAt": 1771088470942
}
}
done, o campo reportUrl contém o link para download do arquivo.
Basic {Base64(API_KEY:API_SECRET)}ledger_extract:get na API Key.extractId).Mostrar data
new, processing, done ou failedpdf ou csvMostrar options
failed (null se sucesso).{
"requestId": "edfaaae5-27c3-4930-8d86-f2506fdbac38",
"success": true,
"size": 1,
"data": {
"id": "bd17bf27-1b14-490d-bcd8-ab6e679010ff",
"status": "done",
"format": "pdf",
"accountId": "572471111234",
"userId": "usr_551862c8",
"requestedBy": "API - EMPRESA - 572471111234",
"startDate": 1770778800000,
"endDate": 1770951600000,
"options": {
"sections": {
"summary": true,
"monthlyTable": true,
"monthSummary": true,
"transactionTable": true
},
"columns": {
"dateTime": true,
"type": true,
"description": true,
"endToEndId": true,
"payerReceiver": true,
"payerBankInfo": true,
"grossAmount": true,
"fee": true,
"netAmount": true,
"status": true
}
},
"reportId": "20260214_572471111234_7367e833.pdf",
"reportUrl": "https://storage.googleapis.com/files.owem.com.br/ledger/extracts/572471111234/20260214_572471111234_7367e833.pdf?X-Goog-Algorithm=...",
"reportPath": "ledger/extracts/572471111234/20260214_572471111234_7367e833.pdf",
"sizeInMb": 2.134,
"errorMessage": null,
"createdAt": 1771077652000,
"updatedAt": 1771088470942
}
}
| Status | Descrição |
|---|---|
new | Solicitação criada, aguardando processamento. |
processing | Extrato sendo gerado (consulta de dados, montagem do relatório). |
done | Extrato gerado com sucesso. reportUrl disponível para download. |
failed | Erro na geração. Consulte errorMessage para detalhes. |
| HTTP | Descrição |
|---|---|
| 200 | Sucesso |
| 401 | Credenciais inválidas |
| 403 | Sem permissão para visualizar o extrato |
| 404 | Extrato não encontrado |
| 429 | Rate limit excedido |
| 500 | Erro interno |
done ou failed. Não é necessário polling muito frequente.reportUrl é uma URL assinada com validade de 24 horas. Após esse
período, a URL expira e será necessário gerar um novo extrato.
Recomendamos fazer o download do arquivo (PDF/CSV) assim que o status for
done.Esta página foi útil?