Page tree

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »

GET

/:site_number/individuals/find

Performs a search for a list of individuals based on First Name, Last Name or Goes By Name.

Example

http://secure.accessacs.com/api_accessacs_mobile/v2/12345/individuals/find?q=John%20Doe
&pageIndex=0&pageSize=5

Notes

pageIndex and pageSize are not required for the API to work properly. These fields let you limit the number of records returned at one time and when you begin pulling information. If you do not enter this information, the index default is 0 and the size default is 50. 

For example, suppose you're looking for all the individuals with the first name John. 300 records match your criteria. If you leave the defaults, the first 50 matches display. If you change the pageIndex to 2, the next 50 matches are returned.

Within our example, the %20 represents a space. You can include this or simply use a space. In our example, to display the entire URL, the optional pageIndex and pageSize display on the next line. In actual usage, these two lines would be one.

Required Permissions

User with security rights to lookup individual information.

Request Header

Basic Authorization is used to determine security rights for the user credentials supplied using the following parameters.

username: "jadams"

password: "password231"

URI Parameters

sitenumber – The site number to gather data for.

pageIndex – Page number for the search results; begins with the 0 value entered for the first set of results (optional).

pageSize – Number of results to return per page (optional).

Query String Parameters

q = [First Name | Last Name | Goes By Name]

      Examples:  [Johnathon | Doe | John]

                Johnathon Doe

                Johnathon

                Doe

                John

                John Doe

Return Data

{
  "Page": [
    {
      "IndvId": 12,
      "FamId": 1234,
      "FamilyPosition": "Head",
      "Title": "Mr.",
      "FirstName": "Johnathon",
      "LastName": "Doe",
      "MiddleName": null,
      "GoesByName": "John",
      "Suffix": null"
    }
  ],
  "PageCount": 1,
  "PageIndex": 0,
  "PageSize": 5
}