إنتقل إلى المحتوى الرئيسي

Get Account Balance

Verifies your API key, active account status, rate limits, and returns the owning user's live USDT balance along with key spend limits.

Always verify funds before fulfilling downstream reseller checkouts, remembering that POST /api/v1/purchases also performs an atomic SELECT ... FOR UPDATE balance check server-side.

GET/api/v1/balance
Target: https://api.example.com
curl -sS -X GET "https://api.example.com/api/v1/balance" \
-H "x-api-key: YOUR_API_KEY" \
-H "Accept: application/json"

Parameters & Headers​

LocationNameRequiredDescription
Headerx-api-keyConditionalCustomer API key (YOUR_API_KEY), or Authorization: Bearer YOUR_API_KEY.

Success Response (200 OK)​

{
"userId": "usr_mock_01",
"apiKeyId": "key_mock_01",
"currency": "USDT",
"available": "100.000000",
"limits": {
"monthlySpendCap": "250.000000",
"perRequestCap": "50.000000",
"expiresAt": null
}
}

Error Responses​

HTTPerror.codeCause
401UNAUTHORIZEDMissing, malformed, invalid, revoked, or expired key
402INSUFFICIENT_BALANCEBalance negative
403FORBIDDENDisabled key or suspended owning user
403FRAUD_DETECTEDMulti-IP anomaly or IP cooldown block
429RATE_LIMITEDPer-key or per-user general rate limit exceeded
500INTERNAL_ERRORUnexpected server failure
{
"error": {
"code": "FORBIDDEN",
"message": "Owning user account is suspended"
}
}