This is the early access documentation preview for Custom Views. This documentation might not be in sync with our official documentation.
Composable Commerce functionalities
The Store Launchpad for B2B uses the commercetools Composable Commerce APIs to execute actions.
The Store Launchpad for B2B implements Composable Commerce functionality by using the Composable Commerce extension. Following are the actions available in the Store Launchpad for B2B and the related Composable Commerce API actions.
For more information, see the following files in the actionControllers
folder of the Composable Commerce extension:
AccountController.ts
BusinessUnitController.ts
CartController.ts
ProductController.ts
ProjectController.ts
QuoteController.ts
WishlistController.ts
Account
commercetools Frontend action | commercetools Composable Commerce 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 address: addAddress | Add Address |
Update address: updateAddress | Change Address |
Remove address: removeAddress | Remove Address |
Add shipping address: addShippingAddress | Add Address, Add Shipping Address ID, Set Default Shipping Address |
Add billing address: addBillingAddress | Add Address, Add Billing Address ID, Set Default Billing Address |
Set default shipping address: setDefaultShippingAddress | Set Default Shipping Address |
Set default billing address: setDefaultBillingAddress | Set Default Billing Address |
Delete account: deleteAccount | Delete Customer |
Business Unit
commercetools Frontend action | commercetools Composable Commerce action |
---|---|
Get all Business Units getBusinessUnits | Query Business Units |
Get Business Unit by key: getByKey | Get Business Unit by Key |
Get Orders for Business Unit: getBusinessUnitOrders | Query Orders |
Create Business Unit: create | Create BusinessUnit |
Update Business Unit details:updateBusinessUnit | Update BusinessUnit |
Remove Business Unit:remove | Delete BusinessUnit |
Add address:addBusinessUnitAddress | Add Address |
Update address:updateBusinessUnitAddress | Change Address |
Remove address:removeBusinessUnitAddress | Remove Address |
Add Associate:addAssociate | Add Associate |
Remove Associate:removeAssociate | Remove Associate |
Get Associate RolesgetAssociateRoles | Query AssociateRoles |
Update Associate Roles:updateAssociate | Change Associate |
Cart
commercetools Frontend action | commercetools Composable Commerce 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 |
Query Orders: queryOrders | 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 |
Return Line Item: returnItems | Update Order |
Cancel Order: cancelOrder | Change OrderState |
Replicate Cart from Order: replicateCart | Replicate Cart |
Split Line Item shipping: splitLineItem | Update Cart |
Reassign Cart to another Customer: reassignCart | Update Cart |
Product
commercetools Frontend action | commercetools Composable Commerce action |
---|---|
Get Product by SKU or ID: getProduct | Query ProductProjections |
Query Products with filters, sorting, and pagination: query | Query ProductProjections |
Query Categories with pagination: queryCategories | Query Categories |
Get searchable attributes: searchableAttributes | Query ProductTypes |
Project
commercetools Frontend action | commercetools Composable Commerce action |
---|---|
Get Project settings: getProjectSettings | Get Project |
Quote
commercetools Frontend action | commercetools Composable Commerce action |
---|---|
Create Quote Request: createQuoteRequest | Create QuoteRequest |
Query Quote Requests: queryQuoteRequests | Query QuoteRequests |
Cancel Quote Request: cancelQuoteRequest | Change Quote Request State |
Query Quotes: query | Query Quotes |
Accept Quote: acceptQuote | Change Quote State |
Decline Quote: declineQuote | Change Quote State |
Renegotiate Quote: renegotiateQuote | Request Quote Renegotiation |
Wishlist
commercetools Frontend action | commercetools Composable Commerce action |
---|---|
Get all wishlists: getWishlists | Query ShoppingLists |
Get a wishlist for an anonymous or logged in account: getWishlist | Get ShoppingList |
Create wishlist: createWishlist | Create ShoppingList |
Delete wishlist: deleteWishlist | Delete ShoppingList by ID |
Add Product to wishlist: addToWishlist | Add ShoppingListLineItem |
Remove Product from wishlist: removeLineItem | Remove ShoppingListLineItem |
Update Product count from wishlist: updateLineItemCount | Change ShoppingListLineItem Quantity |
Update wishlist details: updateWishlist | Update ShoppingList by ID |