POST api/WestcorPayPortal/AgentSearch
Return a list of agencies based on search criteria
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| req | No documentation available. |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{
"criteria": "sample string 1",
"partnercode": "sample string 2",
"token": "sample string 3"
}
application/xml, text/xml
Sample:
<Agents_Search_Request xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Westcor.TMPOH.Hub.Objects"> <criteria>sample string 1</criteria> <partnercode>sample string 2</partnercode> <token>sample string 3</token> </Agents_Search_Request>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Response body formats
application/json, text/json
Sample:
[
{
"agentName": "sample string 1",
"agentNumber": "sample string 2"
},
{
"agentName": "sample string 1",
"agentNumber": "sample string 2"
},
{
"agentName": "sample string 1",
"agentNumber": "sample string 2"
}
]
application/xml, text/xml
Sample:
<ArrayOfAgents_Search_Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Westcor.TMPOH.Hub.Objects">
<Agents_Search_Response>
<agentName>sample string 1</agentName>
<agentNumber>sample string 2</agentNumber>
</Agents_Search_Response>
<Agents_Search_Response>
<agentName>sample string 1</agentName>
<agentNumber>sample string 2</agentNumber>
</Agents_Search_Response>
<Agents_Search_Response>
<agentName>sample string 1</agentName>
<agentNumber>sample string 2</agentNumber>
</Agents_Search_Response>
</ArrayOfAgents_Search_Response>