TUNGKAO API docs
₿
API · crypto

Crypto payments

Gives each user their own BTC / USDT / USDC address (TRON, Ethereum, BNB Chain, Polygon, Arbitrum, Base, Optimism, Avalanche) and notifies you by webhook — launching soon.

🕒 Last updated: Thailand time (UTC+07:00) · ✅ Your existing code keeps working

🤖 Let an AI write the integration

Copy this link for an AI to read (the whole API as Markdown), or press a button: the prompt is copied and the AI opens — paste it and tell it your language/framework

https://app.tungkao.com/docs/api/crypto.md?lang=en
https://api.tungkao.com/changelog/crypto.json

This link returns this API's updates as JSON (no key, any origin). Have your admin page show it as an “Update announcements” box and flag “New” when last_updated changes

Copy + open in: pressing an AI button copies the prompt automatically — if the chat box is empty, just paste

🔑 Key to use

Create a crypto key in the merchant portal (API keys) and send this header with every request — keys of other services won't work here

Authorization: Bearer $TUNGKAO_KEY

📋 How it works

  1. Request an address for a user
  2. The user sends funds
  3. Credit them on crypto.deposit.confirmed

📡 API calls + code examples

POST/v1/crypto/addresses
curl -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"}'

📚 Usage examples

Example 1

Get a deposit address for a customer

Situation: member-1001 will pay in USDT on TRC20

Request
POST /v1/crypto/addresses
{
  "asset": "USDT-TRC20",
  "customer_ref": "member-1001"
}

➡️ You get a per-customer address to show as a QR

Example 2

List supported coins and networks

Situation: You want minimums and confirmations per coin

Request
GET /v1/crypto/assets

➡️ Returns min_deposit and confirmations_required per asset

Example 3

Check incoming deposits

Situation: Waiting for the customer's payment

Request
GET /v1/crypto/deposits
Sample response
{
  "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

Example 4

Withdraw coins

Situation: Withdraw USDT to your own wallet

Request
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

💡 More

📜 Update history of this API

  1. Added Thailand time (UTC+07:00)
    API update announcements by webhook: new api.update event (opt in per key on the key card; off by default)
  2. Added Thailand time (UTC+07:00)
    error.user_message: ready-to-show text for end users on outages, no credits or key problems (white-label keys omit tungkao.com)
  3. Added Thailand time (UTC+07:00)
    GET /status: per-service API status 🟢 normal / 🟠 high traffic / 🔴 minor delays (no key needed)
  4. Added Thailand time (UTC+07:00)
    Key on/off switch with status-change time + one key per service per website
  5. Improved Thailand time (UTC+07:00)
    API v1 frozen (additive only) + X-Tungkao-Api-Version header + 12-month deprecation notices
  6. Docs Thailand time (UTC+07:00)
    Per-API docs pages with AI links (ChatGPT / Claude / Gemini / Grok) in 10 languages
  7. Added Thailand time (UTC+07:00)
    Added Ethereum, Polygon, Arbitrum, Base, Optimism, Avalanche networks and USDC
  8. Security Thailand time (UTC+07:00)
    Domain verification per API key (1 key = 1 site) — existing keys keep working
  9. Added Thailand time (UTC+07:00)
    Optional HMAC request signing — nothing changes unless you turn it on
  10. Added Thailand time (UTC+07:00)
    API key lifetimes, expiry warnings and renewal — the key string never changes
  11. Added Thailand time (UTC+07:00)
    Test-mode keys (simulated, free) for every service
  12. New Thailand time (UTC+07:00)
    Per-member crypto addresses API (BTC, USDT-TRC20, USDT-BEP20)

✅ Your existing code keeps working

🛡️ Stability promise: integrate once, keep working

🚦 System status (GET /status)

Check any time whether the API is healthy — no key needed

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"
  }
}

🏷️ TUNGKAO attribution requirement

Powered by TUNGKAO