# Nota Fiscal Devolução de Venda Dentro do Estado

Source: https://developer.avalara.com/invoice_goods_pt/transacoes/nf_devolucao_dentro_estado/

# Nota Fiscal Devolução de Venda Dentro do Estado

Abaixo você encontra um modelo de payload de Nota Fiscal de devolução de venda efetuada dentro do Estado. 

```
{	"header": {		"documentCode": "0000001153",		"locations": {			"entity": {				"name": "NF-E EMITIDA EM AMBIENTE DE HOMOLOGACAO - SEM VALOR FISCAL",				"type": "business",				"federalTaxId": "45792689565546",				"stateTaxId": "0102020102",				"taxesSettings": {					"icmsTaxPayer": true				},				"address": {					"street": "R JOAO NEGRAO",					"neighborhood": "Centro",					"zipcode": "80010200",					"cityCode": "4106902",					"cityName": "Curitiba",					"state": "PR",					"countryCode": "1058",					"number": "S/N",					"phone": "1155002145",					"federalTaxId": "45792689565546"				},				"activitySector": {					"type": "cnae"				}			},			"establishment": {				"businessName": "TESTE S.A.",				"type": "business",				"federalTaxId": "45792689565546",				"cityTaxId": "45624566556",				"stateTaxId": "0102020102",				"address": {					"street": "R JOAO NEGRAO",					"neighborhood": "Centro",					"zipcode": "80010200",					"cityCode": "4106902",					"cityName": "Curitiba",					"state": "PR",					"country": "BRA",					"number": "371",					"federalTaxId": "45792689565546"				},				"activitySector": {					"type": "cnae",					"code": "0141501"				}			}		},		"invoiceAccessKey": "41211245792689565546550010000005631815931105",		"companyLocation": "45792689565546",		"transactionDate": "2021-12-02T10:53:39-03:00",		"invoiceNumber": "000000566",		"invoiceSerial": "1",		"invoicesRefs": [			{				"type": "refNFe",				"refNFe": "41211245792689565546550010000005631815931104"			}		],		"goods": {			"model": "55",			"class": "Devolucao de Venda",			"tpImp": "1",			"finNFe": "4",			"indFinal": "0",			"idDest": "1",			"indPres": "9",			"tpEmis": "1",			"transport": {				"modFreight": "FreeShipping",				"withholdICMSTransport": false			},			"goal": "Normal",			"indIntermed": "1",			"infIntermed": {				"federalTaxId": "45792689565546",				"idCadIntTran": "TESTE.COM"			}		}	},	"lines": [		{			"lineCode": "001",			"itemCode": "SOLAR065",			"itemDescriptor": {				"description": "FANTA LARANJA PET 1,75L 6/1",				"hsCode": "66019190",				"unit": "PEÇ",				"unitTaxable": "PEÇ"			},			"numberOfItems": 1.0,			"lineUnitPrice": 100.0,			"lineAmount": 100.0,			"cfop": "1202",			"orderItemNumber": "000000",			"taxableQtUnit": 1.0,			"lineAdditionalInfo": "Entrada com Recup. Crédito/ Saída Tributada Entrada com Recup. Crédito/ Saída Tributada Entrada com Recup. Crédito/ Saída Tributada Entrada com Recup. Crédito/ Saída Tributada Lei Fiscal Cofins com situação fiscal =  01 Lei Fiscal PIS com situação fiscal =  01",			"goods": {				"indTotType": true,				"isTransportIcmsWithheld": false,				"fuelDetails": {					"prodANPCode": "650101002",					"descANP": "OUTRAS GRAXAS",					"stateCodeOfUndUser": "SP"				}			},			"taxDetails": [				{					"taxType": "icms",					"subtotalTaxable": 0.0,					"rate": 0.0,					"tax": 0.0,					"cst": "60",					"source": "5"				},				{					"taxType": "icmsStStd",					"subtotalTaxable": 0.0,					"rate": 0.0,					"tax": 0.0,					"cst": "60",					"source": "5"				},				{					"taxType": "ipi",					"subtotalTaxable": 100.0,					"rate": 3.0,					"tax": 3.0,					"cst": "50",					"calcMode": "rate",					"sealQuantity": "000000000000"				},				{					"taxType": "pis",					"subtotalTaxable": 100.0,					"rate": 5.0,					"tax": 5.0,					"cst": "01"				},				{					"taxType": "cofins",					"subtotalTaxable": 105.0,					"rate": 1.5,					"tax": 0.01,					"cst": "01"				}			]		}	],	"summary": {		"numberOfLines": 1,		"totalLineAmounts": "100.00",		"totalTax": 8.01,		"taxByType": {			"icms": {				"subtotalTaxable": 0.0,				"tax": 0.0			},			"icmsStStd": {				"subtotalTaxable": 0.0,				"tax": 0.0			},			"pis": {				"subtotalTaxable": 100.0,				"tax": 5.0			},			"cofins": {				"subtotalTaxable": 105.0,				"tax": 0.01			},			"ipi": {				"subtotalTaxable": 100.0,				"tax": 3.0			}		},		"totalInvoice": 103.0	}}
```

[Anterior](/invoice_goods_pt/transacoes/nf_dentro_estado.html)

[Próxima](/invoice_goods_pt/transacoes/nf_complementar.html)