- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
addShippingMethodTaxLines - Cart Module Reference
This documentation provides a reference to the addShippingMethodTaxLines
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.
addShippingMethodTaxLines(taxLines): Promise<ShippingMethodTaxLineDTO[]>#
This method creates and adds shipping method tax lines.
Example#
Parameters#
taxLines
CreateShippingMethodTaxLineDTO[]The shipping method tax lines to be created.
taxLines
CreateShippingMethodTaxLineDTO[]Returns#
Promise
Promise<ShippingMethodTaxLineDTO[]>The added shipping method tax lines.
Promise
Promise<ShippingMethodTaxLineDTO[]>addShippingMethodTaxLines(taxLine): Promise<ShippingMethodTaxLineDTO>#
This method creates and adds a shipping method tax line.
Example#
Parameters#
The shipping method tax line to be created.
Returns#
Promise
Promise<ShippingMethodTaxLineDTO>The added shipping method tax line.
Promise
Promise<ShippingMethodTaxLineDTO>addShippingMethodTaxLines(cartId, taxLines, sharedContext?): Promise<ShippingMethodTaxLineDTO[]>#
This method creates and adds one or more shipping method tax lines to a cart.
Example#
Parameters#
cartId
stringThe cart's ID.
The shipping item tax lines to add.
If the id
field is specified, the tax line is kept and its attributes can be updated.
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?