Create donor
Adds an individual or an organization as a new donor record.
POST https://cotlet.dev/api/v1/donorperfect/donors
write Confirm
Adds a record the way Add Individual or Add Organization does on the Search screen. An individual needs a last name, an organization needs its name. It returns the new donor_id. It does not check for duplicates: run search_donors first, and use Duplicate Maintenance under Utilities if one slips in. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| type enum required | enum | individual or organization. |
| last_name string | string | Required for an individual. |
| first_name string | string | First name of an individual. |
| organization string | string | Required for an organization. |
| email string | string | Email address. |
| phone string | string | Phone number. |
| address string | string | Street address. |
| city string | string | City. |
| state string | string | State or province. |
| zip string | string | ZIP or postal code. |
Request
curl -X POST https://cotlet.dev/api/v1/donorperfect/donors \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"type":"individual"}' result = client.call("donorperfect", "create_donor", {"type":"individual"}) const result = await cotlet.call('donorperfect', 'create_donor', {"type":"individual"}); cotlet call donorperfect create_donor --data '{"type":"individual"}' Example response
{
"donor_id": 52004,
"type": "individual",
"name": "Priya Nair",
"status": "created"
}