POST
/
api
/
service
/
fx
/
retrieve
JavaScript
import Ivy from '@getivy/node-sdk';

const client = new Ivy({
  apiKey: 'My API Key',
});

const fx = await client.fx.retrieve({ fxId: 'fxId' });

console.log(fx.id);
{
  "id": "<string>",
  "rate": "<string>",
  "targetAmount": "<string>",
  "sourceAmount": "<string>",
  "sourceCurrency": "EUR",
  "targetCurrency": "EUR",
  "metadata": {},
  "status": "success"
}

Authorizations

X-Ivy-Api-Key
string
header
required

API key for authentication

Body

application/json
fxId
string
required

The fxId attached to the transfer.

Response

200 - application/json

FX details retrieved successfully

id
string
required

The fxId attached to the transfer.

rate
string
required

The exchange rate for the given currency pair.

sourceCurrency
enum<string>
required

The source currency code

Available options:
EUR,
GBP,
USDC
targetCurrency
enum<string>
required

The target currency code

Available options:
EUR,
GBP,
USDC
status
enum<string>
required

The status of the FX transaction.

Available options:
success,
processing,
failed
targetAmount
string

The amount of the target currency for the given source amount.

sourceAmount
string

The amount of source currency to convert.

metadata
object

Additional metadata.