GET api/AgentManager/GetAgentDetailsByAgentCode?AgentCode={AgentCode}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| AgentCode | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
ResponseAgentDetails| Name | Description | Type | Additional information |
|---|---|---|---|
| success | string |
None. |
|
| error_message | string |
None. |
|
| data | AgentMaster |
None. |
Response Formats
application/json, text/json
Sample:
{
"success": "sample string 1",
"error_message": "sample string 2",
"data": {
"agent_name": "sample string 1",
"agent_image_url": "sample string 2",
"agent_code": 3,
"agent_email": "sample string 4",
"agent_created_date": "sample string 5",
"agent_location": "sample string 6",
"agent_location_id": 7,
"partner_code": "sample string 8",
"agent_phone_number": "sample string 9"
}
}
application/xml, text/xml
Sample:
<ResponseAgentDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PartnerNetwork.Models">
<data>
<agent_code>3</agent_code>
<agent_created_date>sample string 5</agent_created_date>
<agent_email>sample string 4</agent_email>
<agent_image_url>sample string 2</agent_image_url>
<agent_location>sample string 6</agent_location>
<agent_location_id>7</agent_location_id>
<agent_name>sample string 1</agent_name>
<agent_phone_number>sample string 9</agent_phone_number>
<partner_code>sample string 8</partner_code>
</data>
<error_message>sample string 2</error_message>
<success>sample string 1</success>
</ResponseAgentDetails>