Product Examples
Getting a product with name "SmartStore eBay SmartSeller"
Example
GET http://localhost:1260/odata/v1/Products?$top=1&$filter=Name eq 'SmartStore eBay SmartSeller'
Get child products of group product with ID 210
Example
GET http://localhost:1260/odata/v1/Products?$top=120&$filter=ParentGroupedProductId eq 210
Get final price of product with ID 211
Example
POST http://localhost:1260/odata/v1/Products(211)/FinalPrice
Note the post method. There is a second action, LowestPrice
, which returns the lowest possible price for a product.
Assign category with ID 9 to product with ID 1
Example
POST http://localhost:1260/odata/v1/Products(1)/ProductCategories(9) {"DisplayOrder":5,"IsFeaturedProduct":true}
Assign manufacturer with ID 12 to product with ID 1
Example
POST http://localhost:1260/odata/v1/Products(1)/ProductManufacturers(12) {"DisplayOrder":1,"IsFeaturedProduct":false}
- The request content is optional.
- Use the DELETE method to remove an assignment.
- Omit the category/manufacturer identifier if you want to remove all related assignments for a product.
- It doesn't matter if one of the assignments already exists. The Web API automatically ensures that a product has no duplicate categories or manufacturer assignments.
- Such navigation links are only available for a few navigation properties at the moment.