Skip to main content

Member getAll API Reference Guide

Overview

The Member getAll API allows you to query and retrieve detailed member information, including optional related data such as products, dependents, beneficiaries, and transactions. This API offers extensive filtering options to narrow your search based on a wide range of criteria.

Authentication

All requests require authentication. Basic Authentication headers or API key must be provided with each request.

Endpoint

MethodEndpointDescription
GET/api/member/getallRetrieve member information based on specified criteria

Basic Query Parameters

ParameterTypeDescriptionExample
memberidStringComma-separated list of member IDs12345,67890
brokeridNumberBroker ID123
show_treeNumberSet to 1 to include broker's downline1
user_statusStringFilter by member statusactive
enrolleridNumberFilter by enroller ID456

Member Information Parameters

ParameterTypeDescriptionExample
user_usernameStringFilter by usernamejsmith
user_firstnameStringFilter by first nameJohn
user_firstname_blankNumberSet to 1 to find blank first names1
user_lastnameStringFilter by last nameSmith
user_lastname_blankNumberSet to 1 to find blank last names1
user_companyStringFilter by company nameABC Corp
user_cityStringFilter by cityPhoenix
user_stateStringFilter by state codeAZ
user_emailStringFilter by email addressexample@domain.com
user_phone1StringFilter by primary phone5551234567
user_phone2StringFilter by secondary phone5559876543
user_phone3StringFilter by tertiary phone5551112222
user_genderStringFilter by genderM
user_positionStringFilter by positionManager
ssn_blankNumberSet to 1 to find blank SSNs1

Date-Based Parameters

All date parameters accept standard date formats or special keywords: today, tomorrow, yesterday, lastweek, nextweek, thisweek, lastmonth, nextmonth, thismonth, lastyear, nextyear, thisyear, lastXdays, nextXdays (where X is a number).

ParameterTypeDescriptionExample
user_created_fromDateFilter by creation date (from)2023-01-01
user_created_toDateFilter by creation date (to)2023-12-31
user_created_blankNumberSet to 1 to find blank creation dates1
user_changed_fromDateFilter by last modified date2023-06-01
user_dob_fromDateFilter by date of birth (from)1980-01-01
user_dob_toDateFilter by date of birth (to)2000-12-31
user_dob_blankNumberSet to 1 to find blank DOBs1
user_dob_monthNumberFilter by birth month (1-12)6
user_dob_dayNumberFilter by birth day (1-31)15
user_dob_yearNumberFilter by birth year (4-digit)1985
user_dob_optionsStringSet to blank or invalidblank

Age-Based Parameters

ParameterTypeDescriptionExample
user_age_fromNumberFilter by age (from)25
user_age_toNumberFilter by age (to)45

Product Parameters

ParameterTypeDescriptionExample
productStringFilter by product name/IDhealth-plan
product_notNumberSet to 1 to exclude specified product1
product_categoryStringFilter by product categoryinsurance
product_search_typeStringFilter by product search typebasic
product_statusStringFilter by product statusactive
policynumberStringFilter by policy numberPOL123456
product_paidNumberSet to 1 for paid products, 0 for unpaid1
product_onholdNumberSet to 1 for products on hold1
product_suspendedNumberSet to 1 for suspended products1
product_cancel_reasonStringFilter by cancellation reasonnon-payment
product_effective_dayNumberFilter by effective day of month (1-31)15
product_recurring_dayNumberFilter by recurring billing day (1-31)1

Product Date Parameters

ParameterTypeDescriptionExample
product_created_fromDateFilter by product creation date (from)2023-01-01
product_created_toDateFilter by product creation date (to)2023-12-31
product_fulfillment_fromDateFilter by fulfillment date (from)2023-01-15
product_fulfillment_toDateFilter by fulfillment date (to)2023-12-15
product_billing_fromDateFilter by billing date (from)2023-02-01
product_billing_toDateFilter by billing date (to)2023-11-30
product_effective_fromDateFilter by effective date (from)2023-03-01
product_effective_toDateFilter by effective date (to)2023-10-31
product_cancel_fromDateFilter by cancellation date (from)2023-09-01
product_cancel_toDateFilter by cancellation date (to)2023-12-31
product_cancel_set_fromDateFilter by cancellation set date (from)2023-08-15
product_cancel_set_toDateFilter by cancellation set date (to)2023-12-15
product_renewal_fromDateFilter by renewal date (from)2024-01-01
product_renewal_toDateFilter by renewal date (to)2024-12-31

Payment Parameters

ParameterTypeDescriptionExample
payment_number_fromNumberFilter by payment number (from)1
payment_number_toNumberFilter by payment number (to)12
payment_firstnameStringFilter by payment first nameJohn
payment_lastnameStringFilter by payment last nameSmith
payment_amount_fromNumberFilter by payment amount (from)50.00
payment_amount_toNumberFilter by payment amount (to)500.00
payment_ach_numberStringFilter by ACH number12345
payment_cc_typeStringFilter by credit card typeVISA
payment_cc_last4NumberFilter by last 4 digits of card1234
payment_cc_expmNumberFilter by card expiration month (1-12)6
payment_cc_expyNumberFilter by card expiration year (4-digit)2025
payment_typeStringFilter by payment typeCC
payment_type_defaultStringFilter by default payment typeACH
user_invoicedNumberSet to 1 for invoiced, 0 for not invoiced1
payment_period_idStringFilter by payment period IDmonthly
user_payments_missedNumberFilter by number of missed payments2

Lead Management Parameters

ParameterTypeDescriptionExample
user_is_leadNumberSet to 1 for leads, 0 for non-leads1
lead_statusStringFilter by lead statusnew
lead_status_typeStringSet to not to exclude specified statusnot
lead_sales_stageStringFilter by sales stagequalified
lead_numcallsNumberFilter by number of calls3
lead_call_statusStringFilter by call statusattempted
lead_rankingNumberFilter by lead ranking (0-100)75

Dependent Parameters

ParameterTypeDescriptionExample
dependent_firstnameStringFilter by dependent first nameJane
dependent_firstname_blankNumberSet to 1 for blank first names1
dependent_lastnameStringFilter by dependent last nameSmith
dependent_lastname_blankNumberSet to 1 for blank last names1
dependent_cityStringFilter by dependent cityPhoenix
dependent_stateStringFilter by dependent stateAZ
dependent_zipcodeStringFilter by dependent ZIP code85001
dependent_emailStringFilter by dependent emailjane@example.com
dependent_phone1StringFilter by dependent primary phone5551234567
dependent_relationshipStringFilter by relationship typespouse
dependent_relationship_blankNumberSet to 1 for blank relationships1
dependent_genderStringFilter by dependent genderF
dependent_age_fromNumberFilter by dependent age (from)5
dependent_age_toNumberFilter by dependent age (to)18

Response Fields Option Parameters

ParameterTypeDescriptionExample
return_productsNumberSet to 1 to include product details1
return_dependentsNumberSet to 1 to include dependent details1
return_beneficiariesNumberSet to 1 to include beneficiary details1
return_transactionsNumberSet to 1 to include transaction details1

Response Format

The API returns an XML response with the following structure:

<method request="user.getall">
<users total="2">
<user>
<userid>12345</userid>
<username>jdoe</username>
<firstname>John</firstname>
<lastname>Doe</lastname>
<email>john.doe@example.com</email>
<!-- Additional user fields -->
</user>
<user>
<!-- Second user -->
</user>
</users>

<!-- Optional sections based on return_* parameters -->
<dependents total="3">
<dependent>
<!-- Dependent details -->
</dependent>
<!-- Additional dependents -->
</dependents>

<beneficiaries total="2">
<beneficiary>
<!-- Beneficiary details -->
</beneficiary>
<!-- Additional beneficiaries -->
</beneficiaries>

<products total="4">
<product>
<!-- Product details -->
<productfees total="2">
<!-- Fee details -->
</productfees>
</product>
<!-- Additional products -->
</products>

<transactions total="6">
<transaction>
<!-- Transaction details -->
<transactiondetails total="3">
<!-- Transaction line items -->
</transactiondetails>
<transactionpayments total="1">
<!-- Payment details -->
</transactionpayments>
</transaction>
<!-- Additional transactions -->
</transactions>
</method>

Error Responses

If the request fails validation or encounters an error, the API returns an error response:

<method request="user.getall">
<errors>
<error parameter="user_dob_month">Error: Value for parameter [user_dob_month] should be numeric value 1-12.</error>
<!-- Additional errors if applicable -->
</errors>
</method>

If no data matches the search criteria:

<method request="user.getall">
<nodata>No data was found with your search</nodata>
</method>

Examples

GET /api/member/getall?user_lastname=Smith&user_state=AZ

Advanced Search with Multiple Parameters

GET /api/member/getall?brokerid=123&show_tree=1&user_created_from=lastmonth&product=health-insurance&return_products=1&return_dependents=1

Search by Date Range with Product Details

GET /api/member/getall?product_effective_from=2023-01-01&product_effective_to=2023-12-31&return_products=1

Search for Members with Missing Information

GET /api/member/getall?user_firstname_blank=1&ssn_blank=1