- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
createRegionsWorkflow - Medusa Core Workflows Reference
This documentation provides a reference to the createRegionsWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow creates one or more regions. It's used by the Create Region Admin API Route.
You can use this workflow within your own customizations or custom workflows, allowing you to create regions in your custom flows.
Source CodeExamples#
Steps#
Workflow Hook
Step conditioned by when
Input#
CreateRegionsWorkflowInput
CreateRegionsWorkflowInput
CreateRegionsWorkflowInput
CreateRegionsWorkflowInputregions
CreateRegionDTO & object[]The regions to create.
regions
CreateRegionDTO & object[]Output#
CreateRegionsWorkflowOutput
CreateRegionsWorkflowOutput
CreateRegionsWorkflowOutput
CreateRegionsWorkflowOutputid
stringThe ID of the region.
id
stringname
stringThe name of the region.
name
stringcurrency_code
stringThe currency code of the region.
currency_code
stringautomatic_taxes
booleanSetting to indicate whether taxes need to be applied automatically
automatic_taxes
booleancountries
RegionCountryDTO[]The countries of the region.
countries
RegionCountryDTO[]payment_providers
PaymentProviderDTO[]Payment providers available in the region
payment_providers
PaymentProviderDTO[]created_at
stringThe date the region was created.
created_at
stringupdated_at
stringThe date the region was updated.
updated_at
stringmetadata
Record<string, any>OptionalHolds custom data in key-value pairs.
metadata
Record<string, any>OptionalWas this page helpful?