Get a deposit address for a customer
Tình huống: member-1001 will pay in USDT on TRC20
POST /v1/crypto/addresses
{
"asset": "USDT-TRC20",
"customer_ref": "member-1001"
}
➡️ You get a per-customer address to show as a QR
API v1 · Cập nhật lần cuối: Giờ Thái Lan (UTC+07:00)
https://tungkao.com · https://api.tungkao.com/docs
Theo điều khoản, trang dùng dịch vụ phải hiển thị “Powered by TUNGKAO” (hoặc “Secured by TUNGKAO” cho đăng nhập/thanh toán) liên kết tới https://tungkao.com
cryptoMỗi người dùng có địa chỉ BTC / USDT / USDC riêng (TRON, Ethereum, BNB Chain, Polygon, Arbitrum, Base, Optimism, Avalanche) và báo bạn qua webhook — sắp ra mắt.
🕒 Cập nhật lần cuối: Giờ Thái Lan (UTC+07:00) · ✅ Mã cũ vẫn chạy, không cần sửa
Sao chép liên kết này cho AI đọc (toàn bộ API dạng Markdown) hoặc bấm nút: lời nhắc được sao chép và AI được mở
https://api.tungkao.com/docs/api/crypto.md?lang=vihttps://api.tungkao.com/changelog/crypto.jsonLiên kết này trả về các cập nhật của API dưới dạng JSON (không cần key, mọi nguồn). Hãy hiển thị trong trang quản trị như hộp “Thông báo cập nhật” và gắn “Mới” khi last_updated thay đổi
Sao chép + mở: Bấm nút AI sẽ tự sao chép lời nhắc — nếu ô chat trống, chỉ cần dán
Tạo key crypto trong cổng bán hàng (API key) và gửi header này với mọi yêu cầu — key của dịch vụ khác không dùng được ở đây
Authorization: Bearer $TUNGKAO_KEY/v1/crypto/addressescurl -X POST https://api.tungkao.com/v1/crypto/addresses \
-H "Authorization: Bearer $TUNGKAO_KEY" \
-H "Content-Type: application/json" \
-d '{"asset":"USDT-TRC20","customer_ref":"member-1001"}'// Node.js 18+ (nothing to install)
const res = await fetch("https://api.tungkao.com/v1/crypto/addresses", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.TUNGKAO_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({
"asset": "USDT-TRC20",
"customer_ref": "member-1001"
}),
});
const data = await res.json();
console.log(data);<?php
$ch = curl_init("https://api.tungkao.com/v1/crypto/addresses");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("TUNGKAO_KEY"), "Content-Type: application/json"],
CURLOPT_POSTFIELDS => json_encode([
"asset" => "USDT-TRC20",
"customer_ref" => "member-1001"
]),
]);
$data = json_decode(curl_exec($ch), true);
print_r($data);import os, requests # pip install requests
r = requests.post(
"https://api.tungkao.com/v1/crypto/addresses",
headers={"Authorization": f"Bearer {os.environ['TUNGKAO_KEY']}"},
json={
"asset": "USDT-TRC20",
"customer_ref": "member-1001"
},
timeout=30,
)
print(r.json())Tình huống: member-1001 will pay in USDT on TRC20
POST /v1/crypto/addresses
{
"asset": "USDT-TRC20",
"customer_ref": "member-1001"
}
➡️ You get a per-customer address to show as a QR
Tình huống: You want minimums and confirmations per coin
GET /v1/crypto/assets
➡️ Returns min_deposit and confirmations_required per asset
Tình huống: Waiting for the customer's payment
GET /v1/crypto/deposits{
"success": true,
"data": [
{
"asset": "USDT-TRC20",
"customer_ref": "member-1001",
"amount": "25.00",
"confirmations": 20,
"confirmations_required": 20,
"status": "confirmed"
}
]
}
➡️ confirmed = credit · pending = wait · ignored = below minimum
Tình huống: Withdraw USDT to your own wallet
POST /v1/crypto/withdrawals
{
"asset": "USDT-TRC20",
"to_address": "T…your address…",
"amount": "100"
}
➡️ Always check the address matches the network; wrong-network transfers can't be recovered
✅ Mã cũ vẫn chạy, không cần sửa
Kiểm tra API có bình thường không bất cứ lúc nào — không cần key
GET https://api.tungkao.com/status
curl https://api.tungkao.com/status{
"success": true,
"data": {
"status": "ok",
"services": [
{ "id": "slip_verify", "status": "ok", "routes": ["ok", "ok", "busy"] },
{ "id": "slip_deposit", "status": "ok", "routes": ["ok", "ok", "busy"] },
{ "id": "login", "status": "ok" },
{ "id": "telegram", "status": "ok" },
{ "id": "discord", "status": "ok" },
{ "id": "email", "status": "busy" },
{ "id": "crypto", "status": "ok" },
{ "id": "core", "status": "ok" }
],
"paused": [],
"updated_at": "2026-11-14T12:00:00.000Z"
}
}Powered by TUNGKAO