getCurrencies
Fetches stores currencies.
This method sends a GET request to the getCurrencies endpoint of the Vue Storefront API Middleware. In turn, it receives data from the getCurrencies endpoint exposed by the BigCommerce API
Signature
declare function getCurrencies$1(
options?: MethodOptions
): Promise<GetCurrenciesResponse>;Parameters
| Name | Required | Type | Description |
|---|---|---|---|
options | Optional | MethodOptions |
Returns
Returns a response with the currencies object used in the store
Referenced Types
Examples
Fetching currencies data. Sending it this way, the response can be cached safely.
import { sdk } from '~/sdk.config.ts';
const currencies = await sdk.bigcommerce.getCurrencies();