Before creating Fiat Payin order

This section describes step-by-step steps to be done, before you create your first payin transaction.

  • GET /supported-currencies
    Fetch list of all supported currencies enabled for your MID.
curl --request GET \
     --url 'https://sandbox-api.transfi.com/v2/supported-currencies?direction=deposit&page=1&limit=5' \
     --header 'MID: ABCDEF_NA_NA' \
     --header 'accept: application/json' \
     --header 'authorization: Basic dHJhbnNmaV9xYT'
{
    "status": "success",
    "total": 3,
    "pages": 1,
    "data": [
        {
            "currency": "EUR",
            "logoUrl": "https://common-fiat-logos.s3.ap-southeast-1.amazonaws.com/eur.svg",
            "decimalPrecision": 2
        },
        {
            "currency": "IDR",
            "logoUrl": "https://common-fiat-logos.s3.ap-southeast-1.amazonaws.com/idr.svg",
            "decimalPrecision": 0
        },
        {
            "currency": "PHP",
            "logoUrl": "https://common-fiat-logos.s3.ap-southeast-1.amazonaws.com/php.svg",
            "decimalPrecision": 2
        },
    ]
}
  • GET /payment-methods
    Fetch list of all supported payment methods enabled for your MID.
curl --request GET \
     --url 'https://sandbox-api.transfi.com/v2/payment-methods?currency=EUR&limit=5&page=1&direction=deposit&headlessMode=false&userType=individual' \
     --header 'MID: ABCDEF_NA_NA' \
     --header 'accept: application/json' \
     --header 'authorization: Basic dHJhbnNmaV9xYT'
{
    "status": "success",
    "total": 2,
    "pages": 1,
    "paymentMethods": [
        {
            "paymentCode": "sepa_pull",
            "name": "Open Banking",
            "minAmount": 1,
            "maxAmount": 100000,
            "logoUrl": "https://common-payment-methods-logo.s3.ap-southeast-1.amazonaws.com/open_banking.svg",
            "paymentType": "bank_transfer"
        },
        {
            "paymentCode": "sepa_bank",
            "name": "SEPA Instant",
            "minAmount": 1,
            "maxAmount": 100000,
            "logoUrl": "https://common-payment-methods-logo.s3.ap-southeast-1.amazonaws.com/sepa_bank_va.svg",
            "paymentType": "bank_transfer"
        }
    ]
}
  • GET /exchange-rates/deposit
    Fetch the exchange rate for the payin fiat currency equivalent to stable currency (USDT/USDC) using this
curl --request GET \
     --url 'https://sandbox-api.transfi.com/v2/exchange-rates/deposit?amount=100&currency=EUR&paymentCode=sepa_pull&direction=forward&balanceCurrency=USDC' \
     --header 'accept: application/json' \
     --header 'MID: ABCDEF_NA_NA' \
     --header 'authorization: Basic dHJhbnNmaV9xYT'
{
  "status": "success",
  "data": {
    "fiatTicker": "EUR",
    "fiatAmount": 100,
    "withdrawAmount": 114.213374,
    "exchangeRate": 1.1561228264890864,
    "quoteId": "f805cfb5-04d2-4f48-94d6-6a190caa2701",
    "fees": {
      "processingFee": 1.71,
      "partnerFee": 0,
      "totalFee": 1.21,
      "discount": 0.5
    }
  }
}