# Key/value pairs

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

Guide: Communications

# Key/value pairs

Learn about the key/value pairs used in the Option object for invoices.

The [Option](https://developer.avalara.com/api-reference/communications/v2/models/KeyValuePair/) object (`opt`) allows you to specify up to 5 key/value pairs for an invoice. This object includes the following fields.

Object/field

Description

`key`

`[string]` Key An index for the key/value pair. Numeric value between 1 and 10.

`val`

`[string]` Value Alpha-numeric value up to 150 bytes in length.

**View example**:

```
"inv":[
  "opt": [
    {
      "key": "1",
      "val": "Sample value text"
    }
  ],
  ...
] 
```