Donor Details Input

Input representation of the donor details that’s associated with the gift transaction.

JSON Example 

1{
2  "donorType": "individual",
3  "id": "0015500000WO1ZiAAL",
4  "firstName": "Daniel",
5  "lastName": "Chavez",
6  "phone": "510-434-8920",
7  "email": "d.chavez@salesforce.com",
8  "shouldAutoCreateHousehold": true,
9  "address": [
10    {
11      "street": "123 Main Street",
12      "city": "Oakland",
13      "state": "CA",
14      "postalCode": "94610",
15      "country": "US"
16    }
17  ],
18  "accountCustomFields": [
19    {
20      "fieldName": "string",
21      "fieldValue": "string"
22    }
23  ]
24}

Properties 

NameTypeDescriptionRequired or OptionalAvailable Version
account​CustomFieldsCustom Field Details Input[]Account standard and custom fields of the donor.Optional60.0
addressAddress Details Input[]Address details of the donor.Optional60.0
donorTypeStringType of the donor. You can’t use the organizationName when the donorType is set to Individual. Similarly, don’t use firstName or lastName properties when the donorType is Organizational.Required60.0
emailStringEmail address of the donor.Optional60.0
firstNameStringFirst name of the donor.Required60.0
idStringID of the gift designation. This ID can also be passed as an externalID.Optional60.0
lastNameStringLast name of the donor.Required60.0
organization​NameStringOrganization name of the donor.Required60.0
phoneStringPhone number of the donor.Optional60.0
should​AutoCreate​HouseholdBooleanIndicates whether a Household Account, Party Relationship Group, and Account Contact Relationship should be created for the donorOptional68.0

Example externalID format:

1{
2  "externalId": {
3    "fieldName": "<EXTERNAL_ID_FIELD_NAME>",
4    "fieldValue": "<EXTERNAL_ID_FIELD_VALUE>"
5  }
6}