createRegionsStep - Medusa Core Workflows Reference
This documentation provides a reference to the createRegionsStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step creates one or more regions.
Example#
Input#
CreateRegionDTO[]
CreateRegionDTO[]
CreateRegionDTO[]
CreateRegionDTO[]name
stringThe name of the region.
name
stringcurrency_code
stringThe currency code of the region.
currency_code
stringautomatic_taxes
booleanOptionalSetting to indicate whether taxes need to be applied automatically
automatic_taxes
booleanOptionalcountries
string[]OptionalThe region's countries.
countries
string[]Optionalpayment_providers
string[]OptionalThe region's payment providers.
payment_providers
string[]OptionalHolds custom data in key-value pairs.
Output#
RegionDTO[]
RegionDTO[]
RegionDTO[]
RegionDTO[]id
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?