GET api/ContactPrefixes/search?accountNumber={accountNumber}&addEmptyItem={addEmptyItem}&emptyItemText={emptyItemText}&page={page}&itemsPerPage={itemsPerPage}
Returns a list of contact prefixes.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
accountNumber |
Account number |
string |
Required |
addEmptyItem |
Indicates if an empty item be added in the list. |
boolean |
Default value is False |
emptyItemText |
Text of the empty item |
string |
Default value is |
page |
Page number requested (search results are paginated). |
integer |
Default value is 1 |
itemsPerPage |
Items to return on each page. See page parameter above. |
integer |
Default value is 10 |
Body Parameters
None.
Response Information
Resource Description
Collection of ContactPrefixModelName | Description | Type | Additional information |
---|---|---|---|
Id |
Unique ID of the prefix. |
integer |
None. |
Name |
Name of the prefix (Required). |
string |
None. |
Active |
Indicates whether the prefix is active or not (Required). |
boolean |
None. |
Response Formats
application/json, text/json
Sample:
[ { "Id": 1, "Name": "sample string 2", "Active": true }, { "Id": 1, "Name": "sample string 2", "Active": true } ]
application/xml, text/xml
Sample:
<ArrayOfContactPrefixModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Mobile.Api.Models.Contacts"> <ContactPrefixModel> <Active>true</Active> <Id>1</Id> <Name>sample string 2</Name> </ContactPrefixModel> <ContactPrefixModel> <Active>true</Active> <Id>1</Id> <Name>sample string 2</Name> </ContactPrefixModel> </ArrayOfContactPrefixModel>