Regions API Routes
Regions are different countries or geographical regions that the commerce store serves customers in.
Customers can choose what region they're in to view prices of that region's currency.
Use these API routes to retrieve available regions in the store.
GET /store/regions#
List Regions
Retrieve a list of regions. The regions can be filtered by fields such as id. The regions can also be sorted or paginated.
Authentication: none.
Header parameters
x-publishable-api-keystringx-medusa-localestringOptionalen-USQuery 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[]Optionalcurrency_codestring | string[]Optional$andobject[]Optional$orobject[]Optionalwith_deletedbooleanOptionallocalestringOptionalen-USRequest examples
Responses
200 OK
limitnumberoffsetnumbercountnumberregionsobject[]The list of regions.
regionsobject[]400, 401, 404, 409, 422, 500: an error response is returned.
GET /store/regions/{id}#
Get a Region
Retrieve a region by its ID. You can expand the region's relations or select the fields that should be returned.
Authentication: none.
Path parameters
idstringHeader parameters
x-publishable-api-keystringx-medusa-localestringOptionalen-USQuery 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.localestringOptionalen-USRequest examples
Responses
200 OK
regionobjectThe region's details.
regionobject400, 401, 404, 409, 422, 500: an error response is returned.