- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
updateShippingMethods - Cart Module Reference
This documentation provides a reference to the updateShippingMethods
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.
updateShippingMethods(data): Promise<CartShippingMethodDTO[]>#
This method updates existing shipping methods.
Example#
Parameters#
data
UpdateShippingMethodDTO[]A list of shipping methods to update
data
UpdateShippingMethodDTO[]Returns#
Promise
Promise<CartShippingMethodDTO[]>The updated shipping methods.
Promise
Promise<CartShippingMethodDTO[]>updateShippingMethods(shippingMethodId, data, sharedContext?): Promise<CartShippingMethodDTO>#
This method updates an existing shipping method.
Example#
Parameters#
shippingMethodId
stringThe shipping methods's ID.
data
Partial<UpdateShippingMethodDTO>The attributes to update in the shipping method.
data
Partial<UpdateShippingMethodDTO>Returns#
Promise
Promise<CartShippingMethodDTO>The updated shipping method.
Promise
Promise<CartShippingMethodDTO>Was this page helpful?