setShippingMethodAdjustments - Cart Module Reference
This documentation provides a reference to the setShippingMethodAdjustments
method. This belongs to the Cart Module.
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
stringRequiredThe 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.Returns
The added shipping method adjustments.
Was this section helpful?