Stores API Routes
A store holds the main configuration and information of your commerce store, such as supported currencies or default sales channel.
By default, the MedusaGo application has one default store. There are no API routes to create more stores. Instead, you'd have to handle that customization manually.
These API routes allow admin users to manage their store.
GET /admin/stores#
List Stores
Retrieve a list of stores. The stores can be filtered by fields such as id. The stores can also be sorted or paginated.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Query parameters
fieldsstringOptional+ it will be added to the default fields, using - will remove it from the default fields. without prefix it will replace the entire default fields.offsetnumberOptionallimitnumberOptionalorderstringOptional-.qstringOptionalidstring | string[]Optionalnamestring | string[]Optional$andobject[]Optional$orobject[]Optionalwith_deletedbooleanOptionalRequest examples
Responses
200 OK
limitnumberoffsetnumbercountnumberstoresobject[]The list of stores.
storesobject[]estimate_countnumberOptional400, 401, 404, 409, 422, 500: an error response is returned.
GET /admin/stores/{id}#
Get a Store
Retrieve a store by its ID. You can expand the store's relations or select the fields that should be returned.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Path parameters
idstringQuery parameters
fieldsstringOptional+ it will be added to the default fields, using - will remove it from the default fields. without prefix it will replace the entire default fields.Request examples
Responses
200 OK
storeobjectThe store's details.
storeobject400, 401, 404, 409, 422, 500: an error response is returned.
POST /admin/stores/{id}#
Update a Store
Update a store's details.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Path parameters
idstringQuery parameters
fieldsstringOptional+ it will be added to the default fields, using - will remove it from the default fields. without prefix it will replace the entire default fields.Request body (application/json)
namestringOptionalsupported_currenciesobject[]OptionalThe store's supported currencies.
supported_currenciesobject[]Optionaldefault_sales_channel_idstringOptionaldefault_region_idstringOptionaldefault_location_idstringOptionalmetadataobjectOptionalsupported_localesobject[]OptionalThe store's supported locales.
supported_localesobject[]OptionalRequest examples
Responses
200 OK
storeobjectThe store's details.
storeobject400, 401, 404, 409, 422, 500: an error response is returned.