# Construction sector

Source: https://developer.avalara.com/invoice_services_en/transactions/construction-sector/

# Construction sector

The example below shows a payload model of an Invoice generated for the construction sector.

```
{    "header": {        "locations": {            "entity": {                "name": "Teste Mensageria Ltda - Me",                "businessName": "Teste Mensageria Obras",                "cityTaxId": "",                "stateTaxId": "",                "taxRegime": "realProfit",                "address": {                    "street": "Rua Aires Saldanha",                    "neighborhood": "Centro",                    "number": "500",                    "cityCode": "3550308",                    "cityName": "São Paulo",                    "state": "SP",                    "zipcode": "04710000",                    "countryCode": "1058",                    "country": "BRA"                },                "federalTaxId": "10711137000108",                "type": "busines"            },            "establishment": {                "name": "Emissor da Nota LDTA",                "businessName": "Emissor da Nota",                "cityTaxId": "4154646",                "stateTaxId": "",                "taxRegime": "realProfit",                "address": {                    "street": "Rua Joao da Silva",                    "neighborhood": "Centro",                    "number": "500",                    "cityCode": "3550308",                    "cityName": "São Paulo",                    "state": "SP",                    "zipcode": "04710000",                    "countryCode": "1058",                    "country": "BRA"                }            },            "rendered": {                "address": {                    "neighborhood": "Centro",                    "zipcode": "04710010",                    "cityName": "São Paulo",                    "cuntry": "BRA",                    "cityCode": 3550308,                    "countryCode": "0",                    "country": "BRA",                    "state": "SP"                }            }        },        "operationType": "SALE",        "companyLocation": "16501060000128",        "transactionDate": "2022-03-25T09:00:00.000Z",        "messageType": "services",        "documentCode": "0001810",        "additionalInfo": {            "otherInfo": "Interesse do fisco"        },        "payment": {            "installmentTerms": "1",            "bill": {                "nFat": "0001810",                "vOrig": 100000,                "vDiscount": 0.0,                "vNet": 100000            },            "installment": [                {                    "documentNumber": "0001816",                    "date": "2022-03-25T00:00Z",                    "grossValue": 100000,                    "netValue": 100000                }            ]        },        "rpsNumber": "110",        "rpsSerie": "0",        "services": {            "build": {                "code": "123456789123456",                "art": "123456789987456",                "cei": "456123654789654",                "number": "456231456987451",                "encapsulationNumber": "987456546987456"            }        }    },    "lines": [        {            "lineCode": 1,            "itemCode": "F000000009",            "itemDescriptor": {                "description": "Prestação de serviços de construção",                "hsCode": "07.02",                "serviceCodeOrigin": "01023",                "serviceCode": "01023"            },            "numberOfItems": 1,            "lineUnitPrice": 100000,            "lineAmount": 100000,            "lineNetUnitPrice": 0,            "lineNetAmount": 0,            "lineNetFigure": 0,            "lineTaxedDiscount": 0,            "lineUnTaxedDiscount": 0,            "taxDetails": [                {                    "taxType": "pisRf",                    "isCustomCitation": false,                    "subtotalTaxable": 100000,                    "rate": 0.65,                    "tax": 650,                    "cst": "01",                    "calcMode": "rate"                },                {                    "taxType": "cofinsRf",                    "isCustomCitation": false,                    "subtotalTaxable": 100000,                    "rate": 3.0,                    "tax": 3000,                    "cst": "01",                    "calcMode": "rate"                },                {                    "taxType": "csllRf",                    "isCustomCitation": false,                    "subtotalTaxable": 100000,                    "rate": 1,                    "tax": 1000,                    "calcMode": "rate"                },                {                    "taxType": "pis",                    "isCustomCitation": false,                    "subtotalTaxable": 100000,                    "rate": 0.65,                    "tax": 650,                    "cst": "01",                    "calcMode": "rate"                },                {                    "taxType": "cofins",                    "isCustomCitation": false,                    "subtotalTaxable": 100000,                    "rate": 3,                    "tax": 3000,                    "cst": "01",                    "calcMode": "rate"                },                {                    "taxType": "inssRf",                    "isCustomCitation": false,                    "subtotalTaxable": 100000,                    "rate": 3.5,                    "tax": 3500,                    "calcMode": "rate"                },                {                    "taxType": "irrf",                    "isCustomCitation": false,                    "subtotalTaxable": 100000,                    "rate": 1,                    "tax": 1000,                    "calcMode": "rate"                },                {                    "taxType": "iss",                    "isCustomCitation": false,                    "subtotalTaxable": 100000,                    "rate": 5,                    "tax": 5000,                    "cst": "01",                    "calcMode": "rate"                }            ]        }    ],    "summary": {        "numberOfLines": 1,        "totalLineAmounts": 100000,        "totalLineNetAmounts": 0,        "totalTaxedDiscounts": 0,        "totalUntaxedDiscounts": 0,        "totalInsurances": 0,        "totalFreights": 0,        "totalOtherCosts": 0,        "totalInvoice": 100000,        "taxByType": {            "pis": {                "subtotalTaxable": 100000,                "tax": 650            },            "pisRf": {                "subtotalTaxable": 100000,                "tax": 650            },            "cofins": {                "subtotalTaxable": 100000,                "tax": 3000            },            "cofinsRf": {                "subtotalTaxable": 100000,                "tax": 3000            },            "iss": {                "subtotalTaxable": 100000,                "tax": 5000            },            "inssRf": {                "subtotalTaxable": 100000,                "tax": 3500            },            "csllRf": {                "subtotalTaxable": 100000,                "tax": 1000            },            "irrf": {                "subtotalTaxable": 100000,                "tax": 1000            }        }    }}
```

[Previous](/invoice_services_en/transactions/service_sales_with_deductions)

[Next](/invoice_services_en/functional_review/functional_review)