curl --request PATCH \
--url https://{organization}.rescueconsole.com/api/fundraising/donations/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"status": "refunded"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({status: 'refunded'})
};
fetch('https://{organization}.rescueconsole.com/api/fundraising/donations/{id}', 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}"
payload = { "status": "refunded" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"amount_cents": 123,
"currency": "<string>",
"donation_type": "one_time",
"status": "pending",
"donated_at": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"tenant_id": "<string>",
"person_id": "<string>",
"campaign_id": "<string>",
"recurring_schedule": {},
"payment_gateway": "stripe",
"gateway_reference": {},
"custom_fields": {}
}{
"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)"
}Change a donation
Send only what changes. The donor cannot be changed here. Send campaign_id: null to take a gift off its campaign. custom_fields are merged into what is there; gateway_reference replaces what is there. Moving a gift with a donor to completed starts any workflow your organization runs when a donor’s gift lands. Needs write on Fundraising.
curl --request PATCH \
--url https://{organization}.rescueconsole.com/api/fundraising/donations/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"status": "refunded"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({status: 'refunded'})
};
fetch('https://{organization}.rescueconsole.com/api/fundraising/donations/{id}', 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}"
payload = { "status": "refunded" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"amount_cents": 123,
"currency": "<string>",
"donation_type": "one_time",
"status": "pending",
"donated_at": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"tenant_id": "<string>",
"person_id": "<string>",
"campaign_id": "<string>",
"recurring_schedule": {},
"payment_gateway": "stripe",
"gateway_reference": {},
"custom_fields": {}
}{
"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
The amount in whole cents.
x >= 1Null takes the gift off its campaign.
one_time, recurring, post_adoption_bump, upsell How the money came.
stripe, paypal, square, zelle, cashapp, venmo, other, null Replaces the references there were.
Only completed gifts count towards a campaign, a donor's giving or the donors list.
pending, completed, failed, refunded The day of the gift, YYYY-MM-DD.
Merged into the values there are. A key that is not one of your fields is refused.
Response
The donation, as it now is.
The amount in whole cents: 5000 is $50.00.
one_time, recurring, post_adoption_bump, upsell Only completed gifts count towards a campaign, a donor's giving or the donors list.
pending, completed, failed, refunded The day of the gift, YYYY-MM-DD.
When it was recorded.
Your organization's ID.
The donor. Null for an anonymous gift.
How the money came.
stripe, paypal, square, zelle, cashapp, venmo, other, null