# DIL: Void a transaction

Source: https://developer.avalara.com/products/communications/integration-guides/communications-integration/bgi0774438852702/

Guide: Communications

# DIL: Void a transaction

In the previous example, we showed how to use the [Commit](https://developer.avalara.com/api-reference/communications/v2/methods/Tax%20Calculation/Commit/) endpoint to record (commit) a transaction in AvaTax. There may be times when you want to void a previously recorded transaction. In this case, use the Commit endpoint with`"cmmt": false` to void (uncommit) a transaction.

Note

Committed transactions are locked (they can’t be uncommitted) on the 1st day of the subsequent calendar month in which they’re sent. For example, if you commit a Document Code on November 15, that Document Code will be locked on December 01.

## Request

**View example**:

```
curl --location --request POST 'https://communicationsua.avalara.net/api/v2/afc/Commit' \
--header 'client_id: 787' \
--header 'Authorization: Basic {Base64-encoded credentials}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "doc": "test",
    "cmmt": false
}'
```

## Response

**View example**:

```
{
    "ok": true
}
```