Skip to main content
POST
/
v1
/
fee-calculation
Calculate Fees
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",
  "destination_currency": "CAD",
  "beneficiary_id": "ceb7e6c9-ef2a-41c2-8459-38d67ec3c655",
  "source_amount": 3508679,
  "destination_amount": 59456
}
'
{
  "data": {
    "source_currency": "USD",
    "destination_currency": "AUD",
    "source_amount": 350,
    "exchange_rate": 145,
    "destination_amount": 465,
    "fee": {
      "fixed": 25,
      "percentage": 4,
      "total": 29,
      "is_fee_applied": true
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Obtain token from /v1/oauth/token endpoint

Body

application/json
source_currency
string
required

ISO 4217 source currency code

Example:

"USD"

destination_currency
string
required

ISO 4217 destination currency code

Example:

"CAD"

beneficiary_id
string<uuid>
required

Unique identifier for the beneficiary

Example:

"ceb7e6c9-ef2a-41c2-8459-38d67ec3c655"

source_amount
number

Amount in source currency (provide either this or destination_amount)

Example:

3508679

destination_amount
number

Amount in destination currency (provide either this or source_amount)

Example:

59456

Response

Fee calculation completed successfully

data
object