Bank

Estimate bank transfer

Estimates the amounts that would be charged for a bank transfer according to the current market rates.

post/api/v2/bank/transfer/estimate

Request

  • Base URL
    https://api-business.wirexapp.com
  • URL
    https://api-business.wirexapp.com/api/v2/bank/transfer/estimate
  • Auth
    API key in header Authorization

Request body */*

account_idstring required

Id of the bank account that should be used for the operation

amountnumber required

Fiat amount in currency of the account that should be transferred

referencestring

Comment that should be attached to the transfer

tokensstring[]

A list of token addresses that the estimation should be done against. If not provided, estimation will be done against all tokens that are available for the corporation

Example request

{
  "account_id": "00000000-0000-0000-0000-000000000001:00000000-0000-0000-0000-000000000002",
  "amount": 100.06,
  "recipient": {
    "company_name": "Acme Inc.",
    "first_name": "Alex",
    "last_name": "Grey"
  },
  "recipient_account": {
    "account_number": "12345678",
    "bank_name": "The Bank of New York",
    "bic": "COBADEFF",
    "clabe": "002123456789012345",
    "iban": "DE89370400440532013000",
    "legal_address": {
      "city": "New York",
      "country": "US",
      "line1": "123 Main St",
      "line2": "Apt 4B",
      "state": "NY",
      "zip_code": "10001"
    },
    "routing_number": "123456789",
    "sort_code": "123456"
  },
  "reference": "Payment for the services",
  "tokens": [
    "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
    "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599"
  ]
}

Response

OK

amountnumber required

Amount that would be transferred in account currency

currencystring required

Currency of the account that the amount would be transferred to

expires_atinteger required

UTC timestamp when the estimation will expire

idstring required

Identifier of the estimation

Example response

{
  "amount": 100.06,
  "currency": "EUR",
  "estimated_amounts": [
    {
      "amount": 109.41123037,
      "fee_amount": 0.5,
      "fee_precise_amount": "500000000000000000",
      "precise_amount": "109411230370000000000",
      "rate": 1.09345623,
      "token_address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
      "token_symbol": "USDC"
    }
  ],
  "expires_at": 1617223200,
  "id": "00000000-0000-0000-0000-000000000001"
}

Changes

No recorded changes to this operation across all 1 revision of this API.