Skip to main content

Create Deposit

Initializes a crypto top-up and returns a unique TRON payment address. Send USDT or USDC to this address to fund your wallet.


Endpoint​

POST /api/v2/organizations/{org_id}/deposits

Path Parameters​

ParameterTypeRequiredDescription
org_idstringYesYour organization ID

Request Body​

{
"currency": "USDTTRC20",
"accountId": "9f283e59-21ec-4c74-ae32-156d49cd9cf2"
}

Fields​

FieldTypeRequiredDescription
currencystringYesUSDTTRC20 (USDT on TRON) or USDCTRC20 (USDC on TRON)
accountIdstringNoWallet ID to credit directly. If omitted, funds go to the company's main balance.

Request​

curl -X POST "https://api.4pay.cc/api/v2/organizations/{org_id}/deposits" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"currency": "USDTTRC20",
"accountId": "9f283e59-21ec-4c74-ae32-156d49cd9cf2"
}'

Response​

200 OK
{
"data": {
"id": "abc123e4-5678-90ab-cdef-1234567890ab",
"paymentAddress": "TXYZabc123def456ghi789jkl012mno345"
}
}
FieldDescription
idDeposit ID — use it to track status
paymentAddressTRON address to send crypto to

Next Steps​

  1. Send the exact amount of USDTTRC20 or USDCTRC20 to paymentAddress
  2. Poll Get Deposit Details using the id until status is completed
  3. Check wallet balance via Get Wallet Details
caution
  • Each payment address is unique to this deposit request — do not reuse it
  • Only send the specified currency (USDT or USDC) on the TRON network
  • Sending other currencies or using other networks (Ethereum, BSC) will result in lost funds