List an adoption's deposits
The deposits on this adoption, each one’s amount off its fee, and the adopter’s deposits toward an adoption that could be: outstanding, paid, and nothing of them given back. A deposit is taken over the counter on Sales, where an API key cannot reach. Needs read on Animals.
GET
https://{organization}.rescueconsole.com
/
api
/
animals
/
adoptions
/
{id}
/
deposits
List an adoption's deposits
curl --request GET \
--url https://{organization}.rescueconsole.com/api/animals/adoptions/{id}/deposits \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/animals/adoptions/{id}/deposits', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/animals/adoptions/{id}/deposits"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"applied": [
{
"id": "<string>",
"sale_id": "<string>",
"for_kind": "adoption",
"amount_cents": 123,
"note": "<string>",
"state": "waiting",
"in_hand": true,
"person": {
"id": "<string>",
"name": "<string>"
},
"animal": {
"id": "<string>",
"name": "<string>"
},
"taken_at": "2023-11-07T05:31:56Z",
"redeemed_at": "2023-11-07T05:31:56Z",
"redeemed_adoption_id": "<string>",
"redeemed_sale_id": "<string>",
"forfeited_at": "2023-11-07T05:31:56Z",
"forfeit_reason": "<string>",
"returned_at": "2023-11-07T05:31:56Z"
}
],
"on_file": [
{
"id": "<string>",
"sale_id": "<string>",
"for_kind": "adoption",
"amount_cents": 123,
"note": "<string>",
"state": "waiting",
"in_hand": true,
"person": {
"id": "<string>",
"name": "<string>"
},
"animal": {
"id": "<string>",
"name": "<string>"
},
"taken_at": "2023-11-07T05:31:56Z",
"redeemed_at": "2023-11-07T05:31:56Z",
"redeemed_adoption_id": "<string>",
"redeemed_sale_id": "<string>",
"forfeited_at": "2023-11-07T05:31:56Z",
"forfeit_reason": "<string>",
"returned_at": "2023-11-07T05:31:56Z"
}
]
}{
"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
⌘I
List an adoption's deposits
curl --request GET \
--url https://{organization}.rescueconsole.com/api/animals/adoptions/{id}/deposits \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/animals/adoptions/{id}/deposits', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/animals/adoptions/{id}/deposits"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"applied": [
{
"id": "<string>",
"sale_id": "<string>",
"for_kind": "adoption",
"amount_cents": 123,
"note": "<string>",
"state": "waiting",
"in_hand": true,
"person": {
"id": "<string>",
"name": "<string>"
},
"animal": {
"id": "<string>",
"name": "<string>"
},
"taken_at": "2023-11-07T05:31:56Z",
"redeemed_at": "2023-11-07T05:31:56Z",
"redeemed_adoption_id": "<string>",
"redeemed_sale_id": "<string>",
"forfeited_at": "2023-11-07T05:31:56Z",
"forfeit_reason": "<string>",
"returned_at": "2023-11-07T05:31:56Z"
}
],
"on_file": [
{
"id": "<string>",
"sale_id": "<string>",
"for_kind": "adoption",
"amount_cents": 123,
"note": "<string>",
"state": "waiting",
"in_hand": true,
"person": {
"id": "<string>",
"name": "<string>"
},
"animal": {
"id": "<string>",
"name": "<string>"
},
"taken_at": "2023-11-07T05:31:56Z",
"redeemed_at": "2023-11-07T05:31:56Z",
"redeemed_adoption_id": "<string>",
"redeemed_sale_id": "<string>",
"forfeited_at": "2023-11-07T05:31:56Z",
"forfeit_reason": "<string>",
"returned_at": "2023-11-07T05:31:56Z"
}
]
}{
"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)"
}
