# Fact Pattern 4.7 - High capacity PBX trunk phones sold to a commercial customer in Austin

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

Guide: Communications

# Fact Pattern 4.7 - High capacity PBX trunk phones sold to a commercial customer in Austin

Details about high-capacity PBX trunk phone transactions for a commercial customer in Austin, including request parameters and examples.

This transaction describes high-capacity PBX trunk phone lines being sold to a commercial customer in Austin.

**Request parameters**:

-   Customer type is`1` (Business)
-   Bill-to PCode is`3887600`
-   Item 1
    -   Number of lines is `0`
    -   Sale type is `1` (Retail)
    -   T/S pair is `19/6`, (VoIP/Access Charge)
-   Item 2
    -   Number of lines is `1`
    -   Sale type is `1` (Retail)
    -   T/S pair is `19/579` (VoIP/PBX High Capacity)
-   Item 3
    -   Number of lines is `24`
    -   Sale type is `1` (Retail)
    -   T/S pair is `19/582` (VoIP/High Capacity Outbound Channel)
-   Item 4
    -   Number of lines is `65`
    -   Sale type is `1` (Retail)
    -   T/S pair is `19/580` (VoIP/High Capacity Extension)
-   Item 5
    -   Number of lines is `0`
    -   Sale type is `1` (Retail)
    -   T/S pair is `19/43` (VoIP/Invoice)

## 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 '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")"svcl": 0, //--Service Class:  Is the provider Primarily a local service provider, or long distance?   0=Primary Local; 1=Primary Long Distance. "fclt": true, //--Facilities:  Does the company providing the service have facilities to provide the service?   "frch": false, //--Franchise:  Indicates if the company provides services sold pursuant to a franchise agreement between the carrier and jurisdiction."reg": false, //--Regulated:  Is the Seller is regulated?"idnt": "CertCompany"
    },
    "inv": [{    "doc": "CertTest4_7_PCD_VoIPf852be3a-9b5a-4aa7-8ca0-846c806c2dbc", //--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:  Required.  Field usually originating from a customer account profile. The SoldTo address of the transaction.  AFC will return the level of granularity in taxation based on the granularity of the address provided.  This object can be JUST PCode value if you utilize the GEO or PCODE APIs for assigning a PCODE to a location.
"pcd": 3887600, //--PCode:  You can pass only this value in the BillTo object.  Preassigned values are handled via the GEO and PCODE APIs.    },    "cust": 1, //--Customer Type: Required.  Field usually originating from a customer account profile. 0=Residential; 1=Business; 2=Senior Citizen; 3=Industrial.  Different customer types could have different tax rules.    "lfln": false, //--Lifeline:  Field usually originating from a customer account profile.  Is the customer a lifeline participants?    "date": "2022-04-13", //--Date:  Effective Tax Rate Date to be applied to the invoice.  Most often Invoice Date generated through SysDate on the bill run.    "itms": [
{
    "ref": "1_CertTest4_7_PCD_BaseMRC", //--Reference Code.  Reference Id for a line item.
      "chg": 700, //--Charge:  Required.  Billed pre-tax amount if "incl"=false.  Billed after tax amount if "incl"=true.
      "line": 0, //--Lines:  Number of phone lines to be taxed.  Required for certain T/S Pairs.
    "sale": 1, //--Sale:  Sale Type:  0=Wholesale, 1=Retail, 2=Consumed (Sales and Use Only), 3=Vendor Use. REQUIRED
    "tran": 19, //--Transaction Type: Industry vertical...see mapping guidelines for this. REQUIRED
    "serv": 6, //--Service Type:  Billable services for an industry vertical....see mapping guidelines for this. REQUIRED
    "adj": false //--Adjustment:  True, will negate taxes. False, will return positive taxes.  Default is False.
},
{
    "ref": "1_CertTest4_7_PCD_LineCount", //--Reference Code.  Reference Id for a line item."chg": 0, //--Charge:  Required.  Billed pre-tax amount if "incl"=false.  Billed after tax amount if "incl"=true.
      "line": 1, //--Lines:  Number of phone lines to be taxed.  Required for certain T/S Pairs.
    "sale": 1, //--Sale:  Sale Type:  0=Wholesale, 1=Retail, 2=Consumed (Sales and Use Only), 3=Vendor Use. REQUIRED
    "tran": 19, //--Transaction Type: Industry vertical...see mapping guidelines for this. REQUIRED
    "serv": 579, //--Service Type:  Billable services for an industry vertical....see mapping guidelines for this. REQUIRED
    "adj": false //--Adjustment:  True, will negate taxes. False, will return positive taxes.  Default is False.
},
{
    "ref": "1_CertTest4_7_PCD_OutboundChannel", //--Reference Code.  Reference Id for a line item.
      "chg": 0, //--Charge:  Required.  Billed pre-tax amount if "incl"=false.  Billed after tax amount if "incl"=true.
      "line": 24, //--Lines:  Number of phone lines to be taxed.  Required for certain T/S Pairs.
    "sale": 1, //--Sale:  Sale Type:  0=Wholesale, 1=Retail, 2=Consumed (Sales and Use Only), 3=Vendor Use. REQUIRED
    "tran": 19, //--Transaction Type: Industry vertical...see mapping guidelines for this. REQUIRED
    "serv": 582, //--Service Type:  Billable services for an industry vertical....see mapping guidelines for this. REQUIRED
    "adj": false //--Adjustment:  True, will negate taxes. False, will return positive taxes.  Default is False.
},
{
    "ref": "1_CertTest4_7_PCD_ExtentionQuantity", //--Reference Code.  Reference Id for a line item."chg": 0, //--Charge:  Required.  Billed pre-tax amount if "incl"=false.  Billed after tax amount if "incl"=true.
      "line": 65, //--Lines:  Number of phone lines to be taxed.  Required for certain T/S Pairs.
    "sale": 1, //--Sale:  Sale Type:  0=Wholesale, 1=Retail, 2=Consumed (Sales and Use Only), 3=Vendor Use. REQUIRED
    "tran": 19, //--Transaction Type: Industry vertical...see mapping guidelines for this. REQUIRED
    "serv": 580, //--Service Type:  Billable services for an industry vertical....see mapping guidelines for this. REQUIRED
    "adj": false //--Adjustment:  True, will negate taxes. False, will return positive taxes.  Default is False.
},
{
    "ref": "1_CertTest4_7_PCD_Invoice", //--Reference Code.  Reference Id for a line item.
      "chg": 1, //--Charge:  Required.  Billed pre-tax amount if "incl"=false.  Billed after tax amount if "incl"=true.
      "line": 0, //--Lines:  Number of phone lines to be taxed.  Required for certain T/S Pairs.
    "sale": 1, //--Sale:  Sale Type:  0=Wholesale, 1=Retail, 2=Consumed (Sales and Use Only), 3=Vendor Use. REQUIRED
    "tran": 19, //--Transaction Type: Industry vertical...see mapping guidelines for this. REQUIRED
    "serv": 43, //--Service Type:  Billable services for an industry vertical....see mapping guidelines for this. REQUIRED
    "adj": false //--Adjustment:  True, will negate taxes. False, will return positive taxes.  Default is False.
}    ],    "invm": true,    "dtl": true,    "summ": true,    "acct": "CertCompany",    "custref": "CertTest4_7",    "invn": "CertTest4_7",    "bcyc": "202204",    "bpd": {
"month": 04,
"year": 2022    }}
    ]
}'
```

## Response

**View example**:

```
{
    "inv": [{    "doc": "CertTest4_7_PCD_VoIP41e9d1bf-e6d5-45b5-b37f-c0e5857ce511",    "itms": [
{
    "ref": "1_CertTest4_7_PCD_BaseMRC",
    "txs": [{    "bill": true,    "cmpl": true,    "tm": 809.9406,    "calc": 1,    "cat": "SALES AND USE TAXES",    "cid": 1,    "name": "Transit Tax",    "exm": 0.0,    "lns": 0,    "min": 0.0,    "pcd": 3887600,    "rate": 0.01,    "sur": false,    "tax": 8.099406,    "lvl": 3,    "tid": 33},{    "bill": true,    "cmpl": true,    "tm": 809.9406,    "calc": 1,    "cat": "SALES AND USE TAXES",    "cid": 1,    "name": "Sales Tax",    "exm": 0.0,    "lns": 0,    "min": 0.0,    "pcd": 3887600,    "rate": 0.01,    "sur": false,    "tax": 8.099406,    "lvl": 3,    "tid": 1},{    "bill": true,    "cmpl": true,    "tm": 809.9406,    "calc": 1,    "cat": "SALES AND USE TAXES",    "cid": 1,    "name": "Sales Tax",    "exm": 0.0,    "lns": 0,    "min": 0.0,    "pcd": 3887600,    "rate": 0.0625,    "sur": false,    "tax": 50.6212875,    "lvl": 1,    "tid": 1},{    "bill": true,    "cmpl": true,    "tm": 454.3,    "calc": 1,    "cat": "CONNECTIVITY CHARGES",    "cid": 5,    "name": "FUSF (VoIP)",    "exm": 245.7,    "lns": 0,    "min": 0.0,    "pcd": 0,    "rate": 0.238,    "sur": false,    "tax": 108.1234,    "lvl": 0,    "tid": 162},{    "bill": true,    "cmpl": true,    "tm": 454.3,    "calc": 1,    "cat": "REGULATORY CHARGES",    "cid": 6,    "name": "FCC Regulatory Fee (VoIP)",    "exm": 245.7,    "lns": 0,    "min": 0.0,    "pcd": 0,    "rate": 0.004,    "sur": false,    "tax": 1.8172,    "lvl": 0,    "tid": 226}
    ]
},
{
    "ref": "1_CertTest4_7_PCD_LineCount",
    "txs": [{    "bill": true,    "cmpl": true,    "tm": 0.0,    "calc": 1,    "cat": "SALES AND USE TAXES",    "cid": 1,    "name": "Transit Tax",    "exm": 0.0,    "lns": 0,    "min": 0.0,    "pcd": 3887600,    "rate": 0.01,    "sur": false,    "tax": 0.0,    "lvl": 3,    "tid": 33},{    "bill": true,    "cmpl": true,    "tm": 0.0,    "calc": 1,    "cat": "SALES AND USE TAXES",    "cid": 1,    "name": "Sales Tax",    "exm": 0.0,    "lns": 0,    "min": 0.0,    "pcd": 3887600,    "rate": 0.01,    "sur": false,    "tax": 0.0,    "lvl": 3,    "tid": 1},{    "bill": true,    "cmpl": true,    "tm": 0.0,    "calc": 1,    "cat": "SALES AND USE TAXES",    "cid": 1,    "name": "Sales Tax",    "exm": 0.0,    "lns": 0,    "min": 0.0,    "pcd": 3887600,    "rate": 0.0625,    "sur": false,    "tax": 0.0,    "lvl": 1,    "tid": 1}
    ]
},
{
    "ref": "1_CertTest4_7_PCD_OutboundChannel",
    "txs": [{    "bill": true,    "cmpl": true,    "tm": 0.0,    "calc": 4,    "cat": "E-911 CHARGES",    "cid": 7,    "name": "E911 Equalization Surcharge",    "exm": 0.0,    "lns": 24,    "min": 0.0,    "pcd": 3671300,    "rate": 0.06,    "sur": false,    "tax": 1.44,    "lvl": 1,    "tid": 297},{    "bill": true,    "cmpl": true,    "tm": 0.0,    "calc": 4,    "cat": "E-911 CHARGES",    "cid": 7,    "name": "E911 (Business)",    "exm": 0.0,    "lns": 24,    "min": 0.0,    "pcd": 3887400,    "rate": 0.5,    "sur": false,    "tax": 12.0,    "lvl": 2,    "tid": 35}
    ]
},
{
    "ref": "1_CertTest4_7_PCD_ExtentionQuantity",
    "txs": [{    "bill": true,    "cmpl": true,    "tm": 0.0,    "calc": 6,    "cat": "RIGHT OF WAY FEES",    "cid": 9,    "name": "Municipal Right of Way (Extension)",    "exm": 0.0,    "lns": 65,    "min": 0.0,    "pcd": 3887600,    "rate": 38.92,    "sur": true,    "tax": 38.92,    "lvl": 3,    "tid": 228},{    "bill": true,    "cmpl": true,    "tm": 38.92,    "calc": 1,    "cat": "SALES AND USE TAXES",    "cid": 1,    "name": "Transit Tax",    "exm": 0.0,    "lns": 0,    "min": 0.0,    "pcd": 3887600,    "rate": 0.01,    "sur": false,    "tax": 0.3892,    "lvl": 3,    "tid": 33},{    "bill": true,    "cmpl": true,    "tm": 38.92,    "calc": 1,    "cat": "SALES AND USE TAXES",    "cid": 1,    "name": "Sales Tax",    "exm": 0.0,    "lns": 0,    "min": 0.0,    "pcd": 3887600,    "rate": 0.01,    "sur": false,    "tax": 0.3892,    "lvl": 3,    "tid": 1},{    "bill": true,    "cmpl": true,    "tm": 38.92,    "calc": 1,    "cat": "SALES AND USE TAXES",    "cid": 1,    "name": "Sales Tax",    "exm": 0.0,    "lns": 0,    "min": 0.0,    "pcd": 3887600,    "rate": 0.0625,    "sur": false,    "tax": 2.4325,    "lvl": 1,    "tid": 1}
    ]
},
{
    "ref": "1_CertTest4_7_PCD_Invoice",
    "txs": []
}    ],    "summ": [
{
    "max": 2147483647.0,
    "min": 0.0,
    "tchg": 848.8606,
    "calc": 1,
    "cat": "SALES AND USE TAXES",
    "cid": 1,
    "name": "Transit Tax",
    "exm": 0.0,
    "lns": 0,
    "pcd": 3887600,
    "rate": 0.01,
    "sur": false,
    "tax": 8.488606,
    "lvl": 3,
    "tid": 33
},
{
    "max": 2147483647.0,
    "min": 0.0,
    "tchg": 848.8606,
    "calc": 1,
    "cat": "SALES AND USE TAXES",
    "cid": 1,
    "name": "Sales Tax",
    "exm": 0.0,
    "lns": 0,
    "pcd": 3887600,
    "rate": 0.01,
    "sur": false,
    "tax": 8.488606,
    "lvl": 3,
    "tid": 1
},
{
    "max": 2147483647.0,
    "min": 0.0,
    "tchg": 848.8606,
    "calc": 1,
    "cat": "SALES AND USE TAXES",
    "cid": 1,
    "name": "Sales Tax",
    "exm": 0.0,
    "lns": 0,
    "pcd": 3887600,
    "rate": 0.0625,
    "sur": false,
    "tax": 53.0537875,
    "lvl": 1,
    "tid": 1
},
{
    "max": 2147483647.0,
    "min": 0.0,
    "tchg": 454.3,
    "calc": 1,
    "cat": "CONNECTIVITY CHARGES",
    "cid": 5,
    "name": "FUSF (VoIP)",
    "exm": 245.7,
    "lns": 0,
    "pcd": 0,
    "rate": 0.238,
    "sur": false,
    "tax": 108.1234,
    "lvl": 0,
    "tid": 162
},
{
    "max": 2147483647.0,
    "min": 0.0,
    "tchg": 454.3,
    "calc": 1,
    "cat": "REGULATORY CHARGES",
    "cid": 6,
    "name": "FCC Regulatory Fee (VoIP)",
    "exm": 245.7,
    "lns": 0,
    "pcd": 0,
    "rate": 0.004,
    "sur": false,
    "tax": 1.8172,
    "lvl": 0,
    "tid": 226
},
{
    "max": 2147483647.0,
    "min": 0.0,
    "tchg": 0.0,
    "calc": 4,
    "cat": "E-911 CHARGES",
    "cid": 7,
    "name": "E911 Equalization Surcharge",
    "exm": 0.0,
    "lns": 24,
    "pcd": 3671300,
    "rate": 0.06,
    "sur": false,
    "tax": 1.44,
    "lvl": 1,
    "tid": 297
},
{
    "max": 100.0,
    "min": 0.0,
    "tchg": 0.0,
    "calc": 4,
    "cat": "E-911 CHARGES",
    "cid": 7,
    "name": "E911 (Business)",
    "exm": 0.0,
    "lns": 24,
    "pcd": 3887400,
    "rate": 0.5,
    "sur": false,
    "tax": 12.0,
    "lvl": 2,
    "tid": 35
},
{
    "max": 70.0,
    "min": 61.0,
    "tchg": 0.0,
    "calc": 6,
    "cat": "RIGHT OF WAY FEES",
    "cid": 9,
    "name": "Municipal Right of Way (Extension)",
    "exm": 0.0,
    "lns": 65,
    "pcd": 3887600,
    "rate": 38.92,
    "sur": false,
    "tax": 38.92,
    "lvl": 3,
    "tid": 228
}    ],    "incrf": {
"acct": "CertCompany",
"custref": "CertTest4_7",
"invn": "CertTest4_7",
"bcyc": "202204"    }}
    ]
}
```