Problem with 'InscricaoPrestador'

Hello,

I’m a software engineer for a US company trying to operate in Brazil.

Yesterday I had some issues creating an NF-e using a valid CNPJ but I realized that the CNPJ I was using was good for NFS-e.

This is how I configured my CNPJ / Empress:

{
    "ambiente": "homologacao",
    "regTrib": {
        "opSimpNac": 1,
        "regEspTrib": 0
    },
    "rps": {
        "lote": 1,
        "serie": "A",
        "numero": 1
    }
}

and this is how I am hitting the endpoint: https://api.sandbox.nuvemfiscal.com.br/nfse/dps.

{
    "ambiente": "homologacao",
    "infDPS": {
        "dhEmi": "2025-11-14T13:00:00Z",
        "prest": {
            "CNPJ": "50967468000128",
            "regTrib": {
                "regEspTrib": 1
            }
        },
        "serv": {
            "cServ": {
                "cTribNac": "0107",
                "xDescServ": "Criacao de campanha de marketing digital para cliente XYZ, incluindo planejamento estratégico, criacao de conteudos e gerenciamento de anuncios pagos nas redes sociais."
            }
        },
        "valores": {
            "vServPrest": {
                "vServ": 500
            },
            "trib": {
                "tribMun": {
                    "tribISSQN": 1
                }
            }
        }
    }
}

But I keep on getting the error:

Status code: 400
Response: {
    "error": {
        "code": "ValidationFailed",
        "message": "Validation failed: Erro de Validação:  --> 1824 - Element 'InscricaoPrestador': '' is not a valid value of the atomic type '{http://www.prefeitura.sp.gov.br/nfe/tipos}tpInscricaoMunicipal'.",
        "errors": [
            {
                "code": "X800",
                "message": "Erro de Validação:  --> 1824 - Element 'InscricaoPrestador': '' is not a valid value of the atomic type '{http://www.prefeitura.sp.gov.br/nfe/tipos}tpInscricaoMunicipal'."
            }
        ]
    }
}