Currencies API Routes
A store can use unlimited currencies, and each region must be associated with at least one currency.
Currencies are defined by the Currency Module. Currency API Routes allow admins to list and update currencies.
GET /admin/currencies#
List Currencies
Retrieve a list of currencies. The currencies can be filtered by fields such as id. The currencies 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-.qstringOptionalcodestring | string[]Optional$andobject[]Optional$orobject[]Optionalwith_deletedbooleanOptionalRequest examples
Responses
200 OK
limitnumberoffsetnumbercountnumbercurrenciesobject[]The list of currencies.
currenciesobject[]estimate_countnumberOptional400, 401, 404, 409, 422, 500: an error response is returned.
GET /admin/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 using the query parameters.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Path parameters
codestringQuery 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
currencyobjectThe currency's currencies.
currencyobject400, 401, 404, 409, 422, 500: an error response is returned.