SearchProductsInCategory

 

SearchProductsInCategory

This method can be used to find products within a list of specific categories. It is also possible to define whether all subcategories should be searched or only the one specified. It can also be stated whether the specified category is an affilinet® category. The data available within the context of this offer include the fields "Price" and "DisplayPrice". To display the price on the screen, use only the "DisplayPrice" field because this is the type of display requested by the program operator for his product(s). The partner is solely liable for correctly displaying the price(s) on his website. The same is also true for the Shipping Price.

To access live data, please use this WSDL file:
https://api.affili.net/V2.0/ProductServices.svc?wsdl
To access demo data, please use this WSDL file:
https://developer-api.affili.net/V2.0/ProductServices.svc?wsdl


Operation test

With this form, you can try out this web service. We already filled it out with a sample request which will return data. Feel free to fill in different parameter values - our test data reference gives you an overview of our sample data.

FieldTypeValues
PublisherId *int 
ShopIdint
CategoryId *int 
IncludeChildNodesbool
UseAffilinetCategories *bool
Query *string 
WithImageOnly *bool
Details *bool
ImageSize *enum
CurrentPage *int 
PageSize *int 
MinimumPricedecimal
MaximumPricedecimal
SortByenum
SortOrder *enum

XML response

Short paramter definitions
PublisherId (int):
Id of the publisher whose account is being used.
ShopId (int):
Id of the shop whose category has been specified in ‘CategoryId’.
CategoryId (int):
Id of the category to be searched.
IncludeChildNodes (bool):
If this is set to 'true', then the search is also performed on the child nodes of the given category.
UseAffilinetCategories (bool):
States whether the specified category is an affilinet® category.
Query (string):
List of search terms.
WithImageOnly (bool):
States whether only results with product images should be displayed.
Details (bool):
States whether the detailed view of product results is required.
ImageSize (enum):
The 'ImageSize' parameter can be used to select which images (product image and shop logo) should be included in the results. The number behind “Image” resp. “Logo” represents the width in pixels. Possible values are:no image, Product image: Image30 & Logo: Logo50, Product image: Image60 & Logo: Logo90, Product image: Image90 & Logo: Logo120, Product image: Image120 & Logo: Logo150, Product image: Image180 & Logo: Logo468, All images
CurrentPage (int):
States which page should be displayed.
PageSize (int):
States the size of a result page.
MinimumPrice (decimal):
Minimum price in the search results.
MaximumPrice (decimal):
Maximum price in the search results.
SortBy (enum):
States by which field the results should be ordered. If omitted, results are sorted by rank. Possible values are: Price, Title, Rank
SortOrder (enum):
States the required order direction of the results. Possible values are: unsorted, ascending, descending, random

Complete code examples

PHP

 (request)

.NET

 (request)

Copyright © 2008, affilinet GmbH