Add a one-time donation from the donor dashboard
Creates an additional donation from the donor portal — a logged-in donor adds a one-off gift on top of (or independent of) their existing commitments. Requires an authenticated Redis donor session.
curl --request POST \
--url https://api.gratona.com/v1/frontend/donor/dashboard/{client_id}/{program_id}/{session_id} \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.gratona.com/v1/frontend/donor/dashboard/{client_id}/{program_id}/{session_id}"
payload = {}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.gratona.com/v1/frontend/donor/dashboard/{client_id}/{program_id}/{session_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gratona.com/v1/frontend/donor/dashboard/{client_id}/{program_id}/{session_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.gratona.com/v1/frontend/donor/dashboard/{client_id}/{program_id}/{session_id}"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.gratona.com/v1/frontend/donor/dashboard/{client_id}/{program_id}/{session_id}")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gratona.com/v1/frontend/donor/dashboard/{client_id}/{program_id}/{session_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_body{
"status": "success",
"donation": {
"id": 983221,
"client_id": 207,
"donor_id": 12345,
"amount": 50,
"currency": "USD",
"designation": 4711,
"type": 1,
"method": 3,
"frequency": 5,
"one_time": true,
"duration": "2027-01-15",
"actual_charged_amount": 49.45,
"in_kind_category": "goods",
"result": "successful",
"transaction_id": "ch_3OqXXXXX",
"transaction_status": "succeeded",
"refunded": false,
"refunded_amount": 0,
"refundable": true,
"is_tax_deductible": true,
"tags": [
"matching-gift",
"year-end"
],
"notes": "Memo: in honor of John Doe",
"quickbooks_receipt_id": "qbo_5512",
"receipt_sent_at": "2026-01-02T08:30:00Z",
"acknowledged_at": "2026-01-03T10:15:00Z",
"acknowledged_by_user_id": 42,
"acknowledgement_source": "manual",
"acknowledgement_context_json": {},
"json_fields": {},
"batch_id": null,
"is_csv_import": false,
"created_at": "2026-01-02T08:25:00Z",
"updated_at": "2026-01-02T08:30:00Z",
"deleted_at": null
}
}{
"message": "Unauthorized",
"status": "error"
}{
"errors": {},
"status": "error",
"message": "The given data was invalid."
}Body
Donation form payload (amount, currency, designation/entity_id, payment method details). Field set is large and depends on payment method; see the donation form on the donor dashboard for the canonical contract.
The body is of type object.
Response
Donation processed.
"success"
An individual donation transaction. Donations may be one-time or part of a recurring Commitment. Despite the name, the designation column actually stores the recipient entity_id (it predates entities and was never renamed). Tax/refund/QuickBooks state lives on the donation row alongside the gateway transaction id.
Show child attributes
Show child attributes
curl --request POST \
--url https://api.gratona.com/v1/frontend/donor/dashboard/{client_id}/{program_id}/{session_id} \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.gratona.com/v1/frontend/donor/dashboard/{client_id}/{program_id}/{session_id}"
payload = {}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.gratona.com/v1/frontend/donor/dashboard/{client_id}/{program_id}/{session_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gratona.com/v1/frontend/donor/dashboard/{client_id}/{program_id}/{session_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.gratona.com/v1/frontend/donor/dashboard/{client_id}/{program_id}/{session_id}"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.gratona.com/v1/frontend/donor/dashboard/{client_id}/{program_id}/{session_id}")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gratona.com/v1/frontend/donor/dashboard/{client_id}/{program_id}/{session_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_body{
"status": "success",
"donation": {
"id": 983221,
"client_id": 207,
"donor_id": 12345,
"amount": 50,
"currency": "USD",
"designation": 4711,
"type": 1,
"method": 3,
"frequency": 5,
"one_time": true,
"duration": "2027-01-15",
"actual_charged_amount": 49.45,
"in_kind_category": "goods",
"result": "successful",
"transaction_id": "ch_3OqXXXXX",
"transaction_status": "succeeded",
"refunded": false,
"refunded_amount": 0,
"refundable": true,
"is_tax_deductible": true,
"tags": [
"matching-gift",
"year-end"
],
"notes": "Memo: in honor of John Doe",
"quickbooks_receipt_id": "qbo_5512",
"receipt_sent_at": "2026-01-02T08:30:00Z",
"acknowledged_at": "2026-01-03T10:15:00Z",
"acknowledged_by_user_id": 42,
"acknowledgement_source": "manual",
"acknowledgement_context_json": {},
"json_fields": {},
"batch_id": null,
"is_csv_import": false,
"created_at": "2026-01-02T08:25:00Z",
"updated_at": "2026-01-02T08:30:00Z",
"deleted_at": null
}
}{
"message": "Unauthorized",
"status": "error"
}{
"errors": {},
"status": "error",
"message": "The given data was invalid."
}