# Chapter 5.2.1 - Commit Request

Source: https://developer.avalara.com/products/communications/integration-guides/dev-guide_rest_v2/reference/commit-request/

-   [Previous](/communications/dev-guide_rest_v2/reference/reporting-information/)
-   [Next](/communications/dev-guide_rest_v2/reference/commit-response/)

### Commit Request

The `CommitRequest` object contains the **Document Code** and **optional fields** used in reports:

Key

Value

`doc`

`[string]` Document Code  

A unique string that is used to Commit or Uncommit transactions  

`cmmt`

`[bool]` Commit  

Indicates if invoice should be committed as soon as it is processed

-   `true`: The transaction should be [committed](/communications/dev-guide_rest_v2/commit-uncommit/)
-   `false`: The transaction should be [uncommitted](/communications/dev-guide_rest_v2/commit-uncommit/)

`opt`

[`[KeyValuePair]`](/communications/dev-guide_rest_v2/reference/key-value-pair/) Optional Fields  

A list of [Optional Fields](/communications/dev-guide_rest_v2/reference/key-value-pair/) to apply to this invoice  

### Example

```json
{ "doc": "DocumentCode12345", "cmmt": true, "opt": [ { // Key Value Pair } ]}
```

-   [Previous](/communications/dev-guide_rest_v2/reference/reporting-information/)
-   [Next](/communications/dev-guide_rest_v2/reference/commit-response/)