curl --request POST \
--url https://server.stage.overflow.co/api/v3/contributions \
--header 'Content-Type: application/json' \
--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 …"
}
'{
"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": "[email protected]",
"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",
"totalContributionsCount": 10
},
"donorCoveredFees": false,
"subscriptionId": "6710f34fd5061afeec3eab57",
"anonymous": false
}
}Creates a charge for the given payment method and donor
curl --request POST \
--url https://server.stage.overflow.co/api/v3/contributions \
--header 'Content-Type: application/json' \
--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 …"
}
'{
"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": "[email protected]",
"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",
"totalContributionsCount": 10
},
"donorCoveredFees": false,
"subscriptionId": "6710f34fd5061afeec3eab57",
"anonymous": false
}
}Client ID for API authentication
The ID of the donor
"6710f34fd5061afeec3eab57"
The ID of the payment method to charge
"6710f34fd5061afeec3eab57"
The amount to charge to the payment method
x >= 150
The ID of the campaign
"6710f34fd5061afeec3eab57"
The ID of the subcampaign
"6710f34fd5061afeec3eab57"
Indicates if the donation is anonymous
true
Notes from the donor
1 - 500"Donor would like to give $1,000.00 to the playground project, and the …"
The contribution for the charge
Show child attributes
Contribution Id
"6710f34fd5061afeec3eab57"
Contribution created at
"2025-01-01T00:00:00.000Z"
Contribution updated at
"2025-01-01T00:00:00.000Z"
Asset type
CASH, CRYPTO, DAF, MANUAL_CASH, STOCK "CASH"
Contribution amount
1000
Contribution date
"2025-01-01T00:00:00.000Z"
Contribution received at
Liquidation initiated at date for stock contributions
null
Received tokens at date for crypto contributions
null
Contribution status
CHARGEBACK, CONFIRMED, FAILED, PAID_OUT, PENDING, PROCESSING, REFUNDED, VOIDED "PAID_OUT"
Gift frequency
one-time, recurring "one-time"
Contribution payment method information.
{
"type": "Card",
"logoUrl": "https://example.com/logo.png",
"last4": "4242"
}Deposit id for the contribution
"8810f34fd5061afeec3eab67"
Dedication for the contribution
"In memory of Lois Lane"
Notes from the donor
"Happy to support this cause!"
Donor details for the contribution
Show child attributes
Donor Id
"6710f34fd5061afeec3eab57"
Donor created at
"2025-01-01T00:00:00.000Z"
Donor updated at
"2025-01-01T00:00:00.000Z"
Donor first name
"John"
Donor last name
"Doe"
Donor email
Donor phone number in E.164 format
"+1234567890"
Donor address
Show child attributes
111{
"line1": "123 Main St",
"line2": "Apt 1",
"city": "Anytown",
"state": "CA",
"zip": "12345"
}The number of active recurring donations
1
The date of the latest contribution
"2025-01-01T00:00:00.000"
Total number of contributions made by the donor
10
Whether the donor covered fees.
false
Subscription id for contributions related to recurring gifts
"6710f34fd5061afeec3eab57"
Whether the donor wants the contribution to be anonymous
false
Was this page helpful?