API Reference

Create Repay and Withdraw Session

This API is used to create a single-click repay and withdraw session.

Log in to see full request history
Body Params
string
Defaults to https://thirdfi.org

URL to redirect user after completing a gateway transaction

string
Defaults to https://thirdfi.org

URL to redirect user after cancelling a gateway transaction

string
required

A customer email needs to be provided when creating a session

number

AAVE version. 2 or 3 are supported. This is only applied for goerli, arbitrum, arbitrumTestnet, optimism, optimismmTestnet, polygon, mumbai, avalanche, fuji pools.

string
required
string
required

Address or symbol of the asset being repay from the pool

number
required

Amount of asset being repay. -1 can repay full amount of the asset.

number

Interest rate mode. 1 for stable rate, 2 for variable rate. This is only applied for goerli, arbitrum, arbitrumTestnet, optimism, optimismmTestnet, polygon, mumbai, avalanche, fuji pools.

string
required

Address or symbol of the asset being withdraw from the pool.

number

Amount of asset being withdraw. -1 can withdraw full amount of the asset. This is only applied for goerli, arbitrum, arbitrumTestnet, optimism, optimismmTestnet, polygon, mumbai, avalanche, fuji pools.

number

Amount of vToken being withdraw. -1 can withdraw full amount of the vToken. This is only applied for bsc, bscTestnet pools.

Responses

Language
Credentials
URL
Click Try It! to start a request and see the response here! Or choose an example:
application/json