JSON Schema copiar
{
"type" : "object" ,
"properties" : {
"page" : {
"type" : [
"number" ,
"null"
],
"description" : "Página atual da listagem."
},
"porte" : {
"type" : [
"string" ,
"null"
],
"description" : "Porte da empresa."
},
"perPage" : {
"type" : [
"number" ,
"null"
],
"description" : "Itens por página."
},
"totalPages" : {
"type" : [
"number" ,
"null"
],
"description" : "Total de páginas."
},
"razaoSocial" : {
"type" : [
"string" ,
"null"
],
"description" : "Razão social da empresa."
},
"totalAtivos" : {
"type" : [
"number" ,
"null"
],
"description" : "Total de estabelecimentos ativos."
},
"capitalSocial" : {
"type" : [
"string" ,
"null"
],
"format" : "currency" ,
"description" : "Capital social da empresa."
},
"cnpjConsultado" : {
"type" : [
"string" ,
"null"
],
"format" : "cnpj" ,
"description" : "CNPJ consultado."
},
"estabelecimentos" : {
"type" : [
"array" ,
"null"
],
"items" : {
"type" : "object" ,
"properties" : {
"cnpj" : {
"type" : [
"string" ,
"null"
],
"format" : "cnpj" ,
"description" : "CNPJ do estabelecimento"
},
"tipo" : {
"type" : [
"string" ,
"null"
],
"description" : "Tipo (matriz ou filial)"
},
"email" : {
"type" : [
"string" ,
"null"
],
"description" : "E-mail"
},
"endereco" : {
"type" : [
"object" ,
"null"
],
"properties" : {
"uf" : {
"description" : "UF"
},
"cep" : {
"format" : "cep" ,
"description" : "CEP"
},
"bairro" : {
"description" : "Bairro"
},
"numero" : {
"description" : "Número"
},
"municipio" : {
"description" : "Município"
},
"logradouro" : {
"description" : "Logradouro"
},
"complemento" : {
"description" : "Complemento"
}
},
"description" : "Endereço"
},
"telefone" : {
"type" : [
"string" ,
"null"
],
"description" : "Telefone"
},
"dataSituacao" : {
"type" : [
"string" ,
"null"
],
"format" : "date" ,
"description" : "Data da situação"
},
"nomeFantasia" : {
"type" : [
"string" ,
"null"
],
"description" : "Nome fantasia"
},
"cnaePrincipal" : {
"type" : [
"string" ,
"null"
],
"description" : "CNAE principal"
},
"situacaoCadastral" : {
"type" : [
"string" ,
"null"
],
"description" : "Situação cadastral"
},
"dataInicioAtividade" : {
"type" : [
"string" ,
"null"
],
"format" : "date" ,
"description" : "Início da atividade"
}
}
},
"description" : "Lista de estabelecimentos (matriz e filiais)."
},
"totalEstabelecimentos" : {
"type" : [
"number" ,
"null"
],
"description" : "Total de estabelecimentos (matriz + filiais)."
}
}
}