Chilkat Online Tools

SQL Server / Salesforce Platform APIs / Create Gifts

Back to Collection Items

-- Important: See this note about string length limitations for strings returned by sp_OAMethod calls.
--
CREATE PROCEDURE ChilkatSample
AS
BEGIN
    DECLARE @hr int
    DECLARE @iTmp0 int
    -- Important: Do not use nvarchar(max).  See the warning about using nvarchar(max).
    DECLARE @sTmp0 nvarchar(4000)
    -- This example assumes the Chilkat API to have been previously unlocked.
    -- See Global Unlock Sample for sample code.

    DECLARE @http int
    -- Use "Chilkat_9_5_0.Http" for versions of Chilkat < 10.0.0
    EXEC @hr = sp_OACreate 'Chilkat.Http', @http OUT
    IF @hr <> 0
    BEGIN
        PRINT 'Failed to create ActiveX component'
        RETURN
    END

    DECLARE @success int

    -- Use this online tool to generate code from sample JSON: Generate Code to Create JSON

    -- The following JSON is sent in the request body.

    -- {
    --   "processingOptions": {
    --     "donorOptions": {
    --       "defaultUpdateLogic": "update_all"
    --     }
    --   },
    --   "gifts": [
    --     {
    --       "amount": 150.25,
    --       "currencyIsoCode": "USD",
    --       "receivedDate": "2024-07-06",
    --       "donorCoverAmount": 0.25,
    --       "transactionStatus": "Unpaid",
    --       "commitmentId": "<SFDC_COMMITMENT_ID>",
    --       "paymentIdentifier": "1234",
    --       "gatewayTransactionFee": 0.75,
    --       "processorTransactionFee": 0.45,
    --       "processorReference": "cls-1247586928747",
    --       "gatewayReference": "102656693ac3ca6e0cdafbfe89ab99",
    --       "lastGatewayResponseCode": "invalid_cvc",
    --       "lastGatewayErrorMessage": "The card’s security code is invalid. Check the card’s security code or use a different card.",
    --       "lastGatewayProcessedDateTime": "2023-07-06T21:57:51Z",
    --       "campaign": {
    --         "id": "<SFDC_CAMPAIGN_ID>"
    --       },
    --       "outreachSourceCode": {
    --         "id": "<SFDC_OUTREACH_SOURCE_CODE_ID>",
    --         "sourceCode": "AnimalEmailCampaign2023"
    --       },
    --       "donor": {
    --         "donorType": "individual",
    --         "id": "<SFDC_PERSON_ACCOUNT_ID>",
    --         "organizationName": "<Organization_Name>",
    --         "firstName": "Test",
    --         "lastName": "Donor",
    --         "phone": "510-434-8920",
    --         "email": "test.user@example.com",
    --         "address": [
    --           {
    --             "addressType": "mailing",
    --             "street": "123 Main Street",
    --             "city": "Oakland",
    --             "state": "CA",
    --             "postalCode": "94610",
    --             "country": "US"
    --           }
    --         ],
    --         "accountCustomFields": [
    --           {
    --             "fieldName": "string",
    --             "fieldValue": "string"
    --           }
    --         ]
    --       },
    --       "paymentInstrument": {
    --         "type": "credit card",
    --         "accountHolderName": "test donor",
    --         "expiryMonth": "10",
    --         "expiryYear": "2027",
    --         "last4": "4585",
    --         "cardBrand": "visa",
    --         "bankName": "chase",
    --         "digitalWalletProvider": "apple pay",
    --         "bankAccountHolderType": "primary",
    --         "bankAccountType": "checking",
    --         "bankAccountNumber": "123456",
    --         "bankCode": "HBUK",
    --         "gatewayName": "stripe",
    --         "processorName": "test processor",
    --         "processorPaymentReference": "string",
    --         "gatewayReference": "string"
    --       },
    --       "designations": [
    --         {
    --           "designationId": "<SFDC_GIFT_DESIGNATION_ID>",
    --           "percent": 10,
    --           "amount": 150.25
    --         }
    --       ],
    --       "giftTransactionCustomFields": [
    --         {
    --           "fieldName": "string",
    --           "fieldValue": "string"
    --         }
    --       ]
    --     },
    --     {
    --       "amount": 250.00,
    --       "currencyIsoCode": "USD",
    --       "receivedDate": "2024-07-06",
    --       "donorCoverAmount": 0.25,
    --       "transactionStatus": "Unpaid",
    --       "commitmentId": "<SFDC_COMMITMENT_ID>",
    --       "paymentIdentifier": "1234",
    --       "gatewayTransactionFee": 0.75,
    --       "processorTransactionFee": 0.45,
    --       "processorReference": "cls-1247586928747",
    --       "gatewayReference": "102656693ac3ca6e0cdafbfe89ab99",
    --       "lastGatewayResponseCode": "invalid_cvc",
    --       "lastGatewayErrorMessage": "The card’s security code is invalid. Check the card’s security code or use a different card.",
    --       "lastGatewayProcessedDateTime": "2023-07-06T21:57:51Z",
    --       "campaign": {
    --         "id": "<SFDC_CAMPAIGN_ID>"
    --       },
    --       "outreachSourceCode": {
    --         "id": "<SFDC_OUTREACH_SOURCE_CODE_ID>",
    --         "sourceCode": "AnimalEmailCampaign2023"
    --       },
    --       "donor": {
    --         "donorType": "individual",
    --         "id": "<SFDC_PERSON_ACCOUNT_ID>",
    --         "organizationName": "<Organization_Name>",
    --         "firstName": "Test",
    --         "lastName": "Donor",
    --         "phone": "510-434-8920",
    --         "email": "test.user@example.com",
    --         "address": [
    --           {
    --             "addressType": "mailing",
    --             "street": "123 Main Street",
    --             "city": "Oakland",
    --             "state": "CA",
    --             "postalCode": "94610",
    --             "country": "US"
    --           }
    --         ],
    --         "accountCustomFields": [
    --           {
    --             "fieldName": "string",
    --             "fieldValue": "string"
    --           }
    --         ]
    --       },
    --       "paymentInstrument": {
    --         "type": "credit card",
    --         "accountHolderName": "test donor",
    --         "expiryMonth": "10",
    --         "expiryYear": "2027",
    --         "last4": "4585",
    --         "cardBrand": "visa",
    --         "bankName": "chase",
    --         "digitalWalletProvider": "apple pay",
    --         "bankAccountHolderType": "primary",
    --         "bankAccountType": "checking",
    --         "bankAccountNumber": "123456",
    --         "bankCode": "HBUK",
    --         "gatewayName": "stripe",
    --         "processorName": "test processor",
    --         "processorPaymentReference": "string",
    --         "gatewayReference": "string"
    --       },
    --       "designations": [
    --         {
    --           "designationId": "<SFDC_GIFT_DESIGNATION_ID>",
    --           "percent": 10,
    --           "amount": 150.25
    --         }
    --       ],
    --       "giftTransactionCustomFields": [
    --         {
    --           "fieldName": "string",
    --           "fieldValue": "string"
    --         }
    --       ]
    --     }
    --   ]
    -- }

    DECLARE @json int
    -- Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
    EXEC @hr = sp_OACreate 'Chilkat.JsonObject', @json OUT

    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'processingOptions.donorOptions.defaultUpdateLogic', 'update_all'
    EXEC sp_OAMethod @json, 'UpdateNumber', @success OUT, 'gifts[0].amount', '150.25'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].currencyIsoCode', 'USD'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].receivedDate', '2024-07-06'
    EXEC sp_OAMethod @json, 'UpdateNumber', @success OUT, 'gifts[0].donorCoverAmount', '0.25'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].transactionStatus', 'Unpaid'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].commitmentId', '<SFDC_COMMITMENT_ID>'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].paymentIdentifier', '1234'
    EXEC sp_OAMethod @json, 'UpdateNumber', @success OUT, 'gifts[0].gatewayTransactionFee', '0.75'
    EXEC sp_OAMethod @json, 'UpdateNumber', @success OUT, 'gifts[0].processorTransactionFee', '0.45'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].processorReference', 'cls-1247586928747'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].gatewayReference', '102656693ac3ca6e0cdafbfe89ab99'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].lastGatewayResponseCode', 'invalid_cvc'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].lastGatewayErrorMessage', 'The card’s security code is invalid. Check the card’s security code or use a different card.'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].lastGatewayProcessedDateTime', '2023-07-06T21:57:51Z'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].campaign.id', '<SFDC_CAMPAIGN_ID>'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].outreachSourceCode.id', '<SFDC_OUTREACH_SOURCE_CODE_ID>'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].outreachSourceCode.sourceCode', 'AnimalEmailCampaign2023'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].donor.donorType', 'individual'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].donor.id', '<SFDC_PERSON_ACCOUNT_ID>'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].donor.organizationName', '<Organization_Name>'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].donor.firstName', 'Test'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].donor.lastName', 'Donor'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].donor.phone', '510-434-8920'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].donor.email', 'test.user@example.com'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].donor.address[0].addressType', 'mailing'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].donor.address[0].street', '123 Main Street'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].donor.address[0].city', 'Oakland'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].donor.address[0].state', 'CA'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].donor.address[0].postalCode', '94610'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].donor.address[0].country', 'US'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].donor.accountCustomFields[0].fieldName', 'string'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].donor.accountCustomFields[0].fieldValue', 'string'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].paymentInstrument.type', 'credit card'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].paymentInstrument.accountHolderName', 'test donor'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].paymentInstrument.expiryMonth', '10'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].paymentInstrument.expiryYear', '2027'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].paymentInstrument.last4', '4585'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].paymentInstrument.cardBrand', 'visa'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].paymentInstrument.bankName', 'chase'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].paymentInstrument.digitalWalletProvider', 'apple pay'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].paymentInstrument.bankAccountHolderType', 'primary'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].paymentInstrument.bankAccountType', 'checking'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].paymentInstrument.bankAccountNumber', '123456'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].paymentInstrument.bankCode', 'HBUK'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].paymentInstrument.gatewayName', 'stripe'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].paymentInstrument.processorName', 'test processor'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].paymentInstrument.processorPaymentReference', 'string'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].paymentInstrument.gatewayReference', 'string'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].designations[0].designationId', '<SFDC_GIFT_DESIGNATION_ID>'
    EXEC sp_OAMethod @json, 'UpdateInt', @success OUT, 'gifts[0].designations[0].percent', 10
    EXEC sp_OAMethod @json, 'UpdateNumber', @success OUT, 'gifts[0].designations[0].amount', '150.25'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].giftTransactionCustomFields[0].fieldName', 'string'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[0].giftTransactionCustomFields[0].fieldValue', 'string'
    EXEC sp_OAMethod @json, 'UpdateNumber', @success OUT, 'gifts[1].amount', '250.00'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].currencyIsoCode', 'USD'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].receivedDate', '2024-07-06'
    EXEC sp_OAMethod @json, 'UpdateNumber', @success OUT, 'gifts[1].donorCoverAmount', '0.25'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].transactionStatus', 'Unpaid'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].commitmentId', '<SFDC_COMMITMENT_ID>'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].paymentIdentifier', '1234'
    EXEC sp_OAMethod @json, 'UpdateNumber', @success OUT, 'gifts[1].gatewayTransactionFee', '0.75'
    EXEC sp_OAMethod @json, 'UpdateNumber', @success OUT, 'gifts[1].processorTransactionFee', '0.45'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].processorReference', 'cls-1247586928747'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].gatewayReference', '102656693ac3ca6e0cdafbfe89ab99'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].lastGatewayResponseCode', 'invalid_cvc'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].lastGatewayErrorMessage', 'The card’s security code is invalid. Check the card’s security code or use a different card.'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].lastGatewayProcessedDateTime', '2023-07-06T21:57:51Z'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].campaign.id', '<SFDC_CAMPAIGN_ID>'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].outreachSourceCode.id', '<SFDC_OUTREACH_SOURCE_CODE_ID>'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].outreachSourceCode.sourceCode', 'AnimalEmailCampaign2023'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].donor.donorType', 'individual'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].donor.id', '<SFDC_PERSON_ACCOUNT_ID>'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].donor.organizationName', '<Organization_Name>'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].donor.firstName', 'Test'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].donor.lastName', 'Donor'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].donor.phone', '510-434-8920'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].donor.email', 'test.user@example.com'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].donor.address[0].addressType', 'mailing'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].donor.address[0].street', '123 Main Street'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].donor.address[0].city', 'Oakland'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].donor.address[0].state', 'CA'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].donor.address[0].postalCode', '94610'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].donor.address[0].country', 'US'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].donor.accountCustomFields[0].fieldName', 'string'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].donor.accountCustomFields[0].fieldValue', 'string'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].paymentInstrument.type', 'credit card'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].paymentInstrument.accountHolderName', 'test donor'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].paymentInstrument.expiryMonth', '10'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].paymentInstrument.expiryYear', '2027'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].paymentInstrument.last4', '4585'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].paymentInstrument.cardBrand', 'visa'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].paymentInstrument.bankName', 'chase'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].paymentInstrument.digitalWalletProvider', 'apple pay'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].paymentInstrument.bankAccountHolderType', 'primary'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].paymentInstrument.bankAccountType', 'checking'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].paymentInstrument.bankAccountNumber', '123456'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].paymentInstrument.bankCode', 'HBUK'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].paymentInstrument.gatewayName', 'stripe'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].paymentInstrument.processorName', 'test processor'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].paymentInstrument.processorPaymentReference', 'string'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].paymentInstrument.gatewayReference', 'string'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].designations[0].designationId', '<SFDC_GIFT_DESIGNATION_ID>'
    EXEC sp_OAMethod @json, 'UpdateInt', @success OUT, 'gifts[1].designations[0].percent', 10
    EXEC sp_OAMethod @json, 'UpdateNumber', @success OUT, 'gifts[1].designations[0].amount', '150.25'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].giftTransactionCustomFields[0].fieldName', 'string'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'gifts[1].giftTransactionCustomFields[0].fieldValue', 'string'

    -- Adds the "Authorization: Bearer <access_token>" header.
    EXEC sp_OASetProperty @http, 'AuthToken', '<access_token>'

    DECLARE @resp int
    EXEC sp_OAMethod @http, 'PostJson3', @resp OUT, 'https://domain.com/services/data/v{{version}}/connect/fundraising/gifts', 'application/json', @json
    EXEC sp_OAGetProperty @http, 'LastMethodSuccess', @iTmp0 OUT
    IF @iTmp0 = 0
      BEGIN
        EXEC sp_OAGetProperty @http, 'LastErrorText', @sTmp0 OUT
        PRINT @sTmp0
        EXEC @hr = sp_OADestroy @http
        EXEC @hr = sp_OADestroy @json
        RETURN
      END

    DECLARE @sbResponseBody int
    -- Use "Chilkat_9_5_0.StringBuilder" for versions of Chilkat < 10.0.0
    EXEC @hr = sp_OACreate 'Chilkat.StringBuilder', @sbResponseBody OUT

    EXEC sp_OAMethod @resp, 'GetBodySb', @success OUT, @sbResponseBody

    DECLARE @jResp int
    -- Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
    EXEC @hr = sp_OACreate 'Chilkat.JsonObject', @jResp OUT

    EXEC sp_OAMethod @jResp, 'LoadSb', @success OUT, @sbResponseBody
    EXEC sp_OASetProperty @jResp, 'EmitCompact', 0


    PRINT 'Response Body:'
    EXEC sp_OAMethod @jResp, 'Emit', @sTmp0 OUT
    PRINT @sTmp0

    DECLARE @respStatusCode int
    EXEC sp_OAGetProperty @resp, 'StatusCode', @respStatusCode OUT

    PRINT 'Response Status Code = ' + @respStatusCode
    IF @respStatusCode >= 400
      BEGIN

        PRINT 'Response Header:'
        EXEC sp_OAGetProperty @resp, 'Header', @sTmp0 OUT
        PRINT @sTmp0

        PRINT 'Failed.'
        EXEC @hr = sp_OADestroy @resp

        EXEC @hr = sp_OADestroy @http
        EXEC @hr = sp_OADestroy @json
        EXEC @hr = sp_OADestroy @sbResponseBody
        EXEC @hr = sp_OADestroy @jResp
        RETURN
      END
    EXEC @hr = sp_OADestroy @resp

    -- Sample JSON response:
    -- (Sample code for parsing the JSON response is shown below)

    -- {
    --   "successes": 2,
    --   "failures": 0,
    --   "notProcessed": 0,
    --   "details": [
    --     {
    --       "success": true,
    --       "links": {
    --         "account": {
    --           "href": "/services/data/vXX.X/sobjects/sObject/<SFDC_ACCOUNT_ID>",
    --           "id": "<SFDC_ACCOUNT_ID>"
    --         },
    --         "gifttransaction": {
    --           "href": "/services/data/vXX.X/sobjects/sObject/<SFDC_GIFT_TRANSACTION_ID>",
    --           "id": "<SFDC_GIFT_TRANSACTION_ID>"
    --         },
    --         "giftcommitment": {
    --           "href": "/services/data/vXX.X/sobjects/sObject/<SFDC_GIFT_COMMITMENT_ID>",
    --           "id": "<SFDC_GIFT_COMMITMENT_ID>"
    --         },
    --         "paymentinstrument": {
    --           "href": "/services/data/vXX.X/sobjects/sObject/<SFDC_PAYMENT_INSTRUMENT_ID>",
    --           "id": "<SFDC_PAYMENT_INSTRUMENT_ID>"
    --         },
    --         "gifttransactiondesignation": [
    --           {
    --             "href": "/services/data/vXX.X/sobjects/sObject/<SFDC_GIFT_TRANSACTION_DESIGNATION_ID>",
    --             "id": "<SFDC_GIFT_TRANSACTION_DESIGNATION_ID>"
    --           }
    --         ]
    --       }
    --     },
    --     {
    --       "success": true,
    --       "links": {
    --         "account": {
    --           "href": "/services/data/vXX.X/sobjects/sObject/<SFDC_ACCOUNT_ID>",
    --           "id": "<SFDC_ACCOUNT_ID>"
    --         },
    --         "gifttransaction": {
    --           "href": "/services/data/vXX.X/sobjects/sObject/<SFDC_GIFT_TRANSACTION_ID>",
    --           "id": "<SFDC_GIFT_TRANSACTION_ID>"
    --         },
    --         "giftcommitment": {
    --           "href": "/services/data/vXX.X/sobjects/sObject/<SFDC_GIFT_COMMITMENT_ID>",
    --           "id": "<SFDC_GIFT_COMMITMENT_ID>"
    --         },
    --         "paymentinstrument": {
    --           "href": "/services/data/vXX.X/sobjects/sObject/<SFDC_PAYMENT_INSTRUMENT_ID>",
    --           "id": "<SFDC_PAYMENT_INSTRUMENT_ID>"
    --         },
    --         "gifttransactiondesignation": [
    --           {
    --             "href": "/services/data/vXX.X/sobjects/sObject/<SFDC_GIFT_TRANSACTION_DESIGNATION_ID>",
    --             "id": "<SFDC_GIFT_TRANSACTION_DESIGNATION_ID>"
    --           }
    --         ]
    --       }
    --     }
    --   ]
    -- }

    -- Sample code for parsing the JSON response...
    -- Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code

    DECLARE @success int

    DECLARE @Href nvarchar(4000)

    DECLARE @Id nvarchar(4000)

    DECLARE @GifttransactionHref nvarchar(4000)

    DECLARE @GifttransactionId nvarchar(4000)

    DECLARE @GiftcommitmentHref nvarchar(4000)

    DECLARE @GiftcommitmentId nvarchar(4000)

    DECLARE @PaymentinstrumentHref nvarchar(4000)

    DECLARE @PaymentinstrumentId nvarchar(4000)

    DECLARE @j int

    DECLARE @count_j int

    DECLARE @href nvarchar(4000)

    DECLARE @id nvarchar(4000)

    DECLARE @successes int
    EXEC sp_OAMethod @jResp, 'IntOf', @successes OUT, 'successes'
    DECLARE @failures int
    EXEC sp_OAMethod @jResp, 'IntOf', @failures OUT, 'failures'
    DECLARE @notProcessed int
    EXEC sp_OAMethod @jResp, 'IntOf', @notProcessed OUT, 'notProcessed'
    DECLARE @i int
    SELECT @i = 0
    DECLARE @count_i int
    EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'details'
    WHILE @i < @count_i
      BEGIN
        EXEC sp_OASetProperty @jResp, 'I', @i
        EXEC sp_OAMethod @jResp, 'BoolOf', @success OUT, 'details[i].success'
        EXEC sp_OAMethod @jResp, 'StringOf', @Href OUT, 'details[i].links.account.href'
        EXEC sp_OAMethod @jResp, 'StringOf', @Id OUT, 'details[i].links.account.id'
        EXEC sp_OAMethod @jResp, 'StringOf', @GifttransactionHref OUT, 'details[i].links.gifttransaction.href'
        EXEC sp_OAMethod @jResp, 'StringOf', @GifttransactionId OUT, 'details[i].links.gifttransaction.id'
        EXEC sp_OAMethod @jResp, 'StringOf', @GiftcommitmentHref OUT, 'details[i].links.giftcommitment.href'
        EXEC sp_OAMethod @jResp, 'StringOf', @GiftcommitmentId OUT, 'details[i].links.giftcommitment.id'
        EXEC sp_OAMethod @jResp, 'StringOf', @PaymentinstrumentHref OUT, 'details[i].links.paymentinstrument.href'
        EXEC sp_OAMethod @jResp, 'StringOf', @PaymentinstrumentId OUT, 'details[i].links.paymentinstrument.id'
        SELECT @j = 0
        EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'details[i].links.gifttransactiondesignation'
        WHILE @j < @count_j
          BEGIN
            EXEC sp_OASetProperty @jResp, 'J', @j
            EXEC sp_OAMethod @jResp, 'StringOf', @href OUT, 'details[i].links.gifttransactiondesignation[j].href'
            EXEC sp_OAMethod @jResp, 'StringOf', @id OUT, 'details[i].links.gifttransactiondesignation[j].id'
            SELECT @j = @j + 1
          END
        SELECT @i = @i + 1
      END

    EXEC @hr = sp_OADestroy @http
    EXEC @hr = sp_OADestroy @json
    EXEC @hr = sp_OADestroy @sbResponseBody
    EXEC @hr = sp_OADestroy @jResp


END
GO

Curl Command

curl -X POST
	-H "Authorization: Bearer <access_token>"
	-d '{
  "processingOptions": {
    "donorOptions": {
      "defaultUpdateLogic": "update_all"
    }
  },
  "gifts": [
    {
      "amount": 150.25,
      "currencyIsoCode": "USD",
      "receivedDate": "2024-07-06",
      "donorCoverAmount": 0.25,
      "transactionStatus": "Unpaid",
      "commitmentId": "<SFDC_COMMITMENT_ID>",
      "paymentIdentifier": "1234",
      "gatewayTransactionFee": 0.75,
      "processorTransactionFee": 0.45,
      "processorReference": "cls-1247586928747",
      "gatewayReference": "102656693ac3ca6e0cdafbfe89ab99",
      "lastGatewayResponseCode": "invalid_cvc",
      "lastGatewayErrorMessage": "The card’s security code is invalid. Check the card’s security code or use a different card.",
      "lastGatewayProcessedDateTime": "2023-07-06T21:57:51Z",
      "campaign": {
        "id": "<SFDC_CAMPAIGN_ID>"
      },
      "outreachSourceCode": {
        "id": "<SFDC_OUTREACH_SOURCE_CODE_ID>",
        "sourceCode": "AnimalEmailCampaign2023"
      },
      "donor": {
        "donorType": "individual",
        "id": "<SFDC_PERSON_ACCOUNT_ID>",
        "organizationName": "<Organization_Name>",
        "firstName": "Test",
        "lastName": "Donor",
        "phone": "510-434-8920",
        "email": "test.user@example.com",
        "address": [
          {
            "addressType": "mailing",
            "street": "123 Main Street",
            "city": "Oakland",
            "state": "CA",
            "postalCode": "94610",
            "country": "US"
          }
        ],
        "accountCustomFields": [
          {
            "fieldName": "string",
            "fieldValue": "string"
          }
        ]
      },
      "paymentInstrument": {
        "type": "credit card",
        "accountHolderName": "test donor",
        "expiryMonth": "10",
        "expiryYear": "2027",
        "last4": "4585",
        "cardBrand": "visa",
        "bankName": "chase",
        "digitalWalletProvider": "apple pay",
        "bankAccountHolderType": "primary",
        "bankAccountType": "checking",
        "bankAccountNumber": "123456",
        "bankCode": "HBUK",
        "gatewayName": "stripe",
        "processorName": "test processor",
        "processorPaymentReference": "string",
        "gatewayReference": "string"
      },
      "designations": [
        {
          "designationId": "<SFDC_GIFT_DESIGNATION_ID>",
          "percent": 10,
          "amount": 150.25
        }
      ],
      "giftTransactionCustomFields": [
        {
          "fieldName": "string",
          "fieldValue": "string"
        }
      ]
    },
    {
      "amount": 250.00,
      "currencyIsoCode": "USD",
      "receivedDate": "2024-07-06",
      "donorCoverAmount": 0.25,
      "transactionStatus": "Unpaid",
      "commitmentId": "<SFDC_COMMITMENT_ID>",
      "paymentIdentifier": "1234",
      "gatewayTransactionFee": 0.75,
      "processorTransactionFee": 0.45,
      "processorReference": "cls-1247586928747",
      "gatewayReference": "102656693ac3ca6e0cdafbfe89ab99",
      "lastGatewayResponseCode": "invalid_cvc",
      "lastGatewayErrorMessage": "The card’s security code is invalid. Check the card’s security code or use a different card.",
      "lastGatewayProcessedDateTime": "2023-07-06T21:57:51Z",
      "campaign": {
        "id": "<SFDC_CAMPAIGN_ID>"
      },
      "outreachSourceCode": {
        "id": "<SFDC_OUTREACH_SOURCE_CODE_ID>",
        "sourceCode": "AnimalEmailCampaign2023"
      },
      "donor": {
        "donorType": "individual",
        "id": "<SFDC_PERSON_ACCOUNT_ID>",
        "organizationName": "<Organization_Name>",
        "firstName": "Test",
        "lastName": "Donor",
        "phone": "510-434-8920",
        "email": "test.user@example.com",
        "address": [
          {
            "addressType": "mailing",
            "street": "123 Main Street",
            "city": "Oakland",
            "state": "CA",
            "postalCode": "94610",
            "country": "US"
          }
        ],
        "accountCustomFields": [
          {
            "fieldName": "string",
            "fieldValue": "string"
          }
        ]
      },
      "paymentInstrument": {
        "type": "credit card",
        "accountHolderName": "test donor",
        "expiryMonth": "10",
        "expiryYear": "2027",
        "last4": "4585",
        "cardBrand": "visa",
        "bankName": "chase",
        "digitalWalletProvider": "apple pay",
        "bankAccountHolderType": "primary",
        "bankAccountType": "checking",
        "bankAccountNumber": "123456",
        "bankCode": "HBUK",
        "gatewayName": "stripe",
        "processorName": "test processor",
        "processorPaymentReference": "string",
        "gatewayReference": "string"
      },
      "designations": [
        {
          "designationId": "<SFDC_GIFT_DESIGNATION_ID>",
          "percent": 10,
          "amount": 150.25
        }
      ],
      "giftTransactionCustomFields": [
        {
          "fieldName": "string",
          "fieldValue": "string"
        }
      ]
    }
  ]
}'
https://domain.com/services/data/v{{version}}/connect/fundraising/gifts

Postman Collection Item JSON

{
  "name": "Create Gifts",
  "protocolProfileBehavior": {
    "followAuthorizationHeader": true
  },
  "request": {
    "method": "POST",
    "header": [
    ],
    "body": {
      "mode": "raw",
      "raw": "{\n  \"processingOptions\": {\n    \"donorOptions\": {\n      \"defaultUpdateLogic\": \"update_all\"\n    }\n  },\n  \"gifts\": [\n    {\n      \"amount\": 150.25,\n      \"currencyIsoCode\": \"USD\",\n      \"receivedDate\": \"2024-07-06\",\n      \"donorCoverAmount\": 0.25,\n      \"transactionStatus\": \"Unpaid\",\n      \"commitmentId\": \"<SFDC_COMMITMENT_ID>\",\n      \"paymentIdentifier\": \"1234\",\n      \"gatewayTransactionFee\": 0.75,\n      \"processorTransactionFee\": 0.45,\n      \"processorReference\": \"cls-1247586928747\",\n      \"gatewayReference\": \"102656693ac3ca6e0cdafbfe89ab99\",\n      \"lastGatewayResponseCode\": \"invalid_cvc\",\n      \"lastGatewayErrorMessage\": \"The card’s security code is invalid. Check the card’s security code or use a different card.\",\n      \"lastGatewayProcessedDateTime\": \"2023-07-06T21:57:51Z\",\n      \"campaign\": {\n        \"id\": \"<SFDC_CAMPAIGN_ID>\"\n      },\n      \"outreachSourceCode\": {\n        \"id\": \"<SFDC_OUTREACH_SOURCE_CODE_ID>\",\n        \"sourceCode\": \"AnimalEmailCampaign2023\"\n      },\n      \"donor\": {\n        \"donorType\": \"individual\",\n        \"id\": \"<SFDC_PERSON_ACCOUNT_ID>\",\n        \"organizationName\": \"<Organization_Name>\",\n        \"firstName\": \"Test\",\n        \"lastName\": \"Donor\",\n        \"phone\": \"510-434-8920\",\n        \"email\": \"test.user@example.com\",\n        \"address\": [\n          {\n            \"addressType\": \"mailing\",\n            \"street\": \"123 Main Street\",\n            \"city\": \"Oakland\",\n            \"state\": \"CA\",\n            \"postalCode\": \"94610\",\n            \"country\": \"US\"\n          }\n        ],\n        \"accountCustomFields\": [\n          {\n            \"fieldName\": \"string\",\n            \"fieldValue\": \"string\"\n          }\n        ]\n      },\n      \"paymentInstrument\": {\n        \"type\": \"credit card\",\n        \"accountHolderName\": \"test donor\",\n        \"expiryMonth\": \"10\",\n        \"expiryYear\": \"2027\",\n        \"last4\": \"4585\",\n        \"cardBrand\": \"visa\",\n        \"bankName\": \"chase\",\n        \"digitalWalletProvider\": \"apple pay\",\n        \"bankAccountHolderType\": \"primary\",\n        \"bankAccountType\": \"checking\",\n        \"bankAccountNumber\": \"123456\",\n        \"bankCode\": \"HBUK\",\n        \"gatewayName\": \"stripe\",\n        \"processorName\": \"test processor\",\n        \"processorPaymentReference\": \"string\",\n        \"gatewayReference\": \"string\"\n      },\n      \"designations\": [\n        {\n          \"designationId\": \"<SFDC_GIFT_DESIGNATION_ID>\",\n          \"percent\": 10,\n          \"amount\": 150.25\n        }\n      ],\n      \"giftTransactionCustomFields\": [\n        {\n          \"fieldName\": \"string\",\n          \"fieldValue\": \"string\"\n        }\n      ]\n    },\n    {\n      \"amount\": 250.00,\n      \"currencyIsoCode\": \"USD\",\n      \"receivedDate\": \"2024-07-06\",\n      \"donorCoverAmount\": 0.25,\n      \"transactionStatus\": \"Unpaid\",\n      \"commitmentId\": \"<SFDC_COMMITMENT_ID>\",\n      \"paymentIdentifier\": \"1234\",\n      \"gatewayTransactionFee\": 0.75,\n      \"processorTransactionFee\": 0.45,\n      \"processorReference\": \"cls-1247586928747\",\n      \"gatewayReference\": \"102656693ac3ca6e0cdafbfe89ab99\",\n      \"lastGatewayResponseCode\": \"invalid_cvc\",\n      \"lastGatewayErrorMessage\": \"The card’s security code is invalid. Check the card’s security code or use a different card.\",\n      \"lastGatewayProcessedDateTime\": \"2023-07-06T21:57:51Z\",\n      \"campaign\": {\n        \"id\": \"<SFDC_CAMPAIGN_ID>\"\n      },\n      \"outreachSourceCode\": {\n        \"id\": \"<SFDC_OUTREACH_SOURCE_CODE_ID>\",\n        \"sourceCode\": \"AnimalEmailCampaign2023\"\n      },\n      \"donor\": {\n        \"donorType\": \"individual\",\n        \"id\": \"<SFDC_PERSON_ACCOUNT_ID>\",\n        \"organizationName\": \"<Organization_Name>\",\n        \"firstName\": \"Test\",\n        \"lastName\": \"Donor\",\n        \"phone\": \"510-434-8920\",\n        \"email\": \"test.user@example.com\",\n        \"address\": [\n          {\n            \"addressType\": \"mailing\",\n            \"street\": \"123 Main Street\",\n            \"city\": \"Oakland\",\n            \"state\": \"CA\",\n            \"postalCode\": \"94610\",\n            \"country\": \"US\"\n          }\n        ],\n        \"accountCustomFields\": [\n          {\n            \"fieldName\": \"string\",\n            \"fieldValue\": \"string\"\n          }\n        ]\n      },\n      \"paymentInstrument\": {\n        \"type\": \"credit card\",\n        \"accountHolderName\": \"test donor\",\n        \"expiryMonth\": \"10\",\n        \"expiryYear\": \"2027\",\n        \"last4\": \"4585\",\n        \"cardBrand\": \"visa\",\n        \"bankName\": \"chase\",\n        \"digitalWalletProvider\": \"apple pay\",\n        \"bankAccountHolderType\": \"primary\",\n        \"bankAccountType\": \"checking\",\n        \"bankAccountNumber\": \"123456\",\n        \"bankCode\": \"HBUK\",\n        \"gatewayName\": \"stripe\",\n        \"processorName\": \"test processor\",\n        \"processorPaymentReference\": \"string\",\n        \"gatewayReference\": \"string\"\n      },\n      \"designations\": [\n        {\n          \"designationId\": \"<SFDC_GIFT_DESIGNATION_ID>\",\n          \"percent\": 10,\n          \"amount\": 150.25\n        }\n      ],\n      \"giftTransactionCustomFields\": [\n        {\n          \"fieldName\": \"string\",\n          \"fieldValue\": \"string\"\n        }\n      ]\n    }\n  ]\n}",
      "options": {
        "raw": {
          "language": "json"
        }
      }
    },
    "url": {
      "raw": "{{_endpoint}}/services/data/v{{version}}/connect/fundraising/gifts",
      "host": [
        "{{_endpoint}}"
      ],
      "path": [
        "services",
        "data",
        "v{{version}}",
        "connect",
        "fundraising",
        "gifts"
      ]
    },
    "description": "Create gift transactions with related new or matched donor, optional transaction designations, and payment instrument metadata. Supports custom fields for the donor account and gift transaction.\n\n## Required Attributes:\n\n- donor.donorType (\"individual\" or \"organization\")\n    \n- donor.lastName || donor.organizationName\n    \n- gift.amount\n    \n- gift.receivedDate\n    \n- git.status\n    \n- paymentInstrument.type\n    \n\nAll other attributes are optional can be left as an empty string or just removed from the request body entirely. The only exceptions to this are:\n\n- CustomFields collections - These cannot be left in the request body as an empty collection or with an empty string for the FieldName.\n    \n\n## Validated Property Formats (an empty string is considered valid)\n\n- DateTime - YYYY-MM-DDTHH:MM:SSZ\n    \n- Date - YYYY-MM-DD\n    \n- Email - a valid formatted email address\n    \n\n### Other Attributes:\n\n- OutreachSource -- This is optional. Be sure to create the OutreachSourceCode record in the system if passing a value\n    \n- Will accept either an OutreachSourceCode.id (SalesforceId) or an OutreachSourceCode.Code.\n    \n\n### Custom Fields:\n\n- The field_value can be a text string (inc. for a date data-type) or a numeric value (without quotes)\n    \n- Do not include an empty collection or an empty fieldName in the request body"
  },
  "response": [
    {
      "name": "Status201-CreateGiftSuccess",
      "originalRequest": {
        "method": "POST",
        "header": [
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"processingOptions\": {\n    \"donorOptions\": {\n      \"defaultUpdateLogic\": \"update_all\"\n    }\n  },\n  \"gifts\": [\n    {\n      \"amount\": 150.25,\n      \"currencyIsoCode\": \"USD\",\n      \"receivedDate\": \"2024-07-06\",\n      \"donorCoverAmount\": 0.25,\n      \"transactionStatus\": \"Unpaid\",\n      \"commitmentId\": \"<SFDC_COMMITMENT_ID>\",\n      \"paymentIdentifier\": \"1234\",\n      \"gatewayTransactionFee\": 0.75,\n      \"processorTransactionFee\": 0.45,\n      \"processorReference\": \"cls-1247586928747\",\n      \"gatewayReference\": \"102656693ac3ca6e0cdafbfe89ab99\",\n      \"lastGatewayResponseCode\": \"invalid_cvc\",\n      \"lastGatewayErrorMessage\": \"The card’s security code is invalid. Check the card’s security code or use a different card.\",\n      \"lastGatewayProcessedDateTime\": \"2023-07-06T21:57:51Z\",\n      \"campaign\": {\n        \"id\": \"<SFDC_CAMPAIGN_ID>\"\n      },\n      \"outreachSourceCode\": {\n        \"id\": \"<SFDC_OUTREACH_SOURCE_CODE_ID>\",\n        \"sourceCode\": \"AnimalEmailCampaign2023\"\n      },\n      \"donor\": {\n        \"donorType\": \"individual\",\n        \"id\": \"<SFDC_PERSON_ACCOUNT_ID>\",\n        \"organizationName\": \"<Organization_Name>\",\n        \"firstName\": \"Test\",\n        \"lastName\": \"Donor\",\n        \"phone\": \"510-434-8920\",\n        \"email\": \"test.user@example.com\",\n        \"address\": [\n          {\n            \"addressType\": \"mailing\",\n            \"street\": \"123 Main Street\",\n            \"city\": \"Oakland\",\n            \"state\": \"CA\",\n            \"postalCode\": \"94610\",\n            \"country\": \"US\"\n          }\n        ],\n        \"accountCustomFields\": [\n          {\n            \"fieldName\": \"string\",\n            \"fieldValue\": \"string\"\n          }\n        ]\n      },\n      \"paymentInstrument\": {\n        \"type\": \"credit card\",\n        \"accountHolderName\": \"test donor\",\n        \"expiryMonth\": \"10\",\n        \"expiryYear\": \"2027\",\n        \"last4\": \"4585\",\n        \"cardBrand\": \"visa\",\n        \"bankName\": \"chase\",\n        \"digitalWalletProvider\": \"apple pay\",\n        \"bankAccountHolderType\": \"primary\",\n        \"bankAccountType\": \"checking\",\n        \"bankAccountNumber\": \"123456\",\n        \"bankCode\": \"HBUK\",\n        \"gatewayName\": \"stripe\",\n        \"processorName\": \"test processor\",\n        \"processorPaymentReference\": \"string\",\n        \"gatewayReference\": \"string\"\n      },\n      \"designations\": [\n        {\n          \"designationId\": \"<SFDC_GIFT_DESIGNATION_ID>\",\n          \"percent\": 10,\n          \"amount\": 150.25\n        }\n      ],\n      \"giftTransactionCustomFields\": [\n        {\n          \"fieldName\": \"string\",\n          \"fieldValue\": \"string\"\n        }\n      ]\n    },\n    {\n      \"amount\": 250.00,\n      \"currencyIsoCode\": \"USD\",\n      \"receivedDate\": \"2024-07-06\",\n      \"donorCoverAmount\": 0.25,\n      \"transactionStatus\": \"Unpaid\",\n      \"commitmentId\": \"<SFDC_COMMITMENT_ID>\",\n      \"paymentIdentifier\": \"1234\",\n      \"gatewayTransactionFee\": 0.75,\n      \"processorTransactionFee\": 0.45,\n      \"processorReference\": \"cls-1247586928747\",\n      \"gatewayReference\": \"102656693ac3ca6e0cdafbfe89ab99\",\n      \"lastGatewayResponseCode\": \"invalid_cvc\",\n      \"lastGatewayErrorMessage\": \"The card’s security code is invalid. Check the card’s security code or use a different card.\",\n      \"lastGatewayProcessedDateTime\": \"2023-07-06T21:57:51Z\",\n      \"campaign\": {\n        \"id\": \"<SFDC_CAMPAIGN_ID>\"\n      },\n      \"outreachSourceCode\": {\n        \"id\": \"<SFDC_OUTREACH_SOURCE_CODE_ID>\",\n        \"sourceCode\": \"AnimalEmailCampaign2023\"\n      },\n      \"donor\": {\n        \"donorType\": \"individual\",\n        \"id\": \"<SFDC_PERSON_ACCOUNT_ID>\",\n        \"organizationName\": \"<Organization_Name>\",\n        \"firstName\": \"Test\",\n        \"lastName\": \"Donor\",\n        \"phone\": \"510-434-8920\",\n        \"email\": \"test.user@example.com\",\n        \"address\": [\n          {\n            \"addressType\": \"mailing\",\n            \"street\": \"123 Main Street\",\n            \"city\": \"Oakland\",\n            \"state\": \"CA\",\n            \"postalCode\": \"94610\",\n            \"country\": \"US\"\n          }\n        ],\n        \"accountCustomFields\": [\n          {\n            \"fieldName\": \"string\",\n            \"fieldValue\": \"string\"\n          }\n        ]\n      },\n      \"paymentInstrument\": {\n        \"type\": \"credit card\",\n        \"accountHolderName\": \"test donor\",\n        \"expiryMonth\": \"10\",\n        \"expiryYear\": \"2027\",\n        \"last4\": \"4585\",\n        \"cardBrand\": \"visa\",\n        \"bankName\": \"chase\",\n        \"digitalWalletProvider\": \"apple pay\",\n        \"bankAccountHolderType\": \"primary\",\n        \"bankAccountType\": \"checking\",\n        \"bankAccountNumber\": \"123456\",\n        \"bankCode\": \"HBUK\",\n        \"gatewayName\": \"stripe\",\n        \"processorName\": \"test processor\",\n        \"processorPaymentReference\": \"string\",\n        \"gatewayReference\": \"string\"\n      },\n      \"designations\": [\n        {\n          \"designationId\": \"<SFDC_GIFT_DESIGNATION_ID>\",\n          \"percent\": 10,\n          \"amount\": 150.25\n        }\n      ],\n      \"giftTransactionCustomFields\": [\n        {\n          \"fieldName\": \"string\",\n          \"fieldValue\": \"string\"\n        }\n      ]\n    }\n  ]\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{_endpoint}}/services/data/v{{version}}/connect/fundraising/gifts",
          "host": [
            "{{_endpoint}}"
          ],
          "path": [
            "services",
            "data",
            "v{{version}}",
            "connect",
            "fundraising",
            "gifts"
          ]
        }
      },
      "status": "Created",
      "code": 201,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json",
          "description": ""
        }
      ],
      "cookie": [
      ],
      "body": "{\n    \"successes\": 2,\n    \"failures\": 0,\n    \"notProcessed\": 0,\n    \"details\": [\n        {\n            \"success\": true,\n            \"links\": {\n                \"account\": {\n                    \"href\": \"/services/data/vXX.X/sobjects/sObject/<SFDC_ACCOUNT_ID>\",\n                    \"id\": \"<SFDC_ACCOUNT_ID>\"\n                },\n                \"gifttransaction\": {\n                    \"href\": \"/services/data/vXX.X/sobjects/sObject/<SFDC_GIFT_TRANSACTION_ID>\",\n                    \"id\": \"<SFDC_GIFT_TRANSACTION_ID>\"\n                },\n                \"giftcommitment\": {\n                    \"href\": \"/services/data/vXX.X/sobjects/sObject/<SFDC_GIFT_COMMITMENT_ID>\",\n                    \"id\": \"<SFDC_GIFT_COMMITMENT_ID>\"\n                },\n                \"paymentinstrument\": {\n                    \"href\": \"/services/data/vXX.X/sobjects/sObject/<SFDC_PAYMENT_INSTRUMENT_ID>\",\n                    \"id\": \"<SFDC_PAYMENT_INSTRUMENT_ID>\"\n                },\n                \"gifttransactiondesignation\": [\n                    {\n                        \"href\": \"/services/data/vXX.X/sobjects/sObject/<SFDC_GIFT_TRANSACTION_DESIGNATION_ID>\",\n                        \"id\": \"<SFDC_GIFT_TRANSACTION_DESIGNATION_ID>\"\n                    }\n                ]\n            }\n        },\n        {\n            \"success\": true,\n            \"links\": {\n                \"account\": {\n                    \"href\": \"/services/data/vXX.X/sobjects/sObject/<SFDC_ACCOUNT_ID>\",\n                    \"id\": \"<SFDC_ACCOUNT_ID>\"\n                },\n                \"gifttransaction\": {\n                    \"href\": \"/services/data/vXX.X/sobjects/sObject/<SFDC_GIFT_TRANSACTION_ID>\",\n                    \"id\": \"<SFDC_GIFT_TRANSACTION_ID>\"\n                },\n                \"giftcommitment\": {\n                    \"href\": \"/services/data/vXX.X/sobjects/sObject/<SFDC_GIFT_COMMITMENT_ID>\",\n                    \"id\": \"<SFDC_GIFT_COMMITMENT_ID>\"\n                },\n                \"paymentinstrument\": {\n                    \"href\": \"/services/data/vXX.X/sobjects/sObject/<SFDC_PAYMENT_INSTRUMENT_ID>\",\n                    \"id\": \"<SFDC_PAYMENT_INSTRUMENT_ID>\"\n                },\n                \"gifttransactiondesignation\": [\n                    {\n                        \"href\": \"/services/data/vXX.X/sobjects/sObject/<SFDC_GIFT_TRANSACTION_DESIGNATION_ID>\",\n                        \"id\": \"<SFDC_GIFT_TRANSACTION_DESIGNATION_ID>\"\n                    }\n                ]\n            }\n        }\n    ]\n}"
    },
    {
      "name": "Status201-CreateGiftRequestValidationFailure",
      "originalRequest": {
        "method": "POST",
        "header": [
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"processingOptions\": {\n    \"donorOptions\": {\n      \"defaultUpdateLogic\": \"update_all\"\n    }\n  },\n  \"gifts\": [\n    {\n      \"amount\": 150.25,\n      \"currencyIsoCode\": \"USD\",\n      \"receivedDate\": \"2024-07-06\",\n      \"donorCoverAmount\": 0.25,\n      \"transactionStatus\": \"Unpaid\",\n      \"commitmentId\": \"123456\",\n      \"paymentIdentifier\": \"1234\",\n      \"gatewayTransactionFee\": 0.75,\n      \"processorTransactionFee\": 0.45,\n      \"processorReference\": \"cls-1247586928747\",\n      \"gatewayReference\": \"102656693ac3ca6e0cdafbfe89ab99\",\n      \"lastGatewayResponseCode\": \"invalid_cvc\",\n      \"lastGatewayErrorMessage\": \"The card’s security code is invalid. Check the card’s security code or use a different card.\",\n      \"lastGatewayProcessedDateTime\": \"2023-07-06T21:57:51Z\",\n      \"campaign\": {\n        \"id\": \"<SFDC_CAMPAIGN_ID>\"\n      },\n      \"outreachSourceCode\": {\n        \"id\": \"<SFDC_OUTREACH_SOURCE_CODE_ID>\",\n        \"sourceCode\": \"AnimalEmailCampaign2023\"\n      },\n      \"donor\": {\n        \"donorType\": \"individual\",\n        \"id\": \"<SFDC_PERSON_ACCOUNT_ID>\",\n        \"firstName\": \"Test\",\n        \"lastName\": \"Donor\",\n        \"phone\": \"510-434-8920\",\n        \"email\": \"test.user@example.com\",\n        \"address\": [\n          {\n            \"addressType\": \"mailing\",\n            \"street\": \"123 Main Street\",\n            \"city\": \"Oakland\",\n            \"state\": \"CA\",\n            \"postalCode\": \"94610\",\n            \"country\": \"US\"\n          }\n        ],\n        \"accountCustomFields\": [\n          {\n            \"fieldName\": \"<VALID_CUSTOM_FIELD_API_NAME>\",\n            \"fieldValue\": \"string\"\n          }\n        ]\n      },\n      \"paymentInstrument\": {\n        \"type\": \"credit card\",\n        \"accountHolderName\": \"test donor\",\n        \"expiryMonth\": \"10\",\n        \"expiryYear\": \"2027\",\n        \"last4\": \"4585\",\n        \"cardBrand\": \"visa\",\n        \"bankName\": \"chase\",\n        \"digitalWalletProvider\": \"apple pay\",\n        \"bankAccountHolderType\": \"primary\",\n        \"bankAccountType\": \"checking\",\n        \"bankAccountNumber\": \"123456\",\n        \"bankCode\": \"HBUK\",\n        \"gatewayName\": \"stripe\",\n        \"processorName\": \"test processor\",\n        \"processorPaymentReference\": \"string\",\n        \"gatewayReference\": \"string\"\n      },\n      \"designations\": [\n        {\n          \"designationId\": \"<SFDC_GIFT_DESIGNATION_ID>\",\n          \"percent\": 10\n        }\n      ],\n      \"giftTransactionCustomFields\": [\n        {\n          \"fieldName\": \"<VALID_CUSTOM_FIELD_API_NAME>\",\n          \"fieldValue\": \"string\"\n        }\n      ]\n    },\n    {\n      \"amount\": 300.00,\n      \"currencyIsoCode\": \"USD\",\n      \"receivedDate\": \"2024-07-06\",\n      \"donorCoverAmount\": 0.25,\n      \"transactionStatus\": \"Unpaid\",\n      \"commitmentId\": \"<SFDC_GIFT_COMMITMENT_ID>\",\n      \"paymentIdentifier\": \"1234\",\n      \"gatewayTransactionFee\": 0.75,\n      \"processorTransactionFee\": 0.45,\n      \"processorReference\": \"cls-1247586928747\",\n      \"gatewayReference\": \"102656693ac3ca6e0cdafbfe89ab99\",\n      \"lastGatewayResponseCode\": \"invalid_cvc\",\n      \"lastGatewayErrorMessage\": \"The card’s security code is invalid. Check the card’s security code or use a different card.\",\n      \"lastGatewayProcessedDateTime\": \"2023-07-06T21:57:51Z\",\n      \"campaign\": {\n        \"id\": \"<SFDC_CAMPAIGN_ID>\"\n      },\n      \"outreachSourceCode\": {\n        \"id\": \"<SFDC_OUTREACH_SOURCE_CODE_ID>\",\n        \"sourceCode\": \"AnimalEmailCampaign2023\"\n      },\n      \"donor\": {\n        \"donorType\": \"individual\",\n        \"id\": \"<SFDC_PERSON_ACCOUNT_ID>\",\n        \"firstName\": \"Test\",\n        \"lastName\": \"Donor\",\n        \"phone\": \"510-434-8920\",\n        \"email\": \"test.user@example.com\",\n        \"address\": [\n          {\n            \"addressType\": \"mailing\",\n            \"street\": \"123 Main Street\",\n            \"city\": \"Oakland\",\n            \"state\": \"CA\",\n            \"postalCode\": \"94610\",\n            \"country\": \"US\"\n          }\n        ],\n        \"accountCustomFields\": [\n          {\n            \"fieldName\": \"<VALID_CUSTOM_FIELD_API_NAME>\",\n            \"fieldValue\": \"string\"\n          }\n        ]\n      },\n      \"paymentInstrument\": {\n        \"type\": \"credit card\",\n        \"accountHolderName\": \"test donor\",\n        \"expiryMonth\": \"10\",\n        \"expiryYear\": \"2027\",\n        \"last4\": \"4585\",\n        \"cardBrand\": \"visa\",\n        \"bankName\": \"chase\",\n        \"digitalWalletProvider\": \"apple pay\",\n        \"bankAccountHolderType\": \"primary\",\n        \"bankAccountType\": \"checking\",\n        \"bankAccountNumber\": \"123456\",\n        \"bankCode\": \"HBUK\",\n        \"gatewayName\": \"stripe\",\n        \"processorName\": \"test processor\",\n        \"processorPaymentReference\": \"string\",\n        \"gatewayReference\": \"string\"\n      },\n      \"designations\": [\n        {\n          \"designationId\": \"<SFDC_GIFT_DESIGNATION_ID>\",\n          \"percent\": 10\n        }\n      ],\n      \"giftTransactionCustomFields\": [\n        {\n          \"fieldName\": \"<VALID_CUSTOM_FIELD_API_NAME>\",\n          \"fieldValue\": \"string\"\n        }\n      ]\n    }\n  ]\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{_endpoint}}/services/data/v{{version}}/connect/fundraising/gifts",
          "host": [
            "{{_endpoint}}"
          ],
          "path": [
            "services",
            "data",
            "v{{version}}",
            "connect",
            "fundraising",
            "gifts"
          ]
        }
      },
      "status": "Created",
      "code": 201,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json",
          "description": ""
        }
      ],
      "cookie": [
      ],
      "body": "{\n    \"successes\": 1,\n    \"failures\": 1,\n    \"notProcessed\": 0,\n    \"details\": [\n        {\n            \"success\": false,\n            \"errors\": {\n                \"field\": \"id\",\n                \"message\": \"<invalid id message>\"\n            }\n        },\n        {\n            \"success\": true,\n            \"links\": {\n                \"account\": {\n                    \"href\": \"/services/data/vXX.X/sobjects/sObject/<SFDC_ACCOUNT_ID>\",\n                    \"id\": \"<SFDC_ACCOUNT_ID>\"\n                },\n                \"gifttransaction\": {\n                    \"href\": \"/services/data/vXX.X/sobjects/sObject/<SFDC_GIFT_TRANSACTION_ID>\",\n                    \"id\": \"<SFDC_GIFT_TRANSACTION_ID>\"\n                },\n                \"giftcommitment\": {\n                    \"href\": \"/services/data/vXX.X/sobjects/sObject/<SFDC_GIFT_COMMITMENT_ID>\",\n                    \"id\": \"<SFDC_GIFT_COMMITMENT_ID>\"\n                },\n                \"paymentinstrument\": {\n                    \"href\": \"/services/data/vXX.X/sobjects/sObject/<SFDC_PAYMENT_INSTRUMENT_ID>\",\n                    \"id\": \"<SFDC_PAYMENT_INSTRUMENT_ID>\"\n                },\n                \"gifttransactiondesignation\": [\n                    {\n                        \"href\": \"/services/data/vXX.X/sobjects/sObject/<SFDC_GIFT_TRANSACTION_DESIGNATION_ID>\",\n                        \"id\": \"<SFDC_GIFT_TRANSACTION_DESIGNATION_ID>\"\n                    }\n                ]\n            }\n        }\n    ]\n}"
    },
    {
      "name": "Status201-CreateGiftDatabaseFailure",
      "originalRequest": {
        "method": "POST",
        "header": [
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"processingOptions\": {\n    \"donorOptions\": {\n      \"defaultUpdateLogic\": \"update_all\"\n    }\n  },\n  \"gifts\": [\n    {\n      \"amount\": 5.00,\n      \"currencyIsoCode\": \"USD\",\n      \"receivedDate\": \"2024-07-06\",\n      \"donorCoverAmount\": 0.25,\n      \"transactionStatus\": \"Paid\",\n      \"paymentIdentifier\": \"1234\",\n      \"gatewayTransactionFee\": 0.75,\n      \"processorTransactionFee\": 0.45,\n      \"processorReference\": \"cls-1247586928747\",\n      \"gatewayReference\": \"102656693ac3ca6e0cdafbfe89ab99\",\n      \"lastGatewayResponseCode\": \"invalid_cvc\",\n      \"lastGatewayErrorMessage\": \"The card’s security code is invalid. Check the card’s security code or use a different card.\",\n      \"lastGatewayProcessedDateTime\": \"2023-07-06T21:57:51Z\",\n      \"outreachSourceCode\": {\n        \"sourceCode\": \"AnimalEmailCampaign2023\"\n      },\n      \"donor\": {\n        \"donorType\": \"individual\",\n        \"firstName\": \"Test\",\n        \"lastName\": \"Donor\",\n        \"phone\": \"510-434-8920\",\n        \"email\": \"test.user@example.com\",\n        \"address\": [\n          {\n            \"addressType\": \"mailing\",\n            \"street\": \"123 Main Street\",\n            \"city\": \"Oakland\",\n            \"state\": \"CA\",\n            \"postalCode\": \"94610\",\n            \"country\": \"US\"\n          }\n        ],\n        \"accountCustomFields\": [\n          {\n            \"fieldName\": \"<VALID_CUSTOM_FIELD_API_NAME>\",\n            \"fieldValue\": \"string\"\n          }\n        ]\n      },\n      \"paymentInstrument\": {\n        \"type\": \"credit card\",\n        \"accountHolderName\": \"test donor\",\n        \"expiryMonth\": \"10\",\n        \"expiryYear\": \"2027\",\n        \"last4\": \"4585\",\n        \"cardBrand\": \"visa\",\n        \"bankName\": \"chase\",\n        \"digitalWalletProvider\": \"apple pay\",\n        \"bankAccountHolderType\": \"primary\",\n        \"bankAccountType\": \"checking\",\n        \"bankAccountNumber\": \"123456\",\n        \"bankCode\": \"HBUK\",\n        \"gatewayName\": \"stripe\",\n        \"processorName\": \"test processor\",\n        \"processorPaymentReference\": \"string\",\n        \"gatewayReference\": \"string\"\n      },\n      \"designations\": [\n        {\n          \"designationId\": \"<SFDC_GIFT_DESIGNATION_ID>\",\n          \"percent\": 10\n        }\n      ],\n      \"giftTransactionCustomFields\": [\n        {\n          \"fieldName\": \"<VALID_CUSTOM_FIELD_API_NAME>\",\n          \"fieldValue\": \"string\"\n        }\n      ]\n    },\n    {\n      \"amount\": 300.00,\n      \"currencyIsoCode\": \"USD\",\n      \"receivedDate\": \"2024-07-06\",\n      \"donorCoverAmount\": 0.25,\n      \"transactionStatus\": \"Paid\",\n      \"paymentIdentifier\": \"1234\",\n      \"gatewayTransactionFee\": 0.75,\n      \"processorTransactionFee\": 0.45,\n      \"processorReference\": \"cls-1247586928747\",\n      \"gatewayReference\": \"102656693ac3ca6e0cdafbfe89ab99\",\n      \"lastGatewayResponseCode\": \"invalid_cvc\",\n      \"lastGatewayErrorMessage\": \"The card’s security code is invalid. Check the card’s security code or use a different card.\",\n      \"lastGatewayProcessedDateTime\": \"2023-07-06T21:57:51Z\",\n      \"outreachSourceCode\": {\n        \"sourceCode\": \"AnimalEmailCampaign2023\"\n      },\n      \"donor\": {\n        \"donorType\": \"individual\",\n        \"firstName\": \"Test\",\n        \"lastName\": \"Donor\",\n        \"phone\": \"510-434-8920\",\n        \"email\": \"test.user@example.com\",\n        \"address\": [\n          {\n            \"addressType\": \"mailing\",\n            \"street\": \"123 Main Street\",\n            \"city\": \"Oakland\",\n            \"state\": \"CA\",\n            \"postalCode\": \"94610\",\n            \"country\": \"US\"\n          }\n        ],\n        \"accountCustomFields\": [\n          {\n            \"fieldName\": \"<VALID_CUSTOM_FIELD_API_NAME>\",\n            \"fieldValue\": \"string\"\n          }\n        ]\n      },\n      \"paymentInstrument\": {\n        \"type\": \"credit card\",\n        \"accountHolderName\": \"test donor\",\n        \"expiryMonth\": \"10\",\n        \"expiryYear\": \"2027\",\n        \"last4\": \"4585\",\n        \"cardBrand\": \"visa\",\n        \"bankName\": \"chase\",\n        \"digitalWalletProvider\": \"apple pay\",\n        \"bankAccountHolderType\": \"primary\",\n        \"bankAccountType\": \"checking\",\n        \"bankAccountNumber\": \"123456\",\n        \"bankCode\": \"HBUK\",\n        \"gatewayName\": \"stripe\",\n        \"processorName\": \"test processor\",\n        \"processorPaymentReference\": \"string\",\n        \"gatewayReference\": \"string\"\n      },\n      \"designations\": [\n        {\n          \"designationId\": \"<SFDC_GIFT_DESIGNATION_ID>\",\n          \"percent\": 10\n        }\n      ],\n      \"giftTransactionCustomFields\": [\n        {\n          \"fieldName\": \"<VALID_CUSTOM_FIELD_API_NAME>\",\n          \"fieldValue\": \"string\"\n        }\n      ]\n    },\n    {\n      \"amount\": 300.00,\n      \"currencyIsoCode\": \"USD\",\n      \"receivedDate\": \"2024-07-06\",\n      \"donorCoverAmount\": 0.25,\n      \"transactionStatus\": \"Paid\",\n      \"paymentIdentifier\": \"1234\",\n      \"gatewayTransactionFee\": 0.75,\n      \"processorTransactionFee\": 0.45,\n      \"processorReference\": \"cls-1247586928747\",\n      \"gatewayReference\": \"102656693ac3ca6e0cdafbfe89ab99\",\n      \"lastGatewayResponseCode\": \"invalid_cvc\",\n      \"lastGatewayErrorMessage\": \"The card’s security code is invalid. Check the card’s security code or use a different card.\",\n      \"lastGatewayProcessedDateTime\": \"2023-07-06T21:57:51Z\",\n      \"outreachSourceCode\": {\n        \"sourceCode\": \"AnimalEmailCampaign2023\"\n      },\n      \"donor\": {\n        \"donorType\": \"individual\",\n        \"firstName\": \"Test\",\n        \"lastName\": \"Donor\",\n        \"phone\": \"510-434-8920\",\n        \"email\": \"test.user@example.com\",\n        \"address\": [\n          {\n            \"addressType\": \"mailing\",\n            \"street\": \"123 Main Street\",\n            \"city\": \"Oakland\",\n            \"state\": \"CA\",\n            \"postalCode\": \"94610\",\n            \"country\": \"US\"\n          }\n        ],\n        \"accountCustomFields\": [\n          {\n            \"fieldName\": \"<VALID_CUSTOM_FIELD_API_NAME>\",\n            \"fieldValue\": \"string\"\n          }\n        ]\n      },\n      \"paymentInstrument\": {\n        \"type\": \"credit card\",\n        \"accountHolderName\": \"test donor\",\n        \"expiryMonth\": \"10\",\n        \"expiryYear\": \"2027\",\n        \"last4\": \"4585\",\n        \"cardBrand\": \"visa\",\n        \"bankName\": \"chase\",\n        \"digitalWalletProvider\": \"apple pay\",\n        \"bankAccountHolderType\": \"primary\",\n        \"bankAccountType\": \"checking\",\n        \"bankAccountNumber\": \"123456\",\n        \"bankCode\": \"HBUK\",\n        \"gatewayName\": \"stripe\",\n        \"processorName\": \"test processor\",\n        \"processorPaymentReference\": \"string\",\n        \"gatewayReference\": \"string\"\n      },\n      \"designations\": [\n        {\n          \"designationId\": \"<SFDC_GIFT_DESIGNATION_ID>\",\n          \"percent\": 10\n        }\n      ],\n      \"giftTransactionCustomFields\": [\n        {\n          \"fieldName\": \"<VALID_CUSTOM_FIELD_API_NAME>\",\n          \"fieldValue\": \"string\"\n        }\n      ]\n    }\n  ]\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{_endpoint}}/services/data/v{{version}}/connect/fundraising/gifts",
          "host": [
            "{{_endpoint}}"
          ],
          "path": [
            "services",
            "data",
            "v{{version}}",
            "connect",
            "fundraising",
            "gifts"
          ]
        }
      },
      "status": "Created",
      "code": 201,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json",
          "description": ""
        }
      ],
      "cookie": [
      ],
      "body": "// This is a scenario where there is a validation rule on the Gift Transaction object requiring the amount to be greater than 10.00. One database error occurs for the 5.00 transaction, causing the other two to be rolled back with success of false and no record links.\n{\n    \"successes\": 0,\n    \"failures\": 1,\n    \"notProcessed\": 2,\n    \"details\": [\n        {\n            \"success\": false,\n            \"errors\": {\n                \"message\": \"Amount must be greater than 10.00\"\n            }\n        },\n        {\n            \"success\": false\n        },\n        {\n            \"success\": false\n        }\n    ]\n}"
    },
    {
      "name": "Status201-CreateGiftSuccessWithExternalIds",
      "originalRequest": {
        "method": "POST",
        "header": [
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"processingOptions\": {\n    \"donorOptions\": {\n      \"defaultUpdateLogic\": \"update_all\"\n    }\n  },\n  \"gifts\": [\n    {\n      \"amount\": 150.25,\n      \"currencyIsoCode\": \"USD\",\n      \"receivedDate\": \"2024-07-06\",\n      \"donorCoverAmount\": 0.25,\n      \"transactionStatus\": \"Unpaid\",\n      \"commitment\": {\n        \"externalId\": {\n            \"fieldName\": \"<EXTERNAL_ID_FIELD_NAME>\",\n            \"fieldValue\": \"<EXTERNAL_ID_FIELD_VALUE>\"\n        }\n      },\n      \"paymentIdentifier\": \"1234\",\n      \"gatewayTransactionFee\": 0.75,\n      \"processorTransactionFee\": 0.45,\n      \"processorReference\": \"cls-1247586928747\",\n      \"gatewayReference\": \"102656693ac3ca6e0cdafbfe89ab99\",\n      \"lastGatewayResponseCode\": \"invalid_cvc\",\n      \"lastGatewayErrorMessage\": \"The card’s security code is invalid. Check the card’s security code or use a different card.\",\n      \"lastGatewayProcessedDateTime\": \"2023-07-06T21:57:51Z\",\n      \"campaign\": {\n        \"externalId\": {\n            \"fieldName\": \"<EXTERNAL_ID_FIELD_NAME>\",\n            \"fieldValue\": \"<EXTERNAL_ID_FIELD_VALUE>\"\n        }\n      },\n      \"outreachSourceCode\": {\n        \"id\": \"<SFDC_OUTREACH_SOURCE_CODE_ID>\",\n        \"sourceCode\": \"AnimalEmailCampaign2023\"\n      },\n      \"donor\": {\n        \"donorType\": \"individual\",\n        \"externalId\": {\n            \"fieldName\": \"<EXTERNAL_ID_FIELD_NAME>\",\n            \"fieldValue\": \"<EXTERNAL_ID_FIELD_VALUE>\"\n        },\n        \"organizationName\": \"<Organization_Name>\", // If donor type is \"organizational\"\n        \"firstName\": \"David\", // if donor type is \"individual\"\n        \"lastName\": \"Chavez\", // if donor type is \"individual\"\n        \"phone\": \"510-434-8920\",\n        \"email\": \"d.chavez@example.com\",\n        \"address\": [\n          {\n            \"addressType\": \"mailing\",\n            \"street\": \"123 Main Street\",\n            \"city\": \"Oakland\",\n            \"state\": \"CA\",\n            \"postalCode\": \"94610\",\n            \"country\": \"US\"\n          }\n        ],\n        \"accountCustomFields\": [\n          {\n            \"fieldName\": \"string\",\n            \"fieldValue\": \"string\"\n          }\n        ]\n      },\n      \"paymentInstrument\": {\n        \"type\": \"credit card\",\n        \"accountHolderName\": \"test donor\",\n        \"expiryMonth\": \"10\",\n        \"expiryYear\": \"2027\",\n        \"last4\": \"4585\",\n        \"cardBrand\": \"visa\",\n        \"bankName\": \"chase\",\n        \"digitalWalletProvider\": \"apple pay\",\n        \"bankAccountHolderType\": \"primary\",\n        \"bankAccountType\": \"checking\",\n        \"bankAccountNumber\": \"123456\",\n        \"bankCode\": \"HBUK\",\n        \"gatewayName\": \"stripe\",\n        \"processorName\": \"test processor\",\n        \"processorPaymentReference\": \"string\",\n        \"gatewayReference\": \"string\"\n      },\n      \"designations\": [\n        {\n          \"externalId\": {\n            \"fieldName\": \"<EXTERNAL_ID_FIELD_NAME>\",\n            \"fieldValue\": \"<EXTERNAL_ID_FIELD_VALUE>\"\n          },\n          \"percent\": 10,\n          \"amount\": 150.25\n        }\n      ],\n      \"giftTransactionCustomFields\": [\n        {\n          \"fieldName\": \"string\",\n          \"fieldValue\": \"string\"\n        }\n      ]\n    },\n    {\n      \"amount\": 250.00,\n      \"currencyIsoCode\": \"USD\",\n      \"receivedDate\": \"2024-07-06\",\n      \"donorCoverAmount\": 0.25,\n      \"transactionStatus\": \"Unpaid\",\n      \"commitment\": {\n        \"externalId\": {\n            \"fieldName\": \"<EXTERNAL_ID_FIELD_NAME>\",\n            \"fieldValue\": \"<EXTERNAL_ID_FIELD_VALUE>\"\n        }\n      },\n      \"paymentIdentifier\": \"1234\",\n      \"gatewayTransactionFee\": 0.75,\n      \"processorTransactionFee\": 0.45,\n      \"processorReference\": \"cls-1247586928747\",\n      \"gatewayReference\": \"102656693ac3ca6e0cdafbfe89ab99\",\n      \"lastGatewayResponseCode\": \"invalid_cvc\",\n      \"lastGatewayErrorMessage\": \"The card’s security code is invalid. Check the card’s security code or use a different card.\",\n      \"lastGatewayProcessedDateTime\": \"2023-07-06T21:57:51Z\",\n      \"campaign\": {\n        \"externalId\": {\n            \"fieldName\": \"<EXTERNAL_ID_FIELD_NAME>\",\n            \"fieldValue\": \"<EXTERNAL_ID_FIELD_VALUE>\"\n        }\n      },\n      \"outreachSourceCode\": {\n        \"id\": \"<SFDC_OUTREACH_SOURCE_CODE_ID>\",\n        \"sourceCode\": \"AnimalEmailCampaign2023\"\n      },\n      \"donor\": {\n        \"donorType\": \"individual\",\n        \"externalId\": {\n            \"fieldName\": \"<EXTERNAL_ID_FIELD_NAME>\",\n            \"fieldValue\": \"<EXTERNAL_ID_FIELD_VALUE>\"\n        },\n        \"organizationName\": \"<Organization_Name>\",\n        \"firstName\": \"Luke\",\n        \"lastName\": \"Smith\",\n        \"phone\": \"510-434-8920\",\n        \"email\": \"l.smith@example.com\",\n        \"address\": [\n          {\n            \"addressType\": \"mailing\",\n            \"street\": \"123 Main Street\",\n            \"city\": \"Oakland\",\n            \"state\": \"CA\",\n            \"postalCode\": \"94610\",\n            \"country\": \"US\"\n          }\n        ],\n        \"accountCustomFields\": [\n          {\n            \"fieldName\": \"string\",\n            \"fieldValue\": \"string\"\n          }\n        ]\n      },\n      \"paymentInstrument\": {\n        \"type\": \"credit card\",\n        \"accountHolderName\": \"test donor\",\n        \"expiryMonth\": \"10\",\n        \"expiryYear\": \"2027\",\n        \"last4\": \"4585\",\n        \"cardBrand\": \"visa\",\n        \"bankName\": \"chase\",\n        \"digitalWalletProvider\": \"apple pay\",\n        \"bankAccountHolderType\": \"primary\",\n        \"bankAccountType\": \"checking\",\n        \"bankAccountNumber\": \"123456\",\n        \"bankCode\": \"HBUK\",\n        \"gatewayName\": \"stripe\",\n        \"processorName\": \"test processor\",\n        \"processorPaymentReference\": \"string\",\n        \"gatewayReference\": \"string\"\n      },\n      \"designations\": [\n        {\n            \"externalId\": {\n                \"fieldName\": \"<EXTERNAL_ID_FIELD_NAME>\",\n                \"fieldValue\": \"<EXTERNAL_ID_FIELD_VALUE>\"\n          },\n          \"percent\": 10,\n          \"amount\": 150.25\n        }\n      ],\n      \"giftTransactionCustomFields\": [\n        {\n          \"fieldName\": \"string\",\n          \"fieldValue\": \"string\"\n        }\n      ]\n    }\n  ]\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{_endpoint}}/services/data/v{{version}}/connect/fundraising/gifts",
          "host": [
            "{{_endpoint}}"
          ],
          "path": [
            "services",
            "data",
            "v{{version}}",
            "connect",
            "fundraising",
            "gifts"
          ]
        }
      },
      "_postman_previewlanguage": null,
      "header": null,
      "cookie": [
      ],
      "body": "{\n    \"successes\": 2,\n    \"failures\": 0,\n    \"notProcessed\": 0,\n    \"details\": [\n        {\n            \"success\": true,\n            \"links\": {\n                \"account\": {\n                    \"href\": \"/services/data/vXX.X/sobjects/sObject/<SFDC_ACCOUNT_ID>\",\n                    \"id\": \"<SFDC_ACCOUNT_ID>\"\n                },\n                \"gifttransaction\": {\n                    \"href\": \"/services/data/vXX.X/sobjects/sObject/<SFDC_GIFT_TRANSACTION_ID>\",\n                    \"id\": \"<SFDC_GIFT_TRANSACTION_ID>\"\n                },\n                \"giftcommitment\": {\n                    \"href\": \"/services/data/vXX.X/sobjects/sObject/<SFDC_GIFT_COMMITMENT_ID>\",\n                    \"id\": \"<SFDC_GIFT_COMMITMENT_ID>\"\n                },\n                \"paymentinstrument\": {\n                    \"href\": \"/services/data/vXX.X/sobjects/sObject/<SFDC_PAYMENT_INSTRUMENT_ID>\",\n                    \"id\": \"<SFDC_PAYMENT_INSTRUMENT_ID>\"\n                },\n                \"gifttransactiondesignation\": [\n                    {\n                        \"href\": \"/services/data/vXX.X/sobjects/sObject/<SFDC_GIFT_TRANSACTION_DESIGNATION_ID>\",\n                        \"id\": \"<SFDC_GIFT_TRANSACTION_DESIGNATION_ID>\"\n                    }\n                ]\n            }\n        },\n        {\n            \"success\": true,\n            \"links\": {\n                \"account\": {\n                    \"href\": \"/services/data/vXX.X/sobjects/sObject/<SFDC_ACCOUNT_ID>\",\n                    \"id\": \"<SFDC_ACCOUNT_ID>\"\n                },\n                \"gifttransaction\": {\n                    \"href\": \"/services/data/vXX.X/sobjects/sObject/<SFDC_GIFT_TRANSACTION_ID>\",\n                    \"id\": \"<SFDC_GIFT_TRANSACTION_ID>\"\n                },\n                \"giftcommitment\": {\n                    \"href\": \"/services/data/vXX.X/sobjects/sObject/<SFDC_GIFT_COMMITMENT_ID>\",\n                    \"id\": \"<SFDC_GIFT_COMMITMENT_ID>\"\n                },\n                \"paymentinstrument\": {\n                    \"href\": \"/services/data/vXX.X/sobjects/sObject/<SFDC_PAYMENT_INSTRUMENT_ID>\",\n                    \"id\": \"<SFDC_PAYMENT_INSTRUMENT_ID>\"\n                },\n                \"gifttransactiondesignation\": [\n                    {\n                        \"href\": \"/services/data/vXX.X/sobjects/sObject/<SFDC_GIFT_TRANSACTION_DESIGNATION_ID>\",\n                        \"id\": \"<SFDC_GIFT_TRANSACTION_DESIGNATION_ID>\"\n                    }\n                ]\n            }\n        }\n    ]\n}"
    },
    {
      "name": "Status400-BadRequestError",
      "originalRequest": {
        "method": "POST",
        "header": [
        ],
        "body": {
          "mode": "raw",
          "raw": "// Even if the JSON request is valid, this is an example of a 400 error code that will be returned if duplicate matching rules are not active.\n{\n  \"processingOptions\": {\n    \"donorOptions\": {\n      \"defaultUpdateLogic\": \"update_all\"\n    }\n  },\n  \"gifts\": [\n    {\n      \"amount\": 150.25,\n      \"currencyIsoCode\": \"USD\",\n      \"receivedDate\": \"2024-07-06\",\n      \"donorCoverAmount\": 0.25,\n      \"transactionStatus\": \"Unpaid\",\n      \"commitmentId\": \"123456\",\n      \"paymentIdentifier\": \"1234\",\n      \"gatewayTransactionFee\": 0.75,\n      \"processorTransactionFee\": 0.45,\n      \"processorReference\": \"cls-1247586928747\",\n      \"gatewayReference\": \"102656693ac3ca6e0cdafbfe89ab99\",\n      \"lastGatewayResponseCode\": \"invalid_cvc\",\n      \"lastGatewayErrorMessage\": \"The card’s security code is invalid. Check the card’s security code or use a different card.\",\n      \"lastGatewayProcessedDateTime\": \"2023-07-06T21:57:51Z\",\n      \"campaign\": {\n        \"id\": \"<SFDC_CAMPAIGN_ID>\"\n      },\n      \"outreachSourceCode\": {\n        \"id\": \"<SFDC_OUTREACH_SOURCE_CODE_ID>\",\n        \"sourceCode\": \"AnimalEmailCampaign2023\"\n      },\n      \"donor\": {\n        \"donorType\": \"individual\",\n        \"id\": \"<SFDC_PERSON_ACCOUNT_ID>\",\n        \"firstName\": \"Test\",\n        \"lastName\": \"Donor\",\n        \"phone\": \"510-434-8920\",\n        \"email\": \"test.user@example.com\",\n        \"address\": [\n          {\n            \"addressType\": \"mailing\",\n            \"street\": \"123 Main Street\",\n            \"city\": \"Oakland\",\n            \"state\": \"CA\",\n            \"postalCode\": \"94610\",\n            \"country\": \"US\"\n          }\n        ],\n        \"accountCustomFields\": [\n          {\n            \"fieldName\": \"<VALID_CUSTOM_FIELD_API_NAME>\",\n            \"fieldValue\": \"string\"\n          }\n        ]\n      },\n      \"paymentInstrument\": {\n        \"type\": \"credit card\",\n        \"accountHolderName\": \"test donor\",\n        \"expiryMonth\": \"10\",\n        \"expiryYear\": \"2027\",\n        \"last4\": \"4585\",\n        \"cardBrand\": \"visa\",\n        \"bankName\": \"chase\",\n        \"digitalWalletProvider\": \"apple pay\",\n        \"bankAccountHolderType\": \"primary\",\n        \"bankAccountType\": \"checking\",\n        \"bankAccountNumber\": \"123456\",\n        \"bankCode\": \"HBUK\",\n        \"gatewayName\": \"stripe\",\n        \"processorName\": \"test processor\",\n        \"processorPaymentReference\": \"string\",\n        \"gatewayReference\": \"string\"\n      },\n      \"designations\": [\n        {\n          \"designationId\": \"<SFDC_GIFT_DESIGNATION_ID>\",\n          \"percent\": 10\n        }\n      ],\n      \"giftTransactionCustomFields\": [\n        {\n          \"fieldName\": \"<VALID_CUSTOM_FIELD_API_NAME>\",\n          \"fieldValue\": \"string\"\n        }\n      ]\n    },\n    {\n      \"amount\": 300.00,\n      \"currencyIsoCode\": \"USD\",\n      \"receivedDate\": \"2024-07-06\",\n      \"donorCoverAmount\": 0.25,\n      \"transactionStatus\": \"Unpaid\",\n      \"commitmentId\": \"<SFDC_GIFT_COMMITMENT_ID>\",\n      \"paymentIdentifier\": \"1234\",\n      \"gatewayTransactionFee\": 0.75,\n      \"processorTransactionFee\": 0.45,\n      \"processorReference\": \"cls-1247586928747\",\n      \"gatewayReference\": \"102656693ac3ca6e0cdafbfe89ab99\",\n      \"lastGatewayResponseCode\": \"invalid_cvc\",\n      \"lastGatewayErrorMessage\": \"The card’s security code is invalid. Check the card’s security code or use a different card.\",\n      \"lastGatewayProcessedDateTime\": \"2023-07-06T21:57:51Z\",\n      \"campaign\": {\n        \"id\": \"<SFDC_CAMPAIGN_ID>\"\n      },\n      \"outreachSourceCode\": {\n        \"id\": \"<SFDC_OUTREACH_SOURCE_CODE_ID>\",\n        \"sourceCode\": \"AnimalEmailCampaign2023\"\n      },\n      \"donor\": {\n        \"donorType\": \"individual\",\n        \"id\": \"<SFDC_PERSON_ACCOUNT_ID>\",\n        \"firstName\": \"Test\",\n        \"lastName\": \"Donor\",\n        \"phone\": \"510-434-8920\",\n        \"email\": \"test.user@example.com\",\n        \"address\": [\n          {\n            \"addressType\": \"mailing\",\n            \"street\": \"123 Main Street\",\n            \"city\": \"Oakland\",\n            \"state\": \"CA\",\n            \"postalCode\": \"94610\",\n            \"country\": \"US\"\n          }\n        ],\n        \"accountCustomFields\": [\n          {\n            \"fieldName\": \"<VALID_CUSTOM_FIELD_API_NAME>\",\n            \"fieldValue\": \"string\"\n          }\n        ]\n      },\n      \"paymentInstrument\": {\n        \"type\": \"credit card\",\n        \"accountHolderName\": \"test donor\",\n        \"expiryMonth\": \"10\",\n        \"expiryYear\": \"2027\",\n        \"last4\": \"4585\",\n        \"cardBrand\": \"visa\",\n        \"bankName\": \"chase\",\n        \"digitalWalletProvider\": \"apple pay\",\n        \"bankAccountHolderType\": \"primary\",\n        \"bankAccountType\": \"checking\",\n        \"bankAccountNumber\": \"123456\",\n        \"bankCode\": \"HBUK\",\n        \"gatewayName\": \"stripe\",\n        \"processorName\": \"test processor\",\n        \"processorPaymentReference\": \"string\",\n        \"gatewayReference\": \"string\"\n      },\n      \"designations\": [\n        {\n          \"designationId\": \"<SFDC_GIFT_DESIGNATION_ID>\",\n          \"percent\": 10\n        }\n      ],\n      \"giftTransactionCustomFields\": [\n        {\n          \"fieldName\": \"<VALID_CUSTOM_FIELD_API_NAME>\",\n          \"fieldValue\": \"string\"\n        }\n      ]\n    }\n  ]\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{_endpoint}}/services/data/v{{version}}/connect/fundraising/gifts",
          "host": [
            "{{_endpoint}}"
          ],
          "path": [
            "services",
            "data",
            "v{{version}}",
            "connect",
            "fundraising",
            "gifts"
          ]
        }
      },
      "status": "Bad Request",
      "code": 400,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json",
          "description": ""
        }
      ],
      "cookie": [
      ],
      "body": "    // Even if the JSON request is valid, this is an example of a 400 error code that will be returned if duplicate matching rules are not active. Any non 200 error code would have a similar response structure.\n    {\n        \"errorCode\": \"UNKNOWN_EXCEPTION\",\n        \"message\": \"Provide active duplicate matching rules on Account and Person Account for donor matching. -- industries.fundraisingops.connect.impl.validator.ValidatorUtil.validateMatchingMethod(ValidatorUtil.java:103)\"\n    }"
    }
  ]
}