This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"federalTaxNumber": "332.512.198-55", | |
"name": "TAMIRES SAYURI TANAKA", | |
"status": "Regular", | |
"birthOn": "1992-05-26T00:00:00-03:00", | |
"createdOn": "2017-11-30T19:35:16.4515719Z" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "NS2.COM INTERNET S.A.", | |
"federalTaxNumber": "09.339.936/0001-16", | |
"createdOn": "2018-02-22T02:19:57.4538381Z", | |
"taxPayer": [{ | |
"openedOn": "2008-02-21T00:00:00Z", | |
"statusOnStateTax": "2008-02-21T00:00:00Z", | |
"cnae": 4763602, | |
"stateTaxNumber": 149996138112, | |
"state": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"stateCode":24, | |
"checkCode":80750033, | |
"codeModel":55, | |
"serie":1, | |
"number":66735, | |
"issuedOn":"2018-03-26T17:12:18-03:00", | |
"cityCode":2407104, | |
"checkCodeDigit":0, | |
"currentStatus":"Authorized", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"federalTaxNumber": "00.360.305/0001-04", | |
"name": "CAIXA ECONOMICA FEDERAL", | |
"tradeName": "CEF MATRIZ", | |
"shareCapital": 508353189, | |
"email": "gecol@caixa.gov.br", | |
"status": "ATIVA", | |
"issuedOn": "2017-12-13T10:30:46Z", | |
"statusOn": "2005-11-03T00:00:00Z", | |
"openedOn": "1971-02-03T00:00:00Z", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// CNPJ | |
"federalTaxNumber":"02.154.389/0001-55", | |
// Razao Social | |
"name":"PADARIA E CONFEITARIA MAKROPAO LTDA - ME", | |
// Regime Tributario | |
"taxRegime":"Normal", | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CNPJValidator { | |
public static boolean validateCNPJ(String cnpj) { | |
// Remove non-numeric characters | |
cnpj = cnpj.replaceAll("[^0-9]", ""); | |
// Check if CNPJ has 14 digits | |
if (cnpj.length() != 14) | |
return false; |