Eu estava tentando emitir uma NFe e recebi o seguinte erro:
Validation failed: Falha na validação dos dados da nota: 126\r\n\r\n --> 1871 - Element '{http://www.portalfiscal.inf.br/nfe}ICMSSN': This element is not expected. Expected is one of ( {http://www.portalfiscal.inf.br/nfe}ICMS00, {http://www.portalfiscal.inf.br/nfe}ICMS10, {http://www.portalfiscal.inf.br/nfe}ICMS20, {http://www.portalfiscal.inf.br/nfe}ICMS30, {http://www.portalfiscal.inf.br/nfe}ICMS40, {http://www.portalfiscal.inf.br/nfe}ICMS51, {http://www.portalfiscal.inf.br/nfe}ICMS60, {http://www.portalfiscal.inf.br/nfe}ICMS70, {http://www.portalfiscal.inf.br/nfe}ICMS90, {http://www.portalfiscal.inf.br/nfe}ICMSPart ).
O json que eu passei foi:
{
"ambiente": "homologacao",
"referencia": null,
"infNFe": {
"versao": "4.00",
"Id": null,
"ide": {
"cUF": 24,
"cNF": null,
"natOp": "Venda",
"mod": null,
"serie": 1,
"nNF": 126,
"dhEmi": "2023-02-28T19:59:27.699Z",
"dhSaiEnt": null,
"tpNF": 1,
"idDest": 1,
"cMunFG": "2402006",
"tpImp": 0,
"tpEmis": 1,
"cDV": null,
"tpAmb": null,
"finNFe": 1,
"indFinal": 1,
"indPres": 1,
"indIntermed": null,
"procEmi": 0,
"verProc": "1.9.5",
"dhCont": null,
"xJust": null,
"NFref": []
},
"emit": {
"CNPJ": "20412822000197",
"CPF": null,
"xNome": "Dominio teste",
"xFant": "teste",
"IE": "003249433",
"IEST": null,
"CNAE": "",
"CRT": 1,
"enderEmit": {
"xLgr": "rua tal",
"nro": "9",
"xCpl": "n tem",
"xBairro": "bairro tal",
"cMun": "2402006",
"xMun": "Caic\\u00f3",
"UF": "RN",
"CEP": "59300000",
"cPais": "1058",
"xPais": "BRASIL",
"fone": null
}
},
"dest": {
"CNPJ": null,
"CPF": "28514868020",
"idEstrangeiro": null,
"xNome": "Mairon",
"indIEDest": 2,
"IE": "459883574",
"ISUF": null,
"IM": null,
"email": null,
"enderDest": {
"xLgr": "logradouro",
"nro": "15",
"xCpl": "complemento",
"xBairro": "bairro",
"cMun": "2402006",
"xMun": "Caic\\u00f3",
"UF": "RN",
"CEP": "59300000",
"cPais": "1058",
"xPais": "BRASIL",
"fone": null
}
},
"autXML": [],
"det": [
{
"nItem": 1,
"infAdProd": null,
"prod": {
"cProd": "3",
"cEAN": "111225242477",
"cBarra": null,
"xProd": "3",
"NCM": "00000123",
"indEscala": null,
"CNPJFab": null,
"cBenef": null,
"EXTIPI": null,
"CFOP": "1000",
"uCom": "BISNAG",
"qCom": 6.0,
"vUnCom": 49.9,
"vProd": 299.4,
"cEANTrib": "SEM GTIN",
"cBarraTrib": null,
"uTrib": "BISNAG",
"qTrib": 6.0,
"vUnTrib": 49.9,
"vFrete": null,
"vSeg": null,
"vDesc": null,
"vOutro": null,
"indTot": 1,
"xPed": null,
"nItemPed": null,
"nFCI": null,
"nRECOPI": null,
"NVE": [],
"DI": [],
"detExport": [],
"rastro": [],
"arma": []
},
"imposto": {
"vTotTrib": null,
"ICMS": {
"ICMS40": {
"orig": 1,
"CST": "50",
"vICMSDeson": 1.0,
"motDesICMS": null
}
},
"PIS": {
"PISQtde": {
"CST": "03",
"qBCProd": 1,
"vAliqProd": 0.0,
"vPIS": 0.0
}
},
"COFINS": {
"COFINSQtde": {
"CST": "03",
"qBCProd": 1,
"vAliqProd": 0.0,
"vCOFINS": 0.0
}
}
}
}
],
"total": {
"ICMSTot": {
"vBC": 0.0,
"vICMS": 0.0,
"vICMSDeson": 0.0,
"vFCPUFDest": null,
"vICMSUFDest": null,
"vICMSUFRemet": null,
"vFCP": 0.0,
"vBCST": 0.0,
"vST": 0.0,
"vFCPST": 0.0,
"vFCPSTRet": 0.0,
"vProd": 0.0,
"vFrete": 0.0,
"vSeg": 0.0,
"vDesc": 0.0,
"vII": 0.0,
"vIPI": 0.0,
"vIPIDevol": 0.0,
"vPIS": 0.0,
"vCOFINS": 0.0,
"vOutro": 0.0,
"vNF": 0.0,
"vTotTrib": null
},
"retTrib": {
"vRetPIS": null,
"vRetCOFINS": null,
"vRetCSLL": null,
"vBCIRRF": null,
"vIRRF": null,
"vBCRetPrev": null,
"vRetPrev": null
}
},
"transp": {
"modFrete": 0,
"vagao": null,
"balsa": null,
"transporta": {
"CNPJ": null,
"CPF": null,
"xNome": null,
"IE": null,
"xEnder": null,
"xMun": null,
"UF": null
},
"reboque": [],
"vol": []
},
"cobr": {
"fat": {
"nFat": null,
"vOrig": null,
"vDesc": null,
"vLiq": null
},
"dup": []
},
"pag": {
"vTroco": null,
"detPag": [
{
"indPag": null,
"tPag": "01",
"xPag": null,
"vPag": 123.0
}
]
},
"infAdic": {
"infAdFisco": null,
"infCpl": null,
"obsCont": [],
"obsFisco": [],
"procRef": []
},
"compra": {
"xNEmp": null,
"xPed": null,
"xCont": null
}
}
}