Owner outstanding debits
curl --request GET \
--url https://app.yampi.ai/api/v1/accounts/{account_id}/treasury/owners/{id}/debits \
--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/owners/{id}/debits', 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/owners/{id}/debits"
headers = {"api_access_token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"payload": {
"total": 123,
"debits": [
{
"id": 123,
"origin": "<string>",
"property": "<string>",
"period_start_on": "2023-12-25",
"amount": 123
}
]
}
}{
"description": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{}Treasury Owners
Owner outstanding debits
What the owner owes the agency right now, oldest first.
GET
/
api
/
v1
/
accounts
/
{account_id}
/
treasury
/
owners
/
{id}
/
debits
Owner outstanding debits
curl --request GET \
--url https://app.yampi.ai/api/v1/accounts/{account_id}/treasury/owners/{id}/debits \
--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/owners/{id}/debits', 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/owners/{id}/debits"
headers = {"api_access_token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"payload": {
"total": 123,
"debits": [
{
"id": 123,
"origin": "<string>",
"property": "<string>",
"period_start_on": "2023-12-25",
"amount": 123
}
]
}
}{
"description": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{}Was this page helpful?