GET api/rep/PublicInfo/GetByName?search={search}&plugging={plugging}

Search for reps based on searching their name or repDID. The full repDID will need to be entered to find a match At least 2 characters will need to be entered to find a match based on a reps first or last name.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
search

string

Required

plugging

boolean

Default value is False

Body Parameters

None.

Response Information

Resource Description

Collection of PublicRepInfoViewModel
NameDescriptionTypeAdditional information
RepDID

The representative's Display ID

string

None.

DisplayName

The display name shown for the rep.

string

None.

DisplayNameHeader

string

None.

Company

The representative's company name

string

None.

FirstName

The representative's first name

string

None.

LastName

The representative's last name

string

None.

PublicImageUrl

The representative's publicly available image url.

string

None.

ShouldAskToSwitch

Whether the cart should ask to switch order association

boolean

None.

ReplicatedSiteUrl

The representative's url

string

None.

City

The representative's city

string

None.

State

The representative's state

string

None.

Country

The representative's Country

string

None.

Phone

string

None.

Email

string

None.

RepSocialNetworks

Collection of IRepSocialNetworkPublicInfoViewModel

None.

Response Formats

application/xml, text/xml

Sample:
<ListOfPublicRepInfoViewModel>
  <PublicRepInfoViewModel>
    <RepDID>sample string 1</RepDID>
    <DisplayName>sample string 2</DisplayName>
    <DisplayNameHeader>sample string 3</DisplayNameHeader>
    <Company>sample string 4</Company>
    <FirstName>sample string 5</FirstName>
    <LastName>sample string 6</LastName>
    <PublicImageUrl>sample string 7</PublicImageUrl>
    <ShouldAskToSwitch>True</ShouldAskToSwitch>
    <ReplicatedSiteUrl>sample string 9</ReplicatedSiteUrl>
    <City>sample string 10</City>
    <State>sample string 11</State>
    <Country>sample string 12</Country>
    <Phone>sample string 13</Phone>
    <Email>sample string 14</Email>
    <RepSocialNetworks />
  </PublicRepInfoViewModel>
  <PublicRepInfoViewModel>
    <RepDID>sample string 1</RepDID>
    <DisplayName>sample string 2</DisplayName>
    <DisplayNameHeader>sample string 3</DisplayNameHeader>
    <Company>sample string 4</Company>
    <FirstName>sample string 5</FirstName>
    <LastName>sample string 6</LastName>
    <PublicImageUrl>sample string 7</PublicImageUrl>
    <ShouldAskToSwitch>True</ShouldAskToSwitch>
    <ReplicatedSiteUrl>sample string 9</ReplicatedSiteUrl>
    <City>sample string 10</City>
    <State>sample string 11</State>
    <Country>sample string 12</Country>
    <Phone>sample string 13</Phone>
    <Email>sample string 14</Email>
    <RepSocialNetworks />
  </PublicRepInfoViewModel>
</ListOfPublicRepInfoViewModel>

application/json, text/json

Sample:
[
  {
    "RepDID": "sample string 1",
    "DisplayName": "sample string 2",
    "DisplayNameHeader": "sample string 3",
    "Company": "sample string 4",
    "FirstName": "sample string 5",
    "LastName": "sample string 6",
    "PublicImageUrl": "sample string 7",
    "ShouldAskToSwitch": true,
    "ReplicatedSiteUrl": "sample string 9",
    "City": "sample string 10",
    "State": "sample string 11",
    "Country": "sample string 12",
    "Phone": "sample string 13",
    "Email": "sample string 14"
  },
  {
    "RepDID": "sample string 1",
    "DisplayName": "sample string 2",
    "DisplayNameHeader": "sample string 3",
    "Company": "sample string 4",
    "FirstName": "sample string 5",
    "LastName": "sample string 6",
    "PublicImageUrl": "sample string 7",
    "ShouldAskToSwitch": true,
    "ReplicatedSiteUrl": "sample string 9",
    "City": "sample string 10",
    "State": "sample string 11",
    "Country": "sample string 12",
    "Phone": "sample string 13",
    "Email": "sample string 14"
  }
]