- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
setTaxRateRulesWorkflow - Medusa Core Workflows Reference
This documentation provides a reference to the setTaxRateRulesWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow sets the rules of tax rates.
You can use this workflow within your own customizations or custom workflows, allowing you to set the rules of tax rates in your custom flows.
Source CodeExamples#
Steps#
Workflow Hook
Step conditioned by when
Input#
SetTaxRatesRulesWorkflowInput
SetTaxRatesRulesWorkflowInputThe data to set the rules for tax rates.
SetTaxRatesRulesWorkflowInput
SetTaxRatesRulesWorkflowInputtax_rate_ids
string[]The IDs of the tax rates to set their rules.
tax_rate_ids
string[]rules
Omit<CreateTaxRateRuleDTO, "tax_rate_id">[]The rules to create for the tax rates.
rules
Omit<CreateTaxRateRuleDTO, "tax_rate_id">[]Output#
TaxRateRuleDTO[]
TaxRateRuleDTO[]
TaxRateRuleDTO[]
TaxRateRuleDTO[]TaxRateRuleDTO
TaxRateRuleDTOThe tax rate rule details.
TaxRateRuleDTO
TaxRateRuleDTOWas this page helpful?