API

<back to all web services

i2cCCF

Cadastro de Emitentes de Cheque Sem Fundos [Banco Central]

The following routes are available for this service:
All Verbs/i2c/BancoCentral/CCF
All Verbs/i2c/100012
All Verbs/i2c/CCF
All Verbs/i2c100012
Parameters:
NameParameterData TypeRequiredDescription
CPFpathNumeroYesNumero do CPF
CNPJpathNumeroYesNumero 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/i2cCCF HTTP/1.1 
Host: api.xdata.com.br 
Content-Type: application/xml
Content-Length: length

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

<i2cCCFResponse 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>
      <CCFItem>
        <Agencia>String</Agencia>
        <Banco>String</Banco>
        <CPFCNPJ>0</CPFCNPJ>
        <DataMotivo11>0001-01-01T00:00:00</DataMotivo11>
        <DataMotivo12>0001-01-01T00:00:00</DataMotivo12>
        <DataMotivo13>0001-01-01T00:00:00</DataMotivo13>
        <DataMotivo14>0001-01-01T00:00:00</DataMotivo14>
        <DataMotivo99>0001-01-01T00:00:00</DataMotivo99>
        <QtdeMotivo11>0</QtdeMotivo11>
        <QtdeMotivo12>0</QtdeMotivo12>
        <QtdeMotivo13>0</QtdeMotivo13>
        <QtdeMotivo14>0</QtdeMotivo14>
        <QtdeMotivo99>0</QtdeMotivo99>
      </CCFItem>
    </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>
</i2cCCFResponse>