SubmitEligibility

Submits an eligibility request to the payer for the given parameters. To retrieve the response of this request, call the 'GetEligibilityResponse' method using the integer value that's returned on this method call.

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 SubmitEligibility(string methodCall)
    {
        string content = String.Format("username={0}&password={1}&providerID={2}&payerID={3}&eqCode={4}&subscriberID={5}&subscriberFirstName={6}&subscriberLastName={7}&subscriberDateOfBirth={8}&subscriberIsMale={9}&isInNetwork={10}&dependentFirstName={11}&dependentLastName={12}&dependentDateOfBirth={13}&dependentIsMale={14}", encUserName, encPassword, encProviderID, encEqCode, encPayerID, encSubscriberID, encSubscriberFirstName, encSubscriberLastName, encSubscriberDateOfBirth, encSubscriberIsMale, encIsInNetwork, encDependantFirstName, encDependantLastName, encDependantDateOfBirth, encDependantIsMale);
        Console.WriteLine(DoHttpPost(FormatApexEligibilityUrl(methodCall, ApexEligibilityUrl, content)));
        GetEligibilityResponse("GetEligibilityResponse");
    }
public static void SubmitEligibility(String methodCall)
    {
        String content = String.format("username=%s&password=%s&providerID=%s&payerID=%s&eqCode=%s&subscriberID=%s&subscriberFirstName=%s&subscriberLastName=%s&subscriberDateOfBirth=%s&subscriberIsMale=%s&isInNetwork=%s&dependentFirstName=%s&dependentLastName=%s&dependentDateOfBirth=%s&dependentIsMale=%s", encUserName, encPassword, encProviderID, encEqCode, encPayerID, encSubscriberID, encSubscriberFirstName, encSubscriberLastName, encSubscriberDateOfBirth, encSubscriberIsMale, encIsInNetwork, encDependantFirstName, encDependantLastName, encDependantDateOfBirth, encDependantIsMale);
        System.out.println(HttpPost.DoHTTPPost(ApexEligibilityUrl + methodCall, content, errors));
        GetEligibilityResponse("GetEligibilityResponse")
    }
begin
    url := apexEligibilityUrl + '/' + 'SubmitEligibility';
    param := TStringList.create;
    param.Add('username=[username]');
    param.Add('password=[password]');
    param.Add('providerID=7472');
    param.Add('payerID=1064');
    param.Add('eqCode=7');
    param.Add('subscriberID=123456');
    param.Add('subscriberFirstName=Aaron');
    param.Add('subscriberLastName=Franke');
    param.Add('subscriberDateOfBirth=06/13/1967');
    param.Add('subscriberIsMale=true');
    param.Add('isInNetwork=true');
    param.Add('dependentFirstName=');
    param.Add('dependentLastName=');
    param.Add('dependentDateOfBirth=');
    param.Add('dependentIsMale=false');
    WriteLn(PostData(url,param));

    //Now run GetEligibilityResponse
    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));
end;
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/SubmitEligibility"

<?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>
    <SubmitEligibility xmlns="http://tempuri.org/">
      <username>string</username>
      <password>string</password>
      <providerID>int</providerID>
      <payerID>int</payerID>
      <eqCode>string</eqCode>
      <subscriberID>string</subscriberID>
      <subscriberFirstName>string</subscriberFirstName>
      <subscriberLastName>string</subscriberLastName>
      <subscriberDateOfBirth>string</subscriberDateOfBirth>
      <subscriberIsMale>boolean</subscriberIsMale>
      <isInNetwork>boolean</isInNetwork>
      <dependentFirstName>string</dependentFirstName>
      <dependentLastName>string</dependentLastName>
      <dependentDateOfBirth>string</dependentDateOfBirth>
      <dependentIsMale>boolean</dependentIsMale>
    </SubmitEligibility>
  </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>
    <SubmitEligibility xmlns="http://tempuri.org/">
      <username>string</username>
      <password>string</password>
      <providerID>int</providerID>
      <payerID>int</payerID>
      <eqCode>string</eqCode>
      <subscriberID>string</subscriberID>
      <subscriberFirstName>string</subscriberFirstName>
      <subscriberLastName>string</subscriberLastName>
      <subscriberDateOfBirth>string</subscriberDateOfBirth>
      <subscriberIsMale>boolean</subscriberIsMale>
      <isInNetwork>boolean</isInNetwork>
      <dependentFirstName>string</dependentFirstName>
      <dependentLastName>string</dependentLastName>
      <dependentDateOfBirth>string</dependentDateOfBirth>
      <dependentIsMale>boolean</dependentIsMale>
    </SubmitEligibility>
  </soap12:Body>
</soap12:Envelope>
GET /secure/apexeligibilityapi.asmx/SubmitEligibility?username=string&password=string&providerID=string&payerID=string&eqCode=string&subscriberID=string&subscriberFirstName=string&subscriberLastName=string&subscriberDateOfBirth=string&subscriberIsMale=string&isInNetwork=string&dependentFirstName=string&dependentLastName=string&dependentDateOfBirth=string&dependentIsMale=string HTTP/1.1
Host: onetouch.apexedi.com
POST /secure/apexeligibilityapi.asmx/SubmitEligibility HTTP/1.1
Host: onetouch.apexedi.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

username=string&password=string&providerID=string&payerID=string&eqCode=string&subscriberID=string&subscriberFirstName=string&subscriberLastName=string&subscriberDateOfBirth=string&subscriberIsMale=string&isInNetwork=string&dependentFirstName=string&dependentLastName=string&dependentDateOfBirth=string&dependentIsMale=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>
    <SubmitEligibilityResponse xmlns="http://tempuri.org/">
      <SubmitEligibilityResult>int</SubmitEligibilityResult>
    </SubmitEligibilityResponse>
  </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>
    <SubmitEligibilityResponse xmlns="http://tempuri.org/">
      <SubmitEligibilityResult>int</SubmitEligibilityResult>
    </SubmitEligibilityResponse>
  </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"?>
<int xmlns="http://tempuri.org/">int</int>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<int xmlns="http://tempuri.org/">int</int>
Error Codes Returned by SubmitEligibility
-10 Please submit your request under \"https\" instead of \"http\"
-11 Invalid login
-12 Client is not signed up for eligibility
-13 Missing BAA or invalid credentials
-14 Password expired
-15 Account locked out