POST api/v2/Customers/Search

Search for Customers based on provided criteria.

Request Information

URI Parameters

None.

Body Parameters

SearchArgs
NameDescriptionTypeAdditional information
SearchString

A string to search for in the Cross Reference. Name, Phone Number, Email, Boat Name, etc.

string

None.

DirectHit

Only return a result if only one matching record is found.

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "SearchString": "sample string 1",
  "DirectHit": true
}

application/xml, text/xml

Sample:
<SearchArgs xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/com.dockmaster.lib.models">
  <DirectHit>true</DirectHit>
  <SearchString>sample string 1</SearchString>
</SearchArgs>

Response Information

Resource Description

Collection of CustomerSearchResult
NameDescriptionTypeAdditional information
CustomerID

string

None.

Name

string

None.

Email

string

None.

Address

string

None.

CompanyName

string

None.

ProspectId

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "CustomerID": "sample string 1",
    "Name": "sample string 2",
    "Email": "sample string 3",
    "Address": "sample string 4",
    "CompanyName": "sample string 5",
    "ProspectId": "sample string 6"
  },
  {
    "CustomerID": "sample string 1",
    "Name": "sample string 2",
    "Email": "sample string 3",
    "Address": "sample string 4",
    "CompanyName": "sample string 5",
    "ProspectId": "sample string 6"
  }
]

application/xml, text/xml

Sample:
<ArrayOfCustomerSearchResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/com.dockmaster.lib.models">
  <CustomerSearchResult>
    <Address>sample string 4</Address>
    <CompanyName>sample string 5</CompanyName>
    <CustomerID>sample string 1</CustomerID>
    <Email>sample string 3</Email>
    <Name>sample string 2</Name>
    <ProspectId>sample string 6</ProspectId>
  </CustomerSearchResult>
  <CustomerSearchResult>
    <Address>sample string 4</Address>
    <CompanyName>sample string 5</CompanyName>
    <CustomerID>sample string 1</CustomerID>
    <Email>sample string 3</Email>
    <Name>sample string 2</Name>
    <ProspectId>sample string 6</ProspectId>
  </CustomerSearchResult>
</ArrayOfCustomerSearchResult>