List fee discounts
curl --request GET \
--url https://{organization}.rescueconsole.com/api/animals/fee-schedules/discounts \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/animals/fee-schedules/discounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/animals/fee-schedules/discounts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"results": [
{
"id": "<string>",
"label": "<string>",
"kind": "percent",
"value": 123,
"conditions": {
"species": [
"<string>"
],
"age_bands": [
"<string>"
],
"traits": [
"<string>"
],
"min_days_in_care": 1,
"bonded_pair": true,
"min_animals": 3,
"min_fee_cents": 1,
"max_fee_cents": 1
},
"starts_on": "2023-12-25",
"ends_on": "2023-12-25",
"sort_order": 123,
"is_active": true,
"notes": "<string>"
}
]
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}Adoption fee schedules
List fee discounts
Your discounts, in order. Every active discount whose dates and conditions hold applies, in this order, each taken from what is left, and the fee never goes below zero. Needs read on Animals.
GET
/
api
/
animals
/
fee-schedules
/
discounts
List fee discounts
curl --request GET \
--url https://{organization}.rescueconsole.com/api/animals/fee-schedules/discounts \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/animals/fee-schedules/discounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/animals/fee-schedules/discounts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"results": [
{
"id": "<string>",
"label": "<string>",
"kind": "percent",
"value": 123,
"conditions": {
"species": [
"<string>"
],
"age_bands": [
"<string>"
],
"traits": [
"<string>"
],
"min_days_in_care": 1,
"bonded_pair": true,
"min_animals": 3,
"min_fee_cents": 1,
"max_fee_cents": 1
},
"starts_on": "2023-12-25",
"ends_on": "2023-12-25",
"sort_order": 123,
"is_active": true,
"notes": "<string>"
}
]
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}