- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
addLineItemTaxLines - Cart Module Reference
This documentation provides a reference to the addLineItemTaxLines
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.
addLineItemTaxLines(taxLines): Promise<LineItemTaxLineDTO[]>#
This method creates and adds line item tax lines.
Example#
Parameters#
taxLines
CreateLineItemTaxLineDTO[]The line item tax lines to be created.
taxLines
CreateLineItemTaxLineDTO[]Returns#
Promise
Promise<LineItemTaxLineDTO[]>The added line item tax lines.
Promise
Promise<LineItemTaxLineDTO[]>addLineItemTaxLines(taxLine): Promise<LineItemTaxLineDTO>#
This method creates and adds a line item tax line.
Example#
Parameters#
taxLine
CreateLineItemTaxLineDTOThe line item tax line to be created.
taxLine
CreateLineItemTaxLineDTOReturns#
Promise
Promise<LineItemTaxLineDTO>The added line item tax line.
Promise
Promise<LineItemTaxLineDTO>addLineItemTaxLines(cartId, taxLines, sharedContext?): Promise<LineItemTaxLineDTO[]>#
This method creates and adds one or more line item tax lines to a cart.
Example#
Parameters#
cartId
stringThe cart's ID.
taxLines
CreateLineItemTaxLineDTO | CreateLineItemTaxLineDTO[]The line item tax lines to add.
You can specify one or more items.
taxLines
CreateLineItemTaxLineDTO | CreateLineItemTaxLineDTO[]Returns#
Promise
Promise<LineItemTaxLineDTO[]>The added line item tax lines.
Promise
Promise<LineItemTaxLineDTO[]>Was this page helpful?