- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
updateTaxRegionsWorkflow - Medusa Core Workflows Reference
This documentation provides a reference to the updateTaxRegionsWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow updates one or more tax regions. It's used by the Update Tax Regions Admin API Route.
You can use this workflow within your own customizations or custom workflows, allowing you to update tax regions in your custom flows.
Source CodeExamples#
Steps#
Workflow Hook
Step conditioned by when
Input#
UpdateTaxRegionsWorkflowInput
UpdateTaxRegionsWorkflowInputThe tax regions to update.
UpdateTaxRegionsWorkflowInput
UpdateTaxRegionsWorkflowInputid
stringThe id of the tax region to update
id
stringprovince_code
null | stringOptionalThe province code of the tax region.
province_code
null | stringOptionalHolds custom data in key-value pairs.
Output#
UpdateTaxRegionsWorkflowOutput
UpdateTaxRegionsWorkflowOutputThe updated tax regions.
UpdateTaxRegionsWorkflowOutput
UpdateTaxRegionsWorkflowOutputid
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?