Get a quote
Get a quote for a Swan International Credit Transfer.
Call the internationalCreditTransferQuote
query to get a quote for your transfer, which includes:
- Current
exchangeRate
. - Amount you're sending in your currency (
sourceAmount
). - Fees (
feeAmount
). - Amount your recipient should receive in their currency (
targetAmount
).
For information only
The exchange rate in the quote is for your information only, so running this query is optional. Only after initiating an International Credit Transfer is the exchange rate locked for one business day.
Guide​
- Call the
internationalCreditTransferQuote
query. - Add your account ID.
- Check the boxes for all fields:
targetAmount
,currency
, andvalue
exchangeRate
feesAmount
,currency
, andvalue
sourceAmount
,currency
, andvalue
targetAmount
,currency
, andvalue
- For
targetAmount
, enter the currency and, for value, the amount you'd like to send.- Use 3-letter currency codes with capital letters, according to ISO 4217.
Query​
🔎 Open the query in API Explorer
query getQuote {
internationalCreditTransferQuote(
accountId: "$YOUR_ACCOUNT_ID"
targetAmount: { value: "500", currency: "USD" }
) {
exchangeRate
feesAmount {
currency
value
}
sourceAmount {
currency
value
}
targetAmount {
currency
value
}
}
}
Payload​
In the response, you'll receive:
- The exchange rate.
- The currency and value amount for both the fees (
feesAmount
) and the transfer (sourceAmount
).- The debtor must have sufficient funds to cover
feesAmount
andsourceAmount
.
- The debtor must have sufficient funds to cover
- The
targetAmount
, or the amount the beneficiary will receive.
In this example, the payer must have at least 482.58 EUR in their account. The beneficiary will receive 500 USD.
{
"data": {
"internationalCreditTransferQuote": {
"exchangeRate": "1.09003",
"feesAmount": {
"currency": "EUR",
"value": "7.75"
},
"sourceAmount": {
"currency": "EUR",
"value": "458.70"
},
"targetAmount": {
"currency": "USD",
"value": "500.00"
}
}
}
}