> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://virtuous.ferndocs.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://virtuous.ferndocs.com/_mcp/server.

# Create a Reversing Transaction

POST https://api.virtuoussoftware.com/api/Gift/ReversingTransaction
Content-Type: application/json

Creates a new reversing transaction and uses the gift identifier specified to negate the amount and splits applied.

Reference: https://virtuous.ferndocs.com/reference/crm-plus/giving/create-a-reversing-transaction

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Servers

- `https://api.virtuoussoftware.com` (https://api.virtuoussoftware.com, default)
- `{{baseUrl}}api` ({{baseUrl}}api)

## Request

### Body (application/json)

This endpoint expects an object.

- `giftDate` (string, optional)
- `reversedGiftId` (string, optional)
- `notes` (string, optional)

## Response

### 200

OK

- `id` (string, optional)
- `transactionSource` (string, optional)
- `transactionId` (string, optional)
- `contactId` (string, optional)
- `contactName` (string, optional)
- `contactUrl` (string, optional)
- `giftType` (string, optional)
- `giftTypeFormatted` (string, optional)
- `giftDate` (string, optional)
- `giftDateFormatted` (string, optional)
- `amount` (string, optional)
- `amountFormatted` (string, optional)
- `currencyCode` (string, optional)
- `exchangeRate` (string, optional)
- `baseCurrencyCode` (string, optional)
- `batch` (string, optional)
- `createDateTimeUtc` (string, optional)
- `createdByUser` (string, optional)
- `modifiedDateTimeUtc` (string, optional)
- `modifiedByUser` (string, optional)
- `segmentId` (string, optional)
- `segment` (string, optional)
- `segmentCode` (string, optional)
- `segmentUrl` (string, optional)
- `mediaOutletId` (string, optional)
- `mediaOutlet` (string, optional)
- `grantId` (string, optional)
- `grant` (string, optional)
- `grantUrl` (string, optional)
- `notes` (string, optional)
- `tribute` (string, optional)
- `tributeId` (string, optional)
- `tributeType` (string, optional)
- `acknowledgeeIndividualId` (string, optional)
- `receiptDate` (string, optional)
- `receiptDateFormatted` (string, optional)
- `contactPassthroughId` (string, optional)
- `contactPassthroughUrl` (string, optional)
- `contactIndividualId` (string, optional)
- `cashAccountingCode` (string, optional)
- `giftAskId` (string, optional)
- `contactMembershipId` (string, optional)
- `giftDesignations` (list of ApiGiftReversingTransactionPostResponsesContentApplicationJsonSchemaGiftDesignationsItems, optional)
- `giftPremiums` (list of ApiGiftReversingTransactionPostResponsesContentApplicationJsonSchemaGiftPremiumsItems, optional)
- `pledgePayments` (list of ApiGiftReversingTransactionPostResponsesContentApplicationJsonSchemaPledgePaymentsItems, optional)
- `recurringGiftPayments` (list of ApiGiftReversingTransactionPostResponsesContentApplicationJsonSchemaRecurringGiftPaymentsItems, optional)
- `giftUrl` (string, optional)
- `isPrivate` (string, optional)
- `isTaxDeductible` (string, optional)
- `customFields` (list of ApiGiftReversingTransactionPostResponsesContentApplicationJsonSchemaCustomFieldsItems, optional)

## Errors

### 400 Bad Request Error

BadRequest

- `any`

## Types

### ApiGiftReversingTransactionPostResponsesContentApplicationJsonSchemaGiftDesignationsItems

- `id` (string, optional)
- `projectId` (string, optional)
- `project` (string, optional)
- `projectCode` (string, optional)
- `externalAccountingCode` (string, optional)
- `projectType` (string, optional)
- `projectLocation` (string, optional)
- `projectUrl` (string, optional)
- `amountDesignated` (string, optional)
- `display` (string, optional)

### ApiGiftReversingTransactionPostResponsesContentApplicationJsonSchemaGiftPremiumsItems

- `id` (string, optional)
- `premiumId` (string, optional)
- `premium` (string, optional)
- `premiumUrl` (string, optional)
- `quantity` (string, optional)
- `display` (string, optional)

### ApiGiftReversingTransactionPostResponsesContentApplicationJsonSchemaPledgePaymentsItems

- `id` (string, optional)
- `expectedPaymentDate` (string, optional)
- `expectedAmount` (string, optional)
- `giftId` (string, optional)
- `actualAmount` (string, optional)

### ApiGiftReversingTransactionPostResponsesContentApplicationJsonSchemaRecurringGiftPaymentsItems

- `id` (string, optional)
- `gift` (ApiGiftReversingTransactionPostResponsesContentApplicationJsonSchemaRecurringGiftPaymentsItemsGift, optional)
- `expectedAmount` (string, optional)
- `expectedPaymentDate` (string, optional)
- `dismissPaymentDate` (string, optional)
- `fulfillPaymentDate` (string, optional)

### ApiGiftReversingTransactionPostResponsesContentApplicationJsonSchemaCustomFieldsItems

- `name` (string, optional)
- `value` (string, optional)
- `displayName` (string, optional)

### ApiGiftReversingTransactionPostResponsesContentApplicationJsonSchemaRecurringGiftPaymentsItemsGift

- `id` (string, optional)
- `contactId` (string, optional)
- `giftDate` (string, optional)
- `amount` (string, optional)

## Examples

**Request**

```json
{
  "giftDate": "<dateTime>",
  "reversedGiftId": "<integer>",
  "notes": "<string>"
}
```

**Response**

```json
{
  "id": "<integer>",
  "transactionSource": "<string>",
  "transactionId": "<string>",
  "contactId": "<integer>",
  "contactName": "<string>",
  "contactUrl": "<string>",
  "giftType": "<string>",
  "giftTypeFormatted": "<string>",
  "giftDate": "<dateTime>",
  "giftDateFormatted": "<string>",
  "amount": "<double>",
  "amountFormatted": "<string>",
  "currencyCode": "<string>",
  "exchangeRate": "<decimal>",
  "baseCurrencyCode": "<string>",
  "batch": "<string>",
  "createDateTimeUtc": "<dateTime>",
  "createdByUser": "<string>",
  "modifiedDateTimeUtc": "<dateTime>",
  "modifiedByUser": "<string>",
  "segmentId": "<integer>",
  "segment": "<string>",
  "segmentCode": "<string>",
  "segmentUrl": "<string>",
  "mediaOutletId": "<integer>",
  "mediaOutlet": "<string>",
  "grantId": "<integer>",
  "grant": "<string>",
  "grantUrl": "<string>",
  "notes": "<string>",
  "tribute": "<string>",
  "tributeId": "<integer>",
  "tributeType": "<string>",
  "acknowledgeeIndividualId": "<integer>",
  "receiptDate": "<dateTime>",
  "receiptDateFormatted": "<string>",
  "contactPassthroughId": "<integer>",
  "contactPassthroughUrl": "<string>",
  "contactIndividualId": "<integer>",
  "cashAccountingCode": "<string>",
  "giftAskId": "<integer>",
  "contactMembershipId": "<integer>",
  "giftDesignations": [
    {
      "id": "<integer>",
      "projectId": "<integer>",
      "project": "<string>",
      "projectCode": "<string>",
      "externalAccountingCode": "<string>",
      "projectType": "<string>",
      "projectLocation": "<string>",
      "projectUrl": "<string>",
      "amountDesignated": "<double>",
      "display": "<string>"
    },
    {
      "id": "<integer>",
      "projectId": "<integer>",
      "project": "<string>",
      "projectCode": "<string>",
      "externalAccountingCode": "<string>",
      "projectType": "<string>",
      "projectLocation": "<string>",
      "projectUrl": "<string>",
      "amountDesignated": "<double>",
      "display": "<string>"
    }
  ],
  "giftPremiums": [
    {
      "id": "<integer>",
      "premiumId": "<integer>",
      "premium": "<string>",
      "premiumUrl": "<string>",
      "quantity": "<integer>",
      "display": "<string>"
    },
    {
      "id": "<integer>",
      "premiumId": "<integer>",
      "premium": "<string>",
      "premiumUrl": "<string>",
      "quantity": "<integer>",
      "display": "<string>"
    }
  ],
  "pledgePayments": [
    {
      "id": "<integer>",
      "expectedPaymentDate": "<dateTime>",
      "expectedAmount": "<double>",
      "giftId": "<integer>",
      "actualAmount": "<double>"
    },
    {
      "id": "<integer>",
      "expectedPaymentDate": "<dateTime>",
      "expectedAmount": "<double>",
      "giftId": "<integer>",
      "actualAmount": "<double>"
    }
  ],
  "recurringGiftPayments": [
    {
      "id": "<integer>",
      "gift": {
        "id": "<integer>",
        "contactId": "<integer>",
        "giftDate": "<dateTime>",
        "amount": "<double>"
      },
      "expectedAmount": "<double>",
      "expectedPaymentDate": "<dateTime>",
      "dismissPaymentDate": "<dateTime>",
      "fulfillPaymentDate": "<dateTime>"
    },
    {
      "id": "<integer>",
      "gift": {
        "id": "<integer>",
        "contactId": "<integer>",
        "giftDate": "<dateTime>",
        "amount": "<double>"
      },
      "expectedAmount": "<double>",
      "expectedPaymentDate": "<dateTime>",
      "dismissPaymentDate": "<dateTime>",
      "fulfillPaymentDate": "<dateTime>"
    }
  ],
  "giftUrl": "<string>",
  "isPrivate": "<boolean>",
  "isTaxDeductible": "<boolean>",
  "customFields": [
    {
      "name": "<string>",
      "value": "<string>",
      "displayName": "<string>"
    },
    {
      "name": "<string>",
      "value": "<string>",
      "displayName": "<string>"
    }
  ]
}
```

**SDK Code**

```python Giving_createAReversingTransaction_example
import requests

url = "https://api.virtuoussoftware.com/api/Gift/ReversingTransaction"

payload = {
    "giftDate": "<dateTime>",
    "reversedGiftId": "<integer>",
    "notes": "<string>"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Giving_createAReversingTransaction_example
const url = 'https://api.virtuoussoftware.com/api/Gift/ReversingTransaction';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"giftDate":"<dateTime>","reversedGiftId":"<integer>","notes":"<string>"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Giving_createAReversingTransaction_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.virtuoussoftware.com/api/Gift/ReversingTransaction"

	payload := strings.NewReader("{\n  \"giftDate\": \"<dateTime>\",\n  \"reversedGiftId\": \"<integer>\",\n  \"notes\": \"<string>\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Giving_createAReversingTransaction_example
require 'uri'
require 'net/http'

url = URI("https://api.virtuoussoftware.com/api/Gift/ReversingTransaction")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"giftDate\": \"<dateTime>\",\n  \"reversedGiftId\": \"<integer>\",\n  \"notes\": \"<string>\"\n}"

response = http.request(request)
puts response.read_body
```

```java Giving_createAReversingTransaction_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.virtuoussoftware.com/api/Gift/ReversingTransaction")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"giftDate\": \"<dateTime>\",\n  \"reversedGiftId\": \"<integer>\",\n  \"notes\": \"<string>\"\n}")
  .asString();
```

```php Giving_createAReversingTransaction_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.virtuoussoftware.com/api/Gift/ReversingTransaction', [
  'body' => '{
  "giftDate": "<dateTime>",
  "reversedGiftId": "<integer>",
  "notes": "<string>"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Giving_createAReversingTransaction_example
using RestSharp;

var client = new RestClient("https://api.virtuoussoftware.com/api/Gift/ReversingTransaction");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"giftDate\": \"<dateTime>\",\n  \"reversedGiftId\": \"<integer>\",\n  \"notes\": \"<string>\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Giving_createAReversingTransaction_example
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "giftDate": "<dateTime>",
  "reversedGiftId": "<integer>",
  "notes": "<string>"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.virtuoussoftware.com/api/Gift/ReversingTransaction")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```