- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
addShippingMethodAdjustments - Cart Module Reference
This documentation provides a reference to the addShippingMethodAdjustments
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.
addShippingMethodAdjustments(data): Promise<ShippingMethodAdjustmentDTO[]>#
This method adds shipping method adjustments to shipping methods.
Example#
Parameters#
The shipping method adjustments to be created and added to
shipping methods. The shipping method is specified by the shipping_method_id
field.
shipping_method_id
field.Returns#
Promise
Promise<ShippingMethodAdjustmentDTO[]>The added shipping method adjustments.
Promise
Promise<ShippingMethodAdjustmentDTO[]>addShippingMethodAdjustments(data): Promise<ShippingMethodAdjustmentDTO>#
This method adds a shipping method adjustment to a shipping method.
Example#
Parameters#
The shipping method adjustment to be created and added to a
shipping method. The shipping method is specified by the shipping_method_id
field.
shipping_method_id
field.Returns#
Promise
Promise<ShippingMethodAdjustmentDTO>The added shipping method adjustment.
Promise
Promise<ShippingMethodAdjustmentDTO>addShippingMethodAdjustments(cartId, data, sharedContext?): Promise<ShippingMethodAdjustmentDTO[]>#
This method adds shipping method adjustments to shipping methods in a cart.
Example#
Parameters#
cartId
stringThe cart's ID.
The shipping method adjustments to be created and added to
shipping methods. The shipping method is specified by the shipping_method_id
field.
shipping_method_id
field.Returns#
Promise
Promise<ShippingMethodAdjustmentDTO[]>The added shipping method adjustments.
Promise
Promise<ShippingMethodAdjustmentDTO[]>Was this page helpful?