SearchProductsInCategories

 

SearchProductsInCategories

This method can be used to search for products in several categories. It can also be stated whether the specified category is an affilinet® category. The returned data includes 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 applies to the ShippingPrice.

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 
ShopIds *int array 
CategoryIds *int array 
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.
ShopIds (array of int):
Ids of the shops on whose products the search shall be performed Note: use ShopId 0 to search in all shops you have a partnership with.
CategoryIds (array of int):
Ids of the categories to search in.
UseAffilinetCategories (bool):
Set to ‘true’ to let the argument ‘Categories’ be interpreted as affilinet categories.
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