Request statement
curl --request POST \
--url https://sg.sandbox.api.reap.global/statements/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--header 'Reap-Version: <reap-version>' \
--data '
{
"type": "CARD_TRANSACTION_FEES",
"period": {
"from": "2025-03-01",
"to": "2025-03-31"
},
"fields": [
"occurredAt",
"transactionId",
"billAmount"
],
"format": "CSV"
}
'const options = {
method: 'POST',
headers: {
'Reap-Version': '<reap-version>',
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
type: 'CARD_TRANSACTION_FEES',
period: {from: '2025-03-01', to: '2025-03-31'},
fields: ['occurredAt', 'transactionId', 'billAmount'],
format: 'CSV'
})
};
fetch('https://sg.sandbox.api.reap.global/statements/', 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/"
payload = {
"type": "CARD_TRANSACTION_FEES",
"period": {
"from": "2025-03-01",
"to": "2025-03-31"
},
"fields": ["occurredAt", "transactionId", "billAmount"],
"format": "CSV"
}
headers = {
"Reap-Version": "<reap-version>",
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "CARD_TRANSACTION_FEES",
"origin": "CLIENT",
"status": "PENDING",
"period": {
"from": "2025-03-01",
"to": "2025-03-31"
},
"fields": [
"occurredAt",
"transactionId",
"billAmount"
],
"format": "CSV",
"version": "2025-02-14",
"rowCount": 1842,
"byteSize": 412034,
"dataAsOf": "2025-04-02T03:15:00Z",
"generatedAt": "2025-04-02T03:20:12Z",
"createdAt": "2025-04-02T03:20:00Z",
"updatedAt": "2025-04-02T03:20:12Z"
}{
"error": {
"code": "STATEMENT_UNKNOWN_FIELD",
"message": "<string>",
"detail": {}
}
}{
"error": {
"code": "STATEMENT_LIMIT_REACHED",
"message": "<string>",
"detail": {}
}
}Statements
Request statement
Requests a statement over a calendar-day period. The statement is returned PENDING and its file is produced asynchronously; a STATEMENT_STATUS_UPDATED webhook follows once it is GENERATED or FAILED. The period may span at most 31 days, must start on or after 2026-06-01, and must end on a day whose rows are final: yesterday from 10:00 UTC, otherwise the day before. At most 5 statements may be pending per project at once.
POST
/
statements
/
Request statement
curl --request POST \
--url https://sg.sandbox.api.reap.global/statements/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--header 'Reap-Version: <reap-version>' \
--data '
{
"type": "CARD_TRANSACTION_FEES",
"period": {
"from": "2025-03-01",
"to": "2025-03-31"
},
"fields": [
"occurredAt",
"transactionId",
"billAmount"
],
"format": "CSV"
}
'const options = {
method: 'POST',
headers: {
'Reap-Version': '<reap-version>',
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
type: 'CARD_TRANSACTION_FEES',
period: {from: '2025-03-01', to: '2025-03-31'},
fields: ['occurredAt', 'transactionId', 'billAmount'],
format: 'CSV'
})
};
fetch('https://sg.sandbox.api.reap.global/statements/', 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/"
payload = {
"type": "CARD_TRANSACTION_FEES",
"period": {
"from": "2025-03-01",
"to": "2025-03-31"
},
"fields": ["occurredAt", "transactionId", "billAmount"],
"format": "CSV"
}
headers = {
"Reap-Version": "<reap-version>",
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "CARD_TRANSACTION_FEES",
"origin": "CLIENT",
"status": "PENDING",
"period": {
"from": "2025-03-01",
"to": "2025-03-31"
},
"fields": [
"occurredAt",
"transactionId",
"billAmount"
],
"format": "CSV",
"version": "2025-02-14",
"rowCount": 1842,
"byteSize": 412034,
"dataAsOf": "2025-04-02T03:15:00Z",
"generatedAt": "2025-04-02T03:20:12Z",
"createdAt": "2025-04-02T03:20:00Z",
"updatedAt": "2025-04-02T03:20:12Z"
}{
"error": {
"code": "STATEMENT_UNKNOWN_FIELD",
"message": "<string>",
"detail": {}
}
}{
"error": {
"code": "STATEMENT_LIMIT_REACHED",
"message": "<string>",
"detail": {}
}
}Required scope: STATEMENTS_WRITE
Headers
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
Response
Statement resource