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
| Name | Type | Description |
|---|---|---|
| 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 -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}' result = client.call("donorperfect", "send_thank_you_email", {"donor_id":1,"gift_id":1}) const result = await cotlet.call('donorperfect', 'send_thank_you_email', {"donor_id":1,"gift_id":1}); cotlet call donorperfect send_thank_you_email --data '{"donor_id":1,"gift_id":1}' Example response
{
"gift_id": 90417,
"donor_id": 48213,
"to": "dana.whitfield@example.org",
"status": "sent"
}