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​
| Parameter | Type | Required | Description |
|---|---|---|---|
org_id | string | Yes | Your organization ID |
Request Body​
{
"currency": "USDTTRC20",
"accountId": "9f283e59-21ec-4c74-ae32-156d49cd9cf2"
}
Fields​
| Field | Type | Required | Description |
|---|---|---|---|
currency | string | Yes | USDTTRC20 (USDT on TRON) or USDCTRC20 (USDC on TRON) |
accountId | string | No | Wallet 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"
}
}
| Field | Description |
|---|---|
id | Deposit ID — use it to track status |
paymentAddress | TRON address to send crypto to |
Next Steps​
- Send the exact amount of
USDTTRC20orUSDCTRC20topaymentAddress - Poll Get Deposit Details using the
iduntilstatusiscompleted - 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