POST api/v1/customer/search
Search into customers
Request Information
URI Parameters
None.
Body Parameters
The parameters to search
Collection of CustomerSearchModel| Name | Description | Type | Additional information |
|---|---|---|---|
| SearchKey | CustomerSearcherKeyEnum |
None. |
|
| SearchValue | string |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"SearchKey": 0,
"SearchValue": "sample string 1"
},
{
"SearchKey": 0,
"SearchValue": "sample string 1"
}
]
application/xml, text/xml
Sample:
<ArrayOfCustomerSearchModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PromotionalOffice.WebApi.Models.Customer">
<CustomerSearchModel>
<SearchKey>CompanyName</SearchKey>
<SearchValue>sample string 1</SearchValue>
</CustomerSearchModel>
<CustomerSearchModel>
<SearchKey>CompanyName</SearchKey>
<SearchValue>sample string 1</SearchValue>
</CustomerSearchModel>
</ArrayOfCustomerSearchModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Multiple customers found by the search parameters
Collection of CustomerSearchResult| Name | Description | Type | Additional information |
|---|---|---|---|
| DebitorNumber | integer |
None. |
|
| CustomerNumber | integer |
None. |
|
| CustomerName | string |
None. |
|
| IsActive | boolean |
None. |
|
| CustomerIdentifier | globally unique identifier |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"DebitorNumber": 1,
"CustomerNumber": 2,
"CustomerName": "sample string 3",
"IsActive": true,
"CustomerIdentifier": "75d0d836-86ae-4803-b501-87bf9c8704d0"
},
{
"DebitorNumber": 1,
"CustomerNumber": 2,
"CustomerName": "sample string 3",
"IsActive": true,
"CustomerIdentifier": "75d0d836-86ae-4803-b501-87bf9c8704d0"
}
]
application/xml, text/xml
Sample:
<ArrayOfCustomerSearchResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://promotionaloffice.promidata.com/2012/08/08">
<CustomerSearchResult>
<CustomerIdentifier>75d0d836-86ae-4803-b501-87bf9c8704d0</CustomerIdentifier>
<CustomerName>sample string 3</CustomerName>
<CustomerNumber>2</CustomerNumber>
<DebitorNumber>1</DebitorNumber>
<IsActive>true</IsActive>
</CustomerSearchResult>
<CustomerSearchResult>
<CustomerIdentifier>75d0d836-86ae-4803-b501-87bf9c8704d0</CustomerIdentifier>
<CustomerName>sample string 3</CustomerName>
<CustomerNumber>2</CustomerNumber>
<DebitorNumber>1</DebitorNumber>
<IsActive>true</IsActive>
</CustomerSearchResult>
</ArrayOfCustomerSearchResult>