API

<back to all web services

i2cIPTUSPSaoPaulo

IPTU [Prefeitura do Municipio de Sao Paulo/SP]

The following routes are available for this service:
All Verbs/i2c/300001/SP
All Verbs/i2c/IPTU/SP/SaoPaulo
All Verbs/i2c300001SP
Parameters:
NameParameterData TypeRequiredDescription
CPFpathNumberYesNumero do CPF
CNPJpathNumberYesNumero do CNPJ

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

HTTP + XML

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

POST /xml/reply/i2cIPTUSPSaoPaulo HTTP/1.1 
Host: api.xdata.com.br 
Content-Type: application/xml
Content-Length: length

<i2cIPTUSPSaoPaulo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.xpi.net/types">
  <CNPJ>String</CNPJ>
  <CPF>String</CPF>
</i2cIPTUSPSaoPaulo>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<i2cIPTUSPSaoPauloResponse 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>
      <i2c300001SPItem>
        <AnoConstrucao>String</AnoConstrucao>
        <AreaConstruida>String</AreaConstruida>
        <AreaTerreno>String</AreaTerreno>
        <BaseCalculo>String</BaseCalculo>
        <CEP>String</CEP>
        <CodLog>String</CodLog>
        <Contribuintes>
          <Contribuinte>
            <CPFCNPJ>String</CPFCNPJ>
            <NomeRazaoSocial>String</NomeRazaoSocial>
          </Contribuinte>
        </Contribuintes>
        <DataEmissao>String</DataEmissao>
        <FracaoIdeal>String</FracaoIdeal>
        <LocalImovel>String</LocalImovel>
        <SQL>String</SQL>
        <Testada>String</Testada>
        <UsoImovel>String</UsoImovel>
      </i2c300001SPItem>
    </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>
</i2cIPTUSPSaoPauloResponse>