SearchSalesRep
Description
This method is used to search sales reps.
Syntax
SalesRep[] SearchSalesRep(SecurityToken securityToken , string salesRepInternalId, string salesRepId, SearchFilter[] filters, int start, int limit, string sort).
Arguments
Type | Name | Description |
---|---|---|
SecurityToken | securityToken | Merchant security token: used to identify merchant and validate transaction. (required) |
String | salesRepInternalId | Unique internal sales rep ID assigned by EBizCharge. (required) |
String | salesRepId | Sales rep ID. (required) |
SearchFilter | filters | Search filters. |
Int | start | Start position, defaults to 0 (first payment found). |
Int | limit | Maximum number of payments to return in result. Default Max 1000. |
String | sort | Field name to sort the results by. (optional) |
Return Value
Type | Description |
---|---|
SalesRep | Returns an array of sales rep matching the specified search parameters. |
Example
Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ebiz="http://eBizCharge.ServiceModel.SOAP">
<soapenv:Header />
<soapenv:Body>
<ebiz:SearchSalesReps>
<ebiz:securityToken>
<ebiz:SecurityId>********-23f6-4466-a993-f0008187ab9a</ebiz:SecurityId>
<ebiz:UserId />
<ebiz:Password />
</ebiz:securityToken>
<ebiz:salesRepInternalId />
<ebiz:salesRepId />
<ebiz:filters>
<!--Zero or more repetitions:-->
<ebiz:SearchFilter>
<ebiz:FieldName>Email</ebiz:FieldName>
<ebiz:ComparisonOperator>eq</ebiz:ComparisonOperator>
<ebiz:FieldValue>[email protected]</ebiz:FieldValue>
</ebiz:SearchFilter>
</ebiz:filters>
<ebiz:start>0</ebiz:start>
<ebiz:limit>10</ebiz:limit>
<ebiz:sort>true</ebiz:sort>
</ebiz:SearchSalesReps>
</soapenv:Body>
</soapenv:Envelope>
Response:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SearchSalesRepsResponse xmlns="http://eBizCharge.ServiceModel.SOAP">
<SearchSalesRepsResult>
<SalesRep>
<SalesRepInternalId>********-dbc8-4285-9519-1f53b5ca8bb6</SalesRepInternalId>
<SalesRepId>Sr-0001</SalesRepId>
<SalesRepType>Sales</SalesRepType>
<LinkedToInternalId />
<FirstName>Tim</FirstName>
<LastName>Litton</LastName>
<CompanyName>A.Datum</CompanyName>
<Phone>949-419-4879</Phone>
<CellPhone>949-418-3458</CellPhone>
<Fax />
<Email>[email protected]</Email>
<WebSite />
<Address>
<Address1>54 Summerfield</Address1>
<Address2 />
<Address3 />
<City>Irvine</City>
<State>CA</State>
<ZipCode>92644</ZipCode>
<IsDefault xsi:nil="true" />
</Address>
<AccountNumber>000027</AccountNumber>
<IsInactive>false</IsInactive>
</SalesRep>
<SalesRep>
<SalesRepInternalId>********-db6b-424b-8b7c-d38904ae1075</SalesRepInternalId>
<SalesRepId>Sr-0002</SalesRepId>
<SalesRepType>Sales</SalesRepType>
<LinkedToInternalId />
<FirstName>Tim</FirstName>
<LastName>Litton</LastName>
<CompanyName />
<Phone>949-444-3333</Phone>
<CellPhone>949-418-3458</CellPhone>
<Fax />
<Email>[email protected]</Email>
<WebSite />
<Address>
<Address1>54 Summerfield</Address1>
<Address2 />
<Address3 />
<City>Irvine</City>
<State>CA</State>
<ZipCode>92644</ZipCode>
<IsDefault xsi:nil="true" />
</Address>
<AccountNumber>000027</AccountNumber>
<IsInactive>false</IsInactive>
</SalesRep>
</SearchSalesRepsResult>
</SearchSalesRepsResponse>
</s:Body>
</s:Envelope>
Updated over 2 years ago