List auxiliary accounts
curl --request GET \
--url https://app.yampi.ai/api/v1/accounts/{account_id}/treasury/auxiliary_accounts \
--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/auxiliary_accounts', 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/auxiliary_accounts"
headers = {"api_access_token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"parent_kinds": [
"<string>"
],
"payload": [
{
"id": 123,
"parent_kind": "<string>",
"income": true,
"code": "<string>",
"name": "<string>",
"active": true,
"movements": true,
"in_use": true
}
]
}{
"description": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{}{}Treasury Rules
List auxiliary accounts
List the agency’s own ledger auxiliary accounts, ordered by code, with the system account kinds they can hang from.
GET
/
api
/
v1
/
accounts
/
{account_id}
/
treasury
/
auxiliary_accounts
List auxiliary accounts
curl --request GET \
--url https://app.yampi.ai/api/v1/accounts/{account_id}/treasury/auxiliary_accounts \
--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/auxiliary_accounts', 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/auxiliary_accounts"
headers = {"api_access_token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"parent_kinds": [
"<string>"
],
"payload": [
{
"id": 123,
"parent_kind": "<string>",
"income": true,
"code": "<string>",
"name": "<string>",
"active": true,
"movements": true,
"in_use": true
}
]
}{
"description": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{}{}Was this page helpful?