↔️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.
Tyga user id.
Amount to credit.
URL to notify after the payout is completed. (Webhook)
Payout request successfully created.
Unique Id for the transaction.
Unique Id of the third party involved in the transaction.
User with the same third party Id already exists.
Internal error.
POST /transactions/payout HTTP/1.1
Host: transactions-v1-api-rdqehkur6a-ey.a.run.app
x-api-key: text
x-api-hash: text
Content-Type: application/json
Accept: */*
Content-Length: 69
{
"thirdPartyId": "text",
"userId": "text",
"amount": 1,
"notifyUrl": "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.
Tyga user id.
USD amount to stake.
Type of staking - Supported KRU
Staking duration in months. Defaults to 3 months if not set.
Staking Payout request successfully created.
Unique Id for the transaction.
Unique Id of the third party involved in the transaction.
Unique Id with the same third party Id already exists.
Internal error.
POST /transactions/staking/payout HTTP/1.1
Host: transactions-v1-api-rdqehkur6a-ey.a.run.app
x-api-key: text
x-api-hash: text
Content-Type: application/json
Accept: */*
Content-Length: 88
{
"thirdPartyId": "text",
"userId": "text",
"usdAmount": 1,
"asset": "KRU",
"durationInMonths": 1
}{
"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 for the transaction.
Unique Id of the third party involved in the transaction.
Internal error.
POST /transactions/staking/payout/revoke HTTP/1.1
Host: transactions-v1-api-rdqehkur6a-ey.a.run.app
x-api-key: text
x-api-hash: text
Content-Type: application/json
Accept: */*
Content-Length: 24
{
"transactionId": "text"
}{
"transactionId": "text",
"thirdPartyId": "text"
}Payout Completed Notify Url
POST https://your-notify-url
Request Body
transactionId*
string
Unique Transaction Id.
thirdPartyId*
string
Unique Id of the third party involved in the transaction.
amount*
number
The transaction payout amount.
status*
string
success: Payout has been processed successfully.
cancelled: Payout has been cancelled.
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
The unique Id of the transaction.
The Id of the user who initiated the transaction.
The Id of the tenant associated with the transaction.
The current status of the transaction.
The amount of the transaction.
Permission denied.
Internal error.
GET /transactions/users?userId=text HTTP/1.1
Host: transactions-v1-api-rdqehkur6a-ey.a.run.app
x-api-key: text
x-api-hash: text
Accept: */*
[
{
"id": "text",
"userId": "text",
"tenantId": "text",
"status": "text",
"amount": 1
}
]Search Transactions
The transaction hash to retrieve.
The order number to retrieve.
The tenant ID.
Your unique API Key.
Your API Hash.
OK
The unique Id of the transaction.
The Id of the user who initiated the transaction.
The Id of the tenant associated with the transaction.
The current status of the transaction.
The side of the transaction.
The type of the transaction.
The order Id associated with the transaction.
The order number associated with the transaction.
The amount of the transaction.
The transaction hash.
The date the transaction was created.
The date the transaction was completed.
Either orderNumber or txHash is required.
Internal error.
GET /transactions HTTP/1.1
Host: transactions-v1-api-rdqehkur6a-ey.a.run.app
x-tenant-id: text
x-api-key: text
x-api-hash: text
Accept: */*
{
"id": "text",
"userId": "text",
"tenantId": "text",
"status": "text",
"side": "text",
"type": "text",
"orderId": "text",
"orderNumber": "text",
"amount": 1,
"txHash": "text",
"createdDate": "2026-01-01T00:00:00.000Z",
"completedDate": "2026-01-01T00:00:00.000Z"
}Refund Pending Confirmation Transactions
In some instances, customers may make a duplicate payment or send a payment to a crypto wallet address that is no longer associated with an order. In such cases, the payment will remain unlinked to an order and be placed in a 'pending_confirmation' status until it can be confirmed or refunded.
Your unique API Key.
Your API Hash.
Payment transaction id.
TygaPay account email that will receive the refund.
Refund Payment Transaction Successfully.
Status of the refund transaction.
Message indicating the status of the refund transaction.
Internal error.
POST /transactions/refund HTTP/1.1
Host: transactions-v1-api-rdqehkur6a-ey.a.run.app
x-api-key: text
x-api-hash: text
Content-Type: application/json
Accept: */*
Content-Length: 30
{
"txId": "text",
"email": "text"
}{
"status": "text",
"message": "text"
}Last updated