# Misc: Don’t include reporting information in the response

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

Guide: Communications

# Misc: Don’t include reporting information in the response

This example demonstrates how to run AFC calculations using request config options to return additional information in a response. In this example:

-   Return non-billable taxes (`retnb`) is enabled.

-   Return extended data (`retext`) is enabled.

-   Return reporting information (`incrf`) in the response is disabled.

## Request

**View example**:

```
curl --location --request POST 'https://communicationsua.avalara.net/api/v2/afc/CalcTaxes' \
--header 'client_id: 787' \
--header 'client_profile_id;' \
--header 'Authorization: Basic {Base64-encoded credentials}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "cfg": {"incrf": "false","retext": "true","retnb": "true"
    },
    "cmpn": {"idnt": "2194","reg": "true","fclt": "true","svcl": "0","frch": "false","bscl": "1"
    },
    "inv": [{    "itms": [
{
    "sale": 1,
    "min": 0,
    "serv": "5",
    "tran": "7",
    "adj": "false",
    "chg": "15.00000",
    "to": {"pcd": 2604100
    },
    "loc": 0,
    "from": {"pcd": 2604100
    },
    "dbt": "false",
    "line": 0
},
{
    "sale": 1,
    "min": 0,
    "serv": 43,
    "tran": 19,
    "adj": "false",
    "chg": 0.0,
    "to": {"pcd": 2604100
    },
    "loc": 0,
    "from": {"pcd": 2604100
    },
    "dbt": "false",
    "line": 0
}    ],    "date": "2021-10-24T20:23:14",    "cust": "0",    "summ": "true",    "dtl": "false",    "lfln": "false",    "invm": "true",    "doc": "202110",    "bill": {
"int": "true",
"pcd": 2604100    }}
    ]
}'
```

## Response

**View example**:

```
{
    "inv": [{    "doc": "202110",    "itms": [
{
    "txs": [{    "bill": true,    "cmpl": true,    "tm": 15.94622136,    "calc": 1,    "cat": "BUSINESS TAXES",    "cid": 2,    "name": "NY Franchise 184",    "exm": 0.0,    "lns": 0,    "min": 0.0,    "pcd": 2502500,    "taxpcd": 2604100,    "rate": 0.00375,    "sur": true,    "tax": 0.05979833,    "lvl": 1,    "tid": 45,    "usexm": false,    "notax": false,    "trans": 7,    "svc": 5,    "chg": 15.0},{    "bill": true,    "cmpl": true,    "tm": 15.94642422,    "calc": 1,    "cat": "BUSINESS TAXES",    "cid": 2,    "name": "NY MCTD 184a",    "exm": 0.0,    "lns": 0,    "min": 0.0,    "pcd": 2604000,    "taxpcd": 2604100,    "rate": 0.001275,    "sur": true,    "tax": 0.02033169,    "lvl": 2,    "tid": 28,    "usexm": false,    "notax": false,    "trans": 7,    "svc": 5,    "chg": 15.0},{    "bill": true,    "cmpl": true,    "tm": 15.94648919,    "calc": 1,    "cat": "EXCISE TAXES",    "cid": 4,    "name": "NY MCTD 186c",    "exm": 0.0,    "lns": 0,    "min": 0.0,    "pcd": 2604000,    "taxpcd": 2604100,    "rate": 0.00595,    "sur": true,    "tax": 0.09488161,    "lvl": 2,    "tid": 27,    "usexm": false,    "notax": false,    "trans": 7,    "svc": 5,    "chg": 15.0},{    "bill": true,    "cmpl": true,    "tm": 15.94678596,    "calc": 1,    "cat": "SALES AND USE TAXES",    "cid": 1,    "name": "NY Local Transit Tax",    "exm": 0.0,    "lns": 0,    "min": 0.0,    "pcd": 2604100,    "taxpcd": 2604100,    "rate": 0.00375,    "sur": false,    "tax": 0.05980045,    "lvl": 3,    "tid": 314,    "usexm": false,    "notax": false,    "trans": 7,    "svc": 5,    "chg": 15.0},{    "bill": true,    "cmpl": true,    "tm": 15.94678596,    "calc": 1,    "cat": "SALES AND USE TAXES",    "cid": 1,    "name": "NY Sales Tax",    "exm": 0.0,    "lns": 0,    "min": 0.0,    "pcd": 2604100,    "taxpcd": 2604100,    "rate": 0.045,    "sur": false,    "tax": 0.71760537,    "lvl": 3,    "tid": 313,    "usexm": false,    "notax": false,    "trans": 7,    "svc": 5,    "chg": 15.0},{    "bill": true,    "cmpl": true,    "tm": 15.94678596,    "calc": 1,    "cat": "SALES AND USE TAXES",    "cid": 1,    "name": "NY Sales Tax",    "exm": 0.0,    "lns": 0,    "min": 0.0,    "pcd": 2604100,    "taxpcd": 2604100,    "rate": 0.04,    "sur": false,    "tax": 0.63787144,    "lvl": 1,    "tid": 313,    "usexm": false,    "notax": false,    "trans": 7,    "svc": 5,    "chg": 15.0},{    "bill": true,    "cmpl": true,    "tm": 15.94678596,    "calc": 1,    "cat": "EXCISE TAXES",    "cid": 4,    "name": "Excise Tax",    "exm": 0.0,    "lns": 0,    "min": 0.0,    "pcd": 2604100,    "taxpcd": 2604100,    "rate": 0.0235,    "sur": true,    "tax": 0.37474947,    "lvl": 3,    "tid": 5,    "usexm": false,    "notax": false,    "trans": 7,    "svc": 5,    "chg": 15.0},{    "bill": true,    "cmpl": true,    "tm": 15.94783967,    "calc": 1,    "cat": "EXCISE TAXES",    "cid": 4,    "name": "Excise Tax",    "exm": 0.0,    "lns": 0,    "min": 0.0,    "pcd": 2502500,    "taxpcd": 2604100,    "rate": 0.025,    "sur": true,    "tax": 0.39869599,    "lvl": 1,    "tid": 5,    "usexm": false,    "notax": false,    "trans": 7,    "svc": 5,    "chg": 15.0},{    "bill": true,    "cmpl": true,    "tm": 15.94845709,    "calc": 1,    "cat": "EXCISE TAXES",    "cid": 4,    "name": "Federal Excise Tax",    "exm": 0.0,    "lns": 0,    "min": 0.0,    "pcd": 0,    "taxpcd": 2604100,    "rate": 0.03,    "sur": false,    "tax": 0.47845371,    "lvl": 0,    "tid": 6,    "usexm": false,    "notax": false,    "trans": 7,    "svc": 5,    "chg": 15.0},{    "bill": false,    "cmpl": true,    "tm": 15.0,    "calc": 1,    "cat": "CONNECTIVITY CHARGES",    "cid": 5,    "name": "Telecom Relay Surcharge IP CTS",    "exm": 0.0,    "lns": 0,    "min": 0.0,    "pcd": 0,    "taxpcd": 2604100,    "rate": 0.00831,    "sur": false,    "tax": 0.12465,    "lvl": 0,    "tid": 585,    "usexm": false,    "notax": false,    "trans": 7,    "svc": 5,    "chg": 15.0}
    ]
},
{
    "txs": [{    "bill": false,    "name": "NO TAX",    "pcd": 2604100,    "taxpcd": 2604100,    "tax": 0.0,    "tid": 0,    "usexm": false,    "notax": true,    "trans": 19,    "svc": 43,    "chg": 0.0}
    ]
}    ],    "summ": [
{
    "max": 2147483647.0,
    "min": 0.0,
    "tchg": 15.94622136,
    "calc": 1,
    "cat": "BUSINESS TAXES",
    "cid": 2,
    "name": "NY Franchise 184",
    "exm": 0.0,
    "lns": 0,
    "pcd": 2502500,
    "rate": 0.00375,
    "sur": false,
    "tax": 0.05979833,
    "lvl": 1,
    "tid": 45
},
{
    "max": 2147483647.0,
    "min": 0.0,
    "tchg": 15.94642422,
    "calc": 1,
    "cat": "BUSINESS TAXES",
    "cid": 2,
    "name": "NY MCTD 184a",
    "exm": 0.0,
    "lns": 0,
    "pcd": 2604000,
    "rate": 0.001275,
    "sur": false,
    "tax": 0.02033169,
    "lvl": 2,
    "tid": 28
},
{
    "max": 2147483647.0,
    "min": 0.0,
    "tchg": 15.94648919,
    "calc": 1,
    "cat": "EXCISE TAXES",
    "cid": 4,
    "name": "NY MCTD 186c",
    "exm": 0.0,
    "lns": 0,
    "pcd": 2604000,
    "rate": 0.00595,
    "sur": false,
    "tax": 0.09488161,
    "lvl": 2,
    "tid": 27
},
{
    "max": 2147483647.0,
    "min": 0.0,
    "tchg": 15.94678596,
    "calc": 1,
    "cat": "SALES AND USE TAXES",
    "cid": 1,
    "name": "NY Local Transit Tax",
    "exm": 0.0,
    "lns": 0,
    "pcd": 2604100,
    "rate": 0.00375,
    "sur": false,
    "tax": 0.05980045,
    "lvl": 3,
    "tid": 314
},
{
    "max": 2147483647.0,
    "min": 0.0,
    "tchg": 15.94678596,
    "calc": 1,
    "cat": "SALES AND USE TAXES",
    "cid": 1,
    "name": "NY Sales Tax",
    "exm": 0.0,
    "lns": 0,
    "pcd": 2604100,
    "rate": 0.045,
    "sur": false,
    "tax": 0.71760537,
    "lvl": 3,
    "tid": 313
},
{
    "max": 2147483647.0,
    "min": 0.0,
    "tchg": 15.94678596,
    "calc": 1,
    "cat": "SALES AND USE TAXES",
    "cid": 1,
    "name": "NY Sales Tax",
    "exm": 0.0,
    "lns": 0,
    "pcd": 2604100,
    "rate": 0.04,
    "sur": false,
    "tax": 0.63787144,
    "lvl": 1,
    "tid": 313
},
{
    "max": 2147483647.0,
    "min": 0.0,
    "tchg": 15.94678596,
    "calc": 1,
    "cat": "EXCISE TAXES",
    "cid": 4,
    "name": "Excise Tax",
    "exm": 0.0,
    "lns": 0,
    "pcd": 2604100,
    "rate": 0.0235,
    "sur": false,
    "tax": 0.37474947,
    "lvl": 3,
    "tid": 5
},
{
    "max": 2147483647.0,
    "min": 0.0,
    "tchg": 15.94783967,
    "calc": 1,
    "cat": "EXCISE TAXES",
    "cid": 4,
    "name": "Excise Tax",
    "exm": 0.0,
    "lns": 0,
    "pcd": 2502500,
    "rate": 0.025,
    "sur": false,
    "tax": 0.39869599,
    "lvl": 1,
    "tid": 5
},
{
    "max": 2147483647.0,
    "min": 0.0,
    "tchg": 15.94845709,
    "calc": 1,
    "cat": "EXCISE TAXES",
    "cid": 4,
    "name": "Federal Excise Tax",
    "exm": 0.0,
    "lns": 0,
    "pcd": 0,
    "rate": 0.03,
    "sur": false,
    "tax": 0.47845371,
    "lvl": 0,
    "tid": 6
}    ]}
    ]
}
```