Amex level 3 fails with 099 error

I am trying to send a level3 capture transation for American Express card using the store from my account, but I getting error 099 "Level 2/3 data has problem".

However, level 1 is processed without any issues.

Unfortunately, the error message for level 3 doesn't provide any details, so it is hard to identify what is wrong.

Here is the xml that I try to send for level 3. I will appreciate if you could point me out to what should be changed to make it work.

I have removed the numbers from store_id and the ip token from the request.

<request>
<store_id>monca</store_id>
<api_token> </api_token>
<axcompletion>
<order_id>0008002</order_id>
<comp_amount>17.61</comp_amount>
<txn_number>708-0_11</txn_number>
<crypt_type>1</crypt_type>
<axlevel23>
<table1>
<big04>000800</big04>
<big10>CIV-000739</big10>
<n1_loop>
<n101>R6</n101>
<n102>Canadian</n102>
<n301>456 Silver RoadPasadena,CA 91103 USA</n301>
<n401>Pasadena</n401>
<n402>CA</n402>
<n403>91103</n403>
<ref>
<ref01>4C</ref01>
<ref02>91103</ref02>
</ref>
<ref>
<ref01>CR</ref01>
<ref02>5637159592</ref02>
</ref>
</n1_loop>
</table1>
<table2>
<it1_loop>
<it102>1.00</it102>
<it103>ea</it103>
<it104>18.00</it104>
<it106s>
<it10618>Audio</it10618>
</it106s>
<txi>
<txi01>GS</txi01>
<txi02>1.22</txi02>
<txi03>7.25</txi03>
</txi>
<pam05>16.78</pam05>
<pid05>Cabinet</pid05>
</it1_loop>
</table2>
<table3>
<txi>
<txi01>GS</txi01>
<txi02>0.00</txi02>
</txi>
</table3>
</axlevel23>
</axcompletion>
</request>

  • I was able to manage this. mainly the issue was with canadian zip code - in documentation is written "For Canadian address please use ANA<space>NAN format." which is not true - there should be no spaces.
    Below is an example of working xml:
    <?xml version=\"1.0\"?>
    <request>
    <store_id>monstore</store_id>
    <api_token>api_token</api_token>
    <axcompletion>
    <order_id>0008002</order_id>
    <comp_amount>62.37</comp_amount>
    <txn_number>708-0_11</txn_number>
    <crypt_type>7</crypt_type>
    <axlevel23>
    <table1>
    <big04>PO7758545</big04>
    <big05>RN0049858</big05>
    <big10>INV99870E</big10>
    <n1_loop>
    <n101>R6</n101>
    <n102>Retailing Inc. International</n102>
    <n301>919 Oriole Rd.</n301>
    <n401>Toronto</n401>
    <n402>On</n402>
    <n403>H1T6W3</n403>
    <ref>
    <ref01>4C</ref01>
    <ref02>M5T3A5</ref02>
    </ref>
    <ref>
    <ref01>CR</ref01>
    <ref02>16802309004</ref02>
    </ref>
    </n1_loop>
    </table1>
    <table2>
    <it1_loop>
    <it102>1</it102>
    <it103>EA</it103>
    <it104>10.00</it104>
    <it106s>
    <it10618>MG</it10618>
    <it10719>DJFR4</it10719>
    </it106s>
    <txi>
    <txi01>GS</txi01>
    <txi02>0.70</txi02>
    </txi>
    <txi>
    <txi01>PG</txi01>
    <txi02>0.80</txi02>
    </txi>
    <pam05>11.50</pam05>
    <pid05>Stapler</pid05>
    </it1_loop>
    <it1_loop>
    <it102>1</it102>
    <it103>EA</it103>
    <it104>25.00</it104>
    <it106s>
    <it10618>MG</it10618>
    <it10719>JFJ49</it10719>
    </it106s>
    <txi>
    <txi01>GS</txi01>
    <txi02>1.75</txi02>
    </txi>
    <txi>
    <txi01>PG</txi01>
    <txi02>2.00</txi02>
    </txi>
    <pam05>28.75</pam05>
    <pid05>Lamp</pid05>
    </it1_loop>
    <it1_loop>
    <it102>1</it102>
    <it103>EA</it103>
    <it104>8.62</it104>
    <it106s>
    <it10618>MG</it10618>
    <it10719>FEF33</it10719>
    </it106s>
    <txi>
    <txi01>GS</txi01>
    <txi02>1.00</txi02>
    </txi>
    <txi>
    <txi01>PG</txi01>
    <txi02>1.00</txi02>
    </txi>
    <pam05>10.62</pam05>
    <pid05>Bottled Water</pid05>
    </it1_loop>
    <it1_loop>
    <it102>1</it102>
    <it103>EA</it103>
    <it104>10.00</it104>
    <it106s>
    <it10618>MG</it10618>
    <it10719>FEE43</it10719>
    </it106s>
    <txi>
    <txi01>GS</txi01>
    <txi02>0.80</txi02>
    </txi>
    <txi>
    <txi01>PG</txi01>
    <txi02>0.80</txi02>
    </txi>
    <pam05>11.50</pam05>
    <pid05>Fountain Pen</pid05>
    </it1_loop>
    <it1_loop>
    <it102>1</it102>
    <it103>EA</it103>
    <it104>-10.00</it104>
    <it106s>
    <it10618>MG</it10618>
    <it10719>DISCOUNT</it10719>
    </it106s>
    <txi>
    <txi01>GS</txi01>
    <txi02>0.00</txi02>
    </txi>
    <txi>
    <txi01>PG</txi01>
    <txi02>0.00</txi02>
    </txi>
    <pam05>-10.00</pam05>
    <pid05>DISCOUNT</pid05>
    </it1_loop>
    </table2>
    <table3>
    <txi>
    <txi01>GS</txi01>
    <txi02>4.25</txi02>
    </txi>
    <txi>
    <txi01>PG</txi01>
    <txi02>4.60</txi02>
    </txi>
    <txi>
    <txi01>TX</txi01>
    <txi02>8.85</txi02>
    </txi>
    </table3>
    </axlevel23>
    </axcompletion>
    </request>