addShippingMethodTaxLines - Cart Module Reference
This documentation provides a reference to the addShippingMethodTaxLines
method. This belongs to the Cart Module.
addShippingMethodTaxLines(taxLines): Promise<ShippingMethodTaxLineDTO[]>
This method creates and adds shipping method tax lines.
Example
Parameters
The shipping method tax lines to be created.
Returns
The added shipping method tax lines.
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
The added shipping method tax line.
addShippingMethodTaxLines(cartId, taxLines, sharedContext?): Promise<ShippingMethodTaxLineDTO[]>
This method creates and adds one or more shipping method tax lines to a cart.
Example
Parameters
cartId
stringRequiredThe 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.Returns
The added shipping method tax lines.
Was this section helpful?