POST api/Customers/SearchCustomer

Request Information

URI Parameters

None.

Body Parameters

SearchCustomerInput
NameDescriptionTypeAdditional information
pLastName

string

None.

pFirstName

string

None.

pPhone

string

None.

pStreet

string

None.

pPassport

string

None.

pEmail

string

None.

pId

string

None.

pActive

string

None.

pCityCode

integer

None.

pCustNum

integer

None.

pMaxRows

integer

None.

ExactSearch

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "pLastName": "sample string 1",
  "pFirstName": "sample string 2",
  "pPhone": "sample string 3",
  "pStreet": "sample string 4",
  "pPassport": "sample string 5",
  "pEmail": "sample string 6",
  "pId": "sample string 7",
  "pActive": "sample string 8",
  "pCityCode": 1,
  "pCustNum": 1,
  "pMaxRows": 1,
  "ExactSearch": true
}

application/xml, text/xml

Sample:
<SearchCustomerInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BLMedical">
  <ExactSearch>true</ExactSearch>
  <pActive>sample string 8</pActive>
  <pCityCode>1</pCityCode>
  <pCustNum>1</pCustNum>
  <pEmail>sample string 6</pEmail>
  <pFirstName>sample string 2</pFirstName>
  <pId>sample string 7</pId>
  <pLastName>sample string 1</pLastName>
  <pMaxRows>1</pMaxRows>
  <pPassport>sample string 5</pPassport>
  <pPhone>sample string 3</pPhone>
  <pStreet>sample string 4</pStreet>
</SearchCustomerInput>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SearchCustomerInput'.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

Response Information

Resource Description

Collection of CustomersFound
NameDescriptionTypeAdditional information
cust_num

integer

None.

last_name

string

None.

first_name

string

None.

id_num

string

None.

pasport

string

None.

mobilephone

string

None.

homephone

string

None.

workphone

string

None.

addphone

string

None.

street

string

None.

home

integer

None.

city_name

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "cust_num": 1,
    "last_name": "sample string 2",
    "first_name": "sample string 3",
    "id_num": "sample string 4",
    "pasport": "sample string 5",
    "mobilephone": "sample string 6",
    "homephone": "sample string 7",
    "workphone": "sample string 8",
    "addphone": "sample string 9",
    "street": "sample string 10",
    "home": 1,
    "city_name": "sample string 11"
  },
  {
    "cust_num": 1,
    "last_name": "sample string 2",
    "first_name": "sample string 3",
    "id_num": "sample string 4",
    "pasport": "sample string 5",
    "mobilephone": "sample string 6",
    "homephone": "sample string 7",
    "workphone": "sample string 8",
    "addphone": "sample string 9",
    "street": "sample string 10",
    "home": 1,
    "city_name": "sample string 11"
  }
]

application/xml, text/xml

Sample:
<ArrayOfCustomersFound xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BLMedical">
  <CustomersFound>
    <addphone>sample string 9</addphone>
    <city_name>sample string 11</city_name>
    <cust_num>1</cust_num>
    <first_name>sample string 3</first_name>
    <home>1</home>
    <homephone>sample string 7</homephone>
    <id_num>sample string 4</id_num>
    <last_name>sample string 2</last_name>
    <mobilephone>sample string 6</mobilephone>
    <pasport>sample string 5</pasport>
    <street>sample string 10</street>
    <workphone>sample string 8</workphone>
  </CustomersFound>
  <CustomersFound>
    <addphone>sample string 9</addphone>
    <city_name>sample string 11</city_name>
    <cust_num>1</cust_num>
    <first_name>sample string 3</first_name>
    <home>1</home>
    <homephone>sample string 7</homephone>
    <id_num>sample string 4</id_num>
    <last_name>sample string 2</last_name>
    <mobilephone>sample string 6</mobilephone>
    <pasport>sample string 5</pasport>
    <street>sample string 10</street>
    <workphone>sample string 8</workphone>
  </CustomersFound>
</ArrayOfCustomersFound>

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.