# DonorPerfect

> Find and update donors in DonorPerfect, record gifts and pledges, and log contacts, flags and notes.

App · 24 actions. Web page: https://docs.lodol.com/docs/integrations/donorperfect

## Actions

### Add a flag

Set a flag on a donor, such as Alumni or Board Member.

**Inputs**

- Donor (`donor_id`, number, required): The donor to flag. At least 1.
- Flag (`flag`, text, required): The flag's code.

**Outputs**

- `data` (object): The response from DonorPerfect.

**Example output**

```json
{
  "data": {
    "success": true
  }
}
```

### Check a checkbox value

Check one value of a multi-choice checkbox field on a donor.

**Inputs**

- Donor (`donor_id`, number, required): The donor to update. At least 1.
- Field name (`field_name`, text, required): The checkbox field's name in DonorPerfect.
- Code (`code`, text, required): The code of the value to check.

**Outputs**

- `data` (object): The response from DonorPerfect.

**Example output**

```json
{
  "data": {
    "id": 1
  }
}
```

### Create a contact record

Log a contact with a donor, such as a call, a meeting or a task with a due date.

**Inputs**

- Donor (`donor_id`, number, required): The donor the contact is with. At least 1.
- Activity (`activity_code`, text): The activity, such as a call or a meeting.
- Mailing code (`mailing_code`, text): The mailing code.
- Assigned to (`by_whom`, text): Who the contact is assigned to.
- Contact date (`contact_date`, date): The date of the contact.
- Due date (`due_date`, date): When the follow-up is due.
- Due time (`due_time`, time): The time the follow-up is due.
- Completed date (`completed_date`, date): The date it was done.
- Comment (`comment`, text): Notes about the contact.
- Document path (`document_path`, text): A link or file path to a related document.

**Outputs**

- `data` (object): The response from DonorPerfect.

**Example output**

```json
{
  "data": {
    "id": 1
  }
}
```

### Create a donor

Add a donor (a person or an organization) to DonorPerfect.

**Inputs**

- First name (`first_name`, text): First name.
- Last name (`last_name`, text): Last name, or the organization's name.
- Middle name (`middle_name`, text): Middle name.
- Suffix (`suffix`, text): Name suffix, such as Jr.
- Title (`title`, text): Title, such as Mrs. or Dr.
- Salutation (`salutation`, text): How letters greet them, such as Dear Bob.
- Prof title (`prof_title`, text): Professional title.
- Opt line (`opt_line`, text): A second name line, such as a company name.
- Address (`address`, text): Street address.
- Address2 (`address2`, text): Second address line.
- City (`city`, text): City.
- State (`state`, text): State or province.
- Zip (`zip`, text): ZIP or postal code.
- Country (`country`, text): Country.
- Address type (`address_type`, text): The address type.
- Home phone (`home_phone`, text): Home phone.
- Business phone (`business_phone`, text): Business phone.
- Fax phone (`fax_phone`, text): Fax number.
- Mobile phone (`mobile_phone`, text): Mobile phone.
- Email (`email`, text): Email address.
- Org rec (`org_rec`, true/false): This record is an organization, not a person.
- Donor type (`donor_type`, text): The donor type, such as IN for individual or CO for corporate.
- Nomail (`nomail`, true/false): Don't send this donor mail.
- No mail reason (`nomail_reason`, text): Why the donor gets no mail.
- Narrative (`narrative`, text): Notes about the donor.
- Donor rcpt type (`donor_rcpt_type`, text): Whether the donor is receipted gift by gift or once for a period. One of: `individual`, `consolidated`.
- Receipt delivery (`receipt_delivery`, text): How the donor's receipts are sent. Empty sends them by letter. One of: `letter`, `email`, `letter_and_email` (Letter and email), `none`.

**Outputs**

- `data` (object): The response from DonorPerfect.

**Example output**

```json
{
  "data": {
    "id": 1
  }
}
```

### Create a gift

Record a gift from a donor, optionally as a payment on one of their pledges.

**Inputs**

- Donor (`donor_id`, number, required): The donor who gave the gift. At least 1.
- Gift date (`gift_date`, date, required): The date of the gift.
- Amount (`amount`, number, required): The amount of the gift. At least 0.
- GL code (`gl_code`, text): The general ledger code.
- Solicitation (`solicit_code`, text): The solicitation code.
- Sub-solicitation (`sub_solicit_code`, text): The sub-solicitation code.
- Campaign (`campaign`, text): The campaign.
- Gift type (`gift_type`, text): The gift type, such as cash or check.
- Reference (`reference`, text): A reference, such as a check or transaction number.
- Memory or honor (`memory_honor`, text): Whether the gift is in memory or in honor of someone.
- Honoree first name (`honoree_first_name`, text): The first name of the person the gift is in memory or honor of.
- Honoree last name (`honoree_last_name`, text): The last name of the person the gift is in memory or honor of.
- Fair market value (`fair_market_value`, number): The fair market value of anything the donor received. At least 0.
- Batch no (`batch_no`, number): The batch number. At least 1.
- Gift narrative (`gift_narrative`, text): Notes about the gift.
- Thank-you letter (`ty_letter_no`, text): The thank-you letter code.
- Pledge ID (`pledge_id`, number): The pledge this gift pays toward, by its gift ID. At least 1.
- Receipt (`receipt`, true/false): Mark the gift as receipted.
- Currency (`currency`, text): The currency code, such as USD or CAD, when the account uses several.
- Receipt delivery (`receipt_delivery`, text): How the receipt for this gift is sent. One of: `letter`, `email`, `letter_and_email` (Letter and email), `none`.

**Outputs**

- `data` (object): The response from DonorPerfect.

**Example output**

```json
{
  "data": {
    "id": 1
  }
}
```

### Create a pledge

Record a donor's pledge to give an amount on a schedule.

**Inputs**

- Donor (`donor_id`, number, required): The donor making the pledge. At least 1.
- Pledge date (`pledge_date`, date, required): The date of the pledge.
- Start date (`start_date`, date, required): The date the first payment is due.
- Total (`total`, number, required): The total pledged. Enter 0 for a pledge with no end. At least 0.
- Bill (`bill`, number, required): The amount of each payment. At least 0.
- Frequency (`frequency`, text, required): How often a payment is due. One of: `monthly`, `quarterly`, `semi_annually` (Semi annually), `annually`.
- Reminder (`reminder`, true/false): Send pledge reminders.
- Initial payment (`initial_payment`, true/false): The pledge includes an initial payment.
- GL code (`gl_code`, text): The general ledger code.
- Solicitation (`solicit_code`, text): The solicitation code.
- Sub-solicitation (`sub_solicit_code`, text): The sub-solicitation code.
- Campaign (`campaign`, text): The campaign.
- Gift narrative (`gift_narrative`, text): Notes about the pledge.
- Thank-you letter (`ty_letter_no`, text): The thank-you letter code.
- Receipt delivery (`receipt_delivery`, text): How receipts for this pledge are sent. One of: `letter`, `email`, `letter_and_email` (Letter and email), `none`.
- Currency (`currency`, text): The currency code, such as USD or CAD, when the account uses several.

**Outputs**

- `data` (object): The response from DonorPerfect.

**Example output**

```json
{
  "data": {
    "id": 1
  }
}
```

### Create an address

Add another address for a donor, such as a seasonal or business address.

**Inputs**

- Donor (`donor_id`, number, required): The donor the address is for. At least 1.
- Opt line (`opt_line`, text): A second name line, such as a company name.
- Address (`address`, text): Street address.
- Address2 (`address2`, text): Second address line.
- City (`city`, text): City.
- State (`state`, text): State or province.
- Zip (`zip`, text): ZIP or postal code.
- Country (`country`, text): Country.
- Address type (`address_type`, text): The address type.
- Getmail (`getmail`, true/false): Send mail to this address.
- First name (`first_name`, text): First name.
- Last name (`last_name`, text): Last name, or the organization's name.
- Middle name (`middle_name`, text): Middle name.
- Suffix (`suffix`, text): Name suffix, such as Jr.
- Title (`title`, text): Title, such as Mrs. or Dr.
- Salutation (`salutation`, text): How letters greet them, such as Dear Bob.
- Prof title (`prof_title`, text): Professional title.
- Home phone (`home_phone`, text): Home phone.
- Business phone (`business_phone`, text): Business phone.
- Fax phone (`fax_phone`, text): Fax number.
- Mobile phone (`mobile_phone`, text): Mobile phone.
- Email (`email`, text): Email address.
- Org rec (`org_rec`, true/false): This address is for an organization.

**Outputs**

- `data` (object): The response from DonorPerfect.

**Example output**

```json
{
  "data": {
    "id": 1
  }
}
```

### Create an other info record

Add a dated note to a donor's Other Info tab.

**Inputs**

- Donor (`donor_id`, number, required): The donor the record is for. At least 1.
- Other date (`other_date`, date): The record's date.
- Comments (`comments`, text): The note.

**Outputs**

- `data` (object): The response from DonorPerfect.

**Example output**

```json
{
  "data": {
    "id": 1
  }
}
```

### Get a donor

Get one donor's whole record.

**Inputs**

- Donor (`donor_id`, number, required): The donor's ID. At least 1.

**Outputs**

- `data` (object): The response from DonorPerfect.

**Example output**

```json
{
  "data": {
    "records": [
      {
        "address": "example",
        "address2": "example",
        "address_type": "example",
        "business_phone": "example",
        "city": "example",
        "country": "example",
        "created_date": "example",
        "donor_id": "example",
        "donor_type": "example",
        "email": "example",
        "first_name": "example",
        "gift_total": "example",
        "home_phone": "example",
        "last_name": "example",
        "middle_name": "example",
        "mobile_phone": "example",
        "modified_date": "example",
        "narrative": "example",
        "nomail": "example",
        "opt_line": "example",
        "org_rec": "example",
        "prof_title": "example",
        "salutation": "example",
        "state": "example",
        "suffix": "example",
        "title": "example",
        "zip": "example"
      }
    ]
  }
}
```

### Get a gift

Get one gift or pledge record.

**Inputs**

- Gift ID (`gift_id`, number, required): The gift's ID. At least 1.

**Outputs**

- `data` (object): The response from DonorPerfect.

**Example output**

```json
{
  "data": {
    "records": [
      {
        "amount": "example",
        "campaign": "example",
        "created_date": "example",
        "donor_id": "example",
        "gift_date": "example",
        "gift_id": "example",
        "gift_narrative": "example",
        "gift_type": "example",
        "gl_code": "example",
        "modified_date": "example",
        "plink": "example",
        "record_type": "example",
        "reference": "example",
        "solicit_code": "example",
        "sub_solicit_code": "example"
      }
    ]
  }
}
```

### Link two donors

Link two donors, such as spouses or an employee and an employer.

**Inputs**

- Donor (`donor_id`, number, required): The first donor. At least 1.
- Other donor (`other_donor_id`, number, required): The donor to link to. At least 1.
- Link type (`link_code`, text, required): The kind of link.

**Outputs**

- `data` (object): The response from DonorPerfect.

**Example output**

```json
{
  "data": {
    "id": 1
  }
}
```

### List a donor's addresses

List the extra addresses kept for a donor, such as a seasonal home.

**Inputs**

- Donor (`donor_id`, number, required): The donor whose addresses to list. At least 1.
- Limit (`limit`, number): How many records to return, newest first, up to 500. Empty returns 100. From 1 to 500.

**Outputs**

- `data` (object): The response from DonorPerfect.

**Example output**

```json
{
  "data": {
    "records": [
      {
        "address": "example",
        "address2": "example",
        "address_id": "example",
        "address_type": "example",
        "city": "example",
        "country": "example",
        "donor_id": "example",
        "email": "example",
        "getmail": "example",
        "opt_line": "example",
        "state": "example",
        "zip": "example"
      }
    ]
  }
}
```

### List a donor's flags

List the flags set on a donor.

**Inputs**

- Donor (`donor_id`, number, required): The donor whose flags to list. At least 1.
- Limit (`limit`, number): How many records to return, newest first, up to 500. Empty returns 100. From 1 to 500.

**Outputs**

- `data` (object): The response from DonorPerfect.

**Example output**

```json
{
  "data": {
    "records": [
      {
        "donor_id": "example",
        "flag": "example"
      }
    ]
  }
}
```

### List a donor's gifts

List every gift and pledge recorded for a donor.

**Inputs**

- Donor (`donor_id`, number, required): The donor whose gifts to list. At least 1.

**Outputs**

- `data` (object): The response from DonorPerfect.

**Example output**

```json
{
  "data": {
    "records": [
      {
        "amount": "example",
        "campaign": "example",
        "created_date": "example",
        "donor_id": "example",
        "gift_date": "example",
        "gift_id": "example",
        "gift_narrative": "example",
        "gift_type": "example",
        "gl_code": "example",
        "modified_date": "example",
        "plink": "example",
        "record_type": "example",
        "reference": "example",
        "solicit_code": "example",
        "sub_solicit_code": "example"
      }
    ]
  }
}
```

### List codes

List the codes set up for one of DonorPerfect's coded fields, such as GL codes or campaigns.

**Inputs**

- Field name (`field_name`, text, required): The coded field. One of: `GL_CODE` (Gl code), `SOLICIT_CODE` (Solicit code), `SUB_SOLICIT_CODE` (Sub solicit code), `CAMPAIGN`, `GIFT_TYPE` (Gift type), `DONOR_TYPE` (Donor type), `ADDRESS_TYPE` (Address type), `ACTIVITY_CODE` (Activity code), `MAILING_CODE` (Mailing code), `BY_WHOM` (By whom), and 5 more.
- Include inactive (`include_inactive`, true/false): Include inactive codes too.

**Outputs**

- `data` (object): The response from DonorPerfect.

**Example output**

```json
{
  "data": {
    "records": [
      {
        "code": "example",
        "code_id": "example",
        "description": "example",
        "field_name": "example",
        "inactive": "example"
      }
    ]
  }
}
```

### List contact records

List contact records (calls, meetings, tasks), newest first, for one donor or everyone.

**Inputs**

- Donor (`donor_id`, number): Only contact records for this donor. At least 1.
- Limit (`limit`, number): How many records to return, newest first, up to 500. Empty returns 100. From 1 to 500.

**Outputs**

- `data` (object): The response from DonorPerfect.

**Example output**

```json
{
  "data": {
    "records": [
      {
        "activity_code": "example",
        "by_whom": "example",
        "comment": "example",
        "completed_date": "example",
        "contact_date": "example",
        "contact_id": "example",
        "created_date": "example",
        "donor_id": "example",
        "due_date": "example",
        "mailing_code": "example"
      }
    ]
  }
}
```

### List donors

List donors, newest first, optionally only those added or changed since a time.

**Inputs**

- Changed since (`changed_since`, date and time): Only donors added or changed at or after this time.
- Limit (`limit`, number): How many records to return, newest first, up to 500. Empty returns 100. From 1 to 500.

**Outputs**

- `data` (object): The response from DonorPerfect.

**Example output**

```json
{
  "data": {
    "records": [
      {
        "address": "example",
        "address2": "example",
        "address_type": "example",
        "business_phone": "example",
        "city": "example",
        "country": "example",
        "created_date": "example",
        "donor_id": "example",
        "donor_type": "example",
        "email": "example",
        "first_name": "example",
        "gift_total": "example",
        "home_phone": "example",
        "last_name": "example",
        "middle_name": "example",
        "mobile_phone": "example",
        "modified_date": "example",
        "narrative": "example",
        "nomail": "example",
        "opt_line": "example",
        "org_rec": "example",
        "prof_title": "example",
        "salutation": "example",
        "state": "example",
        "suffix": "example",
        "title": "example",
        "zip": "example"
      }
    ]
  }
}
```

### List gifts

List gifts and pledges, newest first, by donor, type, gift date or when they changed.

**Inputs**

- Donor (`donor_id`, number): Only gifts from this donor. At least 1.
- Record type (`record_type`, text): Only records of this kind. One of: `gift`, `pledge`, `split_gift_main` (Split gift main), `soft_credit` (Soft credit).
- From date (`from_date`, date): Only gifts dated on or after this day.
- To date (`to_date`, date): Only gifts dated on or before this day.
- Changed since (`changed_since`, date and time): Only gifts added or changed at or after this time.
- Limit (`limit`, number): How many records to return, newest first, up to 500. Empty returns 100. From 1 to 500.

**Outputs**

- `data` (object): The response from DonorPerfect.

**Example output**

```json
{
  "data": {
    "records": [
      {
        "amount": "example",
        "campaign": "example",
        "created_date": "example",
        "donor_id": "example",
        "gift_date": "example",
        "gift_id": "example",
        "gift_narrative": "example",
        "gift_type": "example",
        "gl_code": "example",
        "modified_date": "example",
        "plink": "example",
        "record_type": "example",
        "reference": "example",
        "solicit_code": "example",
        "sub_solicit_code": "example"
      }
    ]
  }
}
```

### List tributes

List the account's tributes (in memory or in honor of someone).

**Inputs**

- Include inactive (`include_inactive`, true/false): Include inactive tributes too.

**Outputs**

- `data` (object): The response from DonorPerfect.

**Example output**

```json
{
  "data": {
    "records": [
      {
        "activeflg": "example",
        "name": "example",
        "tributeid": "example"
      }
    ]
  }
}
```

### Remove all flags

Remove every flag from a donor. DonorPerfect can't remove a single flag.

**Inputs**

- Donor (`donor_id`, number, required): The donor whose flags to remove. At least 1.

**Outputs**

- `data` (object): The response from DonorPerfect.

**Example output**

```json
{
  "data": {
    "success": true
  }
}
```

### Search donors

Find donors by ID, name, address or organization name. Use % as a wildcard, for example Sm%.

**Inputs**

- Donor (`donor_id`, number): Only the donor with this ID. At least 1.
- Last name (`last_name`, text): Last name, or the organization's name.
- First name (`first_name`, text): First name.
- Opt line (`opt_line`, text): Second name line, such as a company name.
- Address (`address`, text): Street address.
- City (`city`, text): City.
- State (`state`, text): State or province.
- Zip (`zip`, text): ZIP or postal code.
- Country (`country`, text): Country.

**Outputs**

- `data` (object): The response from DonorPerfect.

**Example output**

```json
{
  "data": {
    "records": [
      {
        "address": "example",
        "city": "example",
        "country": "example",
        "donor_id": "example",
        "email": "example",
        "first_name": "example",
        "last_name": "example",
        "opt_line": "example",
        "state": "example",
        "zip": "example"
      }
    ]
  }
}
```

### Search tributes

Find tributes by all or part of their name.

**Inputs**

- Keywords (`keywords`, text, required): All or part of the tribute's name.
- Include inactive (`include_inactive`, true/false): Include inactive tributes too.

**Outputs**

- `data` (object): The response from DonorPerfect.

**Example output**

```json
{
  "data": {
    "records": [
      {
        "activeflg": "example",
        "name": "example",
        "tributeid": "example"
      }
    ]
  }
}
```

### Set a custom field

Save a value in one of the account's own fields on a donor, gift, contact or other info record.

**Inputs**

- Record ID (`record_id`, number, required): The ID of the donor, gift, contact or other info record. At least 1.
- Field name (`field_name`, text, required): The custom field's name in DonorPerfect, such as SPOUSE_NAME.
- Value type (`value_type`, text, required): What kind of value the field holds. One of: `text`, `date`, `number`.
- Value (`value`, text, required): The value to save. A date is written YYYY-MM-DD.

**Outputs**

- `data` (object): The response from DonorPerfect.

**Example output**

```json
{
  "data": {
    "id": 1
  }
}
```

### Update a donor

Change a donor's details. Only the fields you fill in change; the rest are kept.

**Inputs**

- Donor (`donor_id`, number, required): The donor to update. At least 1.
- First name (`first_name`, text): First name.
- Last name (`last_name`, text): Last name, or the organization's name.
- Middle name (`middle_name`, text): Middle name.
- Suffix (`suffix`, text): Name suffix, such as Jr.
- Title (`title`, text): Title, such as Mrs. or Dr.
- Salutation (`salutation`, text): How letters greet them, such as Dear Bob.
- Prof title (`prof_title`, text): Professional title.
- Opt line (`opt_line`, text): A second name line, such as a company name.
- Address (`address`, text): Street address.
- Address2 (`address2`, text): Second address line.
- City (`city`, text): City.
- State (`state`, text): State or province.
- Zip (`zip`, text): ZIP or postal code.
- Country (`country`, text): Country.
- Address type (`address_type`, text): The address type.
- Home phone (`home_phone`, text): Home phone.
- Business phone (`business_phone`, text): Business phone.
- Fax phone (`fax_phone`, text): Fax number.
- Mobile phone (`mobile_phone`, text): Mobile phone.
- Email (`email`, text): Email address.
- Org rec (`org_rec`, true/false): This record is an organization, not a person.
- Donor type (`donor_type`, text): The donor type, such as IN for individual or CO for corporate.
- Nomail (`nomail`, true/false): Don't send this donor mail.
- No mail reason (`nomail_reason`, text): Why the donor gets no mail.
- Narrative (`narrative`, text): Notes about the donor.
- Donor rcpt type (`donor_rcpt_type`, text): Whether the donor is receipted gift by gift or once for a period. One of: `individual`, `consolidated`.
- Receipt delivery (`receipt_delivery`, text): How the donor's receipts are sent. Empty sends them by letter. One of: `letter`, `email`, `letter_and_email` (Letter and email), `none`.

**Outputs**

- `data` (object): The response from DonorPerfect.

**Example output**

```json
{
  "data": {
    "id": 1
  }
}
```
