Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CNPJ | path | Number | Yes | Numero do CNPJ |
UF | path | Text | Yes | UF |
MUNICIPIO | path | Text | Yes | Municipio |
To override the Content-type in your clients, use the HTTP Accept Header, append the .soap11 suffix or ?format=soap11
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /soap11 HTTP/1.1
Host: api.xdata.com.br
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: i2cCCM
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<i2cCCM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.xpi.net/types">
<CNPJ>String</CNPJ>
<Municipio>String</Municipio>
<UF>String</UF>
</i2cCCM>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <i2cCCMResponse 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> <i2c300109Item> <Bairro>String</Bairro> <CCM>String</CCM> <CEP>String</CEP> <Complemento>String</Complemento> <CorreioEletronico>String</CorreioEletronico> <DataEmissao>String</DataEmissao> <DataExpiracao>String</DataExpiracao> <DataInicio>String</DataInicio> <DataSituacaoCadastral>String</DataSituacaoCadastral> <Enquadrado>String</Enquadrado> <FormaAtuacao>String</FormaAtuacao> <InscricaoEstadual>String</InscricaoEstadual> <IsentoImune>String</IsentoImune> <Logradouro>String</Logradouro> <Municipio>String</Municipio> <NomeFantasia>String</NomeFantasia> <Numero>String</Numero> <RazaoSocial>String</RazaoSocial> <SituacaoCadastral>String</SituacaoCadastral> <SubstitutoTributario>String</SubstitutoTributario> <Telefone>String</Telefone> <UF>String</UF> <i2c300109AtividadesEconomicas> <i2c300109AtividadeEconomica> <CNAE>String</CNAE> <Descricao>String</Descricao> <InscricaoMunicipal>String</InscricaoMunicipal> </i2c300109AtividadeEconomica> </i2c300109AtividadesEconomicas> </i2c300109Item> </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> </i2cCCMResponse> </soap:Body> </soap:Envelope>