# Service sales within origin company city

Source: https://developer.avalara.com/invoice_services_en/transactions/service_sales_within_company/

# Service sales within origin company city

The example below shows a payload model of a service sales invoice generated within the origin company city.

```
{ "header": { "locations": { "entity": { "name": "Teste Mensageria Ltda - Me", "businessName": "Teste Mensageria", "cityTaxId": "", "stateTaxId": "", "taxRegime": "realProfit", "address": { "street": "Rua Aires Saldanha", "neighborhood": "Copacabana", "number": "500", "cityCode": "3304557", "cityName": "RIO DE JANEIRO", "state": "RJ", "zipcode": "22060-030", "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": "Atrevo Comunicacao E Design Ltda - Me", "neighborhood": "Centro", "number": "38", "cityCode": "3304557", "cityName": "RIO DE JANEIRO", "state": "RJ", "zipcode": "20050-000", "countryCode": "1058", "country": "BRA"                }            }, "rendered": { "address": { "street": "Rua Aires Saldanha", "neighborhood": "Copacabana", "number": "500", "cityCode": "3304557", "cityName": "RIO DE JANEIRO", "state": "RJ", "zipcode": "22060-030", "countryCode": "1058", "country": "BRA"                }            }        }, "operationType": "SALE", "companyLocation": "16501060000128", "transactionDate": "2022-03-25T09:00:00.000Z", "messageType": "services", "documentCode": "0001816", "additionalInfo": { "otherInfo": "Interesse do fisco"        }, "payment": { "installmentTerms": "1", "bill": { "nFat": "0001816", "vOrig": 60000, "vDiscount": 0.0, "vNet": 60000            }, "installment": [                { "documentNumber": "0001816", "date": "2022-03-25T00:00Z", "grossValue": 60000, "netValue": 60000                }            ]        }, "rpsNumber": "109", "rpsSerie": "0"    }, "lines": [        { "lineCode": 1, "itemCode": "F000000007", "itemDescriptor": { "description": "Prestação de serviços", "hsCode": "01.08", "serviceCodeOrigin": "10800188", "serviceCode": "10800188"            }, "numberOfItems": 1, "lineUnitPrice": 60000, "lineAmount": 60000, "lineNetUnitPrice": 0, "lineNetAmount": 0, "lineNetFigure": 0, "lineTaxedDiscount": 0, "lineUnTaxedDiscount": 0, "taxDetails": [                { "taxType": "pisRf", "isCustomCitation": false, "subtotalTaxable": 60000, "rate": 0.65, "tax": 390, "cst": "01", "calcMode": "rate"                },                { "taxType": "cofinsRf", "isCustomCitation": false, "subtotalTaxable": 60000, "rate": 3.0, "tax": 1800, "cst": "01", "calcMode": "rate"                },                { "taxType": "csllRf", "isCustomCitation": false, "subtotalTaxable": 60000, "rate": 1, "tax": 600, "calcMode": "rate"                },                { "taxType": "pis", "isCustomCitation": false, "subtotalTaxable": 60000, "rate": 1.65, "tax": 990, "cst": "01", "calcMode": "rate"                },                { "taxType": "cofins", "isCustomCitation": false, "subtotalTaxable": 60000, "rate": 7.6, "tax": 4560, "cst": "01", "calcMode": "rate"                },                { "taxType": "inssRf", "isCustomCitation": false, "subtotalTaxable": 60000, "rate": 11, "tax": 6600, "calcMode": "rate"                },                { "taxType": "irrRf", "isCustomCitation": false, "subtotalTaxable": 60000, "rate": 1.5, "tax": 900, "calcMode": "rate"                },                { "taxType": "iss", "isCustomCitation": false, "subtotalTaxable": 60000, "rate": 3, "tax": 1800, "cst": "01", "calcMode": "rate"                }            ]        }    ], "summary": { "numberOfLines": 1, "totalLineAmounts": 60000, "totalLineNetAmounts": 0, "totalTaxedDiscounts": 0, "totalUntaxedDiscounts": 0, "totalInsurances": 0, "totalFreights": 0, "totalOtherCosts": 0, "totalInvoice": 60000, "taxByType": { "pis": { "subtotalTaxable": 60000, "tax": 990            }, "pisRf": { "subtotalTaxable": 60000, "tax": 390            }, "cofins": { "subtotalTaxable": 60000, "tax": 4560            }, "cofinsRf": { "subtotalTaxable": 60000, "tax": 1800            }, "iss": { "subtotalTaxable": 60000, "tax": 1800            }, "inssRf": { "subtotalTaxable": 60000, "tax": 6600            }, "csllRf": { "subtotalTaxable": 60000, "tax": 600            }, "irrf": { "subtotalTaxable": 60000, "tax": 900            }        }    }}
```

[Previous](/invoice_services_en/transactions)

[Next](/invoice_services_en/transactions/service_sales_out)