POST api/v1/product/search
Search into products
Request Information
URI Parameters
None.
Body Parameters
The parameters to search
Collection of ProductSearchModelName | Description | Type | Additional information |
---|---|---|---|
SearchKey | ProductSearchEnum |
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:
<ArrayOfProductSearchModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PromotionalOffice.WebApi.Models.Product"> <ProductSearchModel> <SearchKey>OwnProductNumber</SearchKey> <SearchValue>sample string 1</SearchValue> </ProductSearchModel> <ProductSearchModel> <SearchKey>OwnProductNumber</SearchKey> <SearchValue>sample string 1</SearchValue> </ProductSearchModel> </ArrayOfProductSearchModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Multiple products found by the search parameters
Collection of ProductSearchResultName | Description | Type | Additional information |
---|---|---|---|
ArticleNumber |
Own article number |
string |
None. |
OrderNumber |
Article number of the supplier |
string |
None. |
ProductName |
Product name |
string |
None. |
SupplierName |
Name of the supplier |
string |
None. |
IsActive |
Is product active |
boolean |
None. |
ArticleType |
Tye of the article |
ArticleTypeEnum |
None. |
ProductIdentifier |
Product identifier, used for reference |
globally unique identifier |
None. |
Response Formats
application/json, text/json
Sample:
[ { "ArticleNumber": "sample string 1", "OrderNumber": "sample string 2", "ProductName": "sample string 3", "SupplierName": "sample string 4", "IsActive": true, "ArticleType": 0, "ProductIdentifier": "1e89a9c5-006c-44f0-a619-d486b044ee91" }, { "ArticleNumber": "sample string 1", "OrderNumber": "sample string 2", "ProductName": "sample string 3", "SupplierName": "sample string 4", "IsActive": true, "ArticleType": 0, "ProductIdentifier": "1e89a9c5-006c-44f0-a619-d486b044ee91" } ]
application/xml, text/xml
Sample:
<ArrayOfProductSearchResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://promotionaloffice.promidata.com/2012/08/08"> <ProductSearchResult> <ArticleNumber>sample string 1</ArticleNumber> <ArticleType>Empty</ArticleType> <IsActive>true</IsActive> <OrderNumber>sample string 2</OrderNumber> <ProductIdentifier>1e89a9c5-006c-44f0-a619-d486b044ee91</ProductIdentifier> <ProductName>sample string 3</ProductName> <SupplierName>sample string 4</SupplierName> </ProductSearchResult> <ProductSearchResult> <ArticleNumber>sample string 1</ArticleNumber> <ArticleType>Empty</ArticleType> <IsActive>true</IsActive> <OrderNumber>sample string 2</OrderNumber> <ProductIdentifier>1e89a9c5-006c-44f0-a619-d486b044ee91</ProductIdentifier> <ProductName>sample string 3</ProductName> <SupplierName>sample string 4</SupplierName> </ProductSearchResult> </ArrayOfProductSearchResult>