Generate all pending bank batches
curl --request POST \
--url https://app.yampi.ai/api/v1/accounts/{account_id}/treasury/bank_batches/bulk \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"run_on": "2023-12-25",
"description": "<string>"
}
'const options = {
method: 'POST',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({run_on: '2023-12-25', description: '<string>'})
};
fetch('https://app.yampi.ai/api/v1/accounts/{account_id}/treasury/bank_batches/bulk', 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_batches/bulk"
payload = {
"run_on": "2023-12-25",
"description": "<string>"
}
headers = {
"api_access_token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{
"description": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{}{}Treasury Bank Batches
Generate all pending bank batches
Generate one file per bank that has something waiting.
POST
/
api
/
v1
/
accounts
/
{account_id}
/
treasury
/
bank_batches
/
bulk
Generate all pending bank batches
curl --request POST \
--url https://app.yampi.ai/api/v1/accounts/{account_id}/treasury/bank_batches/bulk \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"run_on": "2023-12-25",
"description": "<string>"
}
'const options = {
method: 'POST',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({run_on: '2023-12-25', description: '<string>'})
};
fetch('https://app.yampi.ai/api/v1/accounts/{account_id}/treasury/bank_batches/bulk', 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_batches/bulk"
payload = {
"run_on": "2023-12-25",
"description": "<string>"
}
headers = {
"api_access_token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{
"description": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{}{}