curl --request GET \
--url https://{organization}.rescueconsole.com/api/fundraising/donors/facets \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/fundraising/donors/facets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/fundraising/donors/facets"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"total": 123,
"facets": {
"giving": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
],
"lapsed_days": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
]
},
"donors": 123,
"givers": 123,
"never_given": 123,
"lifetime_cents": 123,
"lapsed": 123,
"lapsed_days": 123
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}Count donors
What all your donors have given, how many have gone quiet, and the counts behind the donor list’s filters. donors, givers, never_given, lifetime_cents and lapsed are about every donor you have, whatever the giving filter; lapsed is counted at the lapsed_days you send, a year unless you say. Needs read on Fundraising.
curl --request GET \
--url https://{organization}.rescueconsole.com/api/fundraising/donors/facets \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/fundraising/donors/facets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/fundraising/donors/facets"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"total": 123,
"facets": {
"giving": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
],
"lapsed_days": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
]
},
"donors": 123,
"givers": 123,
"never_given": 123,
"lifetime_cents": 123,
"lapsed": 123,
"lapsed_days": 123
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}Authorizations
An API key from Settings, API keys. It starts with rc_live_.
Query Parameters
given, never What counts as lapsed: given, but not in this many days.
x >= 1Response
The counts.
How many donors match the filters you sent.
Show child attributes
Show child attributes
Everyone who has given or is marked a donor.
How many of them have at least one completed gift.
How many are marked a donor and have never given.
Everything they have given in completed gifts, in whole cents.
How many have given, but not within lapsed_days.
The number of days lapsed was counted at.