Add gift

Saves one gift on a donor record with its codes.

POST https://cotlet.dev/api/v1/donorperfect/donors/{donor_id}/gifts

write Confirm

Saves one gift on the donor record, like Add Gift in the app. Codes are DonorPerfect codes from list_codes, not descriptions. If your organization has a SmartAction on new gifts, DonorPerfect runs it when the gift is saved. If the donor has an open pledge, DonorPerfect asks whether to apply the gift as a pledge payment; this tool answers no, so use apply_pledge_payment for pledge payments. It returns the gift_id. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: add_gift
NameTypeDescription
donor_id integer required integer Donor ID from search_donors.
date date required date Gift date.
amount number required number Gift amount.
gift_type string required string Gift type code from list_codes.
gl_code string string General ledger code from list_codes.
solicitation string string Solicitation code from list_codes.
sub_solicitation string string Sub solicitation code.
campaign string string Campaign code.
thank_you_letter string string Thank you letter code from list_codes.
reference string string Reference, such as a check number.
memo string string Comments saved with the gift.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/donorperfect/donors/48213/gifts \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"date":"2026-10-21","amount":250,"gift_type":"Check","gl_code":"GEN","solicitation":"FALLAPPEAL","thank_you_letter":"STANDARD","reference":"4471"}'
Python
result = client.call("donorperfect", "add_gift", {"donor_id":48213,"date":"2026-10-21","amount":250,"gift_type":"Check","gl_code":"GEN","solicitation":"FALLAPPEAL","thank_you_letter":"STANDARD","reference":"4471"})
Node.js
const result = await cotlet.call('donorperfect', 'add_gift', {"donor_id":48213,"date":"2026-10-21","amount":250,"gift_type":"Check","gl_code":"GEN","solicitation":"FALLAPPEAL","thank_you_letter":"STANDARD","reference":"4471"});
CLI
cotlet call donorperfect add_gift --data '{"donor_id":48213,"date":"2026-10-21","amount":250,"gift_type":"Check","gl_code":"GEN","solicitation":"FALLAPPEAL","thank_you_letter":"STANDARD","reference":"4471"}'

Example response

JSON

{
  "gift_id": 90417,
  "donor_id": 48213,
  "date": "2026-10-21",
  "amount": 250,
  "gift_type": "Check",
  "solicitation": "FALLAPPEAL",
  "thank_you_letter": "STANDARD",
  "status": "saved"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.