Chilkat Online Tools

SQL Server / Salesforce Platform APIs / Update Gift Transaction Payments

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
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.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.

    -- {
    --   "updates": [
    --     {
    --       "giftTransactionId": "<SFDC_GIFT_TRANSACTION_ID>",
    --       "transactionStatus": "Paid",
    --       "processorReference": "string",
    --       "gatewayReference": "string",
    --       "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",
    --       "processorTransactionFee": 0.5,
    --       "gatewayTransactionFee": 0.25,
    --       "donorCoverAmount": 10.5
    --     },
    --     {
    --       "giftTransactionId": "<SFDC_GIFT_TRANSACTION_ID>",
    --       "transactionStatus": "Paid",
    --       "processorReference": "string",
    --       "gatewayReference": "string",
    --       "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",
    --       "processorTransactionFee": 1.00,
    --       "gatewayTransactionFee": 0.45,
    --       "donorCoverAmount": 20.00
    --     }
    --   ]
    -- }

    DECLARE @json int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.JsonObject', @json OUT

    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'updates[0].giftTransactionId', '<SFDC_GIFT_TRANSACTION_ID>'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'updates[0].transactionStatus', 'Paid'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'updates[0].processorReference', 'string'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'updates[0].gatewayReference', 'string'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'updates[0].lastGatewayResponseCode', 'invalid_cvc'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'updates[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, 'updates[0].lastGatewayProcessedDateTime', '2023-07-06T21:57:51Z'
    EXEC sp_OAMethod @json, 'UpdateNumber', @success OUT, 'updates[0].processorTransactionFee', '0.5'
    EXEC sp_OAMethod @json, 'UpdateNumber', @success OUT, 'updates[0].gatewayTransactionFee', '0.25'
    EXEC sp_OAMethod @json, 'UpdateNumber', @success OUT, 'updates[0].donorCoverAmount', '10.5'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'updates[1].giftTransactionId', '<SFDC_GIFT_TRANSACTION_ID>'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'updates[1].transactionStatus', 'Paid'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'updates[1].processorReference', 'string'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'updates[1].gatewayReference', 'string'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'updates[1].lastGatewayResponseCode', 'invalid_cvc'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'updates[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, 'updates[1].lastGatewayProcessedDateTime', '2023-07-06T21:57:51Z'
    EXEC sp_OAMethod @json, 'UpdateNumber', @success OUT, 'updates[1].processorTransactionFee', '1.00'
    EXEC sp_OAMethod @json, 'UpdateNumber', @success OUT, 'updates[1].gatewayTransactionFee', '0.45'
    EXEC sp_OAMethod @json, 'UpdateNumber', @success OUT, 'updates[1].donorCoverAmount', '20.00'

    -- 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/transactions/payment-updates', '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
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.StringBuilder', @sbResponseBody OUT

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

    DECLARE @jResp int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.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": {
    --         "gifttransaction": {
    --           "href": "/services/data/vXX.X/sobjects/sObject/<SFDC_GIFT_TRANSACTION_ID>",
    --           "id": "<SFDC_GIFT_TRANSACTION_ID>"
    --         }
    --       }
    --     },
    --     {
    --       "success": true,
    --       "links": {
    --         "gifttransaction": {
    --           "href": "/services/data/vXX.X/sobjects/sObject/<SFDC_GIFT_TRANSACTION_ID>",
    --           "id": "<SFDC_GIFT_TRANSACTION_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 @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.gifttransaction.href'
        EXEC sp_OAMethod @jResp, 'StringOf', @Id OUT, 'details[i].links.gifttransaction.id'
        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 '{
  "updates": [
    {
      "giftTransactionId": "<SFDC_GIFT_TRANSACTION_ID>",
      "transactionStatus": "Paid",
      "processorReference": "string",
      "gatewayReference": "string",
      "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",
      "processorTransactionFee": 0.5,
      "gatewayTransactionFee": 0.25,
      "donorCoverAmount": 10.5
    },
    {
      "giftTransactionId": "<SFDC_GIFT_TRANSACTION_ID>",
      "transactionStatus": "Paid",
      "processorReference": "string",
      "gatewayReference": "string",
      "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",
      "processorTransactionFee": 1.00,
      "gatewayTransactionFee": 0.45,
      "donorCoverAmount": 20.00
    }
  ]
}'
https://domain.com/services/data/v{{version}}/connect/fundraising/transactions/payment-updates

Postman Collection Item JSON

{
  "name": "Update Gift Transaction Payments",
  "request": {
    "method": "POST",
    "header": [
    ],
    "body": {
      "mode": "raw",
      "raw": "{\n  \"updates\": [\n    {\n      \"giftTransactionId\": \"<SFDC_GIFT_TRANSACTION_ID>\",\n      \"transactionStatus\": \"Paid\",\n      \"processorReference\": \"string\",\n      \"gatewayReference\": \"string\",\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      \"processorTransactionFee\": 0.5,\n      \"gatewayTransactionFee\": 0.25,\n      \"donorCoverAmount\": 10.5\n    },\n    {\n      \"giftTransactionId\": \"<SFDC_GIFT_TRANSACTION_ID>\",\n      \"transactionStatus\": \"Paid\",\n      \"processorReference\": \"string\",\n      \"gatewayReference\": \"string\",\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      \"processorTransactionFee\": 1.00,\n      \"gatewayTransactionFee\": 0.45,\n      \"donorCoverAmount\": 20.00\n    }\n  ]\n}",
      "options": {
        "raw": {
          "language": "json"
        }
      }
    },
    "url": {
      "raw": "{{_endpoint}}/services/data/v{{version}}/connect/fundraising/transactions/payment-updates",
      "host": [
        "{{_endpoint}}"
      ],
      "path": [
        "services",
        "data",
        "v{{version}}",
        "connect",
        "fundraising",
        "transactions",
        "payment-updates"
      ]
    },
    "description": "Update the gateway and processor metadata for gift transactions.\n\n## Required Attributes:\n\n- giftTransactionId\n    \n- transactionStatus"
  },
  "response": [
    {
      "name": "Status201-UpdateTransactionPaymentSuccess",
      "originalRequest": {
        "method": "POST",
        "header": [
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"updates\": [\n    {\n      \"giftTransactionId\": \"<SFDC_GIFT_TRANSACTION_ID>\",\n      \"transactionStatus\": \"Paid\",\n      \"processorReference\": \"string\",\n      \"gatewayReference\": \"string\",\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      \"processorTransactionFee\": 0.5,\n      \"gatewayTransactionFee\": 0.25,\n      \"donorCoverAmount\": 10.5\n    },\n    {\n      \"giftTransactionId\": \"<SFDC_GIFT_TRANSACTION_ID>\",\n      \"transactionStatus\": \"Paid\",\n      \"processorReference\": \"string\",\n      \"gatewayReference\": \"string\",\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      \"processorTransactionFee\": 1.00,\n      \"gatewayTransactionFee\": 0.45,\n      \"donorCoverAmount\": 20.00\n    }\n  ]\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{_endpoint}}/services/data/v{{version}}/connect/fundraising/transactions/payment-updates",
          "host": [
            "{{_endpoint}}"
          ],
          "path": [
            "services",
            "data",
            "v{{version}}",
            "connect",
            "fundraising",
            "transactions",
            "payment-updates"
          ]
        }
      },
      "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                \"gifttransaction\": {\n                    \"href\": \"/services/data/vXX.X/sobjects/sObject/<SFDC_GIFT_TRANSACTION_ID>\",\n                    \"id\": \"<SFDC_GIFT_TRANSACTION_ID>\"\n                }\n            }\n        },\n        {\n            \"success\": true,\n            \"links\": {\n                \"gifttransaction\": {\n                    \"href\": \"/services/data/vXX.X/sobjects/sObject/<SFDC_GIFT_TRANSACTION_ID>\",\n                    \"id\": \"<SFDC_GIFT_TRANSACTION_ID>\"\n                }\n            }\n        }\n    ]\n}"
    },
    {
      "name": "Status201-UpdateTransactionPaymentRequestValidationFailed",
      "originalRequest": {
        "method": "POST",
        "header": [
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"updates\": [\n    {\n      \"giftTransactionId\": \"INVALID GIFT TRANSACTION ID\",\n      \"transactionStatus\": \"Paid\",\n      \"processorReference\": \"string\",\n      \"gatewayReference\": \"string\",\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      \"processorTransactionFee\": 0.5,\n      \"gatewayTransactionFee\": 0.25,\n      \"donorCoverAmount\": 10.5\n    },\n    {\n      \"giftTransactionId\": \"<SFDC_GIFT_TRANSACTION_ID>\",\n      \"transactionStatus\": \"Paid\",\n      \"processorReference\": \"string\",\n      \"gatewayReference\": \"string\",\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      \"processorTransactionFee\": 1.00,\n      \"gatewayTransactionFee\": 0.45,\n      \"donorCoverAmount\": 20.00\n    }\n  ]\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{_endpoint}}/services/data/v{{version}}/connect/fundraising/transactions/payment-updates",
          "host": [
            "{{_endpoint}}"
          ],
          "path": [
            "services",
            "data",
            "v{{version}}",
            "connect",
            "fundraising",
            "transactions",
            "payment-updates"
          ]
        }
      },
      "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                \"gifttransaction\": {\n                    \"href\": \"/services/data/vXX.X/sobjects/sObject/<SFDC_GIFT_TRANSACTION_ID>\",\n                    \"id\": \"<SFDC_GIFT_TRANSACTION_ID>\"\n                }\n            }\n        }\n    ]\n}"
    },
    {
      "name": "Status201-UpdateTransactionPaymentDatabaseFailure",
      "originalRequest": {
        "method": "POST",
        "header": [
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"updates\": [\n    {\n      \"giftTransactionId\": \"<SFDC_GIFT_TRANSACTION_ID>\",\n      \"transactionStatus\": \"Invalid Transaction Status\",\n      \"processorReference\": \"string\",\n      \"gatewayReference\": \"string\",\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      \"processorTransactionFee\": 0.5,\n      \"gatewayTransactionFee\": 0.25,\n      \"donorCoverAmount\": 10.5\n    },\n    {\n      \"giftTransactionId\": \"<SFDC_GIFT_TRANSACTION_ID>\",\n      \"transactionStatus\": \"Paid\",\n      \"processorReference\": \"string\",\n      \"gatewayReference\": \"string\",\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      \"processorTransactionFee\": 1.00,\n      \"gatewayTransactionFee\": 0.45,\n      \"donorCoverAmount\": 20.00\n    }\n  ]\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{_endpoint}}/services/data/v{{version}}/connect/fundraising/transactions/payment-updates",
          "host": [
            "{{_endpoint}}"
          ],
          "path": [
            "services",
            "data",
            "v{{version}}",
            "connect",
            "fundraising",
            "transactions",
            "payment-updates"
          ]
        }
      },
      "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 donor cover amount to be less than 10.00. One database error occurs for the 10.50 cover amount, 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\": 1,\n    \"details\": [\n        {\n            \"success\": false,\n            \"errors\": {\n                \"message\": \"Donor cover amount must be less than 10.00\"\n            }\n        },\n        {\n            \"success\": false\n        }\n    ]\n}"
    },
    {
      "name": "Status201-UpdateTransactionPaymentWithExternalIds",
      "originalRequest": {
        "method": "POST",
        "header": [
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"updates\": [\n    {\n      \"giftTransaction\": {\n        \"externalId\": {\n            \"fieldName\": \"<EXTERNAL_ID_FIELD_NAME>\",\n            \"fieldValue\": \"<EXTERNAL_ID_FIELD_VALUE>\"\n        }\n      },\n      \"transactionStatus\": \"Paid\",\n      \"processorReference\": \"string\",\n      \"gatewayReference\": \"string\",\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      \"processorTransactionFee\": 0.5,\n      \"gatewayTransactionFee\": 0.25,\n      \"donorCoverAmount\": 10.5\n    }\n  ]\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{_endpoint}}/services/data/v{{version}}/connect/fundraising/transactions/payment-updates",
          "host": [
            "{{_endpoint}}"
          ],
          "path": [
            "services",
            "data",
            "v{{version}}",
            "connect",
            "fundraising",
            "transactions",
            "payment-updates"
          ]
        }
      },
      "status": "Bad Request",
      "code": 400,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json",
          "description": ""
        }
      ],
      "cookie": [
      ],
      "body": "{\n    \"successes\": 1,\n    \"failures\": 0,\n    \"notProcessed\": 0,\n    \"details\": [\n        {\n            \"success\": true,\n            \"links\": {\n                \"gifttransaction\": {\n                    \"href\": \"/services/data/vXX.X/sobjects/sObject/<SFDC_GIFT_TRANSACTION_ID>\",\n                    \"id\": \"<SFDC_GIFT_TRANSACTION_ID>\"\n                }\n            }\n        }\n    ]\n}"
    },
    {
      "name": "Status400-BadRequestError",
      "originalRequest": {
        "method": "POST",
        "header": [
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"updates\": [\n    {\n      \"giftTransactionId\": \"<SFDC_GIFT_TRANSACTION_ID>\",\n      \"transactionStatus\": \"Paid\",\n      \"processorReference\": \"string\",\n      \"gatewayReference\": \"string\",\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      \"processorTransactionFee\": 0.5,\n      \"gatewayTransactionFee\": 0.25,\n      \"donorCoverAmount\": 10.5\n    }\n  ]\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{_endpoint}}/services/data/v{{version}}/connect/fundraising/transactions/payment-updates",
          "host": [
            "{{_endpoint}}"
          ],
          "path": [
            "services",
            "data",
            "v{{version}}",
            "connect",
            "fundraising",
            "transactions",
            "payment-updates"
          ]
        }
      },
      "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}"
    }
  ]
}