getCurrencies
Fetches stores currencies.
It receives data from the getCurrencies endpoint exposed by the BigCommerce API
Signature
declare function getCurrencies(
context: BigcommerceIntegrationContext
): Promise<GetCurrenciesResponse>;Parameters
| Name | Required | Type | Description |
|---|---|---|---|
context | Required | BigcommerceIntegrationContext |
Returns
Returns a response with the currencies object used in the store
Referenced Types
Examples
Fetching currencies data.
import { sdk } from '~/sdk.config.ts';
const currencies = await sdk.bigcommerce.getCurrencies();