The commercetools Frontend Store Launchpad for B2C Retail uses the commercetools commerce APIs to execute actions.
The Store Launchpad for B2C Retail implements commerce functionality by using the extension for commercetools commerce APIs. Following are the actions available in the Store Launchpad for B2C Retail and the related commerce API actions.
For more information, see the following files in the
For more information, see the following files in the
actionControllers folder of the extension for commercetools commerce APIs:AccountController.tsCartController.tsProductController.tsProjectController.tsWishlistController.ts
Account
| commercetools Frontend action | commercetools commerce API action |
|---|---|
Create Customer account: register | Create (sign up) Customer |
Request confirmation email token: requestConfirmationEmail | Create email token for Customer |
Confirm Customer's email with token: confirm | Verify email of Customer |
Login account: login | Authenticate (sign in) Customer |
Change password of account: password | Change password of Customer |
Generate token to reset password of account: requestReset | Create password reset token for Customer |
Reset password: reset | Reset password of Customer |
Update account details - first name: update | Set First Name |
Update account details - last name: update | Set Last Name |
Update account details - salutation: update | Set Salutation |
Update account details - date of birth: update | Set Date of Birth |
Add billing and shipping addresses: addAddress | Add Address |
Update billing and shipping addresses: updateAddress | Change Address |
Remove billing and shipping addresses: removeAddress | Remove Address |
Set default billing address: setDefaultBillingAddress | Set Default Billing Address |
Set default shipping address: setDefaultShippingAddress | Set Default Shipping Address |
Cart
| commercetools Frontend action | commercetools commerce API action |
|---|---|
Get a Cart for an anonymous or logged in account: getCart | Get Cart |
Add Line Item to Cart: addToCart | Add LineItem |
Update Cart Line Item: updateLineItem | Change LineItem Quantity |
Remove Cart Line Item: removeLineItem | Remove LineItem |
Update Cart details - email: updateCart | Set Customer Email |
Update Cart details - shipping address: updateCart | Set Shipping Address |
Update Cart details - billing address: updateCart | Set Billing Address |
Create Order from Cart: checkout | Create Order from Cart |
Get Orders for account: getOrders | Query Orders |
Get Shipping Methods: getShippingMethods | Query ShippingMethods |
Get Shipping Methods for matching location: getShippingMethods | Get matching Shipping Methods for a Location |
Get Shipping Methods for a Cart: getAvailableShippingMethods | Get matching Shipping Methods for a Cart |
Set Shipping Method: setShippingMethod | Set ShippingMethod |
Redeem Discount: redeemDiscount | Add DiscountCode |
Remove Discount: removeDiscount | Remove DiscountCode |
Add Payment by invoice: addPaymentByInvoice | Create Payment |
Update Payment: updatePayment | Update Payment |
Product
| commercetools Frontend action | commercetools commerce API action |
|---|---|
Get Product by SKU or ID: getProduct | Product Search |
Query Products with filters, sorting, and pagination: query | Product Search |
Query Categories with pagination: queryCategories | Query Categories |
Get searchable attributes: searchableAttributes | Query ProductTypes |
Project
| commercetools Frontend action | commercetools commerce API action |
|---|---|
Get Project settings: getProjectSettings | Get Project |
Wishlist
| commercetools Frontend action | commercetools commerce API action |
|---|---|
Create wishlist: createWishlist | Create ShoppingList |
Get a wishlist for an anonymous or logged in account: getWishlist | Get ShoppingList |
Add Product to wishlist: addToWishlist | Add ShoppingListLineItem |
Remove Product from wishlist: removeLineItem | Remove ShoppingListLineItem |
Update Product count from wishlist: updateLineItemCount | Change ShoppingListLineItem Quantity |