Search.../
  1. Home
  2. Getting Started
  3. Overview
Generate a test token to explore our APIs

Convert Currency

Developer Preview

Returns a list of converted amounts, from the original (from) currency to the target (to) currency.

Authorization

This endpoint requires an authorization header - pass the access token from the OAuth installation flow.

Permissions

This endpoint requires the Manage Currencies permission scope.

POST

https://www.wixapis.com/currency_converter/v1/currencies/amounts/{from}/convert/{to}

Path Params

NAME
TYPE
DESCRIPTION
from
Required

string

Original currency.

to
Required

string

Target currency.

Body Params

NAME
TYPE
DESCRIPTION
amounts

Array<object>

Amounts to convert.

Response Object

NAME
TYPE
DESCRIPTION
amounts

Array<object>

Converted amounts.

rateTimestamp

string

Status/Error Codes

The response will include an HTTP status code.

Was this helpful?

Request

curl

Copy Code
1curl 'https://www.wixapis.com/currency_converter/v1/currencies/amounts/USD/convert/EUR' \
2--data-binary '{
3 "amounts": [
4 {
5 "value": 30,
6 "decimal_places": 0
7 }
8 ]
9 }' \
10-H 'Content-Type: application/json' \
11-H 'Authorization: <AUTH>'

Response

json

1
2{
3 "amounts": [ {
4 "value": "270233235270",
5 "decimalPlaces": 10
6 }],
7 "rateTimestamp": "2020-03-17T10:00:00.402Z"
8}