You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Flávio Soares Mastrangelo
15 de out. de 2025, 07:52:18 (há 13 dias)
para PyNFe
Pessoal, bom dia!
Baseado no exemplo abaixo:
https://github.com/TadaSoftware/PyNFe/wiki/Fluxo-da-Consulta-de-Distribuicao-por-NSU
Para realizar a consulta de notas emitidas contra o meu cnpj a nível nacional o correto é interar por uf:
UFS = [
'AC', 'AL', 'AP', 'AM', 'BA', 'CE', 'DF', 'ES', 'GO', 'MA', 'MT', 'MS',
'MG', 'PA', 'PB', 'PR', 'PE', 'PI', 'RJ', 'RN', 'RS', 'RO', 'RR', 'SC',
'SP', 'SE', 'TO'
]
for uf in UFS:
print(f'--- Consultando UF: {uf} ---')
try:
con = ComunicacaoSefaz(uf, certificado, senha, homologacao)
ultNSU = 0
maxNSU = 0
cStat = 0
......
Ou existe uma outra forma padrão, para consulta nesse ambito?
Beta Was this translation helpful? Give feedback.
All reactions