Get donor

The donor record: name, address, email and phone.

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

read

Opens the donor record and returns its demographic fields: name, address, email and phone. Use it to check a match from search_donors before you write to the record. It does not return gifts, pledges or contacts; list_gifts, list_pledges and list_contacts do.

Parameters

Parameters: get_donor
NameTypeDescription
donor_id integer required integer Donor ID from search_donors.

Request

cURL
curl https://cotlet.dev/api/v1/donorperfect/donors/1 \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("donorperfect", "get_donor", {"donor_id":1})
Node.js
const result = await cotlet.call('donorperfect', 'get_donor', {"donor_id":1});
CLI
cotlet call donorperfect get_donor --data '{"donor_id":1}'

Example response

JSON

{
  "donor_id": 48213,
  "type": "individual",
  "first_name": "Dana",
  "last_name": "Whitfield",
  "email": "dana.whitfield@example.org",
  "phone": "555-0142",
  "address": "120 Example Street",
  "city": "Portland",
  "state": "OR",
  "zip": "97201"
}

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.