Store
A store holds the main settings of the commerce shop. By default, only one store is created and used within the Medusa backend. It holds settings related to the name of the store, available currencies, and more.
Constructors
constructor
**new Store**()
A store holds the main settings of the commerce shop. By default, only one store is created and used within the Medusa backend. It holds settings related to the name of the store, available currencies, and more.
Properties
created_atDateRequiredThe date with timezone at which the resource was created.
The details of the enabled currencies in the store.
The details of the store's default currency.
Default: usd
default_currency_codestringRequiredThe three character currency code that is the default of the store.
default_location_idstringRequiredThe location ID the store is associated with.
The details of the store's default sales channel.
default_sales_channel_idnull | stringRequiredThe ID of the store's default sales channel.
idstringRequiredThe store's ID
invite_link_templatenull | stringRequiredA template to generate Invite links from
metadatanull | Record<string, unknown>RequiredAn optional key-value map with additional details
namestringRequiredThe name of the Store - this may be displayed to the Customer.
Default: Medusa Store
payment_link_templatenull | stringRequiredA template to generate Payment links from. Use {{cart_id}} to include the payment's
cart\_id in the link.swap_link_templatenull | stringRequiredA template to generate Swap links from. Use {{cart_id}} to include the Swap's
cart\_id in the link.updated_atDateRequiredThe date with timezone at which the resource was updated.
Methods
beforeInsert
Private **beforeInsert**(): void
Returns
void
voidvoidWas this section helpful?