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.
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.
CreateGuestTokenAsynccreates token for guest user
LoginAsynclogs user in
LogoutAsynclogs user out
GetProfileAsyncreturns user profile
RegisterAsyncregister new user.
UpdateProfileAsyncupdates user profile
RefreshTokenAsyncrefresh logged in user access token
GetContentAsyncreturns screen content configuration setup in Poq App Manager
GetRedirectTokenUrlcreates redirect token for desired url
GetAccessTokenFromAuthHeaderdecodes authorization header value
GetTokenInfoFromAuthHeaderdecodes authorization header value
SearchService provides set of methods required to show product listing page by category and keyword, in addition to this handles search by barcode functionality.
GetProductBySkuAsyncreturns product listing page by sku.
ProductService provides set of methods required to show product details page.
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 provides set of methods required to handle checkout
StartAsynchandles checkout start and returns appropriate url.
CartService provides set of methods required to manipulate customer cart
GetCartAsyncreturns Cart data
UpdateCartAsyncupdates inderliying cart
AddToCartAsyncadds item to underlying cart
WishlistService provides set of methods required to manipulate customer wishlist
GetAllWishlistItemsAsyncreturns all wishlist items
AddWishlistItemAsyncadd wishlist item
DeleteWishlistItemAsyncdeletes wishlist item
GetWishlistItemsAsyncreturns wishlit items