List bank statements
curl --request GET \
--url https://app.yampi.ai/api/v1/accounts/{account_id}/treasury/bank_statements \
--header 'api_access_token: <api-key>'const options = {method: 'GET', headers: {api_access_token: '<api-key>'}};
fetch('https://app.yampi.ai/api/v1/accounts/{account_id}/treasury/bank_statements', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.yampi.ai/api/v1/accounts/{account_id}/treasury/bank_statements"
headers = {"api_access_token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"payload": [
{
"id": 123,
"reference": "<string>",
"bank_id": "<string>",
"bank_name": "<string>",
"format": "<string>",
"status": "<string>",
"period_start_on": "2023-12-25",
"period_end_on": "2023-12-25",
"credits_amount": 123,
"debits_amount": 123,
"lines_count": 123,
"auto_matched_count": 123,
"imported_by_id": 123,
"created_at": "2023-11-07T05:31:56Z",
"bank_account_id": 123,
"account_name": "<string>",
"opening_balance": 123
}
]
}{
"description": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{}Treasury Bank Statements
List bank statements
List the statements (extractos) of the collecting account that were imported, newest first.
GET
/
api
/
v1
/
accounts
/
{account_id}
/
treasury
/
bank_statements
List bank statements
curl --request GET \
--url https://app.yampi.ai/api/v1/accounts/{account_id}/treasury/bank_statements \
--header 'api_access_token: <api-key>'const options = {method: 'GET', headers: {api_access_token: '<api-key>'}};
fetch('https://app.yampi.ai/api/v1/accounts/{account_id}/treasury/bank_statements', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.yampi.ai/api/v1/accounts/{account_id}/treasury/bank_statements"
headers = {"api_access_token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"payload": [
{
"id": 123,
"reference": "<string>",
"bank_id": "<string>",
"bank_name": "<string>",
"format": "<string>",
"status": "<string>",
"period_start_on": "2023-12-25",
"period_end_on": "2023-12-25",
"credits_amount": 123,
"debits_amount": 123,
"lines_count": 123,
"auto_matched_count": 123,
"imported_by_id": 123,
"created_at": "2023-11-07T05:31:56Z",
"bank_account_id": 123,
"account_name": "<string>",
"opening_balance": 123
}
]
}{
"description": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{}Was this page helpful?