v1

latestOpenAPI 3.0.02026-07-14233043.9 KB
Payment

Create Payment Request

Create payment request for on-ramp transaction

post/api/v1/payment

Request body

networkstring 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'

walletAddressstring required

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

emailAddressstring required

Securo user email address

trxType'Buy' | 'Sell' required

Transaction Types, 'Buy', 'Sell'

fiatCurrencystring 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'.

fiatAmountnumber

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.

cryptoCurrencystring 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'.

redirectURLstring

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

cryptoAmountnumber

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

isDisableCryptoboolean

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.

cancellationUrlstring

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

paymentMethodstring required

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

Response

Payment request is created

statusCodenumber
messagestring