| All Verbs | /i2c/ReceitaFederal/SituacaoCadastral/PJ | ||
|---|---|---|---|
| All Verbs | /i2c100001PJ | ||
| All Verbs | /i2cReceitaFederalSituacaoCadastralPJ | ||
| All Verbs | /ReceitaFederal/SituacaoCadastral/PJ | ||
| All Verbs | /Federal/ReceitaFederal/SituacaoCadastral/PJ |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Mode | path | Text | Yes | Origem da informacao online/offline (on/off) |
| CNPJ | path | Number | Yes | Numero do CNPJ |
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /xml/reply/i2cReceitaFederalSituacaoCadastralPJ HTTP/1.1
Host: api.xdata.com.br
Content-Type: application/xml
Content-Length: length
<i2cReceitaFederalSituacaoCadastralPJ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.xpi.net/types">
<CNPJ>String</CNPJ>
<Mode>String</Mode>
</i2cReceitaFederalSituacaoCadastralPJ>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<i2cReceitaFederalSituacaoCadastralPJResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.xpi.net/types">
<Response>
<Error>
<ErrorCode>String</ErrorCode>
<Message>String</Message>
<StackTrace>String</StackTrace>
<Errors>
<ResponseError>
<ErrorCode>String</ErrorCode>
<FieldName>String</FieldName>
<Message>String</Message>
</ResponseError>
</Errors>
</Error>
<Input>
<InputItem>
<Key>String</Key>
<Value>String</Value>
</InputItem>
</Input>
<Output>
<CNPJ>0</CNPJ>
<MatrizFilial>String</MatrizFilial>
<RazaoSocial>String</RazaoSocial>
<NomeFantasia>String</NomeFantasia>
<DataAbertura>String</DataAbertura>
<NaturezaJuridica>String</NaturezaJuridica>
<Situacao>String</Situacao>
<DataSituacao>String</DataSituacao>
<MotivoSituacao>String</MotivoSituacao>
<SituacaoEspecial>String</SituacaoEspecial>
<DataSituacaoEspecial>String</DataSituacaoEspecial>
<OptanteSIMEI>String</OptanteSIMEI>
<OptanteSimples>String</OptanteSimples>
<DataExclusaoSimples>String</DataExclusaoSimples>
<DataOpcaoSimples>String</DataOpcaoSimples>
<Telefone>String</Telefone>
<EnderecoEletronico>String</EnderecoEletronico>
<EnteFederativoResponsavel>String</EnteFederativoResponsavel>
<CapitalSocial>String</CapitalSocial>
<QSA>
<Mensagem>String</Mensagem>
<Socios>
<Socio>
<NomeEmpresarial>String</NomeEmpresarial>
<Qualificacao>String</Qualificacao>
</Socio>
</Socios>
</QSA>
<UnidadeCadastradora>String</UnidadeCadastradora>
<Endereco>
<Nome>String</Nome>
<TipoLogradouro>String</TipoLogradouro>
<Logradouro>String</Logradouro>
<Numero>String</Numero>
<Complemento>String</Complemento>
<Bairro>String</Bairro>
<Municipio>String</Municipio>
<UF>String</UF>
<CEP>String</CEP>
</Endereco>
<CNAEs>
<CNAE>
<Codigo>String</Codigo>
<Descricao>String</Descricao>
</CNAE>
</CNAEs>
<DataHora>String</DataHora>
</Output>
<Status>
<Protocol>00000000-0000-0000-0000-000000000000</Protocol>
<DateTime>0001-01-01T00:00:00</DateTime>
<Code>0</Code>
<Message>String</Message>
<Detail>String</Detail>
<Mode>String</Mode>
<Type>String</Type>
<Source>String</Source>
<HTML>String</HTML>
<Cookie>String</Cookie>
<URL>String</URL>
</Status>
</Response>
</i2cReceitaFederalSituacaoCadastralPJResponse>