API

<back to all web services

i2cSintegraNacional

Receita Federal

The following routes are available for this service:
All Verbs/i2c/SintegraNacional
All Verbs/i2c100084
Parameters:
NameParameterData TypeRequiredDescription
CNPJpathTextYesCNPJ
CPFpathTextYesCPF
IEpathTextYesIE
UFpathTextYesUF

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /jsv/reply/i2cSintegraNacional HTTP/1.1 
Host: api.xdata.com.br 
Content-Type: text/jsv
Content-Length: length

{
	CNPJ: String,
	CPF: String,
	IE: String,
	UF: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Response: 
	{
		Status: 
		{
			Protocol: 00000000000000000000000000000000,
			DateTime: 0001-01-01,
			Code: 0,
			Message: String,
			Detail: String,
			Mode: String,
			Type: String,
			Source: String,
			HTML: String,
			URL: String,
			Cookie: String
		},
		Input: 
		[
			{
				Key: String,
				Value: String
			}
		],
		Output: 
		[
			{
				nm_Empresa: String,
				sg_UF: String,
				nr_CNPJ: String,
				nr_Filial: String,
				ds_SituacaoCNPJ: String,
				nr_InscricaoEstadual: String,
				ds_SituacaoContribuinte: String,
				tp_IE: String,
				dt_Situacao: String,
				ds_SubstituicaoTributaria: String,
				nm_Fantasia: String,
				dt_InicioAtividade: String,
				dt_FimAtividade: String,
				ds_RegimeTributacao: String,
				ds_IEDestinatario: String,
				ds_PorteEmpresa: String,
				ds_EnderecoEletronico: String,
				ds_NaturezaJuridica: String,
				ds_OcorrenciaFiscal: String,
				dt_CredenciamentoEmissorNFe: String,
				ds_IndicadorObrigatoriedadeNFe: String,
				dt_InicioObrigatoriedadeNFe: String,
				ds_CNAEPrincipal: String,
				ds_CNAESecundario: String,
				ds_CNAEstadual: String,
				cd_MunicipioIBGE: String,
				ds_Incentivo: String,
				sg_UFLocalizacao: String,
				ds_Logradouro: String,
				nr_Logradouro: String,
				ds_Complemento: String,
				nm_Bairro: String,
				nr_CEP: String,
				nm_Municipio: String,
				nr_Telefone: String,
				DataHora: String
			}
		],
		Error: 
		{
			ErrorCode: String,
			Message: String,
			StackTrace: String,
			Errors: 
			[
				{
					ErrorCode: String,
					FieldName: String,
					Message: String
				}
			]
		}
	}
}