- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
createTaxRegionsWorkflow - Medusa Core Workflows Reference
This documentation provides a reference to the createTaxRegionsWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow creates one or more tax regions. It's used by the Create Tax Region Admin API Route.
You can use this workflow within your own customizations or custom workflows, allowing you to create tax regions in your custom flows.
Source CodeExamples#
Steps#
Workflow Hook
Step conditioned by when
Input#
CreateTaxRegionsWorkflowInput
CreateTaxRegionsWorkflowInputThe tax regions to create.
CreateTaxRegionsWorkflowInput
CreateTaxRegionsWorkflowInputcountry_code
stringThe ISO 3 character country code of the tax region.
country_code
stringprovince_code
null | stringOptionalThe province code of the tax region.
province_code
null | stringOptionalparent_id
null | stringOptionalThe ID of the tax region's parent.
parent_id
null | stringOptionalHolds custom data in key-value pairs.
created_by
stringOptionalWho created the tax region. For example, the ID of
the user that created the tax region.
created_by
stringOptionaldefault_tax_rate
objectOptionalThe default tax rate of the tax region.
default_tax_rate
objectOptionalOutput#
CreateTaxRegionsWorkflowOutput
CreateTaxRegionsWorkflowOutputThe created tax regions.
CreateTaxRegionsWorkflowOutput
CreateTaxRegionsWorkflowOutputid
stringThe ID of the tax region.
id
stringcountry_code
stringThe ISO 2 character country code of the tax region.
country_code
stringprovince_code
null | stringThe province code of the tax region.
province_code
null | stringparent_id
null | stringThe ID of the tax region's parent tax region.
parent_id
null | stringmetadata
null | Record<string, unknown>Holds custom data in key-value pairs.
metadata
null | Record<string, unknown>created_at
string | DateThe creation date of the tax region.
created_at
string | Dateupdated_at
string | DateThe update date of the tax region.
updated_at
string | Datecreated_by
null | stringWho created the tax region. For example, the ID of the user
that created the tax region.
created_by
null | stringdeleted_at
null | string | DateThe deletion date of the tax region.
deleted_at
null | string | DateWas this page helpful?