# AvaTaxExciseController_CommitTransaction

Commits an existing AvaTax Excise transaction.

`POST /api/v1/AvaTaxExcise/transactions/{transactionCode}/commit`

**API:** Excise Platform API
**Tag:** AvaTaxExciseController
**API Version:** v1
**Base URL:** https://excise.avalara.com
**Content-Type:** `application/json`
**Accepts:** `application/json`
**Authentication:** Basic (username + license key)

Source: https://developer.avalara.com/products/excise/api/methods/AvaTaxExciseController/AvaTaxExciseController_CommitTransaction/

## Description

Commits a previously created AvaTax Excise transaction, making it final. Once committed,
the transaction is locked and can only be voided, not further adjusted.

## Parameters

| Name | Type | In | Required | Description |
|---|---|---|---|---|
| `x-company-id` | integer | header | Yes | Company ID that owns the data. |
| `X-Avalara-Client` | string | header | No | Identifies the software you are using to call this API. For more information on the client header, see Client Headers. |
| `transactionCode` | string | path | Yes | The unique value that identifies a transaction. |
| `include` | string | query | No | Specifies one or more options to include additional nested data in the response. Separate multiple values with commas. |

## Responses

| Status | Description | Schema |
|---|---|---|
| 200 | Returns the calculated tax results and transaction details for the committed transaction. | `Avalara.Excise.Determination.Engine.RestTransactionResult` |

### 200 Response: `Avalara.Excise.Determination.Engine.RestTransactionResult`

Represents the result of a REST transaction processing, including status, taxes, errors, and the complete transaction response.

| Property | Type | Required | Description |
|---|---|---|---|
| `UserTranId` | string | No | The client-supplied transaction identifier echoed in this result. Example: `USER-TRAN-001`. |
| `TranId` | integer | No | The system-assigned identifier for this calculated transaction. Example: `12345`. |
| `Status` | string | No | The processing status of this record. Example: `Success`. |
| `ReturnCode` | integer | No | The numeric outcome code for this tax calculation request. Example: `0`. |
| `TotalTaxAmount` | number | No | The total calculated tax amount. Example: `184`. |
| `TransactionTaxes` | Avalara.Excise.Determination.Engine.RestTransactionTax[] | No | Per-tax breakdown of amounts, rates, and jurisdictions for this transaction. |
| `TransactionErrors` | Avalara.Excise.Determination.Engine.RestTransactionError[] | No | Errors or warnings encountered while calculating tax for this transaction. |
| `Transaction` | Avalara.Excise.Determination.Engine.RestTransactionResponse | No | The full transaction payload returned with this calculation result. |
| `UserReturnValue` | string | No | A value returned with the result for client-side correlation or downstream use. Example: `custom value`. |

## Example Request

```bash
curl -X POST "https://excise.avalara.com/api/v1/AvaTaxExcise/transactions/{transactionCode}/commit" \
  -H "Authorization: Basic <credentials>" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json"
```