cancel
Showing results for 
Search instead for 
Did you mean: 

Response code 87 - no successful transaction through API

getting respone code 87:

 

This is what comes out of Auth.net API.  I am testing it in the tool and continually get the 87 error.  As you can see the marketType is 2 as suggested.  I tried both authOnly and authCapture with the same results.

 

the results string comes back and gives error.  

 

is this something stupid that i am completetly missing!!!   Any help would be appreciated?

 

<?xml version="1.0" encoding="UTF-8"?>

<createTransactionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

   <merchantAuthentication>

      <name>XXXXXXXXXXX</name>

    <sessionToken>l5yzU8V1QxofDbf8CqjLOoqYKvJqEoexF51ONgNyqFcusGJnK3VrT4XyV0j7ouYC6BRdSlQv2wp8JXpqQWM9cE8Xdqo4CUWVA11eFQMW1yd$27RIYZtNN4NzY7su1qT_Q$qezkZ7Y9IWv9APZBwEJgAA</sessionToken>

      <mobileDeviceId>000000000000000</mobileDeviceId>

   </merchantAuthentication>

   <transactionRequest>

      <transactionType>authCaptureTransaction</transactionType>

      <amount>10.00</amount>

      <payment>

         <encryptedTrackData>

            <FormOfPayment>

               <Value>

                  <Encoding>Hex</Encoding>

                  <EncryptionAlgorithm>TDES</EncryptionAlgorithm>

                  <Scheme>

                     <DUKPT>

                        <Operation>DECRYPT</Operation>

                        <Mode>

                           <PIN>1</PIN>

                           <Data>1</Data>

                        </Mode>

                        <DeviceInfo>

                           <Description>4649443D4944544543482E556E694D61672E416E64726F69642E53646B7631</Description>

                        </DeviceInfo>

                        <EncryptedData>

                           <Value>02f200801f4423008383252a343338382a2a2a2a2a2a2a2a343732325e4b455353454c4d414e2f544f4444205e313930332a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a3f2a3b343338382a2a2a2a2a2a2a2a343732323d313930332a2a2a2a2a2a2a2a2a2a2a3f2a52e5f8a99f5a61389d17c369854ec7f2611dae2b12da387c6a6d1de1551de16cbf07ec37765f7b655e763b38e89ed52b9c31f279525b34a84003f027f6d6196c51bfa7d78459dbe0a32bf7b03f1deaf74cd1cb24581ea32a265d94c53c78a41c8f0d5b58deb317cf9a18055c78076fe5353230543739323339337637950400f064600067162803</Value>

                        </EncryptedData>

                     </DUKPT>

                  </Scheme>

               </Value>

            </FormOfPayment>

         </encryptedTrackData>

      </payment>

      <order />

      <lineItems>

         <lineItem>

            <itemId>testItemID</itemId>

            <name>testItemName</name>

            <description>testItemDescription</description>

            <quantity>1.0000</quantity>

            <unitPrice>0.00</unitPrice>

         </lineItem>

      </lineItems>

      <tax>

         <amount>5.00</amount>

         <name>Sales Tax</name>

      </tax>

      <duty>

         <amount>0.00</amount>

      </duty>

      <shipping>

         <amount>6.00</amount>

         <name>Shipping and Handling</name>

      </shipping>

      <poNumber>9999</poNumber>

      <customer />

      <billTo>

         <firstName>John</firstName>

         <lastName>Doe</lastName>

         <address>Main Street</address>

         <city>Bellevue</city>

         <state>WA</state>

         <country>USA</country>

      </billTo>

      <shipTo />

      <retail>

         <marketType>2</marketType>

      </retail>

      <transactionSettings>

         <setting>

            <settingName>allowPartialAuth</settingName>

            <settingValue>false</settingValue>

         </setting>

         <setting>

            <settingName>duplicateWindow</settingName>

            <settingValue>30</settingValue>

         </setting>

         <setting>

            <settingName>emailCustomer</settingName>

            <settingValue>false</settingValue>

         </setting>

         <setting>

            <settingName>recurringBilling</settingName>

            <settingValue>false</settingValue>

         </setting>

         <setting>

            <settingName>testRequest</settingName>

            <settingValue>true</settingValue>

         </setting>

      </transactionSettings>

      <userFields />

   </transactionRequest>

</createTransactionRequest>

aaronsnyder1
Member
1 REPLY 1

 

Hi aaronsnyder1,

 

When processing retail transaction type it is required that you pass deviceType along with the marketType as mentioned here.

 

Thanks,

Joy

Joy
Administrator Administrator
Administrator