Skip to main content

SendToken

Creates an outgoing payment.

POST Wallet/SendToken

Input

ParameterTypeRequiredDescriptionDefault
MerchantIdstringyesyour merchant ID
OrderIdstringnoany string generated by you used to track the order in your systemnull
OrderAmountnumbernothe order amount in OrderCurrencynull
OrderCurrencystringnofiat order currency'USD'
TokenAmountnumbernothe amount in assetnull
AssetCodestringyesasset code
BlockchainCodestringyesblockchain code
RecipientAddressstringyesrecipient wallet address
UserNamestringnothe user's name to use for the email payment notificationnull
UserEmailstringnothe user's email address for the email payment notificationnull
Memostringnoa short description of the invoice to be displayed to the usernull
TimeExpirestringnotime when to cancel invoice automatically if not paid30 days from now
SendEmailbooleannowhether or not to send the payment notification to the user by emailfalse
PostbackUrlstringnooverrides the postback URL specified in settings in Merchant Panel (useful for custom plugins)null

You can either specify the OrderAmount and OrderCurrency or the TokenAmount. If the OrderAmount and OrderCurrency are specified, the TokenAmount will be computed automatically. If the TokenAmount is specified, the payment will be made for the exact TokenAmount.

Output

ParameterTypeDescription
Idstringinvoice ID
TokenAmountstringthe amount of asset sent
AssetCodestringasset code
BlockchainCodestringblockchain code
RecipientAddressstringrecipient wallet address

Example Input

{
"MerchantId": "8XOZ64KC9X",
"OrderId": "123465",
"OrderAmount": 19.95,
"OrderCurrency": "USD",
"TokenAmount": null,
"AssetCode": "USDC",
"BlockchainCode": "ETH",
"RecipientAddress": "0x1cfC8072e7348314167CeaA4Bce90c5C2F8dBea1",
"UserName": "John Smith",
"UserEmail": "name@email.com",
"Memo": "This payment is for order 123465",
"SendEmail": false,
"PostbackUrl": null,
}

Example Output

{
"Id": "I5smweJW1QettDUA",
"TokenAmount": 19.95,
"AssetCode": "USDC",
"BlockchainCode": "ETH",
"RecipientAddress": "0x1cfC8072e7348314167CeaA4Bce90c5C2F8dBea1",
}