Count donations
curl --request GET \
--url https://{organization}.rescueconsole.com/api/fundraising/donations/facets \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/fundraising/donations/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/donations/facets"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"total": 123,
"facets": {
"status": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
],
"donation_type": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
],
"campaign_id": [
{
"value": "<string>",
"label": "<string>",
"count": 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)"
}Donations
Count donations
How many donations match your filters, and how many have each status, each type and each campaign. Takes every filter the donation list takes. Each group is counted with its own filter left out, so the counts say what you would get by choosing that value instead. Only campaigns with matching gifts are listed, most gifts first, and gifts with no campaign are not counted in that group. Needs read on Fundraising.
GET
/
api
/
fundraising
/
donations
/
facets
Count donations
curl --request GET \
--url https://{organization}.rescueconsole.com/api/fundraising/donations/facets \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/fundraising/donations/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/donations/facets"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"total": 123,
"facets": {
"status": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
],
"donation_type": [
{
"value": "<string>",
"label": "<string>",
"count": 123
}
],
"campaign_id": [
{
"value": "<string>",
"label": "<string>",
"count": 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
Only completed gifts count towards a campaign, a donor's giving or the donors list.
Available options:
pending, completed, failed, refunded Available options:
one_time, recurring, post_adoption_bump, upsell