POST api/Policy/GetPolicyListSearch
Gets the list of Policy Based on Search paramters
Request Information
URI Parameters
None.
Body Parameters
PolicySearchInputModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Agents |
Gets or sets agents list |
Collection of string |
None. |
| MembershipNumber |
Gets or Sets MembershipNumber |
string |
None. |
| FirstName |
Gets or Sets First Name |
string |
None. |
| LastName |
Gets or Sets Last Name |
string |
None. |
| DOB |
Gets or Sets DOB |
date |
None. |
| PolicyStatus |
Gets or Sets Policy Status |
boolean |
None. |
| PageIndex |
0 based index of the current page |
integer |
Required |
| PageSize |
Page size |
integer |
Required |
| SortFields |
List of Sort fields |
Collection of string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Agents": [
"sample string 1",
"sample string 2"
],
"MembershipNumber": "sample string 1",
"FirstName": "sample string 2",
"LastName": "sample string 3",
"DOB": "2026-04-15T12:05:32.5257431-07:00",
"PolicyStatus": true,
"PageIndex": 5,
"PageSize": 6,
"SortFields": [
"sample string 1",
"sample string 2"
]
}
application/xml, text/xml
Sample:
<PolicySearchInputModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GBG.AS.AgentPortal.API.Areas.Policy.Models">
<PageIndex xmlns="http://schemas.datacontract.org/2004/07/GBG.AS.AgentPortal.API.Models">5</PageIndex>
<PageSize xmlns="http://schemas.datacontract.org/2004/07/GBG.AS.AgentPortal.API.Models">6</PageSize>
<SortFields xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/GBG.AS.AgentPortal.API.Models">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</SortFields>
<Agents xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</Agents>
<DOB>2026-04-15T12:05:32.5257431-07:00</DOB>
<FirstName>sample string 2</FirstName>
<LastName>sample string 3</LastName>
<MembershipNumber>sample string 1</MembershipNumber>
<PolicyStatus>true</PolicyStatus>
</PolicySearchInputModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |