โ๏ธTransactions
API's to manage Transactions.
Create Payout Request
Payouts can be created for users which will be deducted from the Tenant Distribution Wallet.
Create a payout request that will credit a user's balance. All credits will be locked/pending until the funds are confirmed..
Your unique API Key.
Your API Hash.
Third party unique transaction id.
NovaX user id.
Amount to credit.
Wallet to credit. e.g. "main", "ton".
Payout request successfully created.
User with the same third party Id already exists.
Internal error.
POST /transactions/payout HTTP/1.1
Host:
x-api-key: text
x-api-hash: text
Content-Type: application/json
Accept: */*
Content-Length: 70
{
"thirdPartyId": "text",
"userId": "text",
"amount": 1,
"walletType": "text"
}
{
"transactionId": "text",
"thirdPartyId": "text"
}
Create Staking Payout Request
Staking allows users to earn rewards by holding and locking their cryptocurrencies over a period.
Your unique API Key.
Your API Hash.
Third party unique transaction id.
NovaX user id.
USD amount to stake.
Type of staking - Supported KRU
Staking Payout request successfully created.
Unique Id with the same third party Id already exists.
Internal error.
POST /transactions/staking/payout HTTP/1.1
Host:
x-api-key: text
x-api-hash: text
Content-Type: application/json
Accept: */*
Content-Length: 67
{
"thirdPartyId": "text",
"userId": "text",
"usdAmount": 1,
"asset": "KRU"
}
{
"transactionId": "text",
"thirdPartyId": "text"
}
Revoke Staking Payout
Your unique API Key.
Your API Hash.
Transaction Id for the staking request.
Revoked Staking Transaction Successfully.
Unique Id with the same third party Id already exists.
Internal error.
POST /transactions/staking/payout/revoke HTTP/1.1
Host:
x-api-key: text
x-api-hash: text
Content-Type: application/json
Accept: */*
Content-Length: 24
{
"transactionId": "text"
}
{
"transactionId": "text",
"thirdPartyId": "text"
}
Get User Transactions
The Id of the transaction to retrieve.
The Id of the user whose transactions to retrieve.
Your unique API Key.
Your API Hash.
OK
Permission denied.
Internal error.
GET /transactions/users?userId=text HTTP/1.1
Host:
x-api-key: text
x-api-hash: text
Accept: */*
[
{
"id": "text",
"userId": "text",
"tenantId": "text",
"status": "text",
"amount": 1
}
]
Last updated