Catalog Library
The catalog Library is a friendly way of allowing you to grab the information you need in order to display catalog items in your webshop. You can either ask for something explicitly or you can have it resolve the data on it's own by leaving the optional parameters alone.
The Catalog library can be accessed under the following namespace:
    using Ucommerce.Api;
    using Ucommerce.Infrastructure;
    using Ucommerce.Search.Slugs;
To resolve it use the following method or constructor inject the interface directly in your controller or web API route (requires you manually bridge the IOC with the MVC framework):
Ucommerce.Api.ICatalogLibrary
Methods
GetCatalog
- 
Arguments
Guid?catalogId = null
 - Return type 
Ucommerce.Search.Models.ProductCatalog 
GetRootCategories
- 
Arguments
Guid?catalogId = nulluintskip = 0uinttake = 300
 - Return type 
Ucommerce.Search.ResultSet<Ucommerce.Search.Models.Category> 
GetCategory
- 
Arguments
Guid?categoryId = null
 - Return type 
Ucommerce.Search.Models.Category 
GetCategories
- 
Arguments
IList<Guid>categoryIdsuintskip = 0uinttake = 300
 - Return type 
Ucommerce.Search.ResultSet<Ucommerce.Search.Models.Category> 
GetProducts
- 
Arguments
Guid?categoryId = nulluintskip = 0uinttake = 300
 - Return type 
Ucommerce.Search.ResultSet<Ucommerce.Search.Models.Product> 
GetProduct
- 
Arguments
stringsku
 - Return type 
Ucommerce.Search.Models.Product 
CalculatePrices
- 
Arguments
IList<Guid>productGuidsIList<Guid>priceGroupGuids = null
 - Return type 
Ucommerce.Catalog.Models.ProductPriceCalculationResult 
ChangePriceGroup
- 
Arguments
GuidpriceGroupGuidBooleanchangeBasketBillingCurrency = True
 - Return type 
Void 
GetVariants
- 
Arguments
Ucommerce.Search.Models.Productproduct
 - Return type 
Ucommerce.Search.ResultSet<Ucommerce.Search.Models.Product> 
GetProducts
- 
Arguments
IList<Guid>categoryIdsUcommerce.Search.Facets.FacetDictionaryfacetsuintskip = 0uinttake = 300
 - Return type 
Ucommerce.Search.Facets.FacetResultSet<Ucommerce.Search.Models.Product> 
GetProducts
- 
Arguments
GuidcategoryIdUcommerce.Search.Facets.FacetDictionaryfacetsuintskip = 0uinttake = 300
 - Return type 
Ucommerce.Search.Facets.FacetResultSet<Ucommerce.Search.Models.Product> 
GetFacets
- 
Arguments
GuidcategoryIdUcommerce.Search.Facets.FacetDictionaryfacetsuintskip = 0uinttake = 300
 - Return type 
IList<Ucommerce.Search.Facets.Facet> 
GetFacets
- 
Arguments
IList<Guid>categoryIdsUcommerce.Search.Facets.FacetDictionaryfacetsuintskip = 0uinttake = 300
 - Return type 
IList<Ucommerce.Search.Facets.Facet>