Currency Exchange Endpoint
The Currency Exchange endpoint allows you to get the exchange of any local currency compared against USD
Currency Exchange
Query Parameters
Name
Type
Description
Headers
Name
Type
Description
Example request
curl --location --request GET 'https://api-stg.lime-pay.com/v3/exchange_rates?country=VN&amount=1' \
--header 'Authorization: Bearer your_read_only_key_here'
import java.io.*;
import okhttp3.*;
public class main {
public static void main(String []args) throws IOException{
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
Request request = new Request.Builder()
.url("https://api-stg.lime-pay.com/v3/exchange_rates?country=VN&amount=10")
.method("GET", null)
.addHeader("Authorization", "Bearer your_read_only_key_here")
.build();
Response response = client.newCall(request).execute();
System.out.println(response.body().string());
}
}
{
"fx_rate": 26118.7500,
"currency": "VND",
"converted_amount": 26118.7500
}{
"code": 100,
"description": "Invalid credentials",
"type": "INVALID_CREDENTIALS"
}Response fields
Last updated
Was this helpful?

