Working with the product entity
Getting a product with name SmartStore eBay SmartSeller
GET http://localhost:1260/odata/v1/Products?$top=1&$filter=Name eq 'SmartStore eBay SmartSeller'
Get child products of group product with ID 210
GET http://localhost:1260/odata/v1/Products?$top=120&$filter=ParentGroupedProductId eq 210
Get final price of product with ID 211
Note the post method. There is a second action LowestPrice
which serves the lowest possible price for a product.
Managing product attributes
You can use the following endpoints: ProductAttributes
(types of attributes),
(attribute types mapped to a product), ProductVariantAttributeValues
(attribute values assigned to product) and optionally
(additional information for particular attribute combinations). Because managing attributes that way can lead to some extra work, there is an action method
that wraps up the most important steps.
That request configurates a product with the ID 211 with two attributes Color
and its values Red, Green, Blue
and Large, X-Large
. The action parameter
is of type ManageAttributeType
. See the OData metadata document for a complete list of available properties. If
is set to false
only missing attributes and attribute values are inserted. If set to
existing records are also updated and values that are not included in the request body are removed from the database. If you pass an empty value array the attribute and all its values are removed from the product.
The following method creates all possible attribute combinations for a product with the ID 211
As a first step this action always deletes all existing attribute combinations (for a product).