Integração Xml CarroQuente

Especificação da integração via XML com o site carroquente.com.br. Para dúvidas e maiores informações entrar em contato: [email protected]

Todos os campos são obrigatórios. Os anúncios passarão por validação, onde o número minimo de fotos (4) e valor minímo do veículo (R$ 100,00) implicarão em não ativação do mesmo, com notificação direta ao usuário via email.

O arquivo devera estar disponível via link de maneira que nosso sistema possa acessar o XML a cada 6 horas, assim conseguiremos manter as lojas atualizadas ao sistema.

Um email para aviso de ativação de cada novo cliente deve ser enviado para: [email protected]

ATENÇÃO: O padrão de XML utilizado apresenta todas as lojas em um único arquivo XML.

Padrão do XML

<?xml version="1.0" encoding="utf-8"?>
<carroquente>
<user>
    <email><![CDATA[...]]></email>
    <name><![CDATA[...]]></name>
    <phone><![CDATA[...]]></phone>
    <phone_w><![CDATA[...]]></phone_w>
    <region><![CDATA[...]]></region>
    <site><![CDATA[...]]></site>
    <cnpj><![CDATA[...]]></cnpj>
    <company_name><![CDATA[...]]></company_name>
    <responsible><![CDATA[...]]></responsible>
    <uf><![CDATA[...]]></uf>
    <cep><![CDATA[...]]></cep>
    <city><![CDATA[...]]></city>
    <neighborhood><![CDATA[...]]></neighborhood>
    <address><![CDATA[...]]></address>
    <url_logo><![CDATA[...]]></url_logo>
    <ads>
        <ad>
            <id><![CDATA[...]]></id>
            <title><![CDATA[...]]></title>
            <content><![CDATA[...]]></content>
            <price><![CDATA[...]]></price>
            <make><![CDATA[...]]></make>
            <model><![CDATA[...]]></model>
            <color><![CDATA[...]]></color>
            <year><![CDATA[...]]></year>
            <fuel><![CDATA[...]]></fuel>
            <car_type><![CDATA[...]]></car_type>
            <mileage><![CDATA[...]]></mileage>
            <transmission><![CDATA[...]]></transmission>
            <placa><![CDATA[...]]></placa>
            <exchange><![CDATA[...]]></exchange>
            <data_alt><![CDATA[...]]></data_alt>
            <acessorios><![CDATA[...]]></acessorios>
            <pictures>
                <picture>
                    <picture_url><![CDATA[...]]></picture_url>
                </picture>
                <picture>
                    <picture_url><![CDATA[...]]></picture_url>
                </picture>
                ...
            </pictures>
        </ad>
        <ad>
            ....
        </ad>
    </ads>
</user>
<user>
    ....
</user>
</carroquente>

Definição dos campos

User

Ad

Pictures

Exemplo de XML

Exemplo com 2 usuários, o usuário 1 tem 2 anuncios e o usuário 2 tem 1 anuncio.

<?xml version="1.0" encoding="utf-8"?>
<carroquente>
<user>
    <email><![CDATA[[email protected]]]></email>
    <name><![CDATA[Usuário 1]]></name>
    <phone><![CDATA[(41) 9999-9999]]></phone>
    <phone_w><![CDATA[(41) 9999-9991]]></phone_w>
    <region><![CDATA[041]]></region>
    <site><![CDATA[http://www.carroquente.com.br]]></site>
    <cnpj><![CDATA[99999999999]]></cnpj>
    <company_name><![CDATA[Carro Quente]]></company_name>
    <responsible><![CDATA[Renan]]></responsible>
    <uf><![CDATA[PR]]></uf>
    <cep><![CDATA[81602-140]]></cep>
    <city><![CDATA[Curitiba]]></city>
    <neighborhood><![CDATA[Centro]]></neighborhood>
    <address><![CDATA[Rua marechal floriano, 100 ]]></address>
    <url_logo><![CDATA[http://www.carroquente.com.br/themes/carroquente/img/carroquente.png]]></url_logo>
    <ads>
        <ad>
            <id><![CDATA[2000]]></id>
            <title><![CDATA[Mercedes Classe A 2004 4P nota 10]]></title>
            <content><![CDATA[ Carro 100% a toda prova  ! ]]></content>
            <price><![CDATA[12800]]></price>
            <make><![CDATA[Mercedes]]></make>
            <model><![CDATA[Classe A]]></model>
            <color><![CDATA[Prata]]></color>
            <year><![CDATA[2004]]></year>
            <fuel><![CDATA[Gasolina]]></fuel>
            <car_type><![CDATA[0]]></car_type>
            <mileage><![CDATA[130000]]></mileage>
            <transmission><![CDATA[Manual]]></transmission>
            <placa><![CDATA[AAA-3333]]></placa>
            <exchange><![CDATA[Consultar]]></exchange>
            <data_alt><![CDATA[2016-07-13 10:30:04]]></data_alt>
            <acessorios><![CDATA[Ipva pago, Direção Hidraulica]]></acessorios>
            <pictures>
                <picture>
                    <picture_url><![CDATA[http://www.carroquente.com.br/images/2016/05/28/31663/mercedes-classe-a-2004-4p-nota-10_1.jpg]]></picture_url>
                </picture>
                <picture>
                    <picture_url><![CDATA[http://www.carroquente.com.br/images/2016/05/28/31663/mercedes-classe-a-2004-4p-nota-10_4.jpg]]></picture_url>
                </picture>
                <picture>
                    <picture_url><![CDATA[http://www.carroquente.com.br/images/2016/05/28/31663/mercedes-classe-a-2004-4p-nota-10_6.jpg]]></picture_url>
                </picture>
                <picture>
                    <picture_url><![CDATA[http://www.carroquente.com.br/images/2016/05/28/31663/mercedes-classe-a-2004-4p-nota-10_7.jpg]]></picture_url>
                </picture>
            </pictures>
        </ad>
        <ad>
            <id><![CDATA[2001]]></id>
            <title><![CDATA[Cabriolet Conversível Peugeot 308 CC 2013]]></title>
            <content><![CDATA[]]></content>
            <price><![CDATA[120000]]></price>
            <make><![CDATA[Peugeot]]></make>
            <model><![CDATA[308]]></model>
            <color><![CDATA[Branco]]></color>
            <year><![CDATA[2013]]></year>
            <fuel><![CDATA[Gasolina]]></fuel>
            <car_type><![CDATA[0]]></car_type>
            <mileage><![CDATA[15000]]></mileage>
            <transmission><![CDATA[Automático]]></transmission>
            <placa><![CDATA[AAA-3333]]></placa>
            <exchange><![CDATA[Consultar]]></exchange>
            <data_alt><![CDATA[2016-07-13 10:30:04]]></data_alt>
            <acessorios><![CDATA[]]></acessorios>
            <pictures>
                <picture>
                    <picture_url><![CDATA[http://www.carroquente.com.br/images/2016/06/13/33412/cabriolet-conversivel-peugeot-308-cc-2013_1.jpg]]></picture_url>
                </picture>
                <picture>
                    <picture_url><![CDATA[http://www.carroquente.com.br/images/2016/06/13/33412/cabriolet-conversivel-peugeot-308-cc-2013_10.jpg]]></picture_url>
                </picture>
                <picture>
                    <picture_url><![CDATA[http://www.carroquente.com.br/images/2016/06/13/33412/cabriolet-conversivel-peugeot-308-cc-2013_2.jpg]]></picture_url>
                </picture>
                <picture>
                    <picture_url><![CDATA[http://www.carroquente.com.br/images/2016/06/13/33412/cabriolet-conversivel-peugeot-308-cc-2013_4.jpg]]></picture_url>
                </picture>
            </pictures>
        </ad>
    </ads>
</user>
<user>
    <email><![CDATA[[email protected]]]></email>
    <name><![CDATA[Usuário 2]]></name>
    <phone><![CDATA[(41) 8888-8888]]></phone>
    <phone_w><![CDATA[(41) 8888-8881]]></phone_w>
    <region><![CDATA[041]]></region>
    <site><![CDATA[http://www.carroquente.com.br]]></site>
    <cnpj><![CDATA[99999999999]]></cnpj>
    <company_name><![CDATA[Carro Quente]]></company_name>
    <responsible><![CDATA[Renan]]></responsible>
    <uf><![CDATA[PR]]></uf>
    <cep><![CDATA[11602-140]]></cep>
    <city><![CDATA[Curitiba]]></city>
    <neighborhood><![CDATA[Centro]]></neighborhood>
    <address><![CDATA[Rua marechal floriano, 100 ]]></address>
    <url_logo><![CDATA[http://www.carroquente.com.br/themes/carroquente/img/carroquente.png]]></url_logo>
    <ads>
        <ad>
            <id><![CDATA[2002]]></id>
            <title><![CDATA[Stilo Sporting 1.8 8v Teto Flex 2009 Manual ]]></title>
            <content><![CDATA[ Carro 100% a toda prova  ! ]]></content>
            <price><![CDATA[29500]]></price>
            <make><![CDATA[Fiat]]></make>
            <model><![CDATA[Stilo]]></model>
            <color><![CDATA[Amarela]]></color>
            <year><![CDATA[2009]]></year>
            <fuel><![CDATA[Flex]]></fuel>
            <car_type><![CDATA[0]]></car_type>
            <mileage><![CDATA[79000]]></mileage>
            <transmission><![CDATA[Manual]]></transmission>
            <placa><![CDATA[AAA-3333]]></placa>
            <exchange><![CDATA[Consultar]]></exchange>
            <data_alt><![CDATA[2016-07-13 10:30:04]]></data_alt>
            <acessorios><![CDATA[]]></acessorios>
            <pictures>
                <picture>
                    <picture_url><![CDATA[http://www.carroquente.com.br/images/2016/06/05/32381/stilo-sporting-18-8v-teto-flex-2009-manual_1.jpg]]></picture_url>
                </picture>
                <picture>
                    <picture_url><![CDATA[http://www.carroquente.com.br/images/2016/06/05/32381/stilo-sporting-18-8v-teto-flex-2009-manual_2.jpg]]></picture_url>
                </picture>
                <picture>
                    <picture_url><![CDATA[http://www.carroquente.com.br/images/2016/06/05/32381/stilo-sporting-18-8v-teto-flex-2009-manual_3.jpg]]></picture_url>
                </picture>
                <picture>
                    <picture_url><![CDATA[http://www.carroquente.com.br/images/2016/06/05/32381/stilo-sporting-18-8v-teto-flex-2009-manual_4.jpg]]></picture_url>
                </picture>
            </pictures>
        </ad>
    </ads>
</user>
</carroquente>