cancel
Showing results for 
Search instead for 
Did you mean: 

Authenticating merchant API credentials (API LoginID and Transaction key)

We have integrated Authorize.Net in our application.And we are collecting API LoginID and Transaction key from merchants in order to process their transactions. Is there any way to authenticate the merchant given credentials(API LoginID and Transaction key), whether they are valid or not.Please tell me if there is any way to do this.

leela
Member
1 ACCEPTED SOLUTION

Accepted Solutions

We'll be adding this to our API Reference shortly, but you can use this:

 

Sample Request:

<?xmlversion="1.0"encoding="utf-8"?>
<authenticateTestRequestxmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
   <merchantAuthentication>
      <name>API_Login</name>
      <transactionKey>Trans_Key</transactionKey>
   </merchantAuthentication>
</authenticateTestRequest>
 
Sample Successful Response:

<authenticateTestResponse>
   <messages>
      <resultCode>Ok</resultCode>
      <message>
         <code>I00001</code>
         <text>Successful.</text>
      </message>
   </messages>
</authenticateTestResponse>
 
Sample Error Response:

<authenticateTestResponse>
   <messages>
      <resultCode>Error</resultCode>
      <message>
         <code>E00007</code>
         <text>User authentication failed due to invalid authentication values.</text>
      </message>
   </messages>
</authenticateTestResponse>

 

View solution in original post

3 REPLIES 3

We'll be adding this to our API Reference shortly, but you can use this:

 

Sample Request:

<?xmlversion="1.0"encoding="utf-8"?>
<authenticateTestRequestxmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
   <merchantAuthentication>
      <name>API_Login</name>
      <transactionKey>Trans_Key</transactionKey>
   </merchantAuthentication>
</authenticateTestRequest>
 
Sample Successful Response:

<authenticateTestResponse>
   <messages>
      <resultCode>Ok</resultCode>
      <message>
         <code>I00001</code>
         <text>Successful.</text>
      </message>
   </messages>
</authenticateTestResponse>
 
Sample Error Response:

<authenticateTestResponse>
   <messages>
      <resultCode>Error</resultCode>
      <message>
         <code>E00007</code>
         <text>User authentication failed due to invalid authentication values.</text>
      </message>
   </messages>
</authenticateTestResponse>

 

Hi,

 

Thanks for the reply.

 

Could you please tell, when we can expect these related changes in API reference and also in the jar.