Create Gift Request Input

Input representation of the data required to create a new gift. This request body accepts both standard and custom fields for donor account and gift transaction. If a standard field does not appear in the request body, you can include it in the customFields section for the relevant object.

JSON Example 

1{
2  "gifts": [
3    {
4      "amount": 150.25,
5      "currencyIsoCode": "USD",
6      "receivedDate": "2024-07-06",
7      "donorCoverAmount": 0.25,
8      "transactionStatus": "Unpaid",
9      "commitmentId": "00x324303243fsfd",
10      "paymentIdentifier": "1234",
11      "gatewayTransactionFee": 0.75,
12      "processorTransactionFee": 0.45,
13      "processorReference": "cls-1247586928747",
14      "gatewayReference": "102656693ac3ca6e0cdafbfe89ab99",
15      "lastGatewayResponseCode": "invalid_cvc",
16      "lastGatewayErrorMessage": "The card's security code is invalid. Check the card's security code or use a different card.",
17      "lastGatewayProcessedDateTime": "2023-07-06T21:57:51Z",
18      "campaign": {
19        "id": "701y0030d0zk6t06f4"
20      },
21      "outreachSourceCode": {
22        "id": "0gx000d0d0d0FD",
23        "sourceCode": "AnimalEmailCampaign2023"
24      },
25      "donor": {
26        "donorType": "individual",
27        "id": "0015500000WO1ZixxL",
28        "firstName": "Daniel",
29        "lastName": "Chavez",
30        "phone": "510-432-1234",
31        "email": "example@salesforce.com",
32        "address": [
33          {
34            "street": "123 Main Street",
35            "city": "Oakland",
36            "state": "CA",
37            "postalCode": "94610",
38            "country": "US"
39          }
40        ],
41        "accountCustomFields": [
42          {
43            "fieldName": "string",
44            "fieldValue": "string"
45          }
46        ]
47      },
48      "paymentInstrument": {
49        "type": "credit card",
50        "accountHolderName": "Daniel Chavez",
51        "expiryMonth": "10",
52        "expiryYear": "2026",
53        "last4": "4321",
54        "cardBrand": "visa",
55        "bankName": "chase",
56        "digitalWalletProvider": "Diner's Club",
57        "bankAccountHolderType": "primary",
58        "bankAccountType": "checking",
59        "bankAccountNumber": "123456",
60        "bankCode": "HBUK",
61        "gatewayName": "Gateway",
62        "processorName": "OptiSynth",
63        "processorPaymentReference": "string",
64        "gatewayReference": "string"
65      },
66      "designations": [
67        {
68          "designationId": "0gd0030f0303024",
69          "percent": 10,
70          "amount": 150.25
71        }
72      ],
73      "giftTransactionCustomFields": [
74        {
75          "fieldName": "string",
76          "fieldValue": "string"
77        }
78      ]
79    }
80  ]
81}

Properties 

NameTypeDescriptionRequired or OptionalAvailable Version
accountCustomFieldsCustom Field Details Input[]Custom fields for the donor account. The accountCustomFields property aslo accepts the standard fields for the donor account.Optional60.0
amountDoubleOriginal amount of the gift transaction.Required60.0
campaignCampaign Details InputCampaign that’s associated with the gift transaction.Optional60.0
commitmentIdStringGift commitment ID that’s associated with the gift transaction.Optional60.0
currency​IsoCodeStringISO code of the currency.Optional60.0
designationsDesignation Details Input[]Designations that are associated with the gift transaction.Optional60.0
donorDonor Details InputDonor details that are associated with the gift transaction.Required60.0
donorCover​AmountDoubleAmount that the donor added to their gift to cover fees.Optional60.0
gateway​ReferenceStringReference of the transaction to which the gateway is assigned.Optional60.0
gateway​TransactionFeeDoubleTransaction fees charged by the gateway.Optional60.0
giftTransaction​CustomFieldsCustom Field Details Input[]Custom fields for the gift transaction. The giftTransactionCustomFields property also accepts the standard fields for the gift transaction.Optional60.0
lastGateway​ErrorMessageStringMost recent error message received by the gateway.Optional60.0
lastGateway​ProcessedDate​TimeStringLast attempt made by the gateway.Optional60.0
lastGateway​ResponseCodeStringMost recent response code that was received by the gateway.Optional60.0
outreach​SourceCodeOutreach Source Code Details InputOutreach source code that’s associated with the gift transaction.Optional60.0
payment​IdentifierStringUnique ID for the payment transaction.Optional60.0
payment​InstrumentPayment Instrument Details InputPayment instrument used for the gift transaction.Required60.0
processor​ReferenceStringReference of the transaction to which the payment processor is assigned.Optional60.0
processor​Transaction​FeeDoubleTransaction fees charged by the processor.Optional60.0
receivedDateStringDate when the donor completed the gift transaction.Required60.0
transaction​StatusStringStatus of the gift transaction.Required60.0