- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
findOneOrAnyRegionStep - Medusa Core Workflows Reference
This documentation provides a reference to the findOneOrAnyRegionStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step retrieves a region either by the provided ID or the first region in the first store.
Input#
FindOneOrAnyRegionStepInput
FindOneOrAnyRegionStepInputThe details of the region to find.
FindOneOrAnyRegionStepInput
FindOneOrAnyRegionStepInputregionId
stringOptionalThe ID of the region to find.
regionId
stringOptionalOutput#
RegionDTO
RegionDTOThe region details.
RegionDTO
RegionDTOid
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?