Search.../

getAllCurrencies( )

Gets the list of all currencies for which Wix supports conversion.

Description

The getAllCurrencies() function returns a Promise that resolves to an array of currencies. The array lists all currencies for which Wix supports conversion and their symbols.

Notes:

Authorization

Request

This endpoint does not take any parameters

Response Object

Fulfilled - The list of all supported currencies.

NAME
TYPE
DESCRIPTION
code
string

A 3-letter ISO-4217 currency code.

symbol
string

A currency symbol.

Status/Error Codes

Was this helpful?

Return a list of all supported currencies.

Copy Code
1import {currencies} from 'wix-pay-backend';
2
3currencies.getAllCurrencies()
4 .then((listOfAllCurrencies) => {
5 const firstCurrencyCode = listOfAllCurrencies[0].code;
6 const firstCurrencyCSymbol = listOfAllCurrencies[0].symbol;
7 });
8
9/*
10 * listOfAllCurrencies:
11 * [
12 * {"code": "BIF", "symbol": "FBu"},
13 * {"code": "CVE", "symbol": "$"},
14 * {"code": "KMF", "symbol": "CF"},
15 * ...
16 * ]
17 */