Magento Sdk Services
All services apis are defined using interfaces. The recommended way of customization when using Magento SDK is to provide custom implementation of services and register it as scoped in IoC.
List of Available Services
AccountService
AccountService is designed to be used by BFC by handling user account operations: login, register, profile, etc. This services proxies relevant requests to magento endpoints for complete integration.
Methods
CreateGuestTokenAsynccreates token for guest userLoginAsynclogs user inLogoutAsynclogs user outGetProfileAsyncreturns user profileRegisterAsyncregister new user.UpdateProfileAsyncupdates user profileRefreshTokenAsyncrefresh logged in user access tokenGetContentAsyncreturns screen content configuration setup in Poq App Manager
PredictiveSearchService
PredictiveSearchService provides set of methods required by search suggestions feature of the app.
Methods
SearchAsyncreturns categories suggested for the specified search query.
ProductAttributesService
ProductAttributesService helper service to simply work with magento attributes.
Methods
GetAttributeAsyncreturns an attribute by attribute code.GetAttributeByIdAsyncreturns an attribute by attribute id.
SearchService
SearchService provides set of methods required to show product listing page by category and keyword, in addition to this handles search by barcode functionality.
Methods
SearchAsyncreturns product listing page by category or keyword based on specified filters.SearchByBarcodeAsyncreturns a product by barcode.
ProductService
ProductService provides set of methods required to show product details page.
Methods
GetProductsAsyncreturns products by product ids.GetProductsByVariantIdAsyncreturns products by variant ids.
ShopService
ShopService provides set of methods required to show category navigation menu.
Methods
GetNavigationCategoriesAsyncreturns category navigation menu.