SessionDataRequestV2
Partner's display name
YourName
sourceDetails object
Source details - amount, currency, and payment method
Source amount used for buying crypto
100
Source currency used for buying crypto
USD
The payment method used by the customer
Possible values: [CARD
, BALANCE
]
CARD
Allow the customer to enter a wallet address, different from the provided one/s
true
destinationDetails object[]
A list of destination asset details - crypto currency, network, wallet address, wallet address tag
The cryptocurrency the customers wants to purchase
BTC
The network of the cryptocurrency
Mainnet
A crypto wallet address to receive the crypto funds
3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy
Tag, memo, or any additional identifier of the destination wallet address
abc123
Partner's unique reference id for the purchase (transaction ID)
480b3d52-8a7b-42f6-845a-1dd0fb3ed7c3
Partner's URL address on which webhooks will be received
http://example.com/webhook/url
returnUrl object
Return URLs provided by the partner
Success URL, used to return the customer back to the partner after a successful transaction
http://example.com/success
Failure URL, used to return the customer back to the partner after a failed transaction
http://example.com/failure
Default URL, used if success and/or failure URLs are not provided
http://example.com/default
The customer's country (ISO3166-1 alpha-3)
EST
Pre-select language for the customer. If not provided, the default language is English. Accepted values:
- en - English
- cs - Czech
- es - Spanish
- fr - French
- it - Italian
- el - Greek
- pl - Polish
- pt - Portuguese
- de - German
es
{
"partnerName": "YourName",
"sourceDetails": {
"currency": "EUR",
"amount": 100,
"preferredPaymentMethod": "CARD"
},
"allowWalletAddressChange": false,
"destinationDetails": [
{
"currency": "BTC",
"network": "Mainnet",
"walletAddress": "3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy"
}
],
"webhookUrl": "http://example.com/webhook/url",
"returnUrl": {
"success": "http://example.com/return?paymentStatus=success",
"default": "http://example.com/return?paymentStatus=default",
"failure": "http://example.com/return?paymentStatus=failure"
},
"countryId": "EST",
"language": "es"
}