Before creating Fiat Payin (Gaming) Order

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

  • 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=EUR' \
     --header 'accept: application/json' \
     --header 'MID: ABCDEF_NA_NA' \
     --header 'authorization: Basic dHJhbnNmaV9xYT'
{
  "status": "success",
  "data": {
    "fiatTicker": "EUR",
    "fiatAmount": 10,
    "withdrawAmount": 9.69375,
    "exchangeRate": 1.041667,
    "quoteId": "a3c99d01-5f91-48db-a7d0-12746f704745",
    "fees": {
      "processingFee": 0.694,
      "partnerFee": 0,
      "totalFee": 0.694
    }
  }
}