The Dependent Service provides clients dependent functionalities such as reading, adding, updating, and deleting dependents’ information.
- If only the Employee (Dependent) ID is provided, it is used as the unique identifier, and the “True” SSN field is not be added or updated.
- If only the Employee (Dependent) Social Security Number is provided, it is be used as the unique identifier, and the “True” SSN field is not added or updated.
- If both the Employee (Dependent) ID and the Employee (Dependent) Social Security Number are provided, the Employee (Dependent) ID is used as the unique identifier and the Employee (Dependent) Social Security Number is used to add/update the “True” SSN.
The following is a list of methods that are provided by the Dependent Service.
- AddDependent – used to add a dependent’s demographic information
- DeleteDependent – used to remove information about a dependent
- GetDependent- to get information about an employee’s dependent
- GetDependents – used to retrieve an employee’s list of dependents
- UpdateDependent – used to update a dependent’s demographic information that already exists
The Dependent Service makes the following assumptions as well as enforce the following business rules.
- Clients shall conform to the WS-I specifications unless otherwise agreed upon by Alegeus Technologies and the administrator.
- Clients shall format SOAP messages in a Document/Literal format over HTTPS.
- Clients shall have already created a valid user ID and password.
- Clients shall have a valid session ID after being authenticated by the system. The session ID needs to be passed in the proper manner as described in the Account Manager Service Guide.
- If the administrator uses the same user ID and password for all of their clients, the administrators are responsible for managing the security of the data.
- Clients should validate data before submitting a request to this Service. This facilitates better performance and accurate processing on both systems.
- Clients shall not attempt to use this service for batch processing of large amounts of data. The service is designed for synchronous calls that send or retrieve small chunks of data. If batch processing is required, then the EDI process should be used.
- If any method fails, the service returns a SOAP fault describing the problem.
AddDependent
This method is used to add a dependent’s demographic information to the system.
History
The AddDependent methods are listed below:
- AddDependentRequest_2008_07
- AddDependentRequest
- AddDependentResponse
The AddDependent method requires the following request and response messages (input and output data). The table below includes the following request message:
- AddDependentRequest_2008_07
- AddDependentRequest
- Address1StringrequiredDependent’s address.
First Available Version: AddDependentRequest - Address2StringSecond line of dependent’s address if needed.
First Available Version: AddDependentRequest - BirthDateDateDependent's date of birth.
First Available Version: AddDependentRequest Default Values: 1
- CityStringrequiredCity associated with dependent’s address.
First Available Version: AddDependentRequest - CountryStringrequiredCountry associated with dependent's address. US is a valid option. Please contact us if you intend to send to any international address.
First Available Version: AddDependentRequest Default Values: US
- DependentSocialSecurityNumberStringconditionally requiredDependent’s social security number.
First Available Version: AddDependentRequest - DependentIdStringconditionally requiredRequired if this field is being used as the unique dependent identifier. Either this field or Dependent SSN may be used for this purpose.
First Available Version: AddDependentRequest - EmployeeSocialSecurityNumberStringconditionally requiredEmployee’s social security number.
First Available Version: AddDependentRequest - EmployeeId Stringconditionally requiredEmployee's WCA ID. Required if this field is being used as the unique employee identifier. Either this field or Employee SSN may be used for this purpose. Required for versions 2011_10 and on.
First Available Version: AddDependentRequest - EmployerIdStringrequiredUnique identifier for the employer. Note: When the employer was created, WealthCare Admin assigned the 3-character prefix; you assigned the remaining characters.
First Available Version: AddDependentRequest - FirstNameStringrequiredDependent’s first name. Allowable characters are alphanumeric (a-z, A-Z, 0-9), Special characters - comma (,), period (.), dash (-), ampersand (&), single apostrophe ('), and space ( ).
First Available Version: AddDependentRequest - FulltimeStudentBooleanStudent status.
No = 0
Yes = 1First Available Version: AddDependentRequest Default Values: FALSE
- GenderEnumerationDependent’s gender.
None = 0
Male = 1
Female = 2First Available Version: AddDependentRequest Default Values: None
- LastNameStringrequiredDependent’s last name. Allowable characters are alphanumeric (a-z, A-Z, 0-9), Special characters - comma (,), period (.), dash (-), ampersand (&), single apostrophe ('), and space ( ).
First Available Version: AddDependentRequest - MiddleInitialStringDependent’s middle initial name. Allowable characters are alphanumeric (a-z, A-Z, 0-9), Special characters - comma (,), period (.), dash (-), ampersand (&), single apostrophe ('), and space ( ).
First Available Version: AddDependentRequest - NamePrefixStringMr., Mrs., Dr., Rev, etc
First Available Version: AddDependentRequest - PhoneStringDependent’s phone number including area code.
First Available Version: AddDependentRequest - RelationshipEnumerationRelationship between employee and dependent.
Unknown = 0
SpouseorCommonLawSpouse = 1
Child = 2
DomesticPartner = 3
Other = 4First Available Version: AddDependentRequest Default Values: Unknown
- ShippingAddress1StringDependent’s shipping address if different from the above address as to where the card should
be sent. If included, then ShippingCity,
ShippingState, ShippingZipCode, and
ShippingCountry must also be included.First Available Version: AddDependentRequest - ShippingAddress2StringDependent’s shipping address if different from the above address as to where the card should be sent.
First Available Version: AddDependentRequest - ShippingCityStringconditionally requiredDependent’s shipping address if different from the above address as to where the card should be sent. Required if the ShippingAddress1 field is included.
First Available Version: AddDependentRequest - ShippingCountryStringconditionally requiredDependent’s shipping address if different from the above address as to where the card should be sent. US is the valid option. Please contact us if you intend to send to any international address. Required if the ShippingAddress1 field is included.
First Available Version: AddDependentRequest Default Values: US
- ShippingStateStringconditionally requiredDependent’s shipping address if different from the above address as to where the card should be sent. Use the appropriate 2 character state postal code associated with employee’s address. Please contact us if you intend to send to any international address. Required if the ShippingAddress1 field is included.
First Available Version: AddDependentRequest - ShippingZipCodeStringconditionally requiredDependent’s shipping address if different from the above address as to where the card should be sent. . Required if the ShippingAddress1 field is included.
First Available Version: AddDependentRequest - StateStringrequiredState code associated with the dependent's address. Use the appropriate 2 character state postal code associated with employee’s address. Please contact us if you intend to send to any international address.
First Available Version: AddDependentRequest - TpaIdStringA unique identifer for your administrator instance, generated by WCA when the instance was first set up. If a value is not sent, the TPA ID from the user making the request with be used.
First Available Version: AddDependentRequest - ZipCodeStringrequiredZip code associated with the dependent's address.
First Available Version: AddDependentRequest - EligibilityDateStringYYYYMMDD. Date upon which the Dependent is eligible to elect benefits.
First Available Version: AddDependentRequest_2008_07 - TerminationDateStringYYYYMMDD. Date upon which the dependent’s account is no longer eligible for benefits. Date must be after dependent Account Effective date.
First Available Version: AddDependentRequest_2008_08 - DependentPrivacyBooleanUse to enable or disable dependent privacy.
No = False
Yes = True
Note1: If this field is included and left blank,
then it will default to ‘False’
Note 2: If the dependent privacy option is enabled on the admin > processing > options page in WCA, then a value of ‘True’ will mask provider and merchant information in communications related to the dependent’s transactions.
If dependent privacy is NOT enabled a the administrator options level and a value of ‘True’ is passed, then the dependent will be flagged for dependent privacy tracking, but provider and merchant information will not be masked in communications.First Available Version: AddDependentRequest_2008_09
Response Message: Empty Message
Example of an AddDependent SOAP request message
<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<MBISessionHeader xmlns="http://www.medibank.com/MBIWebServices/SoapHeader/">
<MBISessionID>o3kaamaa2u4khf450irosiin</MBISessionID>
</MBISessionHeader>
</soap:Header>
<soap:Body>
<AddDependent xmlns="http://www.medibank.com/MBIWebServices/Employee/Messages/Dependent/Request/2004/06/"> <addDependentRequest>
<Address1>234 Western St</Address1>
<BirthDate>1965-01-01</BirthDate>
<City>EasternTown</City>
<DependentSocialSecurityNumber>122132876</DependentSocialSecurityNumber>
<EmployeeSocialSecurityNumber>332323232</EmployeeSocialSecurityNumber>
<EmployerId>EASE10</EmployerId>
<FirstName>Southe</FirstName>
<Gender xmlns="http://www.medibank.com/MBIWebServices/Enums/">Female</Gender>
<LastName>EastWood</LastName>
<MiddleInitial />
<NamePrefix>Mrs.</NamePrefix>
<Phone />
<Relationship xmlns="http://www.medibank.com/MBIWebServices/Enums/">Spouse</Relationship>
<ShippingCountry />
<State>MA</State>
<TpaId>T00209</TpaId>
<ZipCode>087654</ZipCode>
</addDependentRequest>
</AddDependent>
</soap:Body>
</soap:Envelope>
Example of an AddDependent SOAP response message
<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<MBIMessageIdHeader xmlns="http://www.medibank.com/MBIWebServices/SoapHeader/" />
</soap:Header>
<soap:Body>
<AddDependentResponse xmlns="http://www.medibank.com/MBIWebServices/Employee/Messages/Dependent/Response/2004/06/">
<AddDependentResult />
</AddDependentResponse>
</soap:Body>
</soap:Envelope>
Example Client Code
The following
is an example of the client code (using a .NET proxy class for accessing the
service) used when adding an employee using the AddDependent web method.
try
{
// Create the session SOAP header in order to pass the Service // the client’s current session id.
mbiSessionHeader = new DependentServiceNameSpace.MBISessionHeader();
// Create proxy object for the Dependent service
proxy = new DependentServiceNameSpace.DependentService();
// Create request message for method call (input parameters) request = new DependentServiceNameSpace.AddDependentRequest();
// Set the input parameters
request.Address1 = _address1.Text;
request.Address2 = _address2.Text;
if(_birthDate.Text.Length > 0)
{
request.BirthDate = Convert.ToDateTime(_birthDate.Text);
}
request.City = _city.Text;
request.Country = _country.Text;
request.DependentSocialSecurityNumber = _depSSN.Text;
request.EmployeeSocialSecurityNumber = _empeSSN.Text;
request.EmployerId = _emprId.Text;
request.FirstName = _firstName.Text;
request.FullTimeStudent = (bool)_fulltimeStudent.SelectedItem;
request.Gender = (DependentServiceNameSpace.Gender)_gender.SelectedItem; request.LastName = _lastName.Text;
request.MiddleInitial = _middleInitial.Text;
request.NamePrefix = _namePrefix.Text;
request.Phone = _phone.Text; request.Relationship = (DependentServiceNameSpace.EmployeeRelation)
_relationship.SelectedItem;
request.ShippingAddress1 = _shippingAddress1.Text;
request.ShippingAddress2 = _shippingAddress2.Text;
request.ShippingCity = _shippingCity.Text;
request.ShippingCountry = _shippingCountry.Text;
request.ShippingState = _shippingState.Text;
request.ShippingZipCode = _shippingZipCode.Text;
request.State = _state.Text;
request.TpaId = _tpaId.Text; request.ZipCode = _zipCode.Text;
// session ID returned from login method
mbiSessionHeader.MBISessionID = _sessionId.Text;
proxy.MBISessionHeaderValue = mbiSessionHeader;
// Call the method
response = proxy.AddDependent(request);
MessageBox.Show("Finished.");
}
DeleteDependent
This method is used to remove information about a dependent from the system.
History
The DeleteDependent methods are listed below:
- DeleteDependentRequest_2011_10
- DeleteDependentRequest
- DeleteDependentResponse
DeleteDependent Request/Response Messages
The DeleteDependent
method requires the following request and response messages (input and
output data). The table below includes the following request message:
• DeleteDependentRequest
- Dependent SocialSecurityNumberStringconditionally requiredDependent’s social security number.
First Available Version: DeleteDependentRequest - DependentIdStringconditionally requiredRequired if this field is being used as the unique dependent identifier. Either this field or Dependent SSN may be used for this purpose.
First Available Version: DeleteDependentRequest - EmployeeSocialSecurityNumberStringconditionally requiredEmployee’s social security number. Required for versions 2011_10 and on.
First Available Version: DeleteDependentRequest - EmployeeId Stringconditionally requiredEmployee's WCA ID. Required if this field is being used as the unique employee identifier. Either this field or Employee SSN may be used for this purpose. Required for versions 2011_10 and on.
First Available Version: DeleteDependentRequest - EmployerIdStringrequiredUnique identifier for the employer. Note: When the employer was created, WealthCare Admin assigned the 3-character prefix; you assigned the remaining characters.
First Available Version: DeleteDependentRequest - TpaIdStringA unique identifer for your administrator instance, generated by WCA when the instance was first set up. If a value is not sent, the TPA ID from the user making the request with be used.
First Available Version: DeleteDependentRequest
Response Message: Empty Message
Example of a DeleteDependent SOAP request message
<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<MBISessionHeader xmlns="http://www.medibank.com/MBIWebServices/SoapHeader/">
<MBISessionID>org3b4454knvat45da0insnt</MBISessionID>
</MBISessionHeader>
</soap:Header>
<soap:Body>
<DeleteDependent xmlns="http://www.medibank.com/MBIWebServices/Employee/Messages/Dependent/Request/2004/06/"> <deleteDependentRequest>
<DependentSocialSecurityNumber>222222222</DependentSocialSecurityNumber>
<EmployeeSocialSecurityNumber>332323232</EmployeeSocialSecurityNumber>
<EmployerId>EASE10</EmployerId>
<TpaId>T00209</TpaId>
</deleteDependentRequest>
</DeleteDependent>
</soap:Body>
</soap:Envelope>
Example of a DeleteDependent SOAP response message
<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<MBIMessageIdHeader xmlns="http://www.medibank.com/MBIWebServices/SoapHeader/" />
</soap:Header>
<soap:Body>
<DeleteDependentResponse xmlns="http://www.medibank.com/MBIWebServices/Employee/Messages/Dependent/Response/2004/06/"> <DeleteDependentResult />
</DeleteDependentResponse>
</soap:Body>
</soap:Envelope>
Example Client Code
The following
is an example of the client code (using a .NET proxy class to connect with
the service) used when calling the DeleteDependent method.
try
{
// Create the session SOAP header in order to pass the Service // the client’s current session id.
mbiSessionHeader = new DependentServiceNameSpace.MBISessionHeader();
// Create proxy object for the Dependent service
proxy = new DependentServiceNameSpace.DependentService();
// Create request message for method call (input parameters)
request = new DependentServiceNameSpace.DeleteDependentRequest();
// Set the input parameters
request.DependentSocialSecurityNumber = _dependentSocialSecurityNumber.Text;
request.EmployeeSocialSecurityNumber = _employeeSocialSecurityNumber.Text;
request.EmployerId = _employerId.Text;
request.TpaId = _tpaId.Text;
// session ID returned from login method
mbiSessionHeader.MBISessionID = _sessionId.Text;
proxy.MBISessionHeaderValue = mbiSessionHeader;
// Call the method
response = proxy.DeleteDependent(request);
MessageBox.Show("Finished.");
}
catch(SoapException se)
{
// perform needed operations
}
catch(Exception ex)
{
// perform needed operations
}
GetDependent
This method is used to get information about an employee’s dependent.
History
The GetDependent methods are listed below:
- GetDependentRequest_2011_10
- GetDependentRequest
- GetDependentResponse_2008_07
- GetDependentResponse_2007_12
- GetDependentResponse
The GetDependent method requires the following request and response messages (input and output data). The table below includes the following request message:
- GetDependentRequest
- DependentSocialSecurityNumberStringconditionally requiredDependent’s social security number.
First Available Version: GetDependentRequest - DependentIdStringconditionally requiredRequired if this field is being used as the unique employee identifier. Either this field or Dependent SSN may be used for this purpose.
First Available Version: GetDependentRequest - EmployeeSocialSecurityNumberStringconditionally requiredEmployee’s social security number. Required for versions 2011_10 and on.
First Available Version: GetDependentRequest - EmployeeIdStringconditionally requiredEmployee's WCA ID. Required if this field is being used as the unique employee identifier. Either this field or Employee SSN may be used for this purpose. Required for versions 2011_10 and on.
First Available Version: GetDependentRequest - EmployerIdStringrequiredUnique identifier for the employer. Note: When the employer was created, WealthCare Admin assigned the 3-character prefix; you assigned the remaining characters.
First Available Version: GetDependentRequest - TpaIdStringA unique identifer for your administrator instance, generated by WCA when the instance was first set up. If a value is not sent, the TPA ID from the user making the request with be used.
First Available Version: GetDependentRequest - VerboseModeBooleanOptional, if set to true, the method may return more details as to why a query did not return any records. For example, if an invalid employee social security number was sent.
First Available Version: GetDependentRequest Default Values: FALSE
- GetDependentResponse_2008_07
- GetDependentResponse_2007_12
- GetDependentResponse
- Address1StringDependent’s address.
First Available Version: GetDependentResponse - Address2StringSecond line of dependent’s address if needed.
First Available Version: GetDependentResponse - BirthDateStringDate of birth for dependent.
First Available Version: GetDependentResponse - CityStringCity associated with dependent’s address.
First Available Version: GetDependentResponse - CountryStringCountry associated with dependent's address. US is a valid option. Please contact us if you intend to send to any international address.
First Available Version: GetDependentResponse - DependentSocialSecurityNumberStringDependent’s current social security number.
First Available Version: GetDependentResponse - DependentIdStringDependent’s WCA ID.
First Available Version: GetDependentResponse - Dependent StatusEnumerationCardholder's status.
New = 1
Active = 2
TempInactive = 3
PermInactive = 4
Terminated = 5First Available Version: GetDependentResponse - EmployerIdStringUnique identifier for the employer. Note: When the employer was created, WealthCare Admin assigned the 3-character prefix; you assigned the remaining characters.
First Available Version: GetDependentResponse - FirstNameStringDependent’s first name. Allowable characters are alphanumeric (a-z, A-Z, 0-9), Special characters - comma (,), period (.), dash (-), ampersand (&), single apostrophe ('), and space( ).
First Available Version: GetDependentResponse - FulltimeStudentBooleanStudent status.
No = 0
Yes = 1First Available Version: GetDependentResponse - GenderEnumerationDependent’s gender.
None = 0
Male = 1
Female = 2First Available Version: GetDependentResponse - LastNameStringDependent’s last name. Allowable characters are alphanumeric (a-z, A-Z, 0-9), Special characters - comma (,), period (.), dash (-), ampersand (&), single apostrophe ('), and space( ).
First Available Version: GetDependentResponse - MiddleInitialStringDependent’s middle initial. Allowable characters are alphanumeric (a-z, A-Z, 0-9), Special characters - comma (,), period (.), dash (-), ampersand (&), single apostrophe ('), and space( ).
First Available Version: GetDependentResponse - NamePrefixStringMr., Mrs., Dr., Rev, etc
First Available Version: GetDependentResponse - RelationshipEnumerationRelationship between employee and dependent.
Unknown = 0
SpouseorCommonLawSpouse = 1
Child = 2
DomesticPartner = 3
Other = 4First Available Version: GetDependentResponse - Shipping Address1StringDependent’s shipping address if different from the above address as to where the card should
be sent. If included, then ShippingCity,
ShippingState, ShippingZipCode, and ShippingCountry must also be included.First Available Version: GetDependentResponse - Shipping Address2StringDependent’s shipping address if different from the above address as to where the card should be sent.
First Available Version: GetDependentResponse - ShippingCityStringDependent’s shipping address if different from the above address as to where the card should be sent. Required if the ShippingAddress1 field is included.
First Available Version: GetDependentResponse - Shipping CountryStringDependent’s shipping address if different from the above address as to where the card should be sent. US is a valid option. Please contact us if you intend to send to any international address. Required if the ShippingAddress1 field is included.
First Available Version: GetDependentResponse - ShippingStateStringDependent’s shipping address if different from the above address as to where the card should be sent. Use the appropriate 2 character state postal code associated with employee’s address. Please contact us if you intend to send to any
international address. Required if the ShippingAddress1 field is included.First Available Version: GetDependentResponse - Shipping ZipCodeStringDependent’s shipping address if different from the above address as to where the card should be sent. Required if the ShippingAddress1 field is included.
First Available Version: GetDependentResponse - StateStringState code associated with the dependent's address. Use the appropriate 2 character state postal code associated with employee’s address. Please contact us if you intend to send to any international address.
First Available Version: GetDependentResponse - TpaIdStringA unique identifer for your administrator instance, generated by WCA when the instance was first set up. If a value is not sent, the TPA ID from the user making the request with be used.
First Available Version: GetDependentResponse - ZipCodeStringZip code associated with the dependent's address.
First Available Version: GetDependentResponse - CardDesignIdStringFor future use. Card design will currently always be payment.
First Available Version: GetDependentResponse_2007_12 - EligibilityDateStringDate upon which the dependent is eligible to elect benefits.
First Available Version: GetDependentResponse_2008_07 - TerminationDateStringDate upon which the dependent’s account is no longer eligible for benefits. Date must be after dependent account effective date.
First Available Version: GetDependentResponse_2008_07
Example of a GetDependent SOAP request message
<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<MBISessionHeader xmlns="http://www.medibank.com/MBIWebServices/SoapHeader/">
<MBISessionID>org3b4454knvat45da0insnt</MBISessionID>
</MBISessionHeader>
</soap:Header>
<soap:Body>
<GetDependent xmlns="http://www.medibank.com/MBIWebServices/Employee/Messages/Dependent/Request/2004/06/"> <GetDependentRequest>
<DependentSocialSecurityNumber>222222222</DependentSocialSecurityNumber>
<EmployeeSocialSecurityNumber>332323232</EmployeeSocialSecurityNumber>
<EmployerId>EASE10</EmployerId>
<TpaId>T00209</TpaId>
</GetDependentRequest>
</GetDependent>
</soap:Body>
</soap:Envelope>
Example of a GetDependent SOAP response message
<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<MBIMessageIdHeader xmlns="http://www.medibank.com/MBIWebServices/SoapHeader/" />
</soap:Header>
<soap:Body>
<GetDependentResponse xmlns="http://www.medibank.com/MBIWebServices/Employee/Messages/Dependent/Response/2004/06/">
<GetDependentResult>
<Address1>dsdsds</Address1>
<Address2 />
<BirthDate>20020101</BirthDate>
<City>jkkjbj</City>
<Country>US</Country>
<DependentSocialSecurityNumber>222222222</DependentSocialSecurityNumber>
<DependentStatus xmlns="http://www.medibank.com/MBIWebServices/Enums/">New</DependentStatus>
<EmployerId>EASE10</EmployerId>
<FirstName>mmn</FirstName>
<FullTimeStudent>false</FullTimeStudent>
<Gender xmlns="http://www.medibank.com/MBIWebServices/Enums/">None</Gender>
<LastName>mnbnm</LastName>
<MiddleInitial />
<NamePrefix />
<Phone />
<Relationship xmlns="http://www.medibank.com/MBIWebServices/Enums/">Unknown</Relationship>
<ShippingAddress1 />
<ShippingAddress2 />
<ShippingCity />
<ShippingCountry />
<ShippingState />
<ShippingZipCode />
<State>MA</State>
<TpaId>T00209</TpaId>
<ZipCode>83243</ZipCode>
</GetDependentResult>
</GetDependentResponse>
</soap:Body>
</soap:Envelope>
Example Client Code
The following
is an example of the client code (using a .NET proxy class to connect to the
service) used when calling the GetDependent method.
try
{
_dataset.Tables["Dependents"].Clear();
// Create the session SOAP header in order to pass the Service
// the client’s current session id.
mbiSessionHeader = new DependentServiceNameSpace.MBISessionHeader();
// Create proxy object for the Dependent service
proxy = new DependentServiceNameSpace.DependentService();
// Create request message for method call (input parameters)
request = new DependentServiceNameSpace.GetDependentRequest();
// Set the input parameters
request.DependentSocialSecurityNumber = _dependentSocialSecurityNumber.Text;
request.EmployeeSocialSecurityNumber = _employeeSocialSecurityNumber.Text;
request.EmployerId = _employerId.Text;
request.TpaId = _tpaId.Text;
request.VerboseMode = Convert.ToBoolean(_verboseMode.Text);
// session ID returned from logon method
mbiSessionHeader.MBISessionID = _sessionId.Text;
proxy.MBISessionHeaderValue = mbiSessionHeader;
response = proxy.GetDependent(request);
if(response != null)
{
_dataset.Tables["Dependents"].Rows.Add(new string[]
{
response.Address1,
response.Address2,
response.BirthDate,
response.City,
response.Country,
response.DependentSocialSecurityNumber,
response.DependentStatus.ToString(),
response.EmployerId,
response.FirstName,
response.FullTimeStudent.ToString(),
response.Gender.ToString(),
response.LastName,
response.MiddleInitial,
response.NamePrefix,
response.Phone,
response.Relationship.ToString(),
response.ShippingAddress1,
response.ShippingAddress2,
response.ShippingCity,
response.ShippingCountry,
response.ShippingState,
response.ShippingZipCode,
response.State,
response.TpaId,
response.ZipCode
});
}
}
catch(SoapException se)
{
// perform needed operations
}
catch(Exception ex)
{
// perform needed operations
}
GetDependents
This method is used to get a list of dependents for a given employee.
History
The GetDependents methods are listed below:
- GetDependentsRequest
- GetDependentsResponse_2008_07
- GetDependentsResponse_2007_12
- GetDependentsResponse
GetDependents Request/Response Messages
The GetDependents method
requires the following request and response messages (input and output
data). The table below includes the following request message:
• GetDependentsRequest
- EmployeeSocialSecurityNumberStringconditionally requiredEmployee's social security number. This field is used to identify the employee and is not changed within this operation.
First Available Version: GetDependentsRequest - EmployeeId Stringconditionally requiredEmployee's WCA ID. Required if this field is being used as the unique employee identifier. Either this field or Employee SSN may be used for this purpose.
First Available Version: GetDependentsRequest - EmployerIdStringrequiredUnique identifier for the employer. Note: When the employer was created, WealthCare Admin assigned the 3-character prefix; you assigned the remaining characters.
First Available Version: GetDependentsRequest - TpaIdStringA unique identifer for your administrator instance, generated by WCA when the instance was first set up. If a value is not sent, the TPA ID from the user making the request with be used.
First Available Version: GetDependentsRequest - VerboseModeBooleanOptional, if set to true, the method may return more details as to why a query did not return any records. For example, if an invalid employee social security number was sent.
First Available Version: GetDependentsRequest Default Values: FALSE
- GetDependentsResponse_2008_07
- GetDependentsResponse_2007_12
- GetDependentsResponse
- Address1StringDependent’s address.
First Available Version: GetDependentsResponse - Address2StringSecond line of dependent’s address if needed.
First Available Version: GetDependentsResponse - BirthDateStringDate of birth for dependent.
First Available Version: GetDependentsResponse - CityStringCity associated with dependent’s address.
First Available Version: GetDependentsResponse - CountryStringCountry associated with dependent's address. US is a valid option. Please contact us if you intend to send to any international address.
First Available Version: GetDependentsResponse - DependentSocialSecurityNumberStringDependent’s current social security number.
First Available Version: GetDependentsResponse - DependentIdStringDependent ID
First Available Version: GetDependentsResponse - DependentStatusEnumerationCardholder's status.
New = 1
Active = 2
TempInactive = 3
PermInactive = 4
Terminated = 5First Available Version: GetDependentsResponse - EmployeeSocialSecurityNumberStringEmployee’s social security number.
First Available Version: GetDependentsResponse - EmployerIdStringUnique identifier for the employer. Note: When the employer was created, WealthCare Admin assigned the 3-character prefix; you assigned the remaining characters.
First Available Version: GetDependentsResponse - FirstNameStringDependent’s first name. Allowable characters are alphanumeric (a-z, A-Z, 09), Special characters - comma (,), period (.), dash (-), ampersand (&), single apostrophe ('), and space ( ).
First Available Version: GetDependentsResponse - FullTimeStudentBooleanStudent status.
No = 0
Yes = 1First Available Version: GetDependentsResponse - GenderEnumerationDependent’s gender.
None = 0
Male = 1
Female = 2First Available Version: GetDependentsResponse - LastNameStringDependent’s last name. Allowable characters are alphanumeric (a-z, A-Z, 09), Special characters - comma (,), period (.), dash (-), ampersand (&), single apostrophe ('), and space ( ).
First Available Version: GetDependentsResponse - MiddleInitialStringDependent’s middle initial. Allowable characters are alphanumeric (a-z, A-Z, 09), Special characters - comma (,), period (.), dash (-), ampersand (&), single apostrophe ('), and space ( ).
First Available Version: GetDependentsResponse - NamePrefixStringTitle for dependent, such as Mr., Mrs., Ms., Dr., or Rev
First Available Version: GetDependentsResponse - PhoneStringDependent’s phone number including area code.
First Available Version: GetDependentsResponse - RelationshipEnumerationRelationship between employee and dependent.
Unknown = 0
SpouseorCommonLawSpouse = 1
Child = 2
DomesticPartner = 3
Other = 4First Available Version: GetDependentsResponse - StateStringState code associated with the dependent's address. Use the appropriate 2 character state postal code associated with employee’s address. Please contact us if you intend to send to any international address.
First Available Version: GetDependentsResponse - TpaIdStringA unique identifer for your administrator instance, generated by WCA when the instance was first set up. If a value is not sent, the TPA ID from the user making the request with be used.
First Available Version: GetDependentsResponse - ZipCodeStringZip code associated with the dependent's address.
First Available Version: GetDependentsResponse - CardDesignIdStringFor future use. Card design will currently always be payment.
First Available Version: GetDependentsResponse_2007_12 - EligibilityDateStringDate upon which the Dependent is eligible to elect benefits.
First Available Version: GetDependentsResponse_2008_07 - TerminationDateStringDate upon which the dependent’s account is no longer eligible for benefits. Date must be after dependent account effective date.
First Available Version: GetDependentsResponse_2008_07
Example of a GetDependents SOAP request message
<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<MBISessionHeader xmlns="http://www.medibank.com/MBIWebServices/SoapHeader/">
<MBISessionID>org3b4454knvat45da0insnt</MBISessionID>
</MBISessionHeader>
</soap:Header>
<soap:Body>
<GetDependents xmlns="http://www.medibank.com/MBIWebServices/Employee/Messages/Dependent/Request/2004/06/"> <getDependentsRequest>
<EmployeeSocialSecurityNumber>332323232</EmployeeSocialSecurityNumber>
<EmployerId>EASE10</EmployerId>
<TpaId>T00209</TpaId>
</getDependentsRequest>
</GetDependents>
</soap:Body>
</soap:Envelope>
Example of a GetDependents SOAP response message
<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<MBIMessageIdHeader xmlns="http://www.medibank.com/MBIWebServices/SoapHeader/" />
</soap:Header>
<soap:Body>
<GetDependentsResponse xmlns="http://www.medibank.com/MBIWebServices/Employee/Messages/Dependent/Response/2004/06/">
<GetDependentsResult>
<GetDependentsResponse>
<Address1>dsdsds</Address1>
<Address2 />
<BirthDate>20020101</BirthDate>
<City>jkkjbj</City>
<Country>US</Country>
<DependentSocialSecurityNumber>222222222</DependentSocialSecurityNumber>
<DependentStatus xmlns="http://www.medibank.com/MBIWebServices/Enums/">New</DependentStatus>
<EmployeeSocialSecurityNumber>222222222</EmployeeSocialSecurityNumber>
<EmployerId>EASE10</EmployerId>
<FirstName>mmn</FirstName>
<FullTimeStudent>false</FullTimeStudent>
<Gender xmlns="http://www.medibank.com/MBIWebServices/Enums/">None</Gender>
<LastName>mnbnm</LastName>
<MiddleInitial />
<NamePrefix />
<Phone />
<Relationship xmlns="http://www.medibank.com/MBIWebServices/Enums/">Unknown</Relationship>
<State>MA</State>
<TpaId>T00209</TpaId>
<ZipCode>83243</ZipCode>
</GetDependentsResponse>
</GetDependentsResult>
</GetDependentsResponse>
</soap:Body>
</soap:Envelope>
Example Client Code
The following
is an example of the client code (using a .NET proxy class to connect to the
service) used when calling the GetDependents method.
try
{
_dataset.Tables["Dependents"].Clear();
// Create the session SOAP header in order to pass the Service
// the client’s current session id.
mbiSessionHeader = new DependentServiceNameSpace.MBISessionHeader();
// Create proxy object for the Dependent service
proxy = new DependentServiceNameSpace.DependentService();
// Create request message for method call (input parameters)
request = new DependentServiceNameSpace.GetDependentsRequest();
// Set the input parameters
request.EmployeeSocialSecurityNumber = _employeeSocialSecurityNumber.Text;
request.EmployerId = _employerId.Text;
request.TpaId = _tpaId.Text;
request.VerboseMode = Convert.ToBoolean(_verboseMode.Text);
// session ID returned from logon method
mbiSessionHeader.MBISessionID = _sessionId.Text;
proxy.MBISessionHeaderValue = mbiSessionHeader;
responses = proxy.GetDependents(request);
if(responses != null)
{
for(int i=0; i < responses.Length; i++)
{
_dataset.Tables["Dependents"].Rows.Add(new string[] {
// set results
});
}
}
}
catch(SoapException se)
{
// perform needed operations
}
catch(Exception ex)
{
// perform needed operations
}
UpdateDependent
This method is used to update a dependent’s demographic information. The dependent must already exist within the system.
History
The UpdateDependent methods are listed below:
- UpdateDependentRequest_2011_10
- UpdateDependentRequest_2008_07
- UpdateDependentRequest
- UpdateDependentResponse
The UpdateDependent method requires the following request and response messages (input and output data).
The table below includes the following request message:
- UpdateDependentRequest_2008_07
- UpdateDependentRequest
- Address1StringrequiredDependent’s address.
First Available Version: UpdateDependentRequest - Address2StringSecond line of dependent’s address if needed.
First Available Version: UpdateDependentRequest - BirthDateDateDate of birth for dependent.
First Available Version: UpdateDependentRequest Default Values: 1
- CityStringrequiredCity associated with dependent’s address.
First Available Version: UpdateDependentRequest - CountryStringrequiredCountry associated with dependent's address. US is a valid option. Please contact us if you intend to send to any international address.
First Available Version: UpdateDependentRequest Default Values: US
- CurrentDependentSocialSecurityNumberStringconditionally requiredDependent’s current social security number.
First Available Version: UpdateDependentRequest - DependentStatusEnumerationCardholder's status.
New = 1
Active = 2
TempInactive = 3
PermInactive = 4
Terminated = 5First Available Version: UpdateDependentRequest Default Values: New
- EmployerIdStringrequiredUnique identifier for the employer. Note: When the employer was created, WealthCare Admin assigned the 3-character prefix; you assigned the remaining characters.
First Available Version: UpdateDependentRequest - FirstNameStringrequiredDependent’s first name. Allowable characters are alphanumeric (a-z, A-Z, 09), Special characters - comma (,), period (.), dash (-), ampersand (&), single apostrophe ('), and space ( ).
First Available Version: UpdateDependentRequest - FulltimeStudentBooleanStudent status.
No = 0
Yes = 1First Available Version: UpdateDependentRequest Default Values: FALSE
- GenderEnumerationDependent’s gender.
None = 0
Male = 1
Female = 2First Available Version: UpdateDependentRequest Default Values: None
- LastNameStringrequiredDependent’s last name. Allowable characters are alphanumeric (a-z, A-Z, 09), Special characters - comma (,), period (.), dash (-), ampersand (&), single apostrophe ('), and space ( ).
First Available Version: UpdateDependentRequest - MiddleInitialStringDependent’s middle initial. Allowable characters are alphanumeric (a-z, A-Z, 09), Special characters - comma (,), period (.), dash (-), ampersand (&), single apostrophe ('), and space ( ).
First Available Version: UpdateDependentRequest - NamePrefixStringTitle for dependent, such as Mr., Mrs., Ms., Dr., or Rev
First Available Version: UpdateDependentRequest - NewDependentSocialSecurityNumberStringDependent’s new social security number. Leave empty unless the dependent’s SSN needs to be replaced.
First Available Version: UpdateDependentRequest - PhoneStringDependent’s phone number including area code.
First Available Version: UpdateDependentRequest - RelationshipEnumerationRelationship between employee and dependent.
Unknown = 0
SpouseorCommonLawSpouse = 1
Child = 2
DomesticPartner = 3
Other = 4First Available Version: UpdateDependentRequest Default Values: Unknown
- Shipping Address1StringDependent’s shipping address if different from the above address as to where the card
should be sent. If included, than
ShippingCity, ShippingState,
ShippingZipCode, and ShippingCountry must also be included.First Available Version: UpdateDependentRequest - Shipping Address2StringDependent’s shipping address if different from the above address as to where the card should be sent.
First Available Version: UpdateDependentRequest - ShippingCityStringconditionally requiredDependent’s shipping address if different from the above address as to where the card
should be sent. Required if the
ShippingAddress1 field is included.First Available Version: UpdateDependentRequest - Shipping CountryStringconditionally requiredDependent’s shipping address if different from the above address as to where the card should be sent. US is a valid option. Please contact us if you intend to send to any international address. Required if the ShippingAddress1 field is included.
First Available Version: UpdateDependentRequest Default Values: US
- ShippingStateStringconditionally requiredDependent’s shipping address if different from the above address as to where the card should be sent. Use the appropriate 2 character state postal code associated with employee’s address. Please contact us if you intend to send to any international address. Required if the ShippingAddress1 field is included.
First Available Version: UpdateDependentRequest - Shipping ZipCodeStringconditionally requiredDependent’s shipping address if different from the above address as to where the card should be sent. Required if the ShippingAddress1 field is included.
First Available Version: UpdateDependentRequest - StateStringrequiredState code associated with the dependent's address. Use the appropriate 2 character state postal code associated with employee’s address. Please contact us if you intend to send to any international address.
First Available Version: UpdateDependentRequest - TpaIdStringA unique identifer for your administrator instance, generated by WCA when the instance was first set up. If a value is not sent, the TPA ID from the user making the request with be used.
First Available Version: UpdateDependentRequest - ZipCodeStringrequiredZip code associated with the dependent's address.
First Available Version: UpdateDependentRequest - DependentIdStringconditionally requiredRequired if this field is being used as the unique dependent identifier. Either this field or Dependent SSN may be used for this purpose.
First Available Version: UpdateDependentRequest - NewDependentIDStringThe new dependent ID.
First Available Version: UpdateDependentRequest - EmployeeSocialSecurityNumberStringconditionally requiredEmployee’s social security number. Required for versions 2011_10 and on.
First Available Version: UpdateDependentRequest_2011_10 - EmployeeIdStringconditionally requiredRequired if this field is being used as the unique employee identifier. Either this field or Employee SSN may be used for this purpose. Required for versions 2011_10 and on.
First Available Version: UpdateDependentRequest_2011_10 - EligibilityDateStringYYYYMMDD. Date upon which the Dependent is eligible to elect benefits.
First Available Version: UpdateDependentRequest_2008_07 - TerminationDateStringYYYYMMDD. Date upon which the dependent’s account is no longer eligible for benefits. Date must be after dependent Account Effective date.
First Available Version: UpdateDependentRequest_2008_07 - DependentPrivacyBooleanUse to enable or disable dependent privacy.
No = False
Yes = True
Note1: If this field is included and left blank,
then it will default to ‘False’
Note 2: If the dependent privacy option is enabled on the admin > processing > options page in WCA, then a value of ‘True’ will mask provider and merchant information in communications related to the dependent’s transactions.
If dependent privacy is NOT enabled a the administrator options level and a value of ‘True’ is passed, then the dependent will be flagged for dependent privacy tracking, but provider and merchant information will not be masked in communications.First Available Version: UpdateDependentRequest_2017_02
Response Message: Empty Message
Example of an UpdateDependent SOAP request message
<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<MBISessionHeader xmlns="http://www.medibank.com/MBIWebServices/SoapHeader/">
<MBISessionID >org3b4454knvat45da0insnt</MBISessionID>
</MBISessionHeader>
</soap:Header>
<soap:Body>
<UpdateDependent xmlns="http://www.medibank.com/MBIWebServices/Employee/Messages/Dependent/Request/2004/06/">
<Address1>123 South St</Address1>
<Address2>apt 2</Address2>
<BirthDate>1965-01-01</BirthDate>
<City>Worcester</City>
<CurrentDependentSocialSecurityNumber>222222222</CurrentDependentSocialSecurityNumber>
<DependentStatus xmlns="http://www.medibank.com/MBIWebServices/Enums/">Active</DependentStatus>
<EmployerId>EASE10</EmployerId>
<FirstName>Bill</FirstName>
<FullTimeStudent>true</FullTimeStudent>
<Gender xmlns="http://www.medibank.com/MBIWebServices/Enums/">Male</Gender>
<LastName>Smith</LastName>
<MiddleInitial />
<NamePrefix>Mr.</NamePrefix>
<Phone>555 555-5555</Phone>
<Relationship xmlns="http://www.medibank.com/MBIWebServices/Enums/">Child</Relationship>
<ShippingCountry />
<State>MA</State>
<TpaId>T00209</TpaId>
<ZipCode>12345</ZipCode>
</updateDependentRequest>
</UpdateDependent>
</soap:Body>
</soap:Envelope>
Example of a UpdateDependent SOAP response message
<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<MBIMessageIdHeader xmlns="http://www.medibank.com/MBIWebServices/SoapHeader/" />
</soap:Header>
<soap:Body>
<UpdateDependentResponse xmlns="http://www.medibank.com/MBIWebServices/Employee/Messages/Dependent/Response/2004/06/">
<UpdateDependentResult />
</UpdateDependentResponse>
</soap:Body>
</soap:Envelope>
Example Client Code
The following
is an example of the client code (using a .NET proxy class to connect with
the service) used when calling the UpdateDependent method.
try
{
// Create the session SOAP header in order to pass the Service
// the client’s current session id.
mbiSessionHeader = new DependentServiceNameSpace.MBISessionHeader();
// Create proxy object for the Dependent service
proxy = new DependentServiceNameSpace.DependentService();
// Create request message for method call (input parameters)
request = new DependentServiceNameSpace.UpdateDependentRequest();
// Set the input parameters
request.Address1 = _address1.Text;
request.Address2 = _address2.Text;
if(_birthDate.Text.Length > 0)
{
request.BirthDate = Convert.ToDateTime(_birthDate.Text);
}
request.City = _city.Text;
request.Country = _country.Text;
request.CurrentDependentSocialSecurityNumber = _currentDepSSN.Text;
request.NewDependentSocialSecurityNumber = _newDepSSN.Text;
request.DependentStatus = (DependentServiceNameSpace.CardholderStatus)
_depStatus.SelectedItem;
request.EmployerId = _emprId.Text;
request.FirstName = _firstName.Text;
request.FullTimeStudent = (bool)_fulltimeStudent.SelectedItem;
request.Gender = (DependentServiceNameSpace.Gender)_gender.SelectedItem;
request.LastName = _lastName.Text;
request.MiddleInitial = _middleInitial.Text;
request.NamePrefix = _namePrefix.Text;
request.Phone = _phone.Text; request.Relationship = (DependentServiceNameSpace.EmployeeRelation)
_relationship.SelectedItem;
request.ShippingAddress1 = _shippingAddress1.Text;
request.ShippingAddress2 = _shippingAddress2.Text;
request.ShippingCity = _shippingCity.Text;
request.ShippingCountry = _shippingCountry.Text;
request.ShippingState = _shippingState.Text;
request.ShippingZipCode = _shippingZipCode.Text;
request.State = _state.Text; request.TpaId = _tpaId.Text;
request.ZipCode = _zipCode.Text;
// session ID returned from login method
mbiSessionHeader.MBISessionID = _sessionId.Text;
proxy.MBISessionHeaderValue = mbiSessionHeader;
// Call the method
response = proxy.UpdateDependent(request);
MessageBox.Show("Finished.");
}
catch(SoapException se)
{
// perform needed operations
}
catch(Exception ex)
{
// perform needed operations
}