cancel
Showing results for 
Search instead for 
Did you mean: 

Get E00004 error code while trying to use GetTransactionDetailsRequest Method

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"

seweb2011
Member
7 REPLIES 7

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>
RichardH
Administrator Administrator
Administrator

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

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

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"

 

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.

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