Add a wish list item
curl --request POST \
--url https://{organization}.rescueconsole.com/api/fundraising/wishlist \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Kitten milk replacer",
"description": "Powdered, any brand. For the bottle babies in foster.",
"category": "food",
"quantity_needed": 12,
"unit": "cans",
"priority": "urgent",
"estimated_unit_cost_cents": 1899,
"external_url": "https://shop.contoso.com/kitten-milk-replacer"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Kitten milk replacer',
description: 'Powdered, any brand. For the bottle babies in foster.',
category: 'food',
quantity_needed: 12,
unit: 'cans',
priority: 'urgent',
estimated_unit_cost_cents: 1899,
external_url: 'https://shop.contoso.com/kitten-milk-replacer'
})
};
fetch('https://{organization}.rescueconsole.com/api/fundraising/wishlist', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/fundraising/wishlist"
payload = {
"name": "Kitten milk replacer",
"description": "Powdered, any brand. For the bottle babies in foster.",
"category": "food",
"quantity_needed": 12,
"unit": "cans",
"priority": "urgent",
"estimated_unit_cost_cents": 1899,
"external_url": "https://shop.contoso.com/kitten-milk-replacer"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"item": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"category": "food",
"quantity_needed": 123,
"quantity_fulfilled": 123,
"quantity_remaining": 123,
"is_fulfilled": true,
"unit": "<string>",
"animal_id": "<string>",
"animal_name": "<string>",
"campaign_id": "<string>",
"campaign_name": "<string>",
"priority": "low",
"status": "open",
"closed_reason": "<string>",
"closed_at": "2023-11-07T05:31:56Z",
"estimated_unit_cost_cents": 123,
"estimated_remaining_cents": 123,
"external_url": "<string>",
"fulfillment_count": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"fulfillments": [
{
"id": "<string>",
"quantity": 123,
"donor_person_id": "<string>",
"donor_name": "<string>",
"donation_id": "<string>",
"received_on": "2023-12-25",
"notes": "<string>",
"created_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)"
}Wish list
Add a wish list item
Asks for something. Only the name is required. It answers 200 with the new item, not 201. Needs write on Fundraising.
POST
/
api
/
fundraising
/
wishlist
Add a wish list item
curl --request POST \
--url https://{organization}.rescueconsole.com/api/fundraising/wishlist \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Kitten milk replacer",
"description": "Powdered, any brand. For the bottle babies in foster.",
"category": "food",
"quantity_needed": 12,
"unit": "cans",
"priority": "urgent",
"estimated_unit_cost_cents": 1899,
"external_url": "https://shop.contoso.com/kitten-milk-replacer"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Kitten milk replacer',
description: 'Powdered, any brand. For the bottle babies in foster.',
category: 'food',
quantity_needed: 12,
unit: 'cans',
priority: 'urgent',
estimated_unit_cost_cents: 1899,
external_url: 'https://shop.contoso.com/kitten-milk-replacer'
})
};
fetch('https://{organization}.rescueconsole.com/api/fundraising/wishlist', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/fundraising/wishlist"
payload = {
"name": "Kitten milk replacer",
"description": "Powdered, any brand. For the bottle babies in foster.",
"category": "food",
"quantity_needed": 12,
"unit": "cans",
"priority": "urgent",
"estimated_unit_cost_cents": 1899,
"external_url": "https://shop.contoso.com/kitten-milk-replacer"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"item": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"category": "food",
"quantity_needed": 123,
"quantity_fulfilled": 123,
"quantity_remaining": 123,
"is_fulfilled": true,
"unit": "<string>",
"animal_id": "<string>",
"animal_name": "<string>",
"campaign_id": "<string>",
"campaign_name": "<string>",
"priority": "low",
"status": "open",
"closed_reason": "<string>",
"closed_at": "2023-11-07T05:31:56Z",
"estimated_unit_cost_cents": 123,
"estimated_remaining_cents": 123,
"external_url": "<string>",
"fulfillment_count": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"fulfillments": [
{
"id": "<string>",
"quantity": 123,
"donor_person_id": "<string>",
"donor_name": "<string>",
"donation_id": "<string>",
"received_on": "2023-12-25",
"notes": "<string>",
"created_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
An API key from Settings, API keys. It starts with rc_live_.
Body
application/json
Available options:
food, medical, supplies, equipment, enrichment, other Required range:
x >= 1What the quantity counts: bags, cans, boxes.
The animal it is for, when it is for one.
The campaign it belongs to, when it belongs to one.
Available options:
low, normal, urgent What one costs, in whole cents: 1899 is $18.99.
Required range:
x >= 0Where to buy it.