Integration and Testing

Authorize.Net API questions and help with your payment integration.

Reply
Member
Posts: 4
Registered: ‎12-09-2014

Get E00004 error code while trying to use GetTransactionDetailsRequest Method

[ Edited ]

I am trying to use the API to get transaction details, however I receive the error E00004 The name of the requested API method is invalid

 

I m using "https://apitest.authorize.net/xml/v1/request.api"  as the url.

 

This is the xml code I am entering:

 

<soap12:Envelope
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <GetTransactionDetailsRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
      <merchantAuthentication>
        <name>***</name>
        <transactionKey>***</transactionKey>
      </merchantAuthentication>
      <trans>6727055159</trymm>
</GetTransactionDetailsRequest>
</soap12:Body>
</soap12:Envelope>

 

 

I have tried changing the method to GetTransactionDetails and also tried changing the xmlns to the Soap Documentation value(https://api.authorize.net/soap/v1/). I started using soap 1.1 and still had the same error code.

 

I then use a header parameter with an attribute called "name" with a value of "SoapAction" and an attribute value, "value" with a value of "https://apitest.authorize.net/v1/GetTransactionDetails"

Posts: 2,765
Topics: 57
Kudos: 270
Blog Posts: 67
Registered: ‎12-05-2011

Re: Get E00004 error code while trying to use GetTransactionDetailsRequest Method

I obfuscated any sensitive information.    I also noted that your close below doesn't match the open.  Is that just a copy/paste error?

 

 <trans>6727055159</trymm>
Member
Posts: 4
Registered: ‎12-09-2014

Re: Get E00004 error code while trying to use GetTransactionDetailsRequest Method

It should be <transId>********</transId>

Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Get E00004 error code while trying to use GetTransactionDetailsRequest Method

Member
Posts: 4
Registered: ‎12-09-2014

Re: Get E00004 error code while trying to use GetTransactionDetailsRequest Method

What is the name of the SOAP url that you used, in order to get a valid response?

Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Get E00004 error code while trying to use GetTransactionDetailsRequest Method

If you click on that link it said

 

 

POST /soap/v1/Service.asmx HTTP/1.1
Host: apitest.authorize.net
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "https://api.authorize.net/soap/v1/GetTransactionDetails"

 

Member
Posts: 4
Registered: ‎12-09-2014

Re: Get E00004 error code while trying to use GetTransactionDetailsRequest Method

It still did not work. I tried that document and another document before I posted my message. When I use the url that is in the SOAP document, does not connect, however when I use the url, https://apitest.authorize.net/soap/v1/request.api,  I am getting connected to the API; I just get the E00004 error. What did you use in order to connect to the transaction details API and get it to return a valid response.

Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Get E00004 error code while trying to use GetTransactionDetailsRequest Method

[ Edited ]

I use C#, Visual Studio build the webservice thing.

 

you sure it is not https://apitest.authorize.net/soap/v1/Service.asmx

 

POST /soap/v1/Service.asmx HTTP/1.1