GET api/collections/agents/{agentId}
Get agent by id
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
agentId |
|
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of DetailedCollectionsAgentViewModelName | Description | Type | Additional information |
---|---|---|---|
AgentId |
|
integer |
None. |
ContactName |
|
string |
Required String length: inclusive between 3 and 200 |
Phone |
|
string |
Required String length: inclusive between 5 and 50 |
|
string |
Required String length: inclusive between 5 and 50 |
|
Notes |
|
string |
String length: inclusive between 0 and 300 |
CreatedBy |
|
integer |
None. |
CreatedOn |
|
date |
None. |
ModifiedBy |
|
integer |
None. |
ModifiedOn |
|
date |
None. |
AgencyId |
|
integer |
None. |
AgencyName |
|
string |
Required String length: inclusive between 3 and 100 |
AgencyPhone |
|
string |
Required String length: inclusive between 5 and 50 |
AgencyEmail |
|
string |
Required String length: inclusive between 5 and 100 |
AddressId |
|
integer |
None. |
Address1 |
|
string |
Required String length: inclusive between 3 and 50 |
Address2 |
|
string |
String length: inclusive between 0 and 50 |
City |
|
string |
Required String length: inclusive between 3 and 50 |
State |
|
string |
Required String length: inclusive between 2 and 50 |
ZipCode |
|
string |
Required String length: inclusive between 5 and 50 |
Country |
|
string |
String length: inclusive between 0 and 50 |
AddressTypeId |
|
integer |
None. |
Response Formats
application/json, text/json
[ { "agentId": 1, "contactName": "sample string 2", "phone": "sample string 3", "email": "sample string 4", "notes": "sample string 5", "createdBy": 6, "createdOn": "2025-04-03T17:50:39.3467659-04:00", "modifiedBy": 1, "modifiedOn": "2025-04-03T17:50:39.3467659-04:00", "agencyId": 8, "agencyName": "sample string 9", "agencyPhone": "sample string 10", "agencyEmail": "sample string 11", "addressId": 12, "address1": "sample string 13", "address2": "sample string 14", "city": "sample string 15", "state": "sample string 16", "zipCode": "sample string 17", "country": "sample string 18", "addressTypeId": 19 }, { "agentId": 1, "contactName": "sample string 2", "phone": "sample string 3", "email": "sample string 4", "notes": "sample string 5", "createdBy": 6, "createdOn": "2025-04-03T17:50:39.3467659-04:00", "modifiedBy": 1, "modifiedOn": "2025-04-03T17:50:39.3467659-04:00", "agencyId": 8, "agencyName": "sample string 9", "agencyPhone": "sample string 10", "agencyEmail": "sample string 11", "addressId": 12, "address1": "sample string 13", "address2": "sample string 14", "city": "sample string 15", "state": "sample string 16", "zipCode": "sample string 17", "country": "sample string 18", "addressTypeId": 19 } ]
application/xml, text/xml
<ArrayOfDetailedCollectionsAgentViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels.Collections"> <DetailedCollectionsAgentViewModel> <Address1>sample string 13</Address1> <Address2>sample string 14</Address2> <AddressId>12</AddressId> <AddressTypeId>19</AddressTypeId> <AgencyEmail>sample string 11</AgencyEmail> <AgencyId>8</AgencyId> <AgencyName>sample string 9</AgencyName> <AgencyPhone>sample string 10</AgencyPhone> <AgentId>1</AgentId> <City>sample string 15</City> <ContactName>sample string 2</ContactName> <Country>sample string 18</Country> <CreatedBy>6</CreatedBy> <CreatedOn>2025-04-03T17:50:39.3467659-04:00</CreatedOn> <Email>sample string 4</Email> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2025-04-03T17:50:39.3467659-04:00</ModifiedOn> <Notes>sample string 5</Notes> <Phone>sample string 3</Phone> <State>sample string 16</State> <ZipCode>sample string 17</ZipCode> </DetailedCollectionsAgentViewModel> <DetailedCollectionsAgentViewModel> <Address1>sample string 13</Address1> <Address2>sample string 14</Address2> <AddressId>12</AddressId> <AddressTypeId>19</AddressTypeId> <AgencyEmail>sample string 11</AgencyEmail> <AgencyId>8</AgencyId> <AgencyName>sample string 9</AgencyName> <AgencyPhone>sample string 10</AgencyPhone> <AgentId>1</AgentId> <City>sample string 15</City> <ContactName>sample string 2</ContactName> <Country>sample string 18</Country> <CreatedBy>6</CreatedBy> <CreatedOn>2025-04-03T17:50:39.3467659-04:00</CreatedOn> <Email>sample string 4</Email> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2025-04-03T17:50:39.3467659-04:00</ModifiedOn> <Notes>sample string 5</Notes> <Phone>sample string 3</Phone> <State>sample string 16</State> <ZipCode>sample string 17</ZipCode> </DetailedCollectionsAgentViewModel> </ArrayOfDetailedCollectionsAgentViewModel>