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

Get Conversion Rate

Developer Preview

Returns the conversion rate between 2 currencies.

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.

GET

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

Path Params

NAME
TYPE
DESCRIPTION
from
Required

string

Original currency.

to
Required

string

Target currency.

Response Object

NAME
TYPE
DESCRIPTION
rate

object

Conversion rate between 2 currencies.

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/rate/USD/convert/EUR' \
2-H 'Content-Type: application/json' \
3-H 'Authorization: <AUTH>'

Response

json

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