Atendimento

Cadastrar emitente

POST
/api/v1/emitentes

Autorização

jwt
headerAutorizaçãoBearer <token>

Access token (ES256) do realm do Keycloak do ambiente, pedido por client_credentials com o client do integrador.

Corpo da requisição

application/json
  1. body
cnpjCpf*string
Tamanho1 <= length
razaoSocial*string
Tamanho0 <= length <= 150
nomeFantasia?string
Tamanho0 <= length <= 150
inscricaoEstadual?string
Tamanho0 <= length <= 20
inscricaoMunicipal?string
Tamanho0 <= length <= 15
endereco*
telefone?string
email?string
Formatoemail
Tamanho0 <= length <= 80
ambiente*string
Valor em"PRODUCAO""HOMOLOGACAO"
regimeTributario*string
Valor em"SIMPLES_NACIONAL""SIMPLES_NACIONAL_EXCESSO_SUBLIMITE""REGIME_NORMAL""MEI"
regimeEspecialTributacao?string
Valor em"NENHUM""ATO_COOPERADO""ESTIMATIVA""MICROEMPRESA_MUNICIPAL""NOTARIO_REGISTRADOR""PROFISSIONAL_AUTONOMO""SOCIEDADE_PROFISSIONAIS""OUTROS"
ativo?boolean

Corpo da resposta

OK

*/*
  1. response
id?string
Formatouuid
cnpjCpf?string
razaoSocial?string
nomeFantasia?string
inscricaoEstadual?string
inscricaoMunicipal?string
endereco?
telefone?string
email?string
ambiente?string
Valor em"PRODUCAO""HOMOLOGACAO"
regimeTributario?string
Valor em"SIMPLES_NACIONAL""SIMPLES_NACIONAL_EXCESSO_SUBLIMITE""REGIME_NORMAL""MEI"
regimeEspecialTributacao?string
Valor em"NENHUM""ATO_COOPERADO""ESTIMATIVA""MICROEMPRESA_MUNICIPAL""NOTARIO_REGISTRADOR""PROFISSIONAL_AUTONOMO""SOCIEDADE_PROFISSIONAIS""OUTROS"
ativo?boolean
criadoEm?string
Formatodate-time
atualizadoEm?string
Formatodate-time
curl -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"}