- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
updateTaxLinesWorkflow - Medusa Core Workflows Reference
This documentation provides a reference to the updateTaxLinesWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow updates a cart's tax lines that are applied on line items and shipping methods. You can update the line item's quantity, unit price, and more. This workflow is executed by the Calculate Taxes Store API Route.
You can use this workflow within your own customizations or custom workflows, allowing you to update a cart's tax lines in your custom flows.
Source CodeExamples#
Steps#
Input#
UpdateTaxLinesWorkflowInput
UpdateTaxLinesWorkflowInputThe details of the cart to update tax lines for.
UpdateTaxLinesWorkflowInput
UpdateTaxLinesWorkflowInputcart_id
stringThe cart's ID.
cart_id
stringThe items to update their tax lines.
If not specified, taxes are updated for all of the cart's
line items.
The shipping methods to update their tax lines.
If not specified, taxes are updated for all of the cart's
shipping methods.
force_tax_calculation
booleanOptionalWhether to force re-calculating tax amounts, which
may include sending requests to a third-part tax provider, depending
on the configurations of the cart's tax region.Default: false
force_tax_calculation
booleanOptionalfalse
Was this page helpful?