API Reference

Create Payment Request

Create payment request for on-ramp transaction

Log in to see full request history
Body Params

Create payment request body

string
required

CryptoCurrency network that you would allow your customers to buy/sell. You can get the network name from GET /crypto-currencies. Example: 'mainnet', 'ethereum', 'bep2', 'matic'

string
required

The blockchain address of the user's wallet that the purchased cryptocurrency will be sent to.

string
required

ThirdFi user email address

string
required

Transaction Types, 'Buy', 'Sell'

string
required

The code of the fiat currency you want the customer to buy/sell cryptocurrency. You can get the symbol from GET /fiat-currencies. Example: 'INR', 'EUR', 'USD'.

number

An integer amount representing how much the customer wants to spend/receive. Users can't change the fiat amount if this is passed. This parameter will be skipped if fiatCurrency is not passed.

string
required

Crypto currency symbol that you would allow your customers to buy/sell. You can get the symbol from GET /crypto-currencies. Example: 'ETH', 'BTC', 'DAI'.

string

Redirect back to this URL, once the customer has completed their purchase/sell process.

number

An integer amount representing how much crypto the customer wants to sell. Users cannot change the crypto amount if this is passed.

boolean

When true, then the customer will not see anything about the cryptocurrency. This will hide all the information related to crypto completely. This parameter will be ignored if cryptoCurrencyCode, walletAddress is not passed. This parameter is helpful if you are creating an app for the users who do not know much about the cryptocurrencies.

string

Redirect back to this URL, once the customer has cancelled their purchase/sell process.

string
required

Payment method. You can get the payment method id from GET /fiat-currencies. Example: 'upi', 'credit_debit_card', 'gbp_bank_transfer'

Responses

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