Download statement
curl --request GET \
--url https://sg.sandbox.api.reap.global/statements/{id}/download \
--header 'Authorization: Bearer <token>' \
--header 'Reap-Version: <reap-version>'const options = {
method: 'GET',
headers: {'Reap-Version': '<reap-version>', Authorization: 'Bearer <token>'}
};
fetch('https://sg.sandbox.api.reap.global/statements/{id}/download', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sg.sandbox.api.reap.global/statements/{id}/download"
headers = {
"Reap-Version": "<reap-version>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text){
"url": "<string>",
"expiresAt": "2025-04-02T03:25:12Z"
}{
"url": "<string>",
"expiresAt": "2025-04-02T03:25:12Z"
}{
"error": {
"code": "STATEMENT_NOT_FOUND",
"message": "<string>",
"detail": {}
}
}{
"error": {
"code": "STATEMENT_NOT_READY",
"message": "<string>",
"detail": {}
}
}Statements
Download statement
Serves a GENERATED statement file. Responds 302 to a short-lived URL that serves the file directly, so a plain HTTP client that follows redirects downloads it in one call; fetch that URL without your API credentials. Send Accept: application/json to receive the URL and its expiry as a body instead. A statement that is PENDING or FAILED has no file and responds STATEMENT_NOT_READY.
GET
/
statements
/
{id}
/
download
Download statement
curl --request GET \
--url https://sg.sandbox.api.reap.global/statements/{id}/download \
--header 'Authorization: Bearer <token>' \
--header 'Reap-Version: <reap-version>'const options = {
method: 'GET',
headers: {'Reap-Version': '<reap-version>', Authorization: 'Bearer <token>'}
};
fetch('https://sg.sandbox.api.reap.global/statements/{id}/download', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sg.sandbox.api.reap.global/statements/{id}/download"
headers = {
"Reap-Version": "<reap-version>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text){
"url": "<string>",
"expiresAt": "2025-04-02T03:25:12Z"
}{
"url": "<string>",
"expiresAt": "2025-04-02T03:25:12Z"
}{
"error": {
"code": "STATEMENT_NOT_FOUND",
"message": "<string>",
"detail": {}
}
}{
"error": {
"code": "STATEMENT_NOT_READY",
"message": "<string>",
"detail": {}
}
}Authorizations
API key as Bearer token
Headers
API version (YYYY-MM-DD)
Available options:
2025-02-14 Example:
"2025-02-14"
Path Parameters
Statement ID