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.

pInterface_code

string

None.

pActive

string

None.

pFhoneMobile

string

None.

pFhoneWork

string

None.

pFhoneHome

string

None.

pCityCode

integer

None.

pCustNum

integer

None.

pMaxRows

integer

None.

insur_code

integer

None.

ExactSearch

boolean

None.

statusCust

integer

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",
  "pInterface_code": "sample string 8",
  "pActive": "sample string 9",
  "pFhoneMobile": "sample string 10",
  "pFhoneWork": "sample string 11",
  "pFhoneHome": "sample string 12",
  "pCityCode": 1,
  "pCustNum": 1,
  "pMaxRows": 1,
  "insur_code": 1,
  "ExactSearch": true,
  "statusCust": 1
}

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>
  <insur_code>1</insur_code>
  <pActive>sample string 9</pActive>
  <pCityCode>1</pCityCode>
  <pCustNum>1</pCustNum>
  <pEmail>sample string 6</pEmail>
  <pFhoneHome>sample string 12</pFhoneHome>
  <pFhoneMobile>sample string 10</pFhoneMobile>
  <pFhoneWork>sample string 11</pFhoneWork>
  <pFirstName>sample string 2</pFirstName>
  <pId>sample string 7</pId>
  <pInterface_code>sample string 8</pInterface_code>
  <pLastName>sample string 1</pLastName>
  <pMaxRows>1</pMaxRows>
  <pPassport>sample string 5</pPassport>
  <pPhone>sample string 3</pPhone>
  <pStreet>sample string 4</pStreet>
  <statusCust>1</statusCust>
</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.

interface_code

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.

insurname

string

None.

business_branch_code

integer

None.

room

integer

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",
    "interface_code": "sample string 5",
    "pasport": "sample string 6",
    "mobilephone": "sample string 7",
    "homephone": "sample string 8",
    "workphone": "sample string 9",
    "addphone": "sample string 10",
    "street": "sample string 11",
    "home": 1,
    "city_name": "sample string 12",
    "insurname": "sample string 13",
    "business_branch_code": 1,
    "room": 1
  },
  {
    "cust_num": 1,
    "last_name": "sample string 2",
    "first_name": "sample string 3",
    "id_num": "sample string 4",
    "interface_code": "sample string 5",
    "pasport": "sample string 6",
    "mobilephone": "sample string 7",
    "homephone": "sample string 8",
    "workphone": "sample string 9",
    "addphone": "sample string 10",
    "street": "sample string 11",
    "home": 1,
    "city_name": "sample string 12",
    "insurname": "sample string 13",
    "business_branch_code": 1,
    "room": 1
  }
]

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 10</addphone>
    <business_branch_code>1</business_branch_code>
    <city_name>sample string 12</city_name>
    <cust_num>1</cust_num>
    <first_name>sample string 3</first_name>
    <home>1</home>
    <homephone>sample string 8</homephone>
    <id_num>sample string 4</id_num>
    <insurname>sample string 13</insurname>
    <interface_code>sample string 5</interface_code>
    <last_name>sample string 2</last_name>
    <mobilephone>sample string 7</mobilephone>
    <pasport>sample string 6</pasport>
    <street>sample string 11</street>
    <workphone>sample string 9</workphone>
  </CustomersFound>
  <CustomersFound>
    <addphone>sample string 10</addphone>
    <business_branch_code>1</business_branch_code>
    <city_name>sample string 12</city_name>
    <cust_num>1</cust_num>
    <first_name>sample string 3</first_name>
    <home>1</home>
    <homephone>sample string 8</homephone>
    <id_num>sample string 4</id_num>
    <insurname>sample string 13</insurname>
    <interface_code>sample string 5</interface_code>
    <last_name>sample string 2</last_name>
    <mobilephone>sample string 7</mobilephone>
    <pasport>sample string 6</pasport>
    <street>sample string 11</street>
    <workphone>sample string 9</workphone>
  </CustomersFound>
</ArrayOfCustomersFound>

application/bson

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