- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
updateOrderTaxLinesWorkflow - Medusa Core Workflows Reference
This documentation provides a reference to the updateOrderTaxLinesWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow updates the tax lines of items and shipping methods in an order. It's used by other order-related workflows, such as the createOrderWorkflow to set the order's tax lines.
You can use this workflow within your customizations or your own custom workflows, allowing you to update an order's tax lines in your custom flows.
Source CodeExamples#
Steps#
Workflow Hook
Step conditioned by when
Input#
UpdateOrderTaxLinesWorkflowInput
UpdateOrderTaxLinesWorkflowInputThe data to update the order's tax lines.
UpdateOrderTaxLinesWorkflowInput
UpdateOrderTaxLinesWorkflowInputorder_id
stringThe ID of the order to update.
order_id
stringitem_ids
string[]OptionalThe IDs of the items to update the tax lines for.
item_ids
string[]Optionalshipping_method_ids
string[]OptionalThe IDs of the shipping methods to update the tax lines for.
shipping_method_ids
string[]Optionalforce_tax_calculation
booleanOptionalWhether to force the tax calculation. If enabled, the tax provider
may send request to a third-party service to retrieve the calculated
tax rates. This depends on the chosen tax provider in the order's tax region.
force_tax_calculation
booleanOptionalis_return
booleanOptionalWhether to calculate the tax lines for a return.
is_return
booleanOptionalThe shipping address to use for the tax calculation.
Was this page helpful?