Estou adaptando a emissao da prefeitura de Porto Alegre que funcionava perfeitamente no ambiente local, agora no nacional, já tem 5 dias que nao consigo autorizar.
Erro:
“codigo”: “RNG9997”,
“descricao”: “Erro de esquema.”,
“correcao”: “The element ‘tribMun’ in namespace ‘http://www.sped.fazenda.gov.br/nfse’ has invalid child element ‘pAliq’ in namespace ‘http://www.sped.fazenda.gov.br/nfse’. List of possible elements expected: ‘tpImunidade, exigSusp, BM, tpRetISSQN’ in namespace ‘http://www.sped.fazenda.gov.br/nfse’.”
Request:
{
“provedor”: “nacional”,
“ambiente”: “producao”,
“infDPS”: {
“tpAmb”: 1,
“dhEmi”: “2025-11-05T08:46:27Z”,
“verAplic”: “1.00”,
“dCompet”: “2025-11-05”,
“prest”: {
“CNPJ”: “"
},
“toma”: {
“CNPJ”: "”,
“xNome”: “XXXXX”,
“end”: {
“endNac”: {
“cMun”: “4302709”,
“CEP”: “96750000”
},
“xLgr”: “RODOVIA BR 290”,
“nro”: “6940”,
“xCpl”: “KM 167”,
“xBairro”: “PASSO DOS CARROS”
},
“fone”: “1199999000”,
“email”: “email@email.com.br”
},
“serv”: {
“cServ”: {
“cTribNac”: “140101”,
“CNAE”: “4530703”,
“xDescServ”: “SERVICO SUSPENSAO DIANTEIRA - SERVICO EMBUCHAMENTO MANGA EIXO 1. EIXO - PEDIDO 4308161334 - PLACA: SIV1I66”
}
},
“valores”: {
“vServPrest”: {
“vReceb”: 2586.00,
“vServ”: 2586.00
},
“vDescCondIncond”: {
“vDescIncond”: 0,
“vDescCond”: 0
},
“trib”: {
“tribMun”: {
“tribISSQN”: 1,
“cLocIncid”: “4302709”,
“cPaisResult”: “BR”,
“pAliq”: 5.00,
“tpRetISSQN”: 1
},
“totTrib”: {
“vTotTrib”: {
“vTotTribFed”: 0,
“vTotTribEst”: 0,
“vTotTribMun”: 129.30
}
}
}
}
}
}
