Cadastrar emitente
POST
jwtheader
AutorizaçãoBearer <token>Access token (ES256) do realm do Keycloak do ambiente, pedido por client_credentials com o client do integrador.
application/json- body
cnpjCpf*stringTamanho
1 <= lengthrazaoSocial*stringTamanho
0 <= length <= 150nomeFantasia?stringTamanho
0 <= length <= 150inscricaoEstadual?stringTamanho
0 <= length <= 20inscricaoMunicipal?stringTamanho
0 <= length <= 15endereco*telefone?stringemail?stringFormato
emailTamanho
0 <= length <= 80ambiente*stringValor em
"PRODUCAO""HOMOLOGACAO"regimeTributario*stringValor em
"SIMPLES_NACIONAL""SIMPLES_NACIONAL_EXCESSO_SUBLIMITE""REGIME_NORMAL""MEI"regimeEspecialTributacao?stringValor em
"NENHUM""ATO_COOPERADO""ESTIMATIVA""MICROEMPRESA_MUNICIPAL""NOTARIO_REGISTRADOR""PROFISSIONAL_AUTONOMO""SOCIEDADE_PROFISSIONAIS""OUTROS"ativo?booleanOK
*/*- response
id?stringFormato
uuidcnpjCpf?stringrazaoSocial?stringnomeFantasia?stringinscricaoEstadual?stringinscricaoMunicipal?stringendereco?telefone?stringemail?stringambiente?stringValor em
"PRODUCAO""HOMOLOGACAO"regimeTributario?stringValor em
"SIMPLES_NACIONAL""SIMPLES_NACIONAL_EXCESSO_SUBLIMITE""REGIME_NORMAL""MEI"regimeEspecialTributacao?stringValor em
"NENHUM""ATO_COOPERADO""ESTIMATIVA""MICROEMPRESA_MUNICIPAL""NOTARIO_REGISTRADOR""PROFISSIONAL_AUTONOMO""SOCIEDADE_PROFISSIONAIS""OUTROS"ativo?booleancriadoEm?stringFormato
date-timeatualizadoEm?stringFormato
date-timecurl -X POST 'https://api.u2dnotafiscal.com.br/api/v1/emitentes' \ -H 'Content-Type: application/json' \ -d '{ "cnpjCpf": "string", "razaoSocial": "string", "endereco": { "logradouro": "string", "numero": "string", "bairro": "string", "codigoMunicipio": "string", "uf": "RO", "cep": "string" }, "ambiente": "PRODUCAO", "regimeTributario": "SIMPLES_NACIONAL"}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "cnpjCpf": "string", "razaoSocial": "string", "nomeFantasia": "string", "inscricaoEstadual": "string", "inscricaoMunicipal": "string", "endereco": { "logradouro": "string", "numero": "string", "complemento": "string", "bairro": "string", "codigoMunicipio": "string", "uf": "RO", "cep": "string" }, "telefone": "string", "email": "string", "ambiente": "PRODUCAO", "regimeTributario": "SIMPLES_NACIONAL", "regimeEspecialTributacao": "NENHUM", "ativo": true, "criadoEm": "2019-08-24T14:15:22Z", "atualizadoEm": "2019-08-24T14:15:22Z"}