- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
setShippingMethodAdjustments - Cart Module Reference
This documentation provides a reference to the setShippingMethodAdjustments
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.
This method sets the shipping method adjustment of shipping methods in a cart. The existing shipping method adjustments, except those included in the specified list, of an item are removed and replaced with the specified adjustments.
Example#
Parameters#
cartId
stringThe cart's ID.
The shipping method adjustments to add to the shipping
method. If the id
field is specified, the adjustment is kept in the shipping method's adjustment and its attributes can be updated.
id
field is specified, the adjustment is kept in the shipping method's adjustment and its attributes can be updated.Returns#
Promise
Promise<ShippingMethodAdjustmentDTO[]>The added shipping method adjustments.
Promise
Promise<ShippingMethodAdjustmentDTO[]>Was this page helpful?