Skip to main content
POST

Initialize Widget

Authorizations

X-API-KEY
string
header
required

API Key for authentication

X-TIMESTAMP
string
header
required

Current timestamp in seconds since epoch

X-SIGNATURE
string
header
required

HMAC SHA256 signature of the request encoded in Base64

Body

application/json
asset_code
string

Cryptocurrency asset code

Example:

"USDT"

fiat_amount
string

Fiat amount the user will pay (buy flow)

Example:

"1000"

fiat_currency
string

Fiat currency code

Example:

"INR"

flow_type
enum<string>

Must be buy for this request shape

Available options:
buy
network_code
string

Blockchain network code for the asset

Example:

"tron"

payment_method
string

Fiat payment method (e.g. IMPS, UPI)

Example:

"IMPS"

wallet_address
string

User's wallet address to receive crypto

Example:

"TXqH4MnDw46f3yyrRwau3JF92Y1ie3pAXf"

Response

Widget initialized successfully. The widget_link opens the widget; query parameters include app_id and flow_type.

status
boolean
required
Example:

true

message
string
required
Example:

"Success"

data
object
required