Send thank-you email

Sends the thank-you email for one gift to the donor.

POST https://cotlet.dev/api/v1/donorperfect/donors/{donor_id}/thank-you-emails

write Confirm

Uses Thank Donor > Send an Email on the gift record. It works for donors whose delivery preference is Email or Email and Letter; for any other donor it stops and reports the preference. Letters are merged in Word with Instant Merge and are not part of this tool. It returns the address the email went to. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: send_thank_you_email
NameTypeDescription
donor_id integer required integer Donor ID from search_donors.
gift_id integer required integer Gift ID from list_receipts_due or list_gifts.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/donorperfect/donors/1/thank-you-emails \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"gift_id":1}'
Python
result = client.call("donorperfect", "send_thank_you_email", {"donor_id":1,"gift_id":1})
Node.js
const result = await cotlet.call('donorperfect', 'send_thank_you_email', {"donor_id":1,"gift_id":1});
CLI
cotlet call donorperfect send_thank_you_email --data '{"donor_id":1,"gift_id":1}'

Example response

JSON

{
  "gift_id": 90417,
  "donor_id": 48213,
  "to": "dana.whitfield@example.org",
  "status": "sent"
}

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.