- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
setLineItemTaxLines - Cart Module Reference
This documentation provides a reference to the setLineItemTaxLines
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 line item tax lines in a cart. The existing 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
(CreateLineItemTaxLineDTO | UpdateLineItemTaxLineDTO)[]The line item tax lines to add.
If the id
field is specified, the tax line is kept and its attributes can be updated.
taxLines
(CreateLineItemTaxLineDTO | UpdateLineItemTaxLineDTO)[]id
field is specified, the tax line is kept and its attributes can be updated.Returns#
Promise
Promise<LineItemTaxLineDTO[]>The added line item tax lines.
Promise
Promise<LineItemTaxLineDTO[]>Was this page helpful?