Before creating Transfer
This section describes step-by-step steps to be done, before you create your first payin transaction.
- Get a list of supported currencies enabled for your MID (API link):
curl --location 'https://sandbox-api.transfi.com/v3/config/supported-currencies?direction=deposit&limit=100&page=1&userType=individual' \ --header 'accept: application/json' \ --header 'mid: SAH1N3_STPN40_NA' \ --header 'Authorization: Basic =='{ "status": "success", "data": [ { "currency": "BRL", "logoUrl": "https://common-fiat-logos.s3.ap-southeast-1.amazonaws.com/brl.svg", "decimalPrecision": 2 }, { "currency": "EUR", "logoUrl": "https://common-fiat-logos.s3.ap-southeast-1.amazonaws.com/eur.svg", "decimalPrecision": 2 }, { "currency": "GHS", "logoUrl": "https://common-fiat-logos.s3.ap-southeast-1.amazonaws.com/ghs.svg", "decimalPrecision": 2 }, { "currency": "IDR", "logoUrl": "https://common-fiat-logos.s3.ap-southeast-1.amazonaws.com/idr.svg", "decimalPrecision": 0 } ], "pagination": { "total": 4, "pages": 1, "currentPage": 1, "limit": 100, "hasNext": false, "hasPrev": false } } - Get a list supported payment methods enabled for your MID (API link):
curl --location 'https://sandbox-api.transfi.com/v3/config/payment-methods?direction=deposit&limit=20&page=1&userType=individual&headlessMode=true¤cy=EUR' \ --header 'accept: application/json' \ --header 'mid: SAH1N3_NA_NA' \ --header 'Authorization: Basic =='{ "status": "success", "data": [ { "name": "Open Banking", "paymentCode": "sepa_pull", "paymentType": "bank_transfer", "logoUrl": "https://common-payment-methods-logo.s3.ap-southeast-1.amazonaws.com/open_banking.svg", "iframeSupport": false, "minAmount": 1, "maxAmount": 100000, "additionalDetails": {} }, { "name": "SEPA Bank Transfer", "paymentCode": "sepa_bank_va", "paymentType": "bank_transfer", "logoUrl": "https://common-payment-methods-logo.s3.ap-southeast-1.amazonaws.com/sepa_bank.svg", "iframeSupport": true, "minAmount": 1, "maxAmount": 150000, "additionalDetails": { "street": { "type": "string" }, "city": { "type": "string" }, "postalCode": { "type": "string" } } }, { "name": "SEPA Instant", "paymentCode": "sepa_bank", "paymentType": "bank_transfer", "logoUrl": "https://common-payment-methods-logo.s3.ap-southeast-1.amazonaws.com/sepa_bank_va.svg", "iframeSupport": true, "minAmount": 1, "maxAmount": 100000, "additionalDetails": { "street": { "type": "string" }, "city": { "type": "string" }, "postalCode": { "type": "string" } } } ], "pagination": { "total": 3, "pages": 1, "currentPage": 1, "limit": 1000, "hasNext": false, "hasPrev": true } } - Get exchange rates (payin currency to balanceCurrency) (API link):
curl --location 'https://sandbox-api.transfi.com/v3/exchange-rates?sourceCurrency=EUR&destinationCurrency=USDC&amount=250&paymentCode=sepa_bank&paymentType=bank_transfer&direction=forward&orderType=gaming' \ --header 'mid: SAH5F0_NA_NA' \ --header 'Authorization: Basic =='{ "sourceCurrency": "EUR", "sourceAmount": 250, "sourceAmountInUsd": 296.23, "sourceCurrencyType": "fiat", "destinationCurrency": "USDC", "destinationAmount": 296.228537, "destinationAmountInUsd": 296.23, "destinationCurrencyType": "crypto", "conversionRate": 0.8439431983, "minLimit": 22, "maxLimit": 84394.32, "orderType": "gaming", "direction": "forward", "processingFee": 0, "processingFeeRate": 0, "customerFee": 0, "customerFeeRate": 0, "rrFeeRate": 0, "discount": 0, "discountRate": 0, "additionalFee": 0, "fixedFee": { "totalFixedFees": 0, "totalFixedTfFees": 0, "totalFixedCxFees": 0, "fixedFeesCurrency": "", "fixedFeeDetails": { "baseFeeFixedRate": 0, "tfFeeFixedRate": 0, "cxFeeFixedRate": 0, "currency": "" } }, "totalFee": 0, "feeMode": "percentage" }
Updated 5 days ago