# Bundle: T/S pair 1/27

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

Guide: Communications

# Bundle: T/S pair 1/27

This example demonstrates including a simple T/S pairing (`1`/`27`) in an AFC request. This paring corresponds to Interstate/Data.

## Request

**View example**:

```
curl --location --request POST 'https://communicationsua.avalara.net/api/v2/afc/CalcTaxes' \
--header 'Content-Type: application/json' \
--header 'client_id: 787' \
--header 'client_profile_id;' \
--header 'Authorization: Basic {Base64-encoded credentials}' \
--data-raw '{
    "cfg": {"incrf": true //--Return Reporting Information.
    },
    "cmpn": { "bscl": 1, //--Business Class: Typical value is "1". Is the provider and an Incumbant Local Exchange Carrier ("ILEC",  basically those companies that own the wire, antennas and switches of a network) or not?   0=ILEC, 1=NOT an ILEC (or Competitive Local Exchange Carrier "CLEC"). Streaming default to "1""svcl": 0, //--Service Class:  Is the provider Primarily a local service provider, or long distance?   0=Primary Local; 1=Primary Long Distance.  Streaming default: 0."fclt": false, //--Facilities:  Does the company providing the service have facilities to provide the service?  Streaming default: false."frch": false, //--Franchise:  Indicates if the company provides services sold pursuant to a franchise agreement between the carrier and jurisdiction. Streaming default: false."reg": false, //--Regulated:  Is the Seller is regulated?  Streaming default: false."idnt": "CertCompany"
    },
    "inv": [{    "doc": "CertTest_Bundle_Test", //--Document Code:  Required.  A unique value that is used to Commit transactions through the Commit API. Do NOT use InvoiceNumber.  GUID preferable. Every unique call must have a unique "doc".    "cmmt": false, //--Commit:  Required.  The status of transaction for end of period compliance reporting.  Previously CalcTaxes uncommitted transactions can be committed through the Commit API.    "bill": { //--Bill To Object:  Calculates taxed based on the granularity of the address. Options include: passing only Preassigned Pcode value in PCD value via the GEO/PCODE APIs.  The actual address fields: the more granular the address, the more accurate the results.
"pcd": 1363100     },    "cust": 0, //--Customer Type: Required.  Default to "0" for Streaming.    "date": "2022-04-21",    "itms": [
{
    "ref": "Trigger a Bundle Test",
    "chg": 500,
    "sale": 1,
    "incl": false,
    "tran": 1,
    "serv": 27,
    "adj": false
}    ],    "invm": true,  //--Returns Summary Tax Object for Invoice Presentation    "dtl": true,  //--Returns Line Item Detail Taxes    "summ": true,    "acct": "CertCompany",    "custref": "CertTest0",    "invn": "CertTest0",    "bcyc": "202204",    "bpd": { //--Billing Period Object: Used for reporting.
"month": "04",
"year": "2022"    }}
    ]
}'
```

## Response

**View example**:

```
{
    "inv": [{    "doc": "CertTest_Bundle_Test",    "itms": [
{
    "ref": "Trigger a Bundle Test",
    "txs": [{    "bill": true,    "cmpl": true,    "tm": 500.0,    "calc": 1,    "cat": "GROSS RECEIPTS TAXES",    "cid": 3,    "name": "Statutory Gross Receipts NF",    "exm": 0.0,    "lns": 0,    "min": 0.0,    "pcd": 1362800,    "rate": 0.013,    "sur": false,    "tax": 6.5,    "lvl": 1,    "tid": 492},{    "bill": true,    "cmpl": true,    "tm": 627.5,    "calc": 1,    "cat": "SALES AND USE TAXES",    "cid": 1,    "name": "District Tax",    "exm": 0.0,    "lns": 0,    "min": 0.0,    "pcd": 1362800,    "rate": 0.03,    "sur": true,    "tax": 18.825,    "lvl": 2,    "tid": 4},{    "bill": true,    "cmpl": true,    "tm": 646.325,    "calc": 1,    "cat": "SALES AND USE TAXES",    "cid": 1,    "name": "Sales Tax",    "exm": 0.0,    "lns": 0,    "min": 0.0,    "pcd": 1363100,    "rate": 0.06,    "sur": false,    "tax": 38.7795,    "lvl": 1,    "tid": 1},{    "bill": true,    "cmpl": true,    "tm": 500.0,    "calc": 1,    "cat": "CONNECTIVITY CHARGES",    "cid": 5,    "name": "Fed Universal Service Fund",    "exm": 0.0,    "lns": 0,    "min": 0.0,    "pcd": 0,    "rate": 0.238,    "sur": false,    "tax": 119.0,    "lvl": 0,    "tid": 18},{    "bill": true,    "cmpl": true,    "tm": 500.0,    "calc": 1,    "cat": "REGULATORY CHARGES",    "cid": 6,    "name": "FCC Regulatory Fee (Wireline)",    "exm": 0.0,    "lns": 0,    "min": 0.0,    "pcd": 0,    "rate": 0.004,    "sur": false,    "tax": 2.0,    "lvl": 0,    "tid": 169}
    ]
}    ],    "summ": [
{
    "max": 2147483647.0,
    "min": 0.0,
    "tchg": 500.0,
    "calc": 1,
    "cat": "GROSS RECEIPTS TAXES",
    "cid": 3,
    "name": "Statutory Gross Receipts NF",
    "exm": 0.0,
    "lns": 0,
    "pcd": 1362800,
    "rate": 0.013,
    "sur": false,
    "tax": 6.5,
    "lvl": 1,
    "tid": 492
},
{
    "max": 2147483647.0,
    "min": 0.0,
    "tchg": 627.5,
    "calc": 1,
    "cat": "SALES AND USE TAXES",
    "cid": 1,
    "name": "District Tax",
    "exm": 0.0,
    "lns": 0,
    "pcd": 1362800,
    "rate": 0.03,
    "sur": false,
    "tax": 18.825,
    "lvl": 2,
    "tid": 4
},
{
    "max": 2147483647.0,
    "min": 0.0,
    "tchg": 646.325,
    "calc": 1,
    "cat": "SALES AND USE TAXES",
    "cid": 1,
    "name": "Sales Tax",
    "exm": 0.0,
    "lns": 0,
    "pcd": 1363100,
    "rate": 0.06,
    "sur": false,
    "tax": 38.7795,
    "lvl": 1,
    "tid": 1
},
{
    "max": 2147483647.0,
    "min": 0.0,
    "tchg": 500.0,
    "calc": 1,
    "cat": "CONNECTIVITY CHARGES",
    "cid": 5,
    "name": "Fed Universal Service Fund",
    "exm": 0.0,
    "lns": 0,
    "pcd": 0,
    "rate": 0.238,
    "sur": false,
    "tax": 119.0,
    "lvl": 0,
    "tid": 18
},
{
    "max": 2147483647.0,
    "min": 0.0,
    "tchg": 500.0,
    "calc": 1,
    "cat": "REGULATORY CHARGES",
    "cid": 6,
    "name": "FCC Regulatory Fee (Wireline)",
    "exm": 0.0,
    "lns": 0,
    "pcd": 0,
    "rate": 0.004,
    "sur": false,
    "tax": 2.0,
    "lvl": 0,
    "tid": 169
}    ],    "incrf": {
"acct": "CertCompany",
"custref": "CertTest0",
"invn": "CertTest0",
"bcyc": "202204"    }}
    ]
}
```