# Commit transactions

Source: https://developer.avalara.com/avatax-for-vat/fzm3280144222965/

# Commit transactions

Learn how to commit transactions in AvaTax using the CommitTransaction endpoint or the commit parameter.

**Element type:** Required

**Endpoints/models used:** [CommitTransaction](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Transactions/CommitTransaction/)

Your integration must mirror your system workflow for a transaction lifecycle when committing documents. In AvaTax, you can commit transactions using the [CommitTransactions](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Transactions/CommitTransaction/) endpoint, or you can run the transaction using `"commit": true`.

## Use CommitTransactions

Learn how to use the CommitTransactions API to finalize transactions in Avalara.

**Example**

```
curl -g 'https://sandbox-rest.avatax.com/api/v2/companies/ABC/transactions/85061264345896/commit'
```

## Rerun the transaction

Understand how to rerun a transaction using the provided example.

**Example**

```
{
  "type": "SalesInvoice",
  "companyCode": "DEFAULT",
  "date": "2024-07-16",
  "code": "MyDocumentCode",
  "customerCode": "ABC",
  "purchaseOrderNo": "123456789",
  "commit": true,
  "currencyCode": "USD",
  "description": "Yarn",
  ...,
}
```