AdminCurrenciesResource
This class is used to send requests to Admin Currency API Routes. All its method
are available in the JS Client under the medusa.admin.currencies property.
All methods in this class require user authentication.
A store can use unlimited currencies, and each region must be associated with at least one currency. Currencies are defined within the Medusa backend. The methods in this class allow admins to list and update currencies.
Related Guide: How to manage currencies.
Methods
list
Retrieve a list of currencies. The currencies can be filtered by fields such as code. The currencies can also be sorted or paginated.
Example
To list currencies:
By default, only the first 20 records are retrieved. You can control pagination by specifying the limit and offset properties:
Parameters
Filters and pagination configurations to apply on retrieved currencies.
customHeadersRecord<string, any>RequiredDefault: {}
Returns
Resolves to the list of currencies with pagination fields.
update
Update a Currency's details.
Example
Parameters
codestringRequiredThe attributes to update in the currency.
customHeadersRecord<string, any>RequiredDefault: {}