1 min read
BigCommerce Sdk Services
All services APIs are defined using interfaces. The recommended way of customization when using BigCommerce 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 BigCommerce 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 ManagerGetRedirectTokenUrlcreates redirect token for desired urlGetAccessTokenFromAuthHeaderdecodes authorization header valueGetTokenInfoFromAuthHeaderdecodes authorization header value
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
GetProductBySkuAsyncreturns product listing page by sku.
ProductService
ProductService provides set of methods required to show product details page.
Methods
GetProductAsyncreturns product by product id.GetProductsAsyncreturns products by product ids.GetProductsByListingIdsAsyncreturns products by listing ids.GetProductsByVariantIdsAsyncreturns products by variant ids.GetProductBySkuAsyncreturns products by skus.
CheckoutService
CheckoutService provides set of methods required to handle checkout
Methods
StartAsynchandles checkout start and returns appropriate url.
CartService
CartService provides set of methods required to manipulate customer cart
Methods
GetCartAsyncreturns Cart dataUpdateCartAsyncupdates inderliying cartAddToCartAsyncadds item to underlying cart
WishlistService
WishlistService provides set of methods required to manipulate customer wishlist
Methods
GetAllWishlistItemsAsyncreturns all wishlist itemsAddWishlistItemAsyncadd wishlist itemDeleteWishlistAsyncdeletes wishlistDeleteWishlistItemAsyncdeletes wishlist itemGetWishlistItemsAsyncreturns wishlit items