<?xml version="1.0" encoding="utf-8" ?>
<ignite version="1.0" source="binlist.net">

  <func name="binlist" endpoint="http://www.binlist.net/xml/{6_digits}" method="GET" format="XML">
    <description>
      Given the first 6 digits of a credit card number, this function returns relevant bank information.
    </description>
    <example>
      =Ignite("binlist.net","binlist","Bank","431940")
    </example>
    <inputs>
      <input name="6_digits" type ="input1" process="replace"/>
    </inputs>
    <outputs>
      <output name="Bin" path="//Response/Bin"/>
      <output name="Brand" path="//Response/Brand"/>
      <output name="SubBrand" path="//Response/SubBrand"/>
      <output name="Bank" path="//Response/Bank"/>
      <output name="CountryCode" path="//Response/CountryCode"/>
      <output name="CountryName" path="//Response/CountryName"/>
      <output name="CardType" path="//Response/CardType"/>
      <output name="CardCategory" path="//Response/CardCategory"/>
    </outputs>
  </func>

  <examples>
    <![CDATA[
<table border='1' class='ExcelTable2007'>
<tr><th class='heading'>&nbsp;</th><th>A</th><th>B (Forumla)</th><th>C (Output) </th></tr>
<tr><td class='heading' >1</td>
<td>431940</td>
<td>=Ignite("binlist.net","binlist","Brand",A1)</td>
<td>VISA</td>
</tr>
<tr><td class='heading' >2</td>
<td>431940</td>
<td>=Ignite("binlist.net","binlist","SubBrand",A2)</td>
<td></td>
</tr>
<tr><td class='heading' >3</td>
<td>431940</td>
<td>=Ignite("binlist.net","binlist","CountryCode",A3)</td>
<td>IE</td>
</tr>
<tr><td class='heading' >4</td>
<td>431940</td>
<td>=Ignite("binlist.net","binlist","CountryName",A4)</td>
<td>Ireland</td>
</tr>
<tr><td class='heading' >5</td>
<td>431940</td>
<td>=Ignite("binlist.net","binlist","Bank",A5)</td>
<td>BANK OF IRELAND</td>
</tr>
<tr><td class='heading' >6</td>
<td>431940</td>
<td>=Ignite("binlist.net","binlist","CardType",A6)</td>
<td>DEBIT</td>
</tr>
</table>
      ]]>
  </examples>
</ignite>
