curl --request POST \
--url https://sandbox.api.fin.com/v1/fee-calculation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"source_currency": "USD",
"source_amount": 3508679,
"destination_amount": 59456,
"destination_currency": "CAD",
"beneficiary_id": "ceb7e6c9-ef2a-41c2-8459-38d67ec3c655"
}
'{
"data": {
"source_currency": "USD",
"destination_currency": "CAD",
"source_amount": 3508679,
"exchange_rate": 1.45,
"destination_amount": 508679,
"valid_till": "2026-01-19T09:59:29Z",
"fee": {
"fixed": 25,
"percentage": 4,
"total": 29,
"is_fee_applied": true
}
}
}Calculate exchange rates and applicable fees for a transaction.
curl --request POST \
--url https://sandbox.api.fin.com/v1/fee-calculation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"source_currency": "USD",
"source_amount": 3508679,
"destination_amount": 59456,
"destination_currency": "CAD",
"beneficiary_id": "ceb7e6c9-ef2a-41c2-8459-38d67ec3c655"
}
'{
"data": {
"source_currency": "USD",
"destination_currency": "CAD",
"source_amount": 3508679,
"exchange_rate": 1.45,
"destination_amount": 508679,
"valid_till": "2026-01-19T09:59:29Z",
"fee": {
"fixed": 25,
"percentage": 4,
"total": 29,
"is_fee_applied": true
}
}
}source_amount or destination_amount
and the API will calculate the other based on the exchange rate.
If you want to make the calculation developer fee aware, you may pass in beneficiary_id instead of
destination_currency (the beneficiary model already has destination currency information). The response
will contain the developer fee if based on the values set when creating the beneficiary.
When using beneficiary_id, source_currency and destination_currency are optional as the
beneficiary model already contains this information.Bearer token authentication. Obtain token from /v1/oauth/token endpoint
ISO 4217 source currency code
^[A-Z]{3}$"USD"
Amount in source currency
3508679
Amount in destination currency
59456
ISO 4217 destination currency code
^[A-Z]{3}$"CAD"
Unique identifier for the beneficiary
"ceb7e6c9-ef2a-41c2-8459-38d67ec3c655"
Fee calculation completed successfully
Show child attributes