Replace fee rules
curl --request PUT \
--url https://{organization}.rescueconsole.com/api/animals/fee-schedules \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"rules": [
{
"label": "Puppy",
"amount_cents": 45000,
"species": "dog",
"age_band": "baby"
},
{
"label": "Senior dog",
"amount_cents": 7500,
"species": "dog",
"age_band": "senior",
"notes": "Seniors for seniors."
},
{
"label": "Dog",
"amount_cents": 25000,
"species": "dog",
"age_band": null
},
{
"label": "Cat",
"amount_cents": 12500,
"species": "cat",
"age_band": null,
"is_active": true
}
]
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
rules: [
{label: 'Puppy', amount_cents: 45000, species: 'dog', age_band: 'baby'},
{
label: 'Senior dog',
amount_cents: 7500,
species: 'dog',
age_band: 'senior',
notes: 'Seniors for seniors.'
},
{label: 'Dog', amount_cents: 25000, species: 'dog', age_band: null},
{
label: 'Cat',
amount_cents: 12500,
species: 'cat',
age_band: null,
is_active: true
}
]
})
};
fetch('https://{organization}.rescueconsole.com/api/animals/fee-schedules', 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"
payload = { "rules": [
{
"label": "Puppy",
"amount_cents": 45000,
"species": "dog",
"age_band": "baby"
},
{
"label": "Senior dog",
"amount_cents": 7500,
"species": "dog",
"age_band": "senior",
"notes": "Seniors for seniors."
},
{
"label": "Dog",
"amount_cents": 25000,
"species": "dog",
"age_band": None
},
{
"label": "Cat",
"amount_cents": 12500,
"species": "cat",
"age_band": None,
"is_active": True
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"results": [
{
"id": "<string>",
"label": "<string>",
"amount_cents": 1,
"species": "<string>",
"age_band": "<string>",
"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)"
}{
"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
Replace fee rules
Replaces every rule with what you send, in the order you send it, and every rule gets a new ID. A rule with no age group matches every animal of its species, and one with no species and no age group matches every animal: an active rule like that with active rules for the same animals below it is refused (409), so put it last. At most 200 rules. Needs admin on Animals.
PUT
/
api
/
animals
/
fee-schedules
Replace fee rules
curl --request PUT \
--url https://{organization}.rescueconsole.com/api/animals/fee-schedules \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"rules": [
{
"label": "Puppy",
"amount_cents": 45000,
"species": "dog",
"age_band": "baby"
},
{
"label": "Senior dog",
"amount_cents": 7500,
"species": "dog",
"age_band": "senior",
"notes": "Seniors for seniors."
},
{
"label": "Dog",
"amount_cents": 25000,
"species": "dog",
"age_band": null
},
{
"label": "Cat",
"amount_cents": 12500,
"species": "cat",
"age_band": null,
"is_active": true
}
]
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
rules: [
{label: 'Puppy', amount_cents: 45000, species: 'dog', age_band: 'baby'},
{
label: 'Senior dog',
amount_cents: 7500,
species: 'dog',
age_band: 'senior',
notes: 'Seniors for seniors.'
},
{label: 'Dog', amount_cents: 25000, species: 'dog', age_band: null},
{
label: 'Cat',
amount_cents: 12500,
species: 'cat',
age_band: null,
is_active: true
}
]
})
};
fetch('https://{organization}.rescueconsole.com/api/animals/fee-schedules', 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"
payload = { "rules": [
{
"label": "Puppy",
"amount_cents": 45000,
"species": "dog",
"age_band": "baby"
},
{
"label": "Senior dog",
"amount_cents": 7500,
"species": "dog",
"age_band": "senior",
"notes": "Seniors for seniors."
},
{
"label": "Dog",
"amount_cents": 25000,
"species": "dog",
"age_band": None
},
{
"label": "Cat",
"amount_cents": 12500,
"species": "cat",
"age_band": None,
"is_active": True
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"results": [
{
"id": "<string>",
"label": "<string>",
"amount_cents": 1,
"species": "<string>",
"age_band": "<string>",
"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)"
}{
"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_.
Body
application/json
Every rule, in order. An empty list removes them all.
Maximum array length:
200Show child attributes
Show child attributes
Response
The rules, as they now are.
Show child attributes
Show child attributes