Previous Docs Version

The documentation you are viewing is for a previous version of the Vendr product. Click here to jump to the current stable version.

IProductService

API reference for IProductService in Vendr, the eCommerce solution for Umbraco v8+

IProductService

Defines the Vendr Product service

public interface IProductService

Namespace

Methods

GetProduct

Get a IProductSnapshot of a given product

public IProductSnapshot GetProduct(string productReference, string languageIsoCode)

Parameters

Parameter Description
productReference
The unique reference of the product to snapshot
languageIsoCode
The ISO Code of the language of the snapshot to create

Returns

An IProductSnapshot of the given product


GetProductStock

Gets the stock level of a given product

public decimal? GetProductStock(string productReference)

Parameters

Parameter Description
productReference
The unique reference of the product who's stock level to retrieve

Returns

The stock level of the product


IncreaseProductStock

Increases the stock level of a given product

public void IncreaseProductStock(string productReference, decimal increaseBy)

Parameters

Parameter Description
productReference
The unique reference of the product who's stock level to increase
increaseBy
The amount to increase the stock level by

ReduceProductStock

Reduces the stock level of a given product

public void ReduceProductStock(string productReference, decimal reduceBy)

Parameters

Parameter Description
productReference
The unique reference of the product who's stock level to reduce
reduceBy
The amount to reduce the stock level by

SetProductStock

Sets the stock level of a given product

public void SetProductStock(string productReference, decimal value)

Parameters

Parameter Description
productReference
The unique reference of the product who's stock level to set
value
The value to set the stock level to

Edit this page on GitHub

Site + logo design © 2025 Outfield Digital Ltd. Content contributions licensed under MIT.
Vendr® is a Registered Trademark of Outfield Digital Ltd.