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