Currencies API Routes
A store has multiple currencies, and product prices can be different for each currency.
When retrieving product variant prices, you specify either the ID of a region or a currency that the customer selected.
These API routes allow customers to browse currencies.
GET /store/currencies#
List Currencies
Retrieve a list of currencies. The currencies can be filtered by fields such as code. The currencies 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-.qstringOptionalcodestring | string[]Optional$andobject[]Optional$orobject[]Optionalwith_deletedbooleanOptionallocalestringOptionalen-USRequest examples
Responses
200 OK
limitnumberoffsetnumbercountnumbercurrenciesobject[]The list of currencies.
currenciesobject[]estimate_countnumberOptional400, 401, 404, 409, 422, 500: an error response is returned.
GET /store/currencies/{code}#
Get a Currency
Retrieve a currency by its code. You can expand the currency's relations or select the fields that should be returned.
Authentication: none.
Path parameters
codestringHeader 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
currencyobjectThe currency's details.
currencyobject400, 401, 404, 409, 422, 500: an error response is returned.