Add a note to a donation
curl --request POST \
--url https://{organization}.rescueconsole.com/api/fundraising/donations/{id}/notes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"body": "Given in memory of Rufus. Card sent to the family on 14 September."
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
body: JSON.stringify('Given in memory of Rufus. Card sent to the family on 14 September.')
})
};
fetch('https://{organization}.rescueconsole.com/api/fundraising/donations/{id}/notes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/fundraising/donations/{id}/notes"
payload = { "body": "Given in memory of Rufus. Card sent to the family on 14 September." }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"author_person_id": "<string>",
"body": "<string>",
"body_blocks": [
{}
],
"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)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}Donations
Add a note to a donation
The note’s author is the person who made the key. Needs write on Fundraising.
POST
/
api
/
fundraising
/
donations
/
{id}
/
notes
Add a note to a donation
curl --request POST \
--url https://{organization}.rescueconsole.com/api/fundraising/donations/{id}/notes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"body": "Given in memory of Rufus. Card sent to the family on 14 September."
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
body: JSON.stringify('Given in memory of Rufus. Card sent to the family on 14 September.')
})
};
fetch('https://{organization}.rescueconsole.com/api/fundraising/donations/{id}/notes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/fundraising/donations/{id}/notes"
payload = { "body": "Given in memory of Rufus. Card sent to the family on 14 September." }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"author_person_id": "<string>",
"body": "<string>",
"body_blocks": [
{}
],
"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)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}Authorizations
An API key from Settings, API keys. It starts with rc_live_.
Path Parameters
The donation's ID.
Body
application/json
Send body, or body_blocks for a note written as a document. With body_blocks, the text of the note is made from them and body is ignored.