GetEligibilityResponse

Returns the response of a previously submitted eligibility request sent through the 'SubmitEligibility' method. If a real-time response is not available, a message reading 'Response is still pending. Please try again later.' will be returned. By setting the 'return271Response' to true, it will return the raw ANSI 271 string. If set to false, it will return an HTML-formatted version of the eligibility response.

Resource URL

https://onetouch.apexedi.com/secure/apexeligibilityapi.asmx?WSDL

Code Samples

  • C#
  • Java
  • Delphi
  • SOAP 1.1
  • SOAP 1.2
  • GET
  • POST
public static void GetEligibilityResponse(string methodCall)
    {
        string content = String.Format("username={0}&password={1}&functionalGroupEligibilityID={2}&return271Respo nse={3}", encUserName, encPassword, encEligibilityID, encReturn270repsonse);
        Console.WriteLine(DoHttpPost(FormatApexEligibilityUrl(methodCall, ApexEligibilityUrl, content)));
    }
public static void GetEligibilityResponse(String methodCall)
    {
        String content = String.format("username=%s&password=%s&functionalGroupEligibilityID=%s&return271Respon se=%s", encUserName, encPassword, encEligibilityID, encReturn270repsonse);
        System.out.println(HttpPost.DoHTTPPost(ApexEligibilityUrl + methodCall, content, errors));
    }
url := apexEligibilityUrl + '/' + 'GetEligibilityResponse';
param := TStringList.create;
param.Add('username=[username]');
param.Add('password=[password]');
param.Add('functionalGroupEligibilityID=0');
param.Add('return271Response=true');
WriteLn(PostData(url,param));
POST /secure/apexeligibilityapi.asmx HTTP/1.1
Host: onetouch.apexedi.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/GetEligibilityResponse"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetEligibilityResponse xmlns="http://tempuri.org/">
      <username>string</username>
      <password>string</password>
      <functionalGroupEligibilityID>int</functionalGroupEligibilityID>
      <return271Response>boolean</return271Response>
    </GetEligibilityResponse>
  </soap:Body>
</soap:Envelope>
POST /secure/apexeligibilityapi.asmx HTTP/1.1
Host: onetouch.apexedi.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<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>
    <GetEligibilityResponse xmlns="http://tempuri.org/">
      <username>string</username>
      <password>string</password>
      <functionalGroupEligibilityID>int</functionalGroupEligibilityID>
      <return271Response>boolean</return271Response>
    </GetEligibilityResponse>
  </soap12:Body>
</soap12:Envelope>
GET /secure/apexeligibilityapi.asmx/GetEligibilityResponse?username=string&password=string&functionalGroupEligibilityID=string&return271Response=string HTTP/1.1
Host: onetouch.apexedi.com
POST /secure/apexeligibilityapi.asmx/GetEligibilityResponse HTTP/1.1
Host: onetouch.apexedi.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

username=string&password=string&functionalGroupEligibilityID=string&return271Response=string

Sample Response

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetEligibilityResponseResponse xmlns="http://tempuri.org/">
      <GetEligibilityResponseResult>string</GetEligibilityResponseResult>
    </GetEligibilityResponseResponse>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<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>
    <GetEligibilityResponseResponse xmlns="http://tempuri.org/">
      <GetEligibilityResponseResult>string</GetEligibilityResponseResult>
    </GetEligibilityResponseResponse>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://tempuri.org/">string</string>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://tempuri.org/">string</string>