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": "572471114780",
"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_572471114780_7367e833.pdf",
"reportUrl": "https://storage.googleapis.com/files.owem.com.br/ledger/extracts/572471114780/20260214_572471114780_7367e833.pdf?X-Goog-Algorithm=...",
"reportPath": "ledger/extracts/572471114780/20260214_572471114780_7367e833.pdf",
"sizeInMb": 2.134,
"errorMessage": null,
"createdAt": 1771077652000,
"updatedAt": 1771088470942
}
}
Check the status and details of a previously generated bank statement. Returns the download link when processing is complete.
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": "572471114780",
"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_572471114780_7367e833.pdf",
"reportUrl": "https://storage.googleapis.com/files.owem.com.br/ledger/extracts/572471114780/20260214_572471114780_7367e833.pdf?X-Goog-Algorithm=...",
"reportPath": "ledger/extracts/572471114780/20260214_572471114780_7367e833.pdf",
"sizeInMb": 2.134,
"errorMessage": null,
"createdAt": 1771077652000,
"updatedAt": 1771088470942
}
}
done, the reportUrl field contains the download link for the file.
Basic {Base64(API_KEY:API_SECRET)}ledger_extract:get scope on the API Key.extractId).Show data
new, processing, done or failedpdf or csvShow options
failed (null if successful).{
"requestId": "edfaaae5-27c3-4930-8d86-f2506fdbac38",
"success": true,
"size": 1,
"data": {
"id": "bd17bf27-1b14-490d-bcd8-ab6e679010ff",
"status": "done",
"format": "pdf",
"accountId": "572471114780",
"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_572471114780_7367e833.pdf",
"reportUrl": "https://storage.googleapis.com/files.owem.com.br/ledger/extracts/572471114780/20260214_572471114780_7367e833.pdf?X-Goog-Algorithm=...",
"reportPath": "ledger/extracts/572471114780/20260214_572471114780_7367e833.pdf",
"sizeInMb": 2.134,
"errorMessage": null,
"createdAt": 1771077652000,
"updatedAt": 1771088470942
}
}
| Status | Description |
|---|---|
new | Request created, awaiting processing. |
processing | Statement being generated (data query, report assembly). |
done | Statement generated successfully. reportUrl available for download. |
failed | Generation error. Check errorMessage for details. |
| HTTP | Description |
|---|---|
| 200 | Success |
| 401 | Invalid credentials |
| 403 | No permission to view the statement |
| 404 | Statement not found |
| 429 | Rate limit exceeded |
| 500 | Internal error |
done or
failed. Frequent polling is not necessary.reportUrl is a signed URL valid for 24 hours. After this period, the
URL expires and you will need to generate a new statement. We recommend
downloading the file (PDF/CSV) as soon as the status is done.Was this page helpful?