Create Contribution
curl --request POST \
--url https://server.stage.overflow.co/api/v3/contributions \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-client-id: <api-key>' \
--data '
{
"donorId": "6710f34fd5061afeec3eab57",
"paymentMethodId": "6710f34fd5061afeec3eab57",
"amount": 50,
"campaignId": "6710f34fd5061afeec3eab57",
"subcampaignId": "6710f34fd5061afeec3eab57",
"anonymous": true,
"donorNotes": "Donor would like to give $1,000.00 to the playground project, and the …"
}
'import requests
url = "https://server.stage.overflow.co/api/v3/contributions"
payload = {
"donorId": "6710f34fd5061afeec3eab57",
"paymentMethodId": "6710f34fd5061afeec3eab57",
"amount": 50,
"campaignId": "6710f34fd5061afeec3eab57",
"subcampaignId": "6710f34fd5061afeec3eab57",
"anonymous": True,
"donorNotes": "Donor would like to give $1,000.00 to the playground project, and the …"
}
headers = {
"x-client-id": "<api-key>",
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-client-id': '<api-key>',
'x-api-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
donorId: '6710f34fd5061afeec3eab57',
paymentMethodId: '6710f34fd5061afeec3eab57',
amount: 50,
campaignId: '6710f34fd5061afeec3eab57',
subcampaignId: '6710f34fd5061afeec3eab57',
anonymous: true,
donorNotes: 'Donor would like to give $1,000.00 to the playground project, and the …'
})
};
fetch('https://server.stage.overflow.co/api/v3/contributions', 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://server.stage.overflow.co/api/v3/contributions",
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([
'donorId' => '6710f34fd5061afeec3eab57',
'paymentMethodId' => '6710f34fd5061afeec3eab57',
'amount' => 50,
'campaignId' => '6710f34fd5061afeec3eab57',
'subcampaignId' => '6710f34fd5061afeec3eab57',
'anonymous' => true,
'donorNotes' => 'Donor would like to give $1,000.00 to the playground project, and the …'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>",
"x-client-id: <api-key>"
],
]);
$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://server.stage.overflow.co/api/v3/contributions"
payload := strings.NewReader("{\n \"donorId\": \"6710f34fd5061afeec3eab57\",\n \"paymentMethodId\": \"6710f34fd5061afeec3eab57\",\n \"amount\": 50,\n \"campaignId\": \"6710f34fd5061afeec3eab57\",\n \"subcampaignId\": \"6710f34fd5061afeec3eab57\",\n \"anonymous\": true,\n \"donorNotes\": \"Donor would like to give $1,000.00 to the playground project, and the …\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-client-id", "<api-key>")
req.Header.Add("x-api-key", "<api-key>")
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://server.stage.overflow.co/api/v3/contributions")
.header("x-client-id", "<api-key>")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"donorId\": \"6710f34fd5061afeec3eab57\",\n \"paymentMethodId\": \"6710f34fd5061afeec3eab57\",\n \"amount\": 50,\n \"campaignId\": \"6710f34fd5061afeec3eab57\",\n \"subcampaignId\": \"6710f34fd5061afeec3eab57\",\n \"anonymous\": true,\n \"donorNotes\": \"Donor would like to give $1,000.00 to the playground project, and the …\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://server.stage.overflow.co/api/v3/contributions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-client-id"] = '<api-key>'
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"donorId\": \"6710f34fd5061afeec3eab57\",\n \"paymentMethodId\": \"6710f34fd5061afeec3eab57\",\n \"amount\": 50,\n \"campaignId\": \"6710f34fd5061afeec3eab57\",\n \"subcampaignId\": \"6710f34fd5061afeec3eab57\",\n \"anonymous\": true,\n \"donorNotes\": \"Donor would like to give $1,000.00 to the playground project, and the …\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "6710f34fd5061afeec3eab57",
"createdAt": "2025-01-01T00:00:00.000Z",
"updatedAt": "2025-01-01T00:00:00.000Z",
"type": "CASH",
"amount": 1000,
"contributionDate": "2025-01-01T00:00:00.000Z",
"contributionReceivedAt": "2023-11-07T05:31:56Z",
"liquidationInitiatedAt": null,
"receivedTokensAt": null,
"status": "PAID_OUT",
"stocks": {
"quantity": 2,
"tickers": [
"AAPL",
"MSFT"
]
},
"crypto": {
"quantity": 1,
"token": "BTC"
},
"frequency": "one-time",
"paymentMethod": {
"type": "Card",
"logoUrl": "https://example.com/logo.png",
"last4": "4242"
},
"depositId": "8810f34fd5061afeec3eab67",
"campaign": {
"id": "7710f34fd5061afeec3eab78",
"name": "Mission 2025"
},
"subcampaign": {
"id": "7710f34fd5061afeec3eab79",
"name": "Toy Drive"
},
"dedication": "In memory of Lois Lane",
"donorNotes": "Happy to support this cause!",
"donor": {
"id": "6710f34fd5061afeec3eab57",
"createdAt": "2025-01-01T00:00:00.000Z",
"updatedAt": "2025-01-01T00:00:00.000Z",
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"phone": "+1234567890",
"address": {
"line1": "123 Main St",
"line2": "Apt 1",
"city": "Anytown",
"state": "CA",
"zip": "12345"
},
"activeRecurringCount": 1,
"latestContributionDate": "2025-01-01T00:00:00.000",
"locationIds": [
"6710f34fd5061afeec3eab57"
],
"totalContributionsCount": 10
},
"givingLinkId": "6710f34fd5061afeec3eab60",
"pledgeId": "6710f34fd5061afeec3eab61",
"donorCoveredFees": false,
"subscriptionId": "6710f34fd5061afeec3eab57",
"anonymous": false,
"locationId": "6710f34fd5061afeec3eab58",
"metadata": {
"orderId": "12345",
"campaign": "spring-2026"
}
}
}Create Contribution
Creates a charge for the given payment method and donor
POST
/
api
/
v3
/
contributions
Create Contribution
curl --request POST \
--url https://server.stage.overflow.co/api/v3/contributions \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-client-id: <api-key>' \
--data '
{
"donorId": "6710f34fd5061afeec3eab57",
"paymentMethodId": "6710f34fd5061afeec3eab57",
"amount": 50,
"campaignId": "6710f34fd5061afeec3eab57",
"subcampaignId": "6710f34fd5061afeec3eab57",
"anonymous": true,
"donorNotes": "Donor would like to give $1,000.00 to the playground project, and the …"
}
'import requests
url = "https://server.stage.overflow.co/api/v3/contributions"
payload = {
"donorId": "6710f34fd5061afeec3eab57",
"paymentMethodId": "6710f34fd5061afeec3eab57",
"amount": 50,
"campaignId": "6710f34fd5061afeec3eab57",
"subcampaignId": "6710f34fd5061afeec3eab57",
"anonymous": True,
"donorNotes": "Donor would like to give $1,000.00 to the playground project, and the …"
}
headers = {
"x-client-id": "<api-key>",
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-client-id': '<api-key>',
'x-api-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
donorId: '6710f34fd5061afeec3eab57',
paymentMethodId: '6710f34fd5061afeec3eab57',
amount: 50,
campaignId: '6710f34fd5061afeec3eab57',
subcampaignId: '6710f34fd5061afeec3eab57',
anonymous: true,
donorNotes: 'Donor would like to give $1,000.00 to the playground project, and the …'
})
};
fetch('https://server.stage.overflow.co/api/v3/contributions', 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://server.stage.overflow.co/api/v3/contributions",
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([
'donorId' => '6710f34fd5061afeec3eab57',
'paymentMethodId' => '6710f34fd5061afeec3eab57',
'amount' => 50,
'campaignId' => '6710f34fd5061afeec3eab57',
'subcampaignId' => '6710f34fd5061afeec3eab57',
'anonymous' => true,
'donorNotes' => 'Donor would like to give $1,000.00 to the playground project, and the …'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>",
"x-client-id: <api-key>"
],
]);
$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://server.stage.overflow.co/api/v3/contributions"
payload := strings.NewReader("{\n \"donorId\": \"6710f34fd5061afeec3eab57\",\n \"paymentMethodId\": \"6710f34fd5061afeec3eab57\",\n \"amount\": 50,\n \"campaignId\": \"6710f34fd5061afeec3eab57\",\n \"subcampaignId\": \"6710f34fd5061afeec3eab57\",\n \"anonymous\": true,\n \"donorNotes\": \"Donor would like to give $1,000.00 to the playground project, and the …\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-client-id", "<api-key>")
req.Header.Add("x-api-key", "<api-key>")
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://server.stage.overflow.co/api/v3/contributions")
.header("x-client-id", "<api-key>")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"donorId\": \"6710f34fd5061afeec3eab57\",\n \"paymentMethodId\": \"6710f34fd5061afeec3eab57\",\n \"amount\": 50,\n \"campaignId\": \"6710f34fd5061afeec3eab57\",\n \"subcampaignId\": \"6710f34fd5061afeec3eab57\",\n \"anonymous\": true,\n \"donorNotes\": \"Donor would like to give $1,000.00 to the playground project, and the …\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://server.stage.overflow.co/api/v3/contributions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-client-id"] = '<api-key>'
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"donorId\": \"6710f34fd5061afeec3eab57\",\n \"paymentMethodId\": \"6710f34fd5061afeec3eab57\",\n \"amount\": 50,\n \"campaignId\": \"6710f34fd5061afeec3eab57\",\n \"subcampaignId\": \"6710f34fd5061afeec3eab57\",\n \"anonymous\": true,\n \"donorNotes\": \"Donor would like to give $1,000.00 to the playground project, and the …\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "6710f34fd5061afeec3eab57",
"createdAt": "2025-01-01T00:00:00.000Z",
"updatedAt": "2025-01-01T00:00:00.000Z",
"type": "CASH",
"amount": 1000,
"contributionDate": "2025-01-01T00:00:00.000Z",
"contributionReceivedAt": "2023-11-07T05:31:56Z",
"liquidationInitiatedAt": null,
"receivedTokensAt": null,
"status": "PAID_OUT",
"stocks": {
"quantity": 2,
"tickers": [
"AAPL",
"MSFT"
]
},
"crypto": {
"quantity": 1,
"token": "BTC"
},
"frequency": "one-time",
"paymentMethod": {
"type": "Card",
"logoUrl": "https://example.com/logo.png",
"last4": "4242"
},
"depositId": "8810f34fd5061afeec3eab67",
"campaign": {
"id": "7710f34fd5061afeec3eab78",
"name": "Mission 2025"
},
"subcampaign": {
"id": "7710f34fd5061afeec3eab79",
"name": "Toy Drive"
},
"dedication": "In memory of Lois Lane",
"donorNotes": "Happy to support this cause!",
"donor": {
"id": "6710f34fd5061afeec3eab57",
"createdAt": "2025-01-01T00:00:00.000Z",
"updatedAt": "2025-01-01T00:00:00.000Z",
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"phone": "+1234567890",
"address": {
"line1": "123 Main St",
"line2": "Apt 1",
"city": "Anytown",
"state": "CA",
"zip": "12345"
},
"activeRecurringCount": 1,
"latestContributionDate": "2025-01-01T00:00:00.000",
"locationIds": [
"6710f34fd5061afeec3eab57"
],
"totalContributionsCount": 10
},
"givingLinkId": "6710f34fd5061afeec3eab60",
"pledgeId": "6710f34fd5061afeec3eab61",
"donorCoveredFees": false,
"subscriptionId": "6710f34fd5061afeec3eab57",
"anonymous": false,
"locationId": "6710f34fd5061afeec3eab58",
"metadata": {
"orderId": "12345",
"campaign": "spring-2026"
}
}
}Authorizations
Client ID for API authentication
API Key for API authentication
Body
application/json
The ID of the donor
Example:
"6710f34fd5061afeec3eab57"
The ID of the payment method to charge
Example:
"6710f34fd5061afeec3eab57"
The amount to charge to the payment method
Required range:
x >= 1Example:
50
The ID of the campaign
Example:
"6710f34fd5061afeec3eab57"
The ID of the subcampaign
Example:
"6710f34fd5061afeec3eab57"
Indicates if the donation is anonymous
Example:
true
Notes from the donor
Required string length:
1 - 500Example:
"Donor would like to give $1,000.00 to the playground project, and the …"
Response
The contribution for the charge
Show child attributes
Show child attributes
Last modified on July 14, 2026
Was this page helpful?
⌘I