- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
getTaxLines - Tax Module Reference
This documentation provides a reference to the getTaxLines
method. This belongs to the Tax Module.
Note: You should only use this methods when implementing complex customizations. For common cases, check out available workflows instead.
This method retrieves tax lines for taxable items and shipping methods in a cart.
Learn more in this guide.
Example#
Parameters#
items
(TaxableItemDTO | TaxableShippingDTO)[]The items and shipping methods to retrieve their tax lines.
items
(TaxableItemDTO | TaxableShippingDTO)[]calculationContext
TaxCalculationContextThe context to pass to the underlying tax provider. It provides more
details that are useful to provide accurate tax lines.
calculationContext
TaxCalculationContextReturns#
Promise
Promise<(ItemTaxLineDTO | ShippingTaxLineDTO)[]>The item and shipping methods' tax lines.
Promise
Promise<(ItemTaxLineDTO | ShippingTaxLineDTO)[]>Was this page helpful?