curl --request GET \
--url https://{organization}.rescueconsole.com/api/animals/fee-schedules/suggest \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/animals/fee-schedules/suggest', 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/suggest"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"suggestion": {
"fee_schedule_id": "<string>",
"label": "<string>",
"amount_cents": 123,
"reason": "<string>"
},
"age_band": "<string>",
"species": "<string>",
"current_fee_cents": 123,
"list_cents": 123,
"discounts": [
{
"id": "<string>",
"label": "<string>",
"kind": "percent",
"value": 123,
"amount_off_cents": 123,
"reason": "<string>"
}
],
"net_cents": 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)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}Suggest an adoption fee
What your fee schedule and discounts suggest for one animal, with the reasons. Give animal_id for an animal on file, or species and dob_estimate for one not yet saved; one of the two is required. For an animal not yet saved only its species and age are known, so a discount that needs more does not apply. Discounts come off the matched rule’s amount, or off the animal’s current fee when no rule matches. Changes nothing. Needs read on Animals.
curl --request GET \
--url https://{organization}.rescueconsole.com/api/animals/fee-schedules/suggest \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/animals/fee-schedules/suggest', 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/suggest"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"suggestion": {
"fee_schedule_id": "<string>",
"label": "<string>",
"amount_cents": 123,
"reason": "<string>"
},
"age_band": "<string>",
"species": "<string>",
"current_fee_cents": 123,
"list_cents": 123,
"discounts": [
{
"id": "<string>",
"label": "<string>",
"kind": "percent",
"value": 123,
"amount_off_cents": 123,
"reason": "<string>"
}
],
"net_cents": 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)"
}{
"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
An animal's record ID.
Without animal_id: the species of an animal not yet saved.
dog, cat, rabbit, equine, small_mammal, large_mammal, bird, barnyard, fish, reptile, exotic Without animal_id: its date of birth, or the best estimate. Leave it out when unknown.
With animal_id: how many animals are going home together, for a discount that needs several. Wins over application_id.
1 <= x <= 10With animal_id: an application whose animals are going home together. Its number of animals is used.
Response
The suggestion.
The first active rule that matches, or null when none does.
Show child attributes
Show child attributes
The age group the animal is in, or unknown.
The animal's fee now. Null when it has none, or when the animal is not yet saved.
What the discounts came off: the matched rule's amount, else the current fee. Null when there is neither.
The discounts that applied, in order. One that took nothing off is not listed.
Show child attributes
Show child attributes
The fee after discounts. Null when list_cents is null.