- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
createTaxRateRulesWorkflow - Medusa Core Workflows Reference
This documentation provides a reference to the createTaxRateRulesWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow creates one or more tax rules for rates. It's used by the Create Tax Rules for Rates Admin API Route.
You can use this workflow within your own customizations or custom workflows, allowing you to create tax rules for rates in your custom flows.
Source CodeExamples#
Steps#
Workflow Hook
Step conditioned by when
Input#
CreateTaxRateRulesWorkflowInput
CreateTaxRateRulesWorkflowInputThe data to create tax rules for rates.
CreateTaxRateRulesWorkflowInput
CreateTaxRateRulesWorkflowInputrules
CreateTaxRateRuleDTO[]The rules to create.
rules
CreateTaxRateRuleDTO[]Output#
CreateTaxRateRulesWorkflowOutput
CreateTaxRateRulesWorkflowOutputThe created tax rules for rates.
CreateTaxRateRulesWorkflowOutput
CreateTaxRateRulesWorkflowOutputid
stringThe ID of the tax rate rule.
id
stringreference
stringThe snake-case name of the data model that the tax rule references.
For example, product
.
Learn more in this guide.
reference
stringproduct
.
Learn more in this guide.reference_id
stringThe ID of the record of the data model that the tax rule references.
For example, prod_123
.
Learn more in this guide.
reference_id
stringprod_123
.
Learn more in this guide.tax_rate_id
stringThe associated tax rate's ID.
tax_rate_id
stringcreated_at
string | DateThe creation date of the tax rate rule.
created_at
string | Dateupdated_at
string | DateThe update date of the tax rate rule.
updated_at
string | Datecreated_by
null | stringWho created the tax rate rule. For example, the ID of the user
that created the tax rate rule.
created_by
null | stringThe associated tax rate.
metadata
null | Record<string, unknown>OptionalHolds custom data in key-value pairs.
metadata
null | Record<string, unknown>OptionalWas this page helpful?