TridiPay API v1
Dashboard

API Reference

The TridiPay API lets you create crypto deposit requests, request payouts, query balances and receive signed webhooks. All amounts are decimal strings in the currency of the asset.

Base URL
https://tridipay.com/api/v1

Authentication

Authenticate every request with your API key. Write requests must also be signed.

X-TridiPay-KeyYour public API key.
X-TridiPay-TimestampUnix timestamp (seconds) of the request.
X-TridiPay-SignatureHMAC-SHA256 signature of the request.

Request Signing

The signature is computed over the timestamp, method, path and raw body using your API secret. The timestamp must be within 300 seconds of server time.

message = timestamp + "." + METHOD + "." + path + "." + body
signature = HEX( HMAC_SHA256(secret, message) )
// PHP example
$timestamp = time();
$body = json_encode($payload);
$message = $timestamp.".".strtoupper($method).".".$path.".".$body;
$signature = hash_hmac('sha256', $message, $apiSecret);

Currencies

GET /currencies

Returns the assets enabled for your account together with limits and effective commission rates.

{
  "data": [
    {
      "code": "USDT_TRC20",
      "name": "Tether USD (TRC20)",
      "network": "TRON",
      "decimals": 6,
      "deposits_enabled": true,
      "withdrawals_enabled": true,
      "limits": { "min_deposit": "1.00000000", "min_withdrawal": "10.00000000" }
    }
  ]
}

Deposit Addresses

Create a customer to get a persistent deposit address per asset. Deposits to that address are credited to your account, attributed to the customer.

POST /addresses Create a customer and receive their deposit address(es).
{
  "external_id": "user-42"
}

Response:

{
  "data": {
    "external_id": "user-42",
    "addresses": [
      { "asset": "USDT_TRC20", "network": "TRON", "address": "TXY...abc" }
    ]
  }
}
GET/addresses
GET/addresses/{external_id}

Deposits

Deposits are recorded automatically when funds arrive at a customer address and reach the required confirmations. Use these endpoints to list them.

GET/deposits
GET/deposits/{id}
{
  "data": [
    {
      "reference": "DEP-XXXX",
      "external_id": "user-42",
      "asset": "USDT_TRC20",
      "amount": "100.00000000",
      "fee_amount": "2.00000000",
      "net_amount": "98.00000000",
      "txid": "abc...",
      "status": "credited"
    }
  ]
}

Withdrawals

POST /withdrawals Request a withdrawal/payout.
{
  "asset": "USDT_TRC20",
  "amount": "50.00",
  "to_address": "TReceiverAddress...",
  "external_id": "payout-77"
}

The commission and the payout amount are deducted from your balance immediately. The payout is broadcast from the platform signing wallet.

GET /withdrawals/{id}

Balance

GET/balance
GET/balance/USDT_TRC20

Transactions

GET /transactions?asset=USDT_TRC20&category=deposit&from=2026-01-01

Webhooks

We POST a JSON payload to your webhook URL for every relevant event. Verify the signature before trusting the payload.

deposit.credited withdrawal.created withdrawal.completed withdrawal.failed sweep.completed test
// Verify webhook signature (PHP)
$header = $request->header('X-TridiPay-Signature');
parse_str(str_replace(',', '&', $header), $parts); // t=...,v1=...
$expected = 't='.$parts['t'].',v1='.hash_hmac('sha256', $parts['t'].'.'.$request->getContent(), $webhookSecret);
$valid = hash_equals($expected, $header);

Errors

{
  "error": { "code": "insufficient_balance", "message": "Insufficient available balance." }
}
invalid_api_keyThe API key is missing or invalid.
invalid_signatureThe signature does not match.
signature_expiredThe request timestamp is too old.
insufficient_scopeThe key lacks the required scope.
ip_not_allowedThe request IP is not whitelisted.
tenant_inactiveThe merchant account is suspended.
unsupported_assetUnknown or disabled asset.
below_minimumAmount below the configured minimum.
invalid_addressInvalid destination address.
insufficient_balanceNot enough available balance.
not_foundResource not found.