- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
updateStoresWorkflow - Medusa Core Workflows Reference
This documentation provides a reference to the updateStoresWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow updates stores matching the specified filters. It's used by the Update Store Admin API Route.
You can use this workflow within your customizations or your own custom workflows, allowing you to update stores within your custom flows.
Source CodeExamples#
Steps#
Input#
UpdateStoreWorkflowInput
UpdateStoreWorkflowInput
UpdateStoreWorkflowInput
UpdateStoreWorkflowInputselector
FilterableStorePropsThe filters to select the stores to update.
selector
FilterableStorePropsupdate
AdminUpdateStoreThe data to update in the stores.
update
AdminUpdateStoreOutput#
UpdateStoresWorkflowOutput
UpdateStoresWorkflowOutputThe updated stores.
UpdateStoresWorkflowOutput
UpdateStoresWorkflowOutputid
stringThe ID of the store.
id
stringname
stringThe name of the store.
name
stringmetadata
null | Record<string, any>Holds custom data in key-value pairs.
metadata
null | Record<string, any>created_at
stringThe created at of the store.
created_at
stringupdated_at
stringThe updated at of the store.
updated_at
stringThe supported currency codes of the store.
default_sales_channel_id
stringOptionalThe associated default sales channel's ID.
default_sales_channel_id
stringOptionaldefault_region_id
stringOptionalThe associated default region's ID.
default_region_id
stringOptionaldefault_location_id
stringOptionalThe associated default location's ID.
default_location_id
stringOptionalWas this page helpful?