Before creating an Offramp Transfer


  • Get a list of supported currencies enabled for your MID (API link):
    curl --location 'https://sandbox-api.transfi.com/v3/config/supported-currencies?direction=withdraw&limit=100&page=1&userType=individual' \
    --header 'accept: application/json' \
    --header 'mid: SAH1N3_STPN40_NA' \
    --header 'Authorization: Basic =='
    {
        "status": "success",
        "data": [
            {
                "currency": "EUR",
                "logoUrl": "https://common-fiat-logos.s3.ap-southeast-1.amazonaws.com/eur.svg",
                "decimalPrecision": 2
            },
            {
                "currency": "PHP",
                "logoUrl": "https://common-fiat-logos.s3.ap-southeast-1.amazonaws.com/php.svg",
                "decimalPrecision": 2
            },
            {
                "currency": "VND",
                "logoUrl": "https://common-fiat-logos.s3.ap-southeast-1.amazonaws.com/vnd.svg",
                "decimalPrecision": 0
            }
        ],
        "pagination": {
            "total": 3,
            "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=withdraw&limit=20&page=1&userType=individual&currency=EUR' \
    --header 'accept: application/json' \
    --header 'mid: SAH1N3_NA_NA' \
    --header 'Authorization: Basic =='
    {
        "status": "success",
        "data": [
            {
                "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",
                "minAmount": 1,
                "maxAmount": 150000,
                "additionalDetails": {
                    "firstName": {
                        "type": "string"
                    },
                    "lastName": {
                        "type": "string"
                    },
                    "email": {
                        "type": "string"
                    },
                    "iban": {
                        "type": "string",
                        "min": 15,
                        "max": 34,
                        "pattern": "^[A-Z]{2}[0-9]{2}[A-Z0-9]{1,30}$"
                    },
                    "bic": {
                        "type": "string",
                        "min": 4,
                        "max": 12,
                        "pattern": "^[A-Z0-9]+$"
                    },
                    "street": {
                        "type": "string"
                    },
                    "city": {
                        "type": "string"
                    },
                    "postalCode": {
                        "type": "string"
                    }
                }
            }
        ],
        "pagination": {
            "total": 1,
            "pages": 1,
            "currentPage": 1,
            "limit": 20,
            "hasNext": false,
            "hasPrev": false
        }
    }
  • Get a list of crypto tokens available (API link):
    curl --location 'https://sandbox-api.transfi.com/v3/config/list-tokens?limit=10&page=1&userType=individual&direction=withdraw' \
    --header 'accept: application/json' \
    --header 'mid: SAH1N3_STYS7H_NA' \
    --header 'Authorization: Basic =='
    {
        "status": "success",
        "data": [
            {
                "symbol": "USDT",
                "cryptoTicker": "USDTTON",
                "network": "TON",
                "logo": "https://crypto-token-logos.s3.ap-southeast-1.amazonaws.com/usdtton.svg",
                "description": "Tether"
            },
            {
                "symbol": "PYUSD",
                "cryptoTicker": "PYUSD",
                "network": "Ethereum",
                "logo": "https://crypto-token-logos.s3.ap-southeast-1.amazonaws.com/pyusd.svg",
                "description": "PayPal USD"
            },
            {
                "symbol": "SWEAT",
                "cryptoTicker": "SWEATNEAR",
                "network": "Near",
                "logo": "https://crypto-token-logos.s3.ap-southeast-1.amazonaws.com/sweatnear.svg",
                "description": "Sweat"
            },
            {
                "symbol": "SCRT",
                "cryptoTicker": "SCRT",
                "network": "Secret",
                "logo": "https://crypto-token-logos.s3.ap-southeast-1.amazonaws.com/scrt.svg",
                "description": "Secret Network"
            },
            {
                "symbol": "NEAR",
                "cryptoTicker": "NEAR",
                "network": "Near",
                "logo": "https://crypto-token-logos.s3.ap-southeast-1.amazonaws.com/near.svg",
                "description": "Near"
            },
            {
                "symbol": "IMX",
                "cryptoTicker": "IMX",
                "network": "Ethereum",
                "logo": "https://crypto-token-logos.s3.ap-southeast-1.amazonaws.com/imx.svg",
                "description": "Immutable X"
            },
            {
                "symbol": "EURC",
                "cryptoTicker": "EURC",
                "network": "Ethereum",
                "logo": "https://crypto-token-logos.s3.ap-southeast-1.amazonaws.com/euroc.svg",
                "description": "Euro Coin"
            },
            {
                "symbol": "XRD",
                "cryptoTicker": "XRD",
                "network": "Radix",
                "logo": "https://crypto-token-logos.s3.ap-southeast-1.amazonaws.com/xrd.svg",
                "description": "Radix"
            },
            {
                "symbol": "USDP",
                "cryptoTicker": "USDP",
                "network": "Playnance",
                "logo": "https://crypto-token-logos.s3.ap-southeast-1.amazonaws.com/usdp.svg",
                "description": "Playnance USD"
            },
            {
                "symbol": "USDC",
                "cryptoTicker": "USDCARB",
                "network": "Arbitrum",
                "logo": "https://crypto-token-logos.s3.ap-southeast-1.amazonaws.com/usdcarb.svg",
                "description": "USD Coin"
            }
        ],
        "pagination": {
            "total": 92,
            "pages": 10,
            "currentPage": 1,
            "limit": 10,
            "hasNext": true,
            "hasPrev": false
        }
    }
  • Get exchange rates for the offramp transaction (API link):
    curl --location 'https://sandbox-api.transfi.com/v3/exchange-rates?sourceCurrency=USDC&destinationCurrency=EUR&amount=250&toPaymentCode=sepa_bank&toPaymentType=bank_transfer&direction=forward&orderType=offramp' \
    --header 'mid: SAH5F0_NA_NA' \
    --header 'Authorization: Basic =='
    {
        "sourceCurrency": "USDC",
        "sourceAmount": 250,
        "sourceAmountInUsd": 250,
        "sourceCurrencyType": "crypto",
        "destinationCurrency": "EUR",
        "destinationAmount": 210.985799575,
        "destinationAmountInUsd": 250,
        "destinationCurrencyType": "fiat",
        "conversionRate": 0.8439431983,
        "minLimit": 0.995328,
        "maxLimit": 100000.000201,
        "orderType": "offramp",
        "direction": "forward",
        "processingFee": 0,
        "processingFeeRate": 0,
        "customerFee": 0,
        "customerFeeRate": 0,
        "rrFeeRate": 0,
        "discount": 0,
        "discountRate": 0,
        "additionalFee": 0,
        "additionalFeeRate": 0,
        "fixedFee": {
            "totalFixedFees": 0,
            "totalFixedTfFees": 0,
            "totalFixedCxFees": 0,
            "fixedFeesCurrency": "",
            "fixedFeeDetails": {
                "baseFeeFixedRate": 0,
                "tfFeeFixedRate": 0,
                "cxFeeFixedRate": 0,
                "currency": ""
            }
        },
        "totalFee": 0,
        "feeMode": "percentage"
    }