- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
updateTaxRatesWorkflow - Medusa Core Workflows Reference
This documentation provides a reference to the updateTaxRatesWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow updates tax rates matching specified filters. It's used by the Update Tax Rates Admin API Route.
You can use this workflow within your own customizations or custom workflows, allowing you to update tax rates in your custom flows.
Source CodeExamples#
Steps#
Input#
UpdateTaxRatesWorkflowInput
UpdateTaxRatesWorkflowInputThe data to update tax rates.
UpdateTaxRatesWorkflowInput
UpdateTaxRatesWorkflowInputselector
FilterableTaxRatePropsThe filters to select the tax rates to update.
selector
FilterableTaxRatePropsupdate
UpdateTaxRateDTOThe data to update in the tax rates.
update
UpdateTaxRateDTOOutput#
UpdateTaxRatesWorkflowOutput
UpdateTaxRatesWorkflowOutputThe updated tax rates.
UpdateTaxRatesWorkflowOutput
UpdateTaxRatesWorkflowOutputid
stringThe ID of the tax rate.
id
stringrate
null | numberThe rate to charge.
rate
null | numbercode
null | stringThe code the tax rate is identified by.
code
null | stringname
stringThe name of the Tax Rate.
name
stringmetadata
null | Record<string, unknown>Holds custom data in key-value pairs.
metadata
null | Record<string, unknown>tax_region_id
stringThe ID of the associated tax region.
tax_region_id
stringis_combinable
booleanWhether the tax rate should be combined with parent rates.
Learn more here.
is_combinable
booleanis_default
booleanWhether the tax rate is the default rate for the region.
is_default
booleancreated_at
string | DateThe creation date of the tax rate.
created_at
string | Dateupdated_at
string | DateThe update date of the tax rate.
updated_at
string | Datedeleted_at
null | DateThe deletion date of the tax rate.
deleted_at
null | Datecreated_by
null | stringWho created the tax rate. For example, the ID of the user that created the tax rate.
created_by
null | stringWas this page helpful?