# Virtuous

> Manage contacts, individuals, notes and tags, and record and look up gifts in Virtuous CRM.

App · 28 actions. Web page: https://docs.lodol.com/docs/integrations/virtuous

## Actions

### Add an email or phone

Add an email address, phone number or other contact method to an individual.

**Inputs**

- Individual ID (`individual_id`, number, required): The ID of the individual.
- Type (`type`, text, required): The kind of contact method, such as Home Email or Mobile Phone.
- Value (`value`, text, required): The email address or phone number.
- Opted in (`is_opted_in`, true/false): Whether the person agreed to be contacted this way.
- Make primary (`set_as_primary`, true/false): Whether this becomes the person's main method of its kind.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "canBePrimary": false,
    "createDateTimeUtc": "example",
    "createdByUser": "example",
    "id": 1,
    "isOptedIn": false,
    "isPrimary": false,
    "modifiedByUser": "example",
    "modifiedDateTimeUtc": "example",
    "type": "example",
    "value": "example"
  }
}
```

### Archive a contact

Archive a contact, hiding it from everyday lists.

**Inputs**

- Contact ID (`contact_id`, number, required): The ID of the contact to archive.

**Outputs**

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

**Example output**

```json
{
  "data": {}
}
```

### Create a contact

Create a household, organization or other contact with its main individual. It doesn't check for duplicates.

**Inputs**

- Contact type (`contact_type`, text, required): The kind of contact, such as Household or Organization.
- Name (`name`, text, required): The contact's name, such as The Smith Household or Acme Corp.
- Informal name (`informal_name`, text): A friendlier name to address them by.
- Description (`description`, text): A description of the contact.
- Website (`website`, text): The contact's website.
- Reference source (`reference_source`, text): The name of another system this contact comes from, used with Reference ID.
- Reference ID (`reference_id`, text): The contact's ID in that other system.
- First name (`first_name`, text): The first name of the contact's main individual.
- Last name (`last_name`, text): The last name of the contact's main individual.
- Street address (`address1`, text): The first line of the contact's address.
- Address line 2 (`address2`, text): The second line of the contact's address.
- City (`city`, text): The city of the contact's address.
- State (`state_code`, text): The state or region code, such as CA.
- Postal code (`postal`, text): The postal or ZIP code.
- Country (`country_code`, text): The two-letter country code, such as US.
- Private (`is_private`, true/false): Whether only some users can see the contact.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "address": {
      "address1": "example",
      "address2": "example",
      "canBePrimary": false,
      "city": "example",
      "country": "example",
      "endDay": 1,
      "endMonth": 1,
      "id": 1,
      "isPrimary": false,
      "label": "example",
      "postal": "example",
      "startDay": 1,
      "startMonth": 1,
      "state": "example"
    },
    "anniversaryDay": 1,
    "anniversaryMonth": 1,
    "anniversaryYear": 1,
    "contactGiftsUrl": "example",
    "contactImportantNotesUrl": "example",
    "contactIndividuals": [],
    "contactNotesUrl": "example",
    "contactPassthroughGiftsUrl": "example",
    "contactPlannedGiftsUrl": "example",
    "contactRecurringGiftsUrl": "example",
    "contactReferences": [],
    "contactRelationshipsUrl": "example",
    "contactTagsUrl": "example",
    "contactType": "example",
    "createDateTimeUtc": "example",
    "createdByUser": "example",
    "customCollections": [],
    "customFields": [],
    "description": "example",
    "giftAskAmount": "example",
    "giftAskType": "example",
    "id": 1,
    "informalName": "example",
    "isCurrentUserFollowing": false,
    "isPrivate": false,
    "lastGiftAmount": "example",
    "lastGiftDate": "example",
    "lifeToDateGiving": "example",
    "maritalStatus": "example",
    "mergedIntoContactId": 1,
    "modifiedByUser": "example",
    "modifiedDateTimeUtc": "example",
    "name": "example",
    "organizationGroups": [],
    "originSegment": "example",
    "originSegmentId": 1,
    "primaryAvatarUrl": "example",
    "tags": [],
    "website": "example",
    "yearToDateGiving": "example"
  }
}
```

### Create a note

Add a note to a contact.

**Inputs**

- Contact ID (`contact_id`, number, required): The ID of the contact.
- Note (`note`, text, required): The note's text.
- Type (`type`, text): The note's type exactly as set up in Virtuous, such as General.
- Date (`note_date`, date and time): When the conversation or event the note records happened.
- Important (`important`, true/false): Whether to mark the note as important.
- Private (`private`, true/false): Whether only you can see the note.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "contactId": 1,
    "createDateTimeUtc": "example",
    "createdByAvatarUrl": "example",
    "createdByUser": "example",
    "id": 1,
    "important": false,
    "isPrivate": false,
    "modifiedByUser": "example",
    "modifiedDateTimeUtc": "example",
    "note": "example",
    "noteDate": "example",
    "reminder": {
      "canComplete": false,
      "canCompleteWithNote": false,
      "completeActionName": "example",
      "completeUrl": "example",
      "contactAvatarUrl": "example",
      "contactDisplayName": "example",
      "contactId": 1,
      "contactViewUrl": "example",
      "description": "example",
      "dismissUrl": "example",
      "hasContact": false,
      "id": 1,
      "isPastDue": false,
      "isUnresolved": false,
      "message": "example",
      "owner": "example",
      "ownerAvatarUrl": "example",
      "reminderType": "example",
      "reminderTypeDisplayName": "example",
      "targetDate": "example",
      "targetResolutionDateUtc": "example",
      "taskStatus": "example",
      "taskStatusDisplayName": "example"
    },
    "type": "example"
  }
}
```

### Create an individual

Add a person to a contact.

**Inputs**

- Contact ID (`contact_id`, number, required): The ID of the contact the person belongs to.
- First name (`first_name`, text, required): The person's first name.
- Last name (`last_name`, text, required): The person's last name.
- Prefix (`prefix`, text): A title before the name, such as Dr.
- Middle name (`middle_name`, text): The person's middle name.
- Suffix (`suffix`, text): A suffix after the name, such as Jr.
- Gender (`gender`, text): The person's gender.
- Birth month (`birth_month`, number): The month the person was born, 1 to 12. From 1 to 12.
- Birth day (`birth_day`, number): The day of the month the person was born. From 1 to 31.
- Birth year (`birth_year`, number): The year the person was born. At least 1900.
- Passion (`passion`, text): What the person cares about most.
- Make primary (`set_as_primary`, true/false): Whether this person becomes the contact's main individual.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "approximateAge": 1,
    "avatarUrl": "example",
    "birthDate": "example",
    "birthDay": 1,
    "birthMonth": 1,
    "birthYear": 1,
    "canBePrimary": false,
    "canBeSecondary": false,
    "contactId": 1,
    "contactMethods": [],
    "createDateTimeUtc": "example",
    "createdByUser": "example",
    "customCollections": [],
    "customFields": [],
    "firstName": "example",
    "gender": "example",
    "id": 1,
    "isDeceased": false,
    "isPrimary": false,
    "isSecondary": false,
    "lastName": "example",
    "middleName": "example",
    "modifiedByUser": "example",
    "modifiedDateTimeUtc": "example",
    "passion": "example",
    "prefix": "example",
    "suffix": "example"
  }
}
```

### Delete a note

Delete a note. This can't be undone.

**Inputs**

- Note ID (`note_id`, number, required): The ID of the note to delete.

**Outputs**

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

**Example output**

```json
{
  "data": {}
}
```

### Delete an email or phone

Remove an email address, phone number or other contact method.

**Inputs**

- Contact method ID (`contact_method_id`, number, required): The ID of the contact method to delete.

**Outputs**

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

**Example output**

```json
{
  "data": {}
}
```

### Delete an individual

Remove a person from a contact. This can't be undone.

**Inputs**

- Individual ID (`individual_id`, number, required): The ID of the individual to delete.

**Outputs**

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

**Example output**

```json
{
  "data": {}
}
```

### Find a contact by email

Find the contact with an email address.

**Inputs**

- Email (`email`, text, required): The email address to look for.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "address": {
      "address1": "example",
      "address2": "example",
      "canBePrimary": false,
      "city": "example",
      "country": "example",
      "endDay": 1,
      "endMonth": 1,
      "id": 1,
      "isPrimary": false,
      "label": "example",
      "postal": "example",
      "startDay": 1,
      "startMonth": 1,
      "state": "example"
    },
    "anniversaryDay": 1,
    "anniversaryMonth": 1,
    "anniversaryYear": 1,
    "contactGiftsUrl": "example",
    "contactImportantNotesUrl": "example",
    "contactIndividuals": [],
    "contactNotesUrl": "example",
    "contactPassthroughGiftsUrl": "example",
    "contactPlannedGiftsUrl": "example",
    "contactRecurringGiftsUrl": "example",
    "contactReferences": [],
    "contactRelationshipsUrl": "example",
    "contactTagsUrl": "example",
    "contactType": "example",
    "createDateTimeUtc": "example",
    "createdByUser": "example",
    "customCollections": [],
    "customFields": [],
    "description": "example",
    "giftAskAmount": "example",
    "giftAskType": "example",
    "id": 1,
    "informalName": "example",
    "isPrivate": false,
    "lastGiftAmount": "example",
    "lastGiftDate": "example",
    "lifeToDateGiving": "example",
    "maritalStatus": "example",
    "mergedIntoContactId": 1,
    "modifiedByUser": "example",
    "modifiedDateTimeUtc": "example",
    "name": "example",
    "organizationGroups": [],
    "originSegment": "example",
    "originSegmentId": 1,
    "primaryAvatarUrl": "example",
    "tags": [],
    "website": "example",
    "yearToDateGiving": "example"
  }
}
```

### Get a contact

Get a contact with its individuals, address and giving totals.

**Inputs**

- Contact ID (`contact_id`, number, required): The ID of the contact.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "address": {
      "address1": "example",
      "address2": "example",
      "canBePrimary": false,
      "city": "example",
      "country": "example",
      "endDay": 1,
      "endMonth": 1,
      "id": 1,
      "isPrimary": false,
      "label": "example",
      "postal": "example",
      "startDay": 1,
      "startMonth": 1,
      "state": "example"
    },
    "anniversaryDay": 1,
    "anniversaryMonth": 1,
    "anniversaryYear": 1,
    "contactGiftsUrl": "example",
    "contactImportantNotesUrl": "example",
    "contactIndividuals": [],
    "contactNotesUrl": "example",
    "contactPassthroughGiftsUrl": "example",
    "contactPlannedGiftsUrl": "example",
    "contactRecurringGiftsUrl": "example",
    "contactReferences": [],
    "contactRelationshipsUrl": "example",
    "contactTagsUrl": "example",
    "contactType": "example",
    "createDateTimeUtc": "example",
    "createdByUser": "example",
    "customCollections": [],
    "customFields": [],
    "description": "example",
    "giftAskAmount": "example",
    "giftAskType": "example",
    "id": 1,
    "informalName": "example",
    "isCurrentUserFollowing": false,
    "isPrivate": false,
    "lastGiftAmount": "example",
    "lastGiftDate": "example",
    "lifeToDateGiving": "example",
    "maritalStatus": "example",
    "mergedIntoContactId": 1,
    "modifiedByUser": "example",
    "modifiedDateTimeUtc": "example",
    "name": "example",
    "organizationGroups": [],
    "originSegment": "example",
    "originSegmentId": 1,
    "primaryAvatarUrl": "example",
    "tags": [],
    "website": "example",
    "yearToDateGiving": "example"
  }
}
```

### Get a gift

Get a gift with its designations.

**Inputs**

- Gift ID (`gift_id`, number, required): The ID of the gift.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "acknowledgeeIndividualId": 1,
    "amount": 1.0,
    "amountFormatted": "example",
    "baseCurrencyCode": "example",
    "batch": "example",
    "cashAccountingCode": "example",
    "contactId": 1,
    "contactIndividualId": 1,
    "contactMembershipId": 1,
    "contactName": "example",
    "contactPassthroughId": 1,
    "contactPassthroughUrl": "example",
    "contactUrl": "example",
    "createDateTimeUtc": "example",
    "createdByUser": "example",
    "currencyCode": "example",
    "customFields": [],
    "exchangeRate": 1.0,
    "giftAskId": 1,
    "giftDate": "example",
    "giftDateFormatted": "example",
    "giftDesignations": [],
    "giftPremiums": [],
    "giftType": "example",
    "giftTypeFormatted": "example",
    "giftUrl": "example",
    "grant": "example",
    "grantId": 1,
    "grantUrl": "example",
    "id": 1,
    "isPrivate": false,
    "isTaxDeductible": false,
    "mediaOutlet": "example",
    "mediaOutletId": 1,
    "modifiedByUser": "example",
    "modifiedDateTimeUtc": "example",
    "notes": "example",
    "pledgePayments": [],
    "receiptDate": "example",
    "receiptDateFormatted": "example",
    "recurringGiftPayments": [],
    "segment": "example",
    "segmentCode": "example",
    "segmentId": 1,
    "segmentUrl": "example",
    "transactionId": "example",
    "transactionSource": "example",
    "tribute": "example",
    "tributeId": 1,
    "tributeType": "example"
  }
}
```

### Get an individual

Get one person on a contact.

**Inputs**

- Individual ID (`individual_id`, number, required): The ID of the individual.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "approximateAge": 1,
    "avatarUrl": "example",
    "birthDate": "example",
    "birthDay": 1,
    "birthMonth": 1,
    "birthYear": 1,
    "canBePrimary": false,
    "canBeSecondary": false,
    "contactId": 1,
    "contactMethods": [],
    "createDateTimeUtc": "example",
    "createdByUser": "example",
    "customCollections": [],
    "customFields": [],
    "firstName": "example",
    "gender": "example",
    "id": 1,
    "isDeceased": false,
    "isPrimary": false,
    "isSecondary": false,
    "lastName": "example",
    "middleName": "example",
    "modifiedByUser": "example",
    "modifiedDateTimeUtc": "example",
    "passion": "example",
    "prefix": "example",
    "suffix": "example"
  }
}
```

### Get the current organization

Get the organization the API key belongs to.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "currentUserTimeZone": "example",
    "isAdministrator": false,
    "isEnabled": false,
    "organizationCulture": "example",
    "organizationName": "example",
    "organizationTimeZone": "example",
    "organizationUserId": 1.0
  }
}
```

### List a contact's gifts

List a contact's gifts, newest first.

**Inputs**

- Contact ID (`contact_id`, number, required): The ID of the contact.
- Skip (`skip`, number): How many gifts to skip, for paging. Starts at 0. At least 0.
- Take (`take`, number): How many gifts to return, at most 1000. From 1 to 1000.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "list": [],
    "total": 1
  }
}
```

### List a contact's individuals

List the people who belong to a contact.

**Inputs**

- Contact ID (`contact_id`, number, required): The ID of the contact.

**Outputs**

- `data` (list): The response from Virtuous.

**Example output**

```json
{
  "data": []
}
```

### List a contact's notes

List the notes on a contact, newest first.

**Inputs**

- Contact ID (`contact_id`, number, required): The ID of the contact.
- Skip (`skip`, number): How many notes to skip, for paging. Starts at 0. At least 0.
- Take (`take`, number): How many notes to return, at most 1000. From 1 to 1000.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "list": [],
    "total": 1
  }
}
```

### List a contact's tags

List the tags on a contact.

**Inputs**

- Contact ID (`contact_id`, number, required): The ID of the contact.
- Skip (`skip`, number): How many tags to skip, for paging. Starts at 0. At least 0.
- Take (`take`, number): How many tags to return, at most 1000. From 1 to 1000.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "list": [],
    "total": 1
  }
}
```

### List contact method types

List the kinds of email address and phone number your organization records, such as Home Email.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Virtuous.

**Example output**

```json
{
  "data": []
}
```

### List contact types

List the kinds of contact your organization uses, such as Household.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Virtuous.

**Example output**

```json
{
  "data": []
}
```

### List recent gifts

List the most recently entered gifts across all contacts.

**Inputs**

- Skip (`skip`, number): How many gifts to skip, for paging. Starts at 0. At least 0.
- Take (`take`, number): How many gifts to return, at most 1000. From 1 to 1000.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "list": [],
    "total": 1
  }
}
```

### List tags

List the tags contacts can have.

**Inputs**

- Skip (`skip`, number): How many tags to skip, for paging. Starts at 0. At least 0.
- Take (`take`, number): How many tags to return, at most 1000. From 1 to 1000.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "list": [],
    "total": 1
  }
}
```

### Record a gift

Send a gift into Virtuous's gift import, which matches it to a contact, or creates one, for review.

**Inputs**

- Source (`transaction_source`, text, required): The name of the system the gift came from, such as your donation form.
- Transaction ID (`transaction_id`, text, required): The gift's ID in that system, so the same gift isn't imported twice.
- Amount (`amount`, number, required): The amount given.
- Gift date (`gift_date`, date, required): The day the gift was given.
- Gift type (`gift_type`, text): How it was given, such as Cash, Check or Credit.
- Contact ID (`contact_id`, number): The ID of the giver's contact, if you know it.
- Contact name (`contact_name`, text): The giver's name, for matching or creating the contact.
- First name (`first_name`, text): The giver's first name.
- Last name (`last_name`, text): The giver's last name.
- Email (`email`, text): The giver's email address.
- Phone (`phone`, text): The giver's phone number.
- Segment code (`segment`, text): The code of the segment (appeal) the gift came from.
- Notes (`notes`, text): Notes on the gift.

**Outputs**

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

**Example output**

```json
{
  "data": {}
}
```

### Remove a tag from a contact

Take a tag off a contact.

**Inputs**

- Contact tag ID (`contact_tag_id`, number, required): The ID of the tag on the contact, from List a contact's tags or Tag a contact.

**Outputs**

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

**Example output**

```json
{
  "data": {}
}
```

### Search contacts

Find contacts whose name, email, phone or address matches some text.

**Inputs**

- Search (`search`, text, required): The text to look for.
- Skip (`skip`, number): How many contacts to skip, for paging. Starts at 0. At least 0.
- Take (`take`, number): How many contacts to return, at most 1000. From 1 to 1000.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "list": [],
    "total": 1.0
  }
}
```

### Tag a contact

Add a tag to a contact.

**Inputs**

- Contact ID (`contact_id`, number, required): The ID of the contact.
- Tag (`tag_id`, number, required): The tag to add.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "contactTagId": 1,
    "contactsByTagUrl": "example",
    "createDateTimeUtc": "example",
    "createdByUser": "example",
    "modifiedByUser": "example",
    "modifiedDateTimeUtc": "example",
    "name": "example",
    "tagId": 1,
    "total": 1
  }
}
```

### Unarchive a contact

Bring an archived contact back.

**Inputs**

- Contact ID (`contact_id`, number, required): The ID of the contact to unarchive.

**Outputs**

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

**Example output**

```json
{
  "data": {}
}
```

### Update a contact

Change a contact's details. Fields you leave empty keep their current values.

**Inputs**

- Contact ID (`contact_id`, number, required): The ID of the contact to update.
- Contact type (`contact_type`, text): The kind of contact, such as Household or Organization.
- Name (`name`, text): The contact's name.
- Informal name (`informal_name`, text): A friendlier name to address them by.
- Description (`description`, text): A description of the contact.
- Website (`website`, text): The contact's website.
- Private (`is_private`, true/false): Whether only some users can see the contact.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "address": {
      "address1": "example",
      "address2": "example",
      "canBePrimary": false,
      "city": "example",
      "country": "example",
      "endDay": 1,
      "endMonth": 1,
      "id": 1,
      "isPrimary": false,
      "label": "example",
      "postal": "example",
      "startDay": 1,
      "startMonth": 1,
      "state": "example"
    },
    "anniversaryDay": 1,
    "anniversaryMonth": 1,
    "anniversaryYear": 1,
    "contactGiftsUrl": "example",
    "contactImportantNotesUrl": "example",
    "contactIndividuals": [],
    "contactNotesUrl": "example",
    "contactPassthroughGiftsUrl": "example",
    "contactPlannedGiftsUrl": "example",
    "contactRecurringGiftsUrl": "example",
    "contactReferences": [],
    "contactRelationshipsUrl": "example",
    "contactTagsUrl": "example",
    "contactType": "example",
    "createDateTimeUtc": "example",
    "createdByUser": "example",
    "customCollections": [],
    "customFields": [],
    "description": "example",
    "giftAskAmount": "example",
    "giftAskType": "example",
    "id": 1,
    "informalName": "example",
    "isCurrentUserFollowing": false,
    "isPrivate": false,
    "lastGiftAmount": "example",
    "lastGiftDate": "example",
    "lifeToDateGiving": "example",
    "maritalStatus": "example",
    "mergedIntoContactId": 1,
    "modifiedByUser": "example",
    "modifiedDateTimeUtc": "example",
    "name": "example",
    "organizationGroups": [],
    "originSegment": "example",
    "originSegmentId": 1,
    "primaryAvatarUrl": "example",
    "tags": [],
    "website": "example",
    "yearToDateGiving": "example"
  }
}
```

### Update an individual

Change a person's details. Fields you leave empty keep their current values.

**Inputs**

- Individual ID (`individual_id`, number, required): The ID of the individual to update.
- First name (`first_name`, text): The person's first name.
- Last name (`last_name`, text): The person's last name.
- Prefix (`prefix`, text): A title before the name, such as Dr.
- Middle name (`middle_name`, text): The person's middle name.
- Suffix (`suffix`, text): A suffix after the name, such as Jr.
- Gender (`gender`, text): The person's gender.
- Birth month (`birth_month`, number): The month the person was born, 1 to 12. From 1 to 12.
- Birth day (`birth_day`, number): The day of the month the person was born. From 1 to 31.
- Birth year (`birth_year`, number): The year the person was born. At least 1900.
- Passion (`passion`, text): What the person cares about most.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "approximateAge": 1,
    "avatarUrl": "example",
    "birthDate": "example",
    "birthDay": 1,
    "birthMonth": 1,
    "birthYear": 1,
    "canBePrimary": false,
    "canBeSecondary": false,
    "contactId": 1,
    "contactMethods": [],
    "createDateTimeUtc": "example",
    "createdByUser": "example",
    "customCollections": [],
    "customFields": [],
    "firstName": "example",
    "gender": "example",
    "id": 1,
    "isDeceased": false,
    "isPrimary": false,
    "isSecondary": false,
    "lastName": "example",
    "middleName": "example",
    "modifiedByUser": "example",
    "modifiedDateTimeUtc": "example",
    "passion": "example",
    "prefix": "example",
    "suffix": "example"
  }
}
```
