# Nota Fiscal de Importação

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

# Nota Fiscal de Importação

Abaixo você encontra um modelo de payload de Nota Fiscal de Importação.

```
{	"header": { "transactionDate": "2020-10-06", "amountCalcType": "gross", "documentCode": "Inbound7", "messageType": "goods", "companyLocation": "35304131860", "operationType": "", "locations": { "establishment": { "activitySector": { "type": "activityLine", "code": "importer"				}, "taxRegime": "realProfit", "type": "business", "stateTaxId": "45436167426419", "address": { "street": "Avenida 7", "neighborhood": "", "zipcode": "20010-000", "cityCode": 3304557, "cityName": "Rio de Janeiro", "state": "RJ", "countryCode": "0", "country": "BRA", "number": "", "complement": "", "phone": ""				}			}, "entity": { "taxRegime": "notApplicable", "type": "foreign", "address": { "street": "", "neighborhood": "", "zipcode": "", "cityCode": 0, "cityName": "", "state": "", "countryCode": "0", "country": "CHN", "number": "", "phone": ""				}, "federalTaxId": ""			}		}, "invoiceSerial": 16, "invoiceNumber": 5648466, "shippingDate": "2020-10-07T00:00:00.000Z", "payment": { "paymentInfo": { "paymentMode": [					{ "mode": "90", "value": "0.00 ", "cardCNPJ": "00000000000000"					}				]			}		}, "goods": { "model": "55", "class": "NF-e conjugada", "tpImp": "1", "indFinal": "1", "idDest": "1", "indPres": "0", "tpEmis": "1", "transport": { "modFreight": "CIF", "withholdICMSTransport": false, "volumes": [					{ "seal": [ "000000"						]					}				]			}, "goal": "Normal"		}, "additionalInfo": { "complementaryInfo": "II Resolução CAMEX nº 125/2016, Artigo 1º, Anexo I\nIPI com alíquota zero conforme: \"Decreto nº 8950/2016\"\nPIS/COFINSIMPORT_ Lei nº 10.865/2004, Artigo 8º, inciso I, alínea a, alterada Lei nº 13.137/2015, Artigo 1º\nPIS/COFINSIMPORT_ Lei nº 10.865/2004, Artigo 8º, inciso I, alínea b, alterada Lei nº 13.137/2015, Artigo 1º\nICMS/RJ_Lei nº 2.657/1996, Artigo 14, Inciso IV"		}, "invoiceAccessKey": "33201000000000000000550160056484661648123456"	},	"lines": [		{ "lineCode": 0, "itemCode": "0", "itemDescriptor": { "hsCode": "83011000", "source": "8", "description": "0", "unit": "PEÇ", "unitTaxable": "PEÇ"			}, "numberOfItems": 1, "taxableQtUnit": 1, "lineUnitPrice": 100, "taxableUnitAmount": 100, "lineAmount": 100, "lineTaxedDiscount": 0, "freightAmount": 0, "insuranceAmount": 0, "otherCostAmount": 0, "cfop": 3102, "goods": { "subjectToIPIonInbound": false, "indTotType": true, "isEntityIcmsStSubstituteOnInbound": false, "importDetails": [					{ "customsValue": 0, "diNumber": "12345", "registerDateDI": "2020-10-06", "clearanceSite": "Rio de Janeiro", "clearanceState": "RJ", "clearanceDate": "2020-10-06", "transportDIType": "1", "afrmmValue": 20.15, "intermediateType": "1", "buyerFederalTaxID": "1204851244102", "buyerState": "RJ", "exporterCode": "123456", "adi": [							{ "addNumber": 12345, "sequentialNumber": 1, "manufacturerCode": "01-02545", "adiDiscount": 0, "drawbackNumber": "20208955436"							}						]					}				]			}, "taxDetails": [				{ "taxType": "cofins", "subtotalTaxable": 100, "rate": 9.65, "tax": 9.65, "exemptionCode": "", "cst": "70", "calcMode": "rate"				},				{ "taxType": "icms", "subtotalTaxable": 152.08, "rate": 16, "tax": 24.33, "exemptionCode": "", "source": "8", "cst": "00", "modBC": "3"				},				{ "taxType": "ii", "subtotalTaxable": 100, "rate": 16, "tax": 16, "exemptionCode": ""				},				{ "taxType": "iof", "subtotalTaxable": 0, "rate": 0, "tax": 0, "exemptionCode": ""				},				{ "taxType": "ipi", "subtotalTaxable": 116, "rate": 0, "tax": 0, "exemptionCode": "", "cst": "01", "legalTaxClass": 999, "calcMode": "rate"				},				{ "taxType": "pis", "subtotalTaxable": 100, "rate": 2.1, "tax": 2.1, "exemptionCode": "", "cst": "70", "calcMode": "rate"				}			], "lineAdditionalInfo": ""		}	],	"version": "3",	"processingInfo": { "versionId": "20.11.2", "duration": "10527.969"	},	"summary": { "numberOfLines": 1, "totalLineAmounts": 100, "totalTaxedDiscounts": 0, "totalUntaxedDiscounts": 0, "totalInsurances": 0, "totalFreights": 0, "totalOtherCosts": 0, "taxByType": { "cofins": { "tax": 9.65, "subtotalTaxable": 100, "jurisdictions": [					{ "jurisdictionName": "Brazil", "jurisdictionType": "Country", "tax": 9.65					}				]			}, "icms": { "tax": 24.33, "subtotalTaxable": 152.08, "jurisdictions": [					{ "jurisdictionName": "", "jurisdictionType": "State", "tax": 24.33					}				]			}, "ii": { "tax": 16, "subtotalTaxable": 100, "jurisdictions": [					{ "jurisdictionName": "Brazil", "jurisdictionType": "Country", "tax": 16					}				]			}, "iof": { "tax": 0, "subtotalTaxable": 0, "jurisdictions": [					{ "jurisdictionName": "Brazil", "jurisdictionType": "Country", "tax": 0					}				]			}, "ipi": { "tax": 0, "subtotalTaxable": 116, "jurisdictions": [					{ "jurisdictionName": "Brazil", "jurisdictionType": "Country", "tax": 0					}				]			}, "pis": { "tax": 2.1, "subtotalTaxable": 100, "jurisdictions": [					{ "jurisdictionName": "Brazil", "jurisdictionType": "Country", "tax": 2.1					}				]			}		}	}}
```

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

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