You must show a visible “Powered by TUNGKAO” (or “Secured by TUNGKAO” for login/payments) credit linking to https://tungkao.com on pages that use the service, as required by the terms
Integrate with TUNGKAO
One API style for every service — Base URL: https://api.tungkao.com
🕒 Latest API updates by channel
Whole platform last updated:Thailand time (UTC+07:00) — 📘 The TrueMoney Wallet docs page is now fully translated into all 10 languages (steps, examples, case table, notes)
✅ Your existing code keeps working · /changelog.json (Machine-readable)
Paste it into the AI that maintains your site's code (ChatGPT / Claude / Gemini); it checks and changes only what is needed
Every service works the same way: create an API key in the merchant portal (one key per service) and send it in the Authorization header of every request.
How it works
Sign in at app.tungkao.com with Gmail and top up credits (1 THB = 100 credits).
API keys → pick a service card → choose the key lifetime → Create → copy the key (shown once).
Keep the key on your server (env var TUNGKAO_KEY). Never put it in web pages or mobile apps.
Start with a test key (tk_test_…) — no credits charged — then switch to live.
GET/v1/account — Test your key: credits left
curl -X GET https://api.tungkao.com/v1/account \
-H "Authorization: Bearer $TUNGKAO_KEY"
// Node.js 18+ (nothing to install)
const res = await fetch("https://api.tungkao.com/v1/account", {
method: "GET",
headers: { Authorization: `Bearer ${process.env.TUNGKAO_KEY}` },
});
const data = await res.json();
console.log(data);
import hashlib, hmac, json, os, time, requests
def tungkao(method, path, body=None):
raw = json.dumps(body, separators=(",", ":")) if body else ""
ts = str(int(time.time()))
msg = f"{ts}.{method}.{path}.{hashlib.sha256(raw.encode()).hexdigest()}"
sig = hmac.new(os.environ["TUNGKAO_SIGNING_SECRET"].encode(), msg.encode(), hashlib.sha256).hexdigest()
return requests.request(method, "https://api.tungkao.com" + path, data=raw or None, timeout=30, headers={
"Authorization": f"Bearer {os.environ['TUNGKAO_KEY']}", "Content-Type": "application/json",
"X-Tungkao-Timestamp": ts, "X-Tungkao-Signature": sig}).json()
print(tungkao("GET", "/v1/account"))
Every response is JSON with success and request_id. Errors carry error.code (e.g. KEY_EXPIRED, INSUFFICIENT_CREDITS) — see /errors.
error.user_message is the text to show your own end users (“The system cannot connect to the tungkao.com API. Please contact the administrator.”). It comes with errors an end user cannot fix: HTTP 5xx, SERVICE_PAUSED, INSUFFICIENT_CREDITS and key problems, in the Accept-Language language. Keys with white-label enabled get a message without the tungkao.com name. If the API cannot be reached at all (timeout/network down), show the same text from your own code.
Keys expire as chosen (1–24 months or never). We warn 30/7/1 days before via the api_key.expiring webhook. Renew in the portal — the key string stays the same.
Domain verification: each live key is bound to one website. API keys → 'Domain verification' → enter your domain, upload tungkao-verify-….html to https://yourdomain/ (or add DNS TXT _tungkao-verify.yourdomain) and press Verify. Unverified keys get DOMAIN_NOT_VERIFIED; a verified domain can't change and no other account can use it.
Leaked secret? Press 'Rotate now' — unlimited, the old key stops at once. A key only works for its own service (WRONG_PRODUCT otherwise).
Advanced (optional): turn on 'Signed requests' on a key to get a tksign_… secret; every request then needs X-Tungkao-Timestamp and X-Tungkao-Signature = HMAC-SHA256(secret, ts.METHOD.path.sha256(body)). A leaked key alone becomes useless.
🧪 Test mode (tk_test_… keys) is free and limited to 2 calls per service per day (non-GET requests only; resets at midnight Bangkok time). Beyond that you get HTTP 429 RATE_LIMITED with a message — use a live key for unlimited calls.
Send Accept-Language (th, en, lo, my, zh-CN, ko, ja, vi, km, id) to choose the message language.
🧾
Bank slip verification
slip_verify
Checks a slip is genuine, the amount matches, it was paid to you and hasn't been used — for shops where customers attach a slip.
How it works
Customer uploads the slip; your site reads its QR text (starts with 0041…).
Send qr_payload, the expected amount and your receiving account to the API.
2 sites (aaa.com, bbb.com) receive into the same account
Both keys: Group A (or Whole account)
A slip that passed on aaa.com returns DUPLICATE on bbb.com — usable on one site only ✅
2 sites share an account but the keys stay separate (default)
Both keys: This key only
One slip passes on both sites ⚠️ customers could top up twice — link the keys
2 sites with different receiving accounts
This key only (default)
A slip for one site already returns RECEIVER_MISMATCH on the other ✅
2 sites on different tungkao accounts (different owners) but the same receiving account
Keys can't be linked across tungkao accounts
One slip passes on both ⚠️ — buy both keys from one tungkao account and link them
One site using 2 keys (e.g. website + app)
Both keys: the same group
A slip is usable once whether sent from the website or the app ✅
DUPLICATE is detected from the reference in the QR right away. Set it on the “Duplicate-slip protection between keys” card on the API Keys page (new keys default: this key only).
📚 Usage examples
Example 1
Customer tops up with a matching slip (passes)
Situation: A customer transfers 500 THB to your account and uploads the slip on your top-up page
Request
POST /v1/slip/verify
{
"image_base64": "<base64 of the slip image>",
"expected_amount": "500.00"
}
➡️ HTTP 503 and nothing is charged. Ask the customer to retry later, or queue it for manual review
Send an Idempotency-Key header (e.g. your order id): retries are never charged twice.
A slip is VALID once per key (the second time returns DUPLICATE).
Several sites receiving into the same account? Put their keys in the same group under “Duplicate-slip protection between keys” on the API Keys page. A slip that passed on one key then returns DUPLICATE on every key in the group (default: this key only).
TrueMoney Wallet slip verification
truewallet_verify
Checks a TrueMoney Wallet transfer slip is genuine, the amount matches, it was paid to your e-wallet number and has not been used before.
How it works
Save your receiving wallet once (PUT /v1/truewallet/profile, or on the key card in the portal): wallet mobile number or e-Wallet ID, Thai/English name and the receiving QR image.
Show the QR image (qr_image_url) for your customer to pay, then let them upload the slip image.
Send the slip image (image_base64) and the expected amount to the API. The number and name come from the saved profile (or send wallet_number / ewallet_id in the request).
2 sites (aaa.com, bbb.com) receive into the same account
Both keys: Group A (or Whole account)
A slip that passed on aaa.com returns DUPLICATE on bbb.com — usable on one site only ✅
2 sites share an account but the keys stay separate (default)
Both keys: This key only
One slip passes on both sites ⚠️ customers could top up twice — link the keys
2 sites with different receiving accounts
This key only (default)
A slip for one site already returns RECEIVER_MISMATCH on the other ✅
2 sites on different tungkao accounts (different owners) but the same receiving account
Keys can't be linked across tungkao accounts
One slip passes on both ⚠️ — buy both keys from one tungkao account and link them
One site using 2 keys (e.g. website + app)
Both keys: the same group
A slip is usable once whether sent from the website or the app ✅
DUPLICATE is detected from the reference in the QR right away. Set it on the “Duplicate-slip protection between keys” card on the API Keys page (new keys default: this key only).
📚 Usage examples
Example 1
Save your receiving wallet once
Situation: Your shop receives into TrueMoney 081-234-5678 (Somchai) and has a receiving QR
Request
PUT /v1/truewallet/profile
{
"receive_by": "wallet_number",
"wallet_number": "0812345678",
"name_en": "Somchai Jaidee",
"qr_image_base64": "<base64 of the QR image>"
}
➡️ No need to resend the number; the key's saved wallet is used
Example 3
Receive with the e-Wallet ID only
Situation: Customers pay via the 15-digit e-Wallet ID; you don't share your phone number
Request
PUT /v1/truewallet/profile
{
"receive_by": "ewallet_id",
"ewallet_id": "140000812345678"
}
➡️ Slips paid to the phone number return RECEIVER_MISMATCH; only the e-Wallet ID is accepted
Example 4
Send the receiver in the request (several wallets)
Situation: You rotate between several wallets per branch
Request
POST /v1/truewallet/verify
{
"image_base64": "<base64 of the slip image>",
"expected_amount": "300.00",
"wallet_numbers": [
"0812345678",
"0898765432"
],
"wallet_name_en": "Somchai Jaidee"
}
➡️ Passes if the slip went to any listed wallet and the name matches
Example 5
Primary provider down, backup takes over
Situation: The primary verifier fails while the customer submits
Request
POST /v1/truewallet/verify
{
"image_base64": "<base64 of the slip image>",
"expected_amount": "300.00"
}
➡️ The backup verifies within the same request. Send image_base64: the backup verifies from the image
Example 6
Duplicate or wrong amount
Situation: The customer resubmits a slip or underpays
Sample response
{
"success": false,
"status": "DUPLICATE"
}
➡️ DUPLICATE = already used · AMOUNT_MISMATCH = wrong amount. Credit nothing in both cases
Identify the receiver either way, or both: wallet_number (10-digit mobile number) or ewallet_id (15-digit e-Wallet ID). A slip matching either one passes.
Choose what you receive with via receive_by: wallet_number (number only), ewallet_id (e-Wallet ID only) or any (default, either one). Slips are checked against the chosen identifier.
Receiver name: name_th, name_en or both (wallet_name_th / wallet_name_en in a verify request). If set, the slip must match one of them; if not set, the name is not checked.
Receiving QR image: JPG/PNG up to 1 MB with a readable QR. You get qr_image_url for your payment page; uploading a new image issues a new link.
wallet_number is the 10-digit mobile number of the receiving wallet. Send several with wallet_numbers (max 10), or save them on the key in the portal.
Responses and statuses are identical to /v1/slip/verify. A slip is VALID once per key (the second time returns DUPLICATE).
Send an Idempotency-Key header (e.g. your order id): retries are never charged twice.
🏦
Slip deposits
slip_deposit
Top-ups for your users: verifies the slip, records the deposit for that user and notifies your site by webhook.
How it works
Set receiving accounts and a webhook URL on the key in the portal.
Send the slip with customer_ref (your user id).
On the deposit.succeeded webhook (verify the signature) credit the user.
Every webhook carries X-Tungkao-Signature: t=…,v1=…. Verify it before trusting the data (the webhook secret is shown when you set the URL).
import crypto from "node:crypto";
// use the raw body only — never re-JSON.stringify it
function verify(rawBody, header, secret) {
const m = /^t=(\d+),v1=([0-9a-f]{64})$/.exec(header || "");
if (!m || Math.abs(Date.now() / 1000 - Number(m[1])) > 300) return false;
const want = crypto.createHmac("sha256", secret).update(`${m[1]}.${rawBody}`).digest("hex");
return crypto.timingSafeEqual(Buffer.from(want), Buffer.from(m[2]));
}
Situation: A member tries to deposit again with the same slip
Sample response
{
"success": false,
"status": "DUPLICATE"
}
➡️ DUPLICATE; no new deposit is created
🔐
Sign-in for your website (Google, LINE, Facebook, Apple, TikTok, Discord, Telegram, X, Microsoft, GitHub + 14 more)
Add 'Sign in with …' to your site without registering with each provider. Get name, email, photo, a stable member id, and a member list with sign-in history. One service per provider: google_login, line_login, facebook_login, tiktok_login, discord_login, telegram_login, x_login, microsoft_login, github_login.
How it works
Create a key for the provider, then on 'Sign-in members' set your site name and redirect URI (https, exact match).
Your sign-in button sends the user to /oauth/authorize with client_id (the key id), redirect_uri and state (fresh random, kept in the session).
The user returns to redirect_uri?code=…&state=… → check state → your server calls POST /v1/login/token within 2 minutes.
Use data.user (e.g. 7F3K9QX2-yourshopcom) as the member id — the same person always gets the same id.
One site, 2 keys of the same provider (e.g. website + app, both Google)
Both keys: Combined (default)
The same person gets the same user ID in both ✅
One site, 2 keys of the same provider, counted as separate accounts
Both keys: Separate
The same person gets a different user ID on each key
2 sister sites sharing members
Both keys: Group A
A member has the same user ID on both sites ✅
2 unrelated sites that must not link members
Both keys: Separate
Different user IDs, so the sites can't link their members ✅
A Google key and a LINE key (different providers)
Any setting
Always different user IDs — they are different provider accounts
A key that already has sign-ins needs a different group
Not allowed (locked 🔒)
Create a new key in the wanted group, so member IDs on your site never change
Set it on the “Sign-in user IDs between keys” card on the API Keys page before go-live (new keys default: Combined). Several keys may use the same domain.
Complete example (button + callback + code exchange)
// npm i express express-session
import express from "express";
import session from "express-session";
import crypto from "node:crypto";
const KEY = process.env.TUNGKAO_KEY; // API key (tk_live_…) server-side only
const CLIENT_ID = process.env.TUNGKAO_CLIENT_ID; // the key id (shown in the portal), not a secret
const REDIRECT = "https://yourshop.com/auth/callback"; // must match the registered URL exactly
const app = express();
app.use(session({ secret: process.env.SESSION_SECRET, resave: false, saveUninitialized: false, cookie: { secure: true, sameSite: "lax" } }));
// 1) your "Sign in" button links here
app.get("/auth/login", (req, res) => {
req.session.state = crypto.randomBytes(24).toString("base64url");
const u = new URL("https://api.tungkao.com/oauth/authorize");
u.search = new URLSearchParams({ client_id: CLIENT_ID, redirect_uri: REDIRECT, state: req.session.state });
res.redirect(u);
});
// 2) the user comes back with a code
app.get("/auth/callback", async (req, res) => {
if (!req.query.state || req.query.state !== req.session.state) return res.status(400).send("state mismatch");
delete req.session.state;
if (req.query.error) return res.redirect("/login?cancelled=1");
// 3) exchange the code for the user (within 2 minutes)
const r = await fetch("https://api.tungkao.com/v1/login/token", {
method: "POST",
headers: { Authorization: `Bearer ${KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({ code: req.query.code, redirect_uri: REDIRECT }),
});
const j = await r.json();
if (!j.success) return res.status(400).send(j.error.message);
req.session.user = j.data; // j.data.user = permanent member id, e.g. 7F3K9QX2-yourshopcom
res.redirect("/");
});
app.listen(3000);
<?php
// login.php — your "Sign in" button links to this file
session_start();
$CLIENT_ID = getenv("TUNGKAO_CLIENT_ID");
$REDIRECT = "https://yourshop.com/callback.php";
$_SESSION["state"] = bin2hex(random_bytes(24));
header("Location: https://api.tungkao.com/oauth/authorize?" . http_build_query([
"client_id" => $CLIENT_ID, "redirect_uri" => $REDIRECT, "state" => $_SESSION["state"],
]));
<?php
// callback.php — the user comes back here
session_start();
$REDIRECT = "https://yourshop.com/callback.php";
if (empty($_GET["state"]) || !hash_equals($_SESSION["state"] ?? "", $_GET["state"])) { http_response_code(400); exit("state mismatch"); }
unset($_SESSION["state"]);
if (!empty($_GET["error"])) { header("Location: /login.php?cancelled=1"); exit; }
$ch = curl_init("https://api.tungkao.com/v1/login/token");
curl_setopt_array($ch, [
CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("TUNGKAO_KEY"), "Content-Type: application/json"],
CURLOPT_POSTFIELDS => json_encode(["code" => $_GET["code"], "redirect_uri" => $REDIRECT]),
]);
$j = json_decode(curl_exec($ch), true);
if (!$j["success"]) { http_response_code(400); exit($j["error"]["message"]); }
$_SESSION["user"] = $j["data"]; // $j["data"]["user"] = permanent member id
header("Location: /");
# pip install flask requests
import os, secrets, requests
from urllib.parse import urlencode
from flask import Flask, session, request, redirect, abort
app = Flask(__name__)
app.secret_key = os.environ["SESSION_SECRET"]
KEY = os.environ["TUNGKAO_KEY"]
CLIENT_ID = os.environ["TUNGKAO_CLIENT_ID"]
REDIRECT = "https://yourshop.com/auth/callback"
@app.get("/auth/login")
def login():
session["state"] = secrets.token_urlsafe(24)
return redirect("https://api.tungkao.com/oauth/authorize?" + urlencode({"client_id": CLIENT_ID, "redirect_uri": REDIRECT, "state": session["state"]}))
@app.get("/auth/callback")
def callback():
if not request.args.get("state") or not secrets.compare_digest(request.args["state"], session.pop("state", "")):
abort(400)
if request.args.get("error"):
return redirect("/login?cancelled=1")
r = requests.post("https://api.tungkao.com/v1/login/token", headers={"Authorization": f"Bearer {KEY}"},
json={"code": request.args["code"], "redirect_uri": REDIRECT}, timeout=30).json()
if not r["success"]:
abort(400, r["error"]["message"])
session["user"] = r["data"] # r["data"]["user"] = permanent member id
return redirect("/")
Provider
Service
You get
Google
google_login
name, verified email, photo
LINE
line_login
name, photo, email if the user agrees
Facebook
facebook_login
name, photo, email
TikTok
tiktok_login
display name, avatar (no email)
Discord
discord_login
name, avatar, email
Telegram
telegram_login
name, username, photo
X (Twitter)
x_login
name, username, photo
Microsoft
microsoft_login
name, email (Hotmail/Outlook)
GitHub
github_login
name, email, avatar
Apple
apple_login
permanent member ID (no name or email in this mode)
Steam
steam_login
name, avatar and SteamID (no email)
Twitch
twitch_login
name, email, avatar
LinkedIn
linkedin_login
name, email, photo
Kakao
kakao_login
name, photo (email once Kakao approves it)
NAVER
naver_login
name, email, photo
Zalo
zalo_login
name, photo (no email)
Spotify
spotify_login
name, email, photo
Reddit
reddit_login
username, avatar (no email)
GitLab
gitlab_login
name, email, avatar
Roblox
roblox_login
name, avatar (no email)
Epic Games
epicgames_login
display name (no email)
Yahoo
yahoo_login
name, email, photo
Slack
slack_login
name, email, photo
Amazon
amazon_login
name, email
📚 Usage examples
Example 1
A “Sign in with Google” button on your site
Situation: A visitor taps Sign in with Google on your site
Request
GET /oauth/authorize?client_id=<CLIENT_ID>&redirect_uri=https://yourshop.com/auth/callback&state=xyz
➡️ The user signs in with Google and returns to redirect_uri with a code and the same state
Example 2
Exchange the code for the user (server side)
Situation: Your server receives the code on the callback page (exchange within 2 minutes)
Request
POST /v1/login/token
{
"code": "<code from the callback>",
"redirect_uri": "https://yourshop.com/auth/callback"
}
➡️ Same user every time → look up the member and sign them in
Example 4
One site, two Google keys (website + app)
Situation: Separate keys for website and app, same members
➡️ Keep both keys “Combined” (default) before go-live → same user for the same person. Choose “Separate” to keep them apart
Example 5
List members who signed in
Situation: You want to browse or search members of this key
Request
GET /v1/login/users?q=somchai&limit=50
➡️ Returns members with last sign-in time and count
Example 6
The user cancels during sign-in
Situation: The user cancels on the Google screen
➡️ Returns to redirect_uri with error instead of code; show a retry button
User IDs between keys: new keys default to “Combined (whole account)”, so the same person signing in through keys of the same provider in one account gets the same ID. Change it to group A–E or “Separate” on the API Keys page before the first sign-in; after that the group is locked so member IDs never change.
Credits are charged on each successful sign-in plus once per new member — see current prices on the service card.
Test-mode keys allow http://localhost redirect URIs and are free.
Never put the API key in links or pages — /oauth/authorize only needs client_id (the key id), which is public.
✈️
Telegram notifications
telegram_notify
Message your users on Telegram through TUNGKAO's bot — no bot of your own. E.g. payment received, order status, OTP.
How it works
ref is your own name for a recipient (use your member id, e.g. member-1001): A-Z a-z 0-9 _ . : @ - up to 128 chars. Every call refers to the recipient by this ref.
Add a recipient: your server calls POST /v1/telegram/link {ref} → gets data.url (a t.me/…?start=… link) → show it as a “Connect Telegram” button on the member's profile page (valid 30 minutes, single use; request again any time).
The member opens the link → presses Start in Telegram → the bot confirms (Telegram does not let a bot message someone who never pressed Start, so this step cannot be skipped).
Check the connection: GET /v1/telegram/recipients (status = active) — use it to switch your button to “Connected ✓”.
Send: POST /v1/telegram/send with one ref or up to 100 refs; bold text (parse_mode: HTML) and a link button are supported. Per-recipient results are in data.results: sent / not_linked / failed.
Remove a recipient: DELETE /v1/telegram/recipients/{ref}. Members can also send /stop to the bot. If a member blocks the bot, that recipient is paused until they connect again.
Try it without code: TUNGKAO API key page → this key's card → “Set up notifications” has a create-link button (with QR) and a send-test button.
POST /v1/telegram/send
{
"refs": [
"member-1001",
"member-1002",
"member-1003"
],
"text": "New promotion today"
}
➡️ Sent to each member; check results with GET /v1/telegram/messages
Example 5
A member stops notifications
Situation: The member asks to disconnect
Request
DELETE /v1/telegram/recipients/member-1001
➡️ The link is removed; no more messages are sent
Only delivered messages are charged — failures (e.g. the user blocked the bot) are refunded and that recipient is paused.
🔔
Discord notifications
discord_notify
Post messages into your or your customers' Discord channels — e.g. new orders for your team.
How it works
Create a channel webhook in Discord (needs Manage Webhooks): desktop right-click the channel → Edit Channel → Integrations → Webhooks → New Webhook → name it → Copy Webhook URL (mobile: long-press the channel → Edit Channel).
ref is your own name for the channel, e.g. orders-room (A-Z a-z 0-9 _ . : @ - up to 128 chars). One key can hold many channels, each with its own ref.
Add a channel: POST /v1/discord/webhooks {ref, url} — url must start with https://discord.com/api/webhooks/…; it is stored encrypted and never returned. Posting the same ref again replaces that channel's link.
Send: POST /v1/discord/send {ref, text} (up to 2000 chars; @everyone / @here are disabled automatically). Results are in data.results: sent / not_linked / failed.
List channels: GET /v1/discord/recipients. Remove: DELETE /v1/discord/recipients/{ref}. If the webhook is deleted in Discord, the channel is paused and the undelivered message is refunded.
Try it without code: TUNGKAO API key page → this key's card → “Set up notifications”: paste the webhook link, add the channel and send a test.
Do not confuse this with the key's “Webhook URL” setting: that is your server address for receiving events from TUNGKAO, not a Discord channel link.
Send email from your site through the API or SMTP (WordPress works), plus email OTP codes with verification — we fail over between email providers automatically.
How it works
Create an email key (test keys can only send to your own address, 50 per day).
SMTP: host smtp.tungkao.com, port 587 (STARTTLS) or 465 (SSL), any username, password = your API key.
API: send an email, or request an OTP and verify it with the returned otp_id (5 attempts, single use).
POST /v1/email/send
{
"to": [
"[email protected]"
],
"subject": "Order #1001 confirmed",
"html": "<h1>Thanks for your order</h1>",
"text": "Thanks for your order",
"from_name": "My Shop",
"reply_to": "[email protected]"
}
➡️ Always send html and text; replies go to reply_to
Example 2
Send an email OTP
Situation: A new sign-up must confirm their email
Request
POST /v1/email/otp/send
{
"to": "[email protected]",
"brand": "My Shop",
"lang": "th",
"length": 6,
"ttl_seconds": 300
}
Situation: A customer says the email never arrived
Request
GET /v1/email/messages
➡️ Check the delivery status of each email
Mail is sent from TUNGKAO's address; the sender name (from_name) and reply_to are yours.
If every provider fails, credits are refunded automatically · SMTP attachments are not forwarded.
₿
Crypto payments (coming soon)
crypto
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.
➡️ Always check the address matches the network; wrong-network transfers can't be recovered
💸 Withdrawal fees: funds received through the API pay 3.5% per withdrawal; wallets you create yourself in the merchant portal pay 2.5%. Taken from the withdrawn coin, not credits; deposits are free (live rate: withdraw_fee_percent in GET /v1/crypto/assets).
🚦 System status (GET /status)
Check any time whether the API is healthy — no key needed
GET https://api.tungkao.com/status
🟢 ok = normal
🟠 busy = high traffic
🔴 slow = minor delays
Measured from real requests over the last 5 minutes, per service (services[]). Slip verification and slip deposits are measured across every backup provider, with each route's state in routes[]
No API key; callable from browsers (CORS open); cached 15 s — poll at most once a minute
On busy/slow, raise your timeout to 15–20 s and retry with the same Idempotency-Key — you are never charged twice
paused[] lists service codes TUNGKAO has switched off for now (e.g. line_login) — grey that button out and show “System temporarily unavailable” (API calls return 503 SERVICE_PAUSED, nothing charged)
🛡️ Stability promise: integrate once, keep working
API /v1 is frozen: nothing is removed, renamed or retyped — only new fields or endpoints are added. Automated contract tests block any deploy that would break existing code.
When providers (banks, LINE, Google, Facebook, TikTok, Discord, Telegram, blockchains) change, we adapt on our servers — your code stays the same. Slip checks fail over across 3 providers automatically.
Write future-proof code: ignore unknown fields, branch on error.code (not message text), and treat an unknown new status as “not passed / pending”.
If something ever must be retired, we announce it at least 12 months ahead via Deprecation / Sunset headers on every response, email and webhook — the old behaviour keeps working until then.
Every response carries an X-Tungkao-Api-Version header with the version and latest revision date. Full history: /changelog.json
🏷️ TUNGKAO attribution requirement
Every page or screen that uses a TUNGKAO service (slip check, deposits, crypto, login, notifications) must show visible “Powered by TUNGKAO” or “Secured by TUNGKAO” text linking to https://tungkao.com
Place it near the feature — under the sign-in button, under the slip upload, or on the payment page. Do not hide it, blend it into the background or make it unreadably small
Buttons from the “Login buttons” page include the credit automatically, and the hosted TUNGKAO sign-in page shows it itself
Example: <a href="https://tungkao.com" target="_blank" rel="noopener">Powered by TUNGKAO</a>
To remove the credit, buy the White-label add-on for that key on the API keys page in the portal (30 days at a time)