- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
addShippingMethods - Cart Module Reference
This documentation provides a reference to the addShippingMethods
method. This belongs to the Cart Module.
Note: You should only use this methods when implementing complex customizations. For common cases, check out available workflows instead.
addShippingMethods(data): Promise<CartShippingMethodDTO>#
This method adds a shipping method to carts.
Example#
Parameters#
The shipping method to be created and added to the carts.
The cart is specified in the cart_id
field.
cart_id
field.Returns#
Promise
Promise<CartShippingMethodDTO>The added shipping method.
Promise
Promise<CartShippingMethodDTO>addShippingMethods(data): Promise<CartShippingMethodDTO[]>#
This method adds shipping methods to carts.
Example#
Parameters#
data
CreateShippingMethodDTO[]The shipping methods to be created and added to the carts.
The cart is specified in the cart_id
field.
data
CreateShippingMethodDTO[]cart_id
field.Returns#
Promise
Promise<CartShippingMethodDTO[]>The added shipping methods.
Promise
Promise<CartShippingMethodDTO[]>addShippingMethods(cartId, methods, sharedContext?): Promise<CartShippingMethodDTO[]>#
This method adds shipping methods to a cart.
Example#
Parameters#
cartId
stringThe cart's ID.
methods
CreateShippingMethodForSingleCartDTO[]The shipping methods to be created and added.
methods
CreateShippingMethodForSingleCartDTO[]Returns#
Promise
Promise<CartShippingMethodDTO[]>The added shipping methods.
Promise
Promise<CartShippingMethodDTO[]>Was this page helpful?