addShippingMethods - Cart Module Reference
This documentation provides a reference to the addShippingMethods
method. This belongs to the Cart Module.
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
The added shipping method.
addShippingMethods(data): Promise<CartShippingMethodDTO[]>
This method adds shipping methods to carts.
Example
Parameters
The shipping methods to be created and added to the carts.
The cart is specified in the cart_id
field.
cart_id
field.Returns
The added shipping methods.
addShippingMethods(cartId, methods, sharedContext?): Promise<CartShippingMethodDTO[]>
This method adds shipping methods to a cart.
Example
Parameters
cartId
stringRequiredThe cart's ID.
The shipping methods to be created and added.
Returns
The added shipping methods.
Was this section helpful?