⬇️ ດາວໂຫຼດ PDF ກົດປຸ່ມແລ້ວເລືອກ “Save as PDF”
TUNGKAO API Complete API reference
API v1 · ອັບເດດລ່າສຸດ: 21 ພ.ຈ. 2026, 16:30 ເວລາປະເທດໄທ (UTC+07:00)
https://tungkao.com · https://api.tungkao.com/docs
ຕ້ອງສະແດງ “Powered by TUNGKAO” ເປັນລິ້ງໄປ https://tungkao.com ໃນໜ້າທີ່ໃຊ້ບໍລິການ
ເຊື່ອມລະບົບກັບ TUNGKAO API ດຽວ ໃຊ້ key ແບບດຽວກັນທຸກບໍລິການ — Base URL: https://api.tungkao.com
🕒 API ອັບເດດລ່າສຸດ (ແຍກຕາມຊ່ອງທາງ) ທັງລະບົບອັບເດດລ່າສຸດ: 21 ພ.ຈ. 2026, 16:30 ເວລາປະເທດໄທ (UTC+07:00) — 📘 The TrueMoney Wallet docs page is now fully translated into all 10 languages (steps, examples, case table, notes)
✅ ໂຄດເດີມໃຊ້ໄດ້ ບໍ່ຕ້ອງແກ້ · /changelog.json (ຂໍ້ມູນເຄື່ອງອ່ານໄດ້)
📋 Copy all updates for your AI Paste it into the AI that maintains your site's code (ChatGPT / Claude / Gemini); it checks and changes only what is needed
🧾 ກວດສລິບທະນາຄານ 17 ພ.ຈ. 2026, 10:30 ເວລາປະເທດໄທ (UTC+07:00) Duplicate-slip protection between keys is now configurable: this key only / group A–E / whole account — for several sites that receive into the same account ກວດສະລິບ TrueMoney Wallet 21 ພ.ຈ. 2026, 16:30 ເວລາປະເທດໄທ (UTC+07:00) 📘 The TrueMoney Wallet docs page is now fully translated into all 10 languages (steps, examples, case table, notes) 🏦 ຝາກເງິນດ້ວຍສລິບ 12 ພ.ຈ. 2026, 00:19 ເວລາປະເທດໄທ (UTC+07:00) ເປີດບໍລິການຝາກເງິນດ້ວຍສລິບ + webhook ₿ ຮັບຊຳລະຄຣິບໂຕ 12 ພ.ຈ. 2026, 22:33 ເວລາປະເທດໄທ (UTC+07:00) ເພີ່ມເຄືອຂ່າຍ Ethereum, Polygon, Arbitrum, Base, Optimism, Avalanche ແລະ USDC ແຈ້ງເຕືອນທາງ Telegram 15 ພ.ຈ. 2026, 10:45 ເວລາປະເທດໄທ (UTC+07:00) Telegram / Discord notifications: step-by-step setup guide on the key card and in the docs (Telegram connect link, add a Discord channel webhook) ແຈ້ງເຕືອນທາງ Discord 15 ພ.ຈ. 2026, 10:45 ເວລາປະເທດໄທ (UTC+07:00) Telegram / Discord notifications: step-by-step setup guide on the key card and in the docs (Telegram connect link, add a Discord channel webhook) 📧 ສົ່ງອີເມວ + OTP + SMTP 14 ພ.ຈ. 2026, 09:12 ເວລາປະເທດໄທ (UTC+07:00) ເປີດບໍລິການສົ່ງອີເມວ: API + SMTP + OTP ເຂົ້າສູ່ລະບົບດ້ວຍ Google 20 ພ.ຈ. 2026, 19:30 ເວລາປະເທດໄທ (UTC+07:00) 🖼️ Show your own logo on the sign-in page, per key (50×50, auto-cropped and resized). Billed monthly: buy 1–11 months or 1 / 2 / 3 years. Hiding the credit now offers the same periods. ເຂົ້າສູ່ລະບົບດ້ວຍ LINE 20 ພ.ຈ. 2026, 19:30 ເວລາປະເທດໄທ (UTC+07:00) 🖼️ Show your own logo on the sign-in page, per key (50×50, auto-cropped and resized). Billed monthly: buy 1–11 months or 1 / 2 / 3 years. Hiding the credit now offers the same periods. ເຂົ້າສູ່ລະບົບດ້ວຍ Facebook 20 ພ.ຈ. 2026, 19:30 ເວລາປະເທດໄທ (UTC+07:00) 🖼️ Show your own logo on the sign-in page, per key (50×50, auto-cropped and resized). Billed monthly: buy 1–11 months or 1 / 2 / 3 years. Hiding the credit now offers the same periods. ເຂົ້າສູ່ລະບົບດ້ວຍ TikTok 20 ພ.ຈ. 2026, 19:30 ເວລາປະເທດໄທ (UTC+07:00) 🖼️ Show your own logo on the sign-in page, per key (50×50, auto-cropped and resized). Billed monthly: buy 1–11 months or 1 / 2 / 3 years. Hiding the credit now offers the same periods. ເຂົ້າສູ່ລະບົບດ້ວຍ Discord 20 ພ.ຈ. 2026, 19:30 ເວລາປະເທດໄທ (UTC+07:00) 🖼️ Show your own logo on the sign-in page, per key (50×50, auto-cropped and resized). Billed monthly: buy 1–11 months or 1 / 2 / 3 years. Hiding the credit now offers the same periods. ເຂົ້າສູ່ລະບົບດ້ວຍ Telegram 20 ພ.ຈ. 2026, 19:30 ເວລາປະເທດໄທ (UTC+07:00) 🖼️ Show your own logo on the sign-in page, per key (50×50, auto-cropped and resized). Billed monthly: buy 1–11 months or 1 / 2 / 3 years. Hiding the credit now offers the same periods. ເຂົ້າສູ່ລະບົບດ້ວຍ X (Twitter) 20 ພ.ຈ. 2026, 19:30 ເວລາປະເທດໄທ (UTC+07:00) 🖼️ Show your own logo on the sign-in page, per key (50×50, auto-cropped and resized). Billed monthly: buy 1–11 months or 1 / 2 / 3 years. Hiding the credit now offers the same periods. ເຂົ້າສູ່ລະບົບດ້ວຍ Microsoft 17 ພ.ຈ. 2026, 11:00 ເວລາປະເທດໄທ (UTC+07:00) Sign-in: choose whether user IDs are combined or separate between keys (whole account / group A–E / separate). New keys default to combined; keys that already have sign-ins stay in their group ເຂົ້າສູ່ລະບົບດ້ວຍ GitHub 17 ພ.ຈ. 2026, 11:00 ເວລາປະເທດໄທ (UTC+07:00) Sign-in: choose whether user IDs are combined or separate between keys (whole account / group A–E / separate). New keys default to combined; keys that already have sign-ins stay in their group ເຂົ້າສູ່ລະບົບດ້ວຍ Apple 17 ພ.ຈ. 2026, 11:00 ເວລາປະເທດໄທ (UTC+07:00) Sign-in: choose whether user IDs are combined or separate between keys (whole account / group A–E / separate). New keys default to combined; keys that already have sign-ins stay in their group ເຂົ້າສູ່ລະບົບດ້ວຍ Steam 17 ພ.ຈ. 2026, 11:00 ເວລາປະເທດໄທ (UTC+07:00) Sign-in: choose whether user IDs are combined or separate between keys (whole account / group A–E / separate). New keys default to combined; keys that already have sign-ins stay in their group ເຂົ້າສູ່ລະບົບດ້ວຍ Twitch 20 ພ.ຈ. 2026, 19:30 ເວລາປະເທດໄທ (UTC+07:00) 🖼️ Show your own logo on the sign-in page, per key (50×50, auto-cropped and resized). Billed monthly: buy 1–11 months or 1 / 2 / 3 years. Hiding the credit now offers the same periods. ເຂົ້າສູ່ລະບົບດ້ວຍ LinkedIn 20 ພ.ຈ. 2026, 19:30 ເວລາປະເທດໄທ (UTC+07:00) 🖼️ Show your own logo on the sign-in page, per key (50×50, auto-cropped and resized). Billed monthly: buy 1–11 months or 1 / 2 / 3 years. Hiding the credit now offers the same periods. ເຂົ້າສູ່ລະບົບດ້ວຍ Kakao 20 ພ.ຈ. 2026, 19:30 ເວລາປະເທດໄທ (UTC+07:00) 🖼️ Show your own logo on the sign-in page, per key (50×50, auto-cropped and resized). Billed monthly: buy 1–11 months or 1 / 2 / 3 years. Hiding the credit now offers the same periods. ເຂົ້າສູ່ລະບົບດ້ວຍ NAVER 20 ພ.ຈ. 2026, 19:30 ເວລາປະເທດໄທ (UTC+07:00) 🖼️ Show your own logo on the sign-in page, per key (50×50, auto-cropped and resized). Billed monthly: buy 1–11 months or 1 / 2 / 3 years. Hiding the credit now offers the same periods. ເຂົ້າສູ່ລະບົບດ້ວຍ Zalo 20 ພ.ຈ. 2026, 19:30 ເວລາປະເທດໄທ (UTC+07:00) 🖼️ Show your own logo on the sign-in page, per key (50×50, auto-cropped and resized). Billed monthly: buy 1–11 months or 1 / 2 / 3 years. Hiding the credit now offers the same periods. ເຂົ້າສູ່ລະບົບດ້ວຍ Spotify 20 ພ.ຈ. 2026, 19:30 ເວລາປະເທດໄທ (UTC+07:00) 🖼️ Show your own logo on the sign-in page, per key (50×50, auto-cropped and resized). Billed monthly: buy 1–11 months or 1 / 2 / 3 years. Hiding the credit now offers the same periods. ເຂົ້າສູ່ລະບົບດ້ວຍ Reddit 20 ພ.ຈ. 2026, 19:30 ເວລາປະເທດໄທ (UTC+07:00) 🖼️ Show your own logo on the sign-in page, per key (50×50, auto-cropped and resized). Billed monthly: buy 1–11 months or 1 / 2 / 3 years. Hiding the credit now offers the same periods. ເຂົ້າສູ່ລະບົບດ້ວຍ GitLab 17 ພ.ຈ. 2026, 11:00 ເວລາປະເທດໄທ (UTC+07:00) Sign-in: choose whether user IDs are combined or separate between keys (whole account / group A–E / separate). New keys default to combined; keys that already have sign-ins stay in their group ເຂົ້າສູ່ລະບົບດ້ວຍ Roblox 20 ພ.ຈ. 2026, 19:30 ເວລາປະເທດໄທ (UTC+07:00) 🖼️ Show your own logo on the sign-in page, per key (50×50, auto-cropped and resized). Billed monthly: buy 1–11 months or 1 / 2 / 3 years. Hiding the credit now offers the same periods. ເຂົ້າສູ່ລະບົບດ້ວຍ Epic Games 17 ພ.ຈ. 2026, 11:00 ເວລາປະເທດໄທ (UTC+07:00) Sign-in: choose whether user IDs are combined or separate between keys (whole account / group A–E / separate). New keys default to combined; keys that already have sign-ins stay in their group ເຂົ້າສູ່ລະບົບດ້ວຍ Yahoo 17 ພ.ຈ. 2026, 11:00 ເວລາປະເທດໄທ (UTC+07:00) Sign-in: choose whether user IDs are combined or separate between keys (whole account / group A–E / separate). New keys default to combined; keys that already have sign-ins stay in their group ເຂົ້າສູ່ລະບົບດ້ວຍ Slack 17 ພ.ຈ. 2026, 11:00 ເວລາປະເທດໄທ (UTC+07:00) Sign-in: choose whether user IDs are combined or separate between keys (whole account / group A–E / separate). New keys default to combined; keys that already have sign-ins stay in their group ເຂົ້າສູ່ລະບົບດ້ວຍ Amazon 17 ພ.ຈ. 2026, 11:00 ເວລາປະເທດໄທ (UTC+07:00) Sign-in: choose whether user IDs are combined or separate between keys (whole account / group A–E / separate). New keys default to combined; keys that already have sign-ins stay in their group
ທຸກບໍລິການໃຊ້ແບບດຽວກັນ: ສ້າງ API key ໃນໜ້າຮ້ານຄ້າ (1 key ຕໍ່ 1 ບໍລິການ) ແລ້ວສົ່ງ key ໃນ header Authorization ທຸກຄຳຂໍ
ຂັ້ນຕອນ ເຂົ້າສູ່ລະບົບທີ່ app.tungkao.com ດ້ວຍ Gmail ແລ້ວເຕີມເຄຣດິດ (1 ບາດ = 100 ເຄຣດິດ) API key → ເລືອກກາດບໍລິການ → ຕັ້ງອາຍຸ key → ສ້າງ → ສຳເນົາ key (ສະແດງເທື່ອດຽວ) ເກັບ key ໄວ້ທີ່ເຊີບເວີ (ຕົວແປ TUNGKAO_KEY) ຫ້າມໃສ່ໃນໜ້າເວັບ ຫຼື ແອັບມືຖື ເລີ່ມດ້ວຍ key test (tk_test_…) ບໍ່ຄິດເຄຣດິດ ແລ້ວຈຶ່ງປ່ຽນເປັນ live
GET /v1/account — ທົດສອບ key: ເຄຣດິດຄົງເຫຼືອ
curl Node.js PHP Python
ສຳເນົາ
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);<?php
$ch = curl_init("https://api.tungkao.com/v1/account");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("TUNGKAO_KEY")],
]);
$data = json_decode(curl_exec($ch), true);
print_r($data);import os, requests # pip install requests
r = requests.get(
"https://api.tungkao.com/v1/account",
headers={"Authorization": f"Bearer {os.environ['TUNGKAO_KEY']}"},
timeout=30,
)
print(r.json())
ເຊັນຄຳຂໍ (ເມື່ອເປີດຄີເຊັນ) Node.js PHP Python
ສຳເນົາ
import crypto from "node:crypto";
async function tungkao(method, path, body) {
const raw = body ? JSON.stringify(body) : "";
const ts = Math.floor(Date.now() / 1000).toString();
const hash = crypto.createHash("sha256").update(raw).digest("hex");
const sig = crypto.createHmac("sha256", process.env.TUNGKAO_SIGNING_SECRET).update(`${ts}.${method}.${path}.${hash}`).digest("hex");
const r = await fetch("https://api.tungkao.com" + path, { method, body: raw || undefined, headers: {
Authorization: `Bearer ${process.env.TUNGKAO_KEY}`, "Content-Type": "application/json",
"X-Tungkao-Timestamp": ts, "X-Tungkao-Signature": sig } });
return r.json();
}
console.log(await tungkao("GET", "/v1/account"));<?php
function tungkao(string $method, string $path, ?array $body = null) {
$raw = $body ? json_encode($body) : "";
$ts = (string) time();
$sig = hash_hmac("sha256", "$ts.$method.$path." . hash("sha256", $raw), getenv("TUNGKAO_SIGNING_SECRET"));
$ch = curl_init("https://api.tungkao.com" . $path);
curl_setopt_array($ch, [CURLOPT_CUSTOMREQUEST => $method, CURLOPT_RETURNTRANSFER => true, CURLOPT_POSTFIELDS => $raw ?: null,
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("TUNGKAO_KEY"), "Content-Type: application/json", "X-Tungkao-Timestamp: $ts", "X-Tungkao-Signature: $sig"]]);
return json_decode(curl_exec($ch), true);
}
print_r(tungkao("GET", "/v1/account"));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"))
ທຸກຄຳຕອບເປັນ JSON ມີ success ແລະ request_id ຖ້າຜິດພາດຈະມີ error.code (ເຊັ່ນ KEY_EXPIRED, INSUFFICIENT_CREDITS) ເບິ່ງທັງໝົດທີ່ /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. key ໝົດອາຍຸຕາມທີ່ເລືອກ (1–24 ເດືອນ ຫຼື ບໍ່ໝົດ) ແຈ້ງເຕືອນກ່ອນ 30/7/1 ມື້ທາງ webhook api_key.expiring ຕໍ່ອາຍຸໃນໜ້າຮ້ານ key ເດີມໃຊ້ຕໍ່ໄດ້ ຢືນຢັນໂດເມນ: key live 1 ອັນຜູກໄດ້ 1 ເວັບ ໄປທີ່ API key → 'ຢືນຢັນໂດເມນ' ໃສ່ໂດເມນ ອັບໂຫຼດ tungkao-verify-….html ໄປທີ່ https://ໂດເມນທ່ານ/ (ຫຼື DNS TXT _tungkao-verify.ໂດເມນ) ແລ້ວກົດຢືນຢັນ — ຍັງບໍ່ຢືນຢັນຈະໄດ້ DOMAIN_NOT_VERIFIED ຢືນຢັນແລ້ວປ່ຽນບໍ່ໄດ້ ແລະ ບັນຊີອື່ນໃຊ້ບໍ່ໄດ້ key ລັບຫຼຸດ? ກົດ 'ປ່ຽນ key ທັນທີ' ໄດ້ບໍ່ຈຳກັດ key ເກົ່າໃຊ້ບໍ່ໄດ້ທັນທີ key ໃຊ້ໄດ້ສະເພາະບໍລິການຂອງມັນ (ບໍ່ດັ່ງນັ້ນ WRONG_PRODUCT) ຂັ້ນສູງ (ທາງເລືອກ): ເປີດ 'ເຊັນຄຳຂໍ' ທີ່ key ຈະໄດ້ tksign_… ທຸກຄຳຂໍຕ້ອງມີ X-Tungkao-Timestamp ແລະ X-Tungkao-Signature = HMAC-SHA256(ຄີ, ts.METHOD.path.sha256(body)) — key ຫຼຸດຢ່າງດຽວກໍໃຊ້ບໍ່ໄດ້ 🧪 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. ສົ່ງ Accept-Language (th, en, lo, my, zh-CN, ko, ja, vi, km, id) ເພື່ອເລືອກພາສາຂໍ້ຄວາມ
ກວດວ່າສລິບແທ້ ຍອດກົງ ໂອນເຂົ້າບັນຊີທ່ານ ແລະ ຍັງບໍ່ເຄີຍໃຊ້ — ເໝາະກັບຮ້ານທີ່ລູກຄ້າແນບສລິບ
ຂັ້ນຕອນ ລູກຄ້າອັບໂຫຼດສລິບ ເວັບທ່ານອ່ານ QR (ຂຶ້ນຕົ້ນ 0041…) ສົ່ງ qr_payload ຍອດທີ່ຕ້ອງໄດ້ ແລະ ບັນຊີຮັບຂອງທ່ານມາທີ່ API ຮັບອໍເດີສະເພາະເມື່ອ status = VALID
POST /v1/slip/verify
curl Node.js PHP Python
ສຳເນົາ
curl -X POST https://api.tungkao.com/v1/slip/verify \
-H "Authorization: Bearer $TUNGKAO_KEY" \
-H "Content-Type: application/json" \
-d '{"qr_payload":"0041000600000101030040220014…","expected_amount":"500.00","receivers":[{"bank":"KBANK","account_number":"1234567890"}]}'// Node.js 18+ (nothing to install)
const res = await fetch("https://api.tungkao.com/v1/slip/verify", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.TUNGKAO_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({
"qr_payload": "0041000600000101030040220014…",
"expected_amount": "500.00",
"receivers": [
{
"bank": "KBANK",
"account_number": "1234567890"
}
]
}),
});
const data = await res.json();
console.log(data);<?php
$ch = curl_init("https://api.tungkao.com/v1/slip/verify");
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([
"qr_payload" => "0041000600000101030040220014…",
"expected_amount" => "500.00",
"receivers" => [
[
"bank" => "KBANK",
"account_number" => "1234567890"
]
]
]),
]);
$data = json_decode(curl_exec($ch), true);
print_r($data);import os, requests # pip install requests
r = requests.post(
"https://api.tungkao.com/v1/slip/verify",
headers={"Authorization": f"Bearer {os.environ['TUNGKAO_KEY']}"},
json={
"qr_payload": "0041000600000101030040220014…",
"expected_amount": "500.00",
"receivers": [
{
"bank": "KBANK",
"account_number": "1234567890"
}
]
},
timeout=30,
)
print(r.json())
📖 ສະຫຼຸບ: ໃຊ້ key ກັບຫຼາຍເວັບ ຜົນເປັນແນວໃດ ກໍລະນີ ຕັ້ງຄ່າ key (ໜ້າ API Keys) ຜົນ 2 ເວັບ (aaa.com, bbb.com) ຮັບເງິນເຂົ້າບັນຊີດຽວກັນ ທັງສອງ key: ກຸ່ມ A (ຫຼື ທັງບັນຊີ) ສະລິບທີ່ຜ່ານທີ່ aaa.com ແລ້ວ ສົ່ງໄປ bbb.com ຈະໄດ້ DUPLICATE — ໃຊ້ໄດ້ເວັບດຽວ ✅ 2 ເວັບໃຊ້ບັນຊີດຽວກັນ ແຕ່ key ແຍກກັນ (ຄ່າເລີ່ມຕົ້ນ) ທັງສອງ key: ແຍກສະເພາະ key ສະລິບດຽວຜ່ານທັງສອງເວັບ ⚠️ ລູກຄ້າອາດເຕີມໄດ້ 2 ເທື່ອ — ໃຫ້ເຊື່ອມ key 2 ເວັບ ບັນຊີຮັບເງິນຕ່າງກັນ ແຍກສະເພາະ key (ຄ່າເລີ່ມຕົ້ນ) ສະລິບຂອງເວັບໜຶ່ງ ສົ່ງໄປອີກເວັບຈະໄດ້ RECEIVER_MISMATCH ຢູ່ແລ້ວ ✅ 2 ເວັບຢູ່ຄົນລະບັນຊີ tungkao (ເຈົ້າຂອງຕ່າງກັນ) ແຕ່ບັນຊີຮັບເງິນດຽວກັນ ເຊື່ອມ key ຂ້າມບັນຊີ tungkao ບໍ່ໄດ້ ສະລິບດຽວຜ່ານທັງສອງ ⚠️ — ຊື້ key ທັງສອງຈາກບັນຊີ tungkao ດຽວ ແລ້ວເຊື່ອມກັນ ເວັບດຽວໃຊ້ 2 key (ເຊັ່ນ ເວັບ + ແອັບ) ທັງສອງ key: ກຸ່ມດຽວກັນ ສະລິບໃຊ້ໄດ້ເທື່ອດຽວ ບໍ່ວ່າຈະສົ່ງຈາກເວັບ ຫຼື ແອັບ ✅
DUPLICATE ກວດຈາກເລກອ້າງອີງໃນ QR ໄດ້ທັນທີ · ຕັ້ງຄ່າທີ່ກາດ “ກັນສະລິບຊ້ຳລະຫວ່າງ key” ໃນໜ້າ API Keys (key ໃໝ່ຄ່າເລີ່ມຕົ້ນ: ແຍກສະເພາະ key)
📚 ຕົວຢ່າງການໃຊ້ງານ ຕົວຢ່າງທີ 1
Customer tops up with a matching slip (passes)
ສະຖານະການ: A customer transfers 500 THB to your account and uploads the slip on your top-up page
ສົ່ງຄຳຂໍ
POST /v1/slip/verify
{
"image_base64": "<base64 of the slip image>",
"expected_amount": "500.00"
}ຕົວຢ່າງຜົນຕອບກັບ
{
"success": true,
"status": "VALID",
"data": {
"trans_ref": "2025111612345678",
"amount": "500.00",
"currency": "THB"
},
"billing": {
"credits_charged": 250
}
}
➡️ VALID → credit the customer now; the slip is marked as used
ຕົວຢ່າງທີ 2
Send the QR text instead of the image (faster)
ສະຖານະການ: Your app reads the QR on the slip itself and sends only the QR text
ສົ່ງຄຳຂໍ
POST /v1/slip/verify
{
"qr_payload": "0041000600000101030040220014242082547BPM04988…",
"expected_amount": "500.00"
}
➡️ Same result as sending the image, smaller and faster. If you have the image, send it: some backup providers verify from the image
ຕົວຢ່າງທີ 3
The customer sends the same slip again
ສະຖານະການ: The customer attaches the same 500 THB slip again to top up twice
ສົ່ງຄຳຂໍ
POST /v1/slip/verify
{
"image_base64": "<base64 of the slip image>",
"expected_amount": "500.00"
}ຕົວຢ່າງຜົນຕອບກັບ
{
"success": false,
"status": "DUPLICATE",
"message": "This slip has already been used"
}
➡️ DUPLICATE → do not credit; tell the customer the slip was already used
ຕົວຢ່າງທີ 4
Wrong amount or wrong account
ສະຖານະການ: The customer paid 300 THB for a 500 THB order, or paid another account
ສົ່ງຄຳຂໍ
POST /v1/slip/verify
{
"image_base64": "<base64 of the slip image>",
"expected_amount": "500.00",
"receivers": [
{
"bank": "KBANK",
"account_number": "123-4-56789-0"
}
]
}ຕົວຢ່າງຜົນຕອບກັບ
{
"success": false,
"status": "AMOUNT_MISMATCH"
}
➡️ AMOUNT_MISMATCH = wrong amount · RECEIVER_MISMATCH = other account. The slip is not marked as used, so the customer can retry with the right one
ຕົວຢ່າງທີ 5
Slip is too old
ສະຖານະການ: You only accept slips paid within the last 30 minutes
ສົ່ງຄຳຂໍ
POST /v1/slip/verify
{
"image_base64": "<base64 of the slip image>",
"expected_amount": "500.00",
"max_age_minutes": 30
}ຕົວຢ່າງຜົນຕອບກັບ
{
"success": false,
"status": "DATE_MISMATCH"
}
➡️ DATE_MISMATCH when the slip is older than allowed
ຕົວຢ່າງທີ 6
Two sites, one receiving account
ສະຖານະການ: aaa.com and bbb.com use different keys but receive into the same account
➡️ Put both keys in one group on the “Duplicate-slip protection between keys” card → a slip that passed on aaa.com returns DUPLICATE on bbb.com
ຕົວຢ່າງທີ 7
Every verifier is down
ສະຖານະການ: All upstream verifiers fail at once (rare; backups are tried first)
ຕົວຢ່າງຜົນຕອບກັບ
{
"success": false,
"status": "SERVICE_UNAVAILABLE"
}
➡️ HTTP 503 and nothing is charged. Ask the customer to retry later, or queue it for manual review
ສົ່ງ header Idempotency-Key (ເຊັ່ນ ເລກອໍເດີ) ສົ່ງຊ້ຳຈະບໍ່ຖືກຄິດເງິນຊ້ຳ ສລິບເດີມ VALID ໄດ້ເທື່ອດຽວຕໍ່ key (ເທື່ອທີສອງໄດ້ 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 ເປັນຂອງແທ້ ຍອດຖືກ ເຂົ້າເບີ e-wallet ຂອງທ່ານ ແລະ ຍັງບໍ່ເຄີຍໃຊ້
ຂັ້ນຕອນ ຕັ້ງກະເປົາຮັບເງິນເທື່ອດຽວ (PUT /v1/truewallet/profile ຫຼື ທີ່ກາດ key ໃນໜ້າຮ້ານ): ເບີມືຖື ຫຼື e-Wallet ID, ຊື່ໄທ/ອັງກິດ ແລະ ຮູບ QR ຮັບເງິນ ສະແດງຮູບ QR (qr_image_url) ໃຫ້ລູກຄ້າຈ່າຍ ແລ້ວໃຫ້ລູກຄ້າອັບໂຫຼດຮູບສະລິບ ສົ່ງຮູບສະລິບ (image_base64) ແລະ ຍອດທີ່ຄາດໄວ້ໄປທີ່ API ເບີ ແລະ ຊື່ໃຊ້ຈາກທີ່ບັນທຶກໄວ້ (ຫຼື ສົ່ງ wallet_number / ewallet_id ມາໃນຄຳຂໍ) ຮັບອໍເດີສະເພາະເມື່ອ status = VALID
PUT /v1/truewallet/profile
curl Node.js PHP Python
ສຳເນົາ
curl -X PUT https://api.tungkao.com/v1/truewallet/profile \
-H "Authorization: Bearer $TUNGKAO_KEY" \
-H "Content-Type: application/json" \
-d '{"wallet_number":"0812345678","ewallet_id":"140000812345678","name_en":"Somchai Jaidee","qr_image_base64":"<base64 QR image>"}'// Node.js 18+ (nothing to install)
const res = await fetch("https://api.tungkao.com/v1/truewallet/profile", {
method: "PUT",
headers: { Authorization: `Bearer ${process.env.TUNGKAO_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({
"wallet_number": "0812345678",
"ewallet_id": "140000812345678",
"name_en": "Somchai Jaidee",
"qr_image_base64": "<base64 QR image>"
}),
});
const data = await res.json();
console.log(data);<?php
$ch = curl_init("https://api.tungkao.com/v1/truewallet/profile");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("TUNGKAO_KEY"), "Content-Type: application/json"],
CURLOPT_POSTFIELDS => json_encode([
"wallet_number" => "0812345678",
"ewallet_id" => "140000812345678",
"name_en" => "Somchai Jaidee",
"qr_image_base64" => "<base64 QR image>"
]),
]);
$data = json_decode(curl_exec($ch), true);
print_r($data);import os, requests # pip install requests
r = requests.put(
"https://api.tungkao.com/v1/truewallet/profile",
headers={"Authorization": f"Bearer {os.environ['TUNGKAO_KEY']}"},
json={
"wallet_number": "0812345678",
"ewallet_id": "140000812345678",
"name_en": "Somchai Jaidee",
"qr_image_base64": "<base64 QR image>"
},
timeout=30,
)
print(r.json())GET /v1/truewallet/profile
curl Node.js PHP Python
ສຳເນົາ
curl -X GET https://api.tungkao.com/v1/truewallet/profile \
-H "Authorization: Bearer $TUNGKAO_KEY"// Node.js 18+ (nothing to install)
const res = await fetch("https://api.tungkao.com/v1/truewallet/profile", {
method: "GET",
headers: { Authorization: `Bearer ${process.env.TUNGKAO_KEY}` },
});
const data = await res.json();
console.log(data);<?php
$ch = curl_init("https://api.tungkao.com/v1/truewallet/profile");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("TUNGKAO_KEY")],
]);
$data = json_decode(curl_exec($ch), true);
print_r($data);import os, requests # pip install requests
r = requests.get(
"https://api.tungkao.com/v1/truewallet/profile",
headers={"Authorization": f"Bearer {os.environ['TUNGKAO_KEY']}"},
timeout=30,
)
print(r.json())POST /v1/truewallet/verify
curl Node.js PHP Python
ສຳເນົາ
curl -X POST https://api.tungkao.com/v1/truewallet/verify \
-H "Authorization: Bearer $TUNGKAO_KEY" \
-H "Content-Type: application/json" \
-d '{"image_base64":"<base64 slip image>","expected_amount":"500.00"}'// Node.js 18+ (nothing to install)
const res = await fetch("https://api.tungkao.com/v1/truewallet/verify", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.TUNGKAO_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({
"image_base64": "<base64 slip image>",
"expected_amount": "500.00"
}),
});
const data = await res.json();
console.log(data);<?php
$ch = curl_init("https://api.tungkao.com/v1/truewallet/verify");
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([
"image_base64" => "<base64 slip image>",
"expected_amount" => "500.00"
]),
]);
$data = json_decode(curl_exec($ch), true);
print_r($data);import os, requests # pip install requests
r = requests.post(
"https://api.tungkao.com/v1/truewallet/verify",
headers={"Authorization": f"Bearer {os.environ['TUNGKAO_KEY']}"},
json={
"image_base64": "<base64 slip image>",
"expected_amount": "500.00"
},
timeout=30,
)
print(r.json())
📖 ສະຫຼຸບ: ໃຊ້ key ກັບຫຼາຍເວັບ ຜົນເປັນແນວໃດ ກໍລະນີ ຕັ້ງຄ່າ key (ໜ້າ API Keys) ຜົນ 2 ເວັບ (aaa.com, bbb.com) ຮັບເງິນເຂົ້າບັນຊີດຽວກັນ ທັງສອງ key: ກຸ່ມ A (ຫຼື ທັງບັນຊີ) ສະລິບທີ່ຜ່ານທີ່ aaa.com ແລ້ວ ສົ່ງໄປ bbb.com ຈະໄດ້ DUPLICATE — ໃຊ້ໄດ້ເວັບດຽວ ✅ 2 ເວັບໃຊ້ບັນຊີດຽວກັນ ແຕ່ key ແຍກກັນ (ຄ່າເລີ່ມຕົ້ນ) ທັງສອງ key: ແຍກສະເພາະ key ສະລິບດຽວຜ່ານທັງສອງເວັບ ⚠️ ລູກຄ້າອາດເຕີມໄດ້ 2 ເທື່ອ — ໃຫ້ເຊື່ອມ key 2 ເວັບ ບັນຊີຮັບເງິນຕ່າງກັນ ແຍກສະເພາະ key (ຄ່າເລີ່ມຕົ້ນ) ສະລິບຂອງເວັບໜຶ່ງ ສົ່ງໄປອີກເວັບຈະໄດ້ RECEIVER_MISMATCH ຢູ່ແລ້ວ ✅ 2 ເວັບຢູ່ຄົນລະບັນຊີ tungkao (ເຈົ້າຂອງຕ່າງກັນ) ແຕ່ບັນຊີຮັບເງິນດຽວກັນ ເຊື່ອມ key ຂ້າມບັນຊີ tungkao ບໍ່ໄດ້ ສະລິບດຽວຜ່ານທັງສອງ ⚠️ — ຊື້ key ທັງສອງຈາກບັນຊີ tungkao ດຽວ ແລ້ວເຊື່ອມກັນ ເວັບດຽວໃຊ້ 2 key (ເຊັ່ນ ເວັບ + ແອັບ) ທັງສອງ key: ກຸ່ມດຽວກັນ ສະລິບໃຊ້ໄດ້ເທື່ອດຽວ ບໍ່ວ່າຈະສົ່ງຈາກເວັບ ຫຼື ແອັບ ✅
DUPLICATE ກວດຈາກເລກອ້າງອີງໃນ QR ໄດ້ທັນທີ · ຕັ້ງຄ່າທີ່ກາດ “ກັນສະລິບຊ້ຳລະຫວ່າງ key” ໃນໜ້າ API Keys (key ໃໝ່ຄ່າເລີ່ມຕົ້ນ: ແຍກສະເພາະ key)
📚 ຕົວຢ່າງການໃຊ້ງານ ຕົວຢ່າງທີ 1
ຕັ້ງກະເປົາຮັບເງິນເທື່ອດຽວ
ສະຖານະການ: ຮ້ານຮັບເງິນເຂົ້າ TrueMoney 081-234-5678 (ສົມໃຈ) ແລະ ມີ QR ຮັບເງິນ
ສົ່ງຄຳຂໍ
PUT /v1/truewallet/profile
{
"receive_by": "wallet_number",
"wallet_number": "0812345678",
"name_en": "Somchai Jaidee",
"qr_image_base64": "<base64 of the QR image>"
}ຕົວຢ່າງຜົນຕອບກັບ
{
"success": true,
"data": {
"receive_by": "wallet_number",
"wallet_number": "0812345678",
"qr_image_url": "https://api.tungkao.com/v1/truewallet/qr/…"
}
}
➡️ ສະແດງ qr_image_url ໃນໜ້າຈ່າຍເງິນໃຫ້ລູກຄ້າສະແກນ
ຕົວຢ່າງທີ 2
ກວດໂດຍໃຊ້ກະເປົາທີ່ບັນທຶກໄວ້
ສະຖານະການ: ລູກຄ້າໂອນ 300 ບາດ ເຂົ້າກະເປົາ TrueMoney ຂອງທ່ານ ແລ້ວແນບສະລິບ
ສົ່ງຄຳຂໍ
POST /v1/truewallet/verify
{
"image_base64": "<base64 of the slip image>",
"expected_amount": "300.00"
}ຕົວຢ່າງຜົນຕອບກັບ
{
"success": true,
"status": "VALID",
"data": {
"amount": "300.00",
"currency": "THB"
}
}
➡️ ບໍ່ຕ້ອງສົ່ງເບີຊ້ຳ ລະບົບໃຊ້ກະເປົາທີ່ບັນທຶກໄວ້ໃນ key
ຕົວຢ່າງທີ 3
ຮັບເງິນດ້ວຍ e-Wallet ID ເທົ່ານັ້ນ
ສະຖານະການ: ລູກຄ້າໂອນຜ່ານ e-Wallet ID 15 ຫຼັກ ທ່ານບໍ່ຕ້ອງເປີດເຜີຍເບີໂທ
ສົ່ງຄຳຂໍ
PUT /v1/truewallet/profile
{
"receive_by": "ewallet_id",
"ewallet_id": "140000812345678"
}
➡️ ສະລິບທີ່ໂອນເຂົ້າເບີໂທຈະໄດ້ RECEIVER_MISMATCH ຮັບສະເພາະ e-Wallet ID
ຕົວຢ່າງທີ 4
ສົ່ງຜູ້ຮັບມາໃນຄຳຂໍ (ຫຼາຍກະເປົາ)
ສະຖານະການ: ທ່ານໝູນໃຊ້ຫຼາຍກະເປົາຕາມສາຂາ
ສົ່ງຄຳຂໍ
POST /v1/truewallet/verify
{
"image_base64": "<base64 of the slip image>",
"expected_amount": "300.00",
"wallet_numbers": [
"0812345678",
"0898765432"
],
"wallet_name_en": "Somchai Jaidee"
}
➡️ ຜ່ານ ຖ້າສະລິບໂອນເຂົ້າກະເປົາໃດໜຶ່ງໃນລາຍການ ແລະ ຊື່ຕົງ
ຕົວຢ່າງທີ 5
ຜູ້ໃຫ້ບໍລິການຫຼັກລົ້ມ ຕົວສຳຮອງຮັບແທນ
ສະຖານະການ: ຕົວກວດຫຼັກລົ້ມຂະນະລູກຄ້າສົ່ງ
ສົ່ງຄຳຂໍ
POST /v1/truewallet/verify
{
"image_base64": "<base64 of the slip image>",
"expected_amount": "300.00"
}
➡️ ຕົວສຳຮອງກວດໃຫ້ໃນຄຳຂໍດຽວກັນ ສົ່ງ image_base64 ມາດ້ວຍ: ຕົວສຳຮອງກວດຈາກຮູບ
ຕົວຢ່າງທີ 6
ສະລິບຊ້ຳ ຫຼື ຍອດບໍ່ຕົງ
ສະຖານະການ: ລູກຄ້າສົ່ງສະລິບຊ້ຳ ຫຼື ໂອນບໍ່ຄົບ
ຕົວຢ່າງຜົນຕອບກັບ
{
"success": false,
"status": "DUPLICATE"
}
➡️ DUPLICATE = ໃຊ້ແລ້ວ · AMOUNT_MISMATCH = ຍອດບໍ່ຕົງ ທັງສອງກໍລະນີຢ່າເຕີມເຄຣດິດ
ລະບຸຜູ້ຮັບໄດ້ທັງສອງແບບ ຫຼື ທັງສອງ: wallet_number (ເບີມືຖື 10 ຫຼັກ) ຫຼື ewallet_id (e-Wallet ID 15 ຫຼັກ) ສະລິບທີ່ຕົງອັນໃດອັນໜຶ່ງຈະຜ່ານ ເລືອກວິທີຮັບເງິນດ້ວຍ receive_by: wallet_number (ເບີເທົ່ານັ້ນ), ewallet_id (e-Wallet ID ເທົ່ານັ້ນ) ຫຼື any (ຄ່າເລີ່ມຕົ້ນ ອັນໃດກໍໄດ້) ສະລິບຈະຖືກກວດກັບຕົວທີ່ເລືອກ ຊື່ຜູ້ຮັບ: name_th, name_en ຫຼື ທັງສອງ (wallet_name_th / wallet_name_en ໃນຄຳຂໍກວດ) ຖ້າຕັ້ງໄວ້ ສະລິບຕ້ອງຕົງຊື່ໃດຊື່ໜຶ່ງ ຖ້າບໍ່ຕັ້ງ ຈະບໍ່ກວດຊື່ ຮູບ QR ຮັບເງິນ: JPG/PNG ບໍ່ເກີນ 1 MB ທີ່ອ່ານ QR ໄດ້ ທ່ານຈະໄດ້ qr_image_url ສຳລັບໜ້າຈ່າຍເງິນ ອັບຮູບໃໝ່ = ໄດ້ລິ້ງໃໝ່ wallet_number ຄືເບີມືຖື 10 ຫຼັກຂອງກະເປົາຮັບເງິນ ສົ່ງຫຼາຍເບີດ້ວຍ wallet_numbers (ສູງສຸດ 10) ຫຼື ບັນທຶກໄວ້ທີ່ key ໃນໜ້າຮ້ານ ຜົນຕອບກັບ ແລະ ສະຖານະຄືກັບ /v1/slip/verify ສະລິບໜຶ່ງ VALID ໄດ້ເທື່ອດຽວຕໍ່ key (ເທື່ອທີສອງໄດ້ DUPLICATE) ສົ່ງ header Idempotency-Key (ເຊັ່ນ ເລກອໍເດີ) ສົ່ງຊ້ຳຈະບໍ່ຖືກຄິດເງິນຊ້ຳ
ເຕີມເງິນໃຫ້ສະມາຊິກ: ກວດສລິບ ບັນທຶກຍອດຝາກຂອງຄົນນັ້ນ ແລະ ສົ່ງ webhook ບອກເວັບທ່ານ
ຂັ້ນຕອນ ຕັ້ງບັນຊີຮັບເງິນ ແລະ Webhook URL ທີ່ key ໃນໜ້າຮ້ານ ສົ່ງສລິບພ້ອມ customer_ref (ລະຫັດສະມາຊິກຂອງທ່ານ) ເມື່ອໄດ້ webhook deposit.succeeded (ກວດລາຍເຊັນກ່ອນ) ໃຫ້ເຕີມເງິນໃຫ້ສະມາຊິກ
POST /v1/deposits/slip
curl Node.js PHP Python
ສຳເນົາ
curl -X POST https://api.tungkao.com/v1/deposits/slip \
-H "Authorization: Bearer $TUNGKAO_KEY" \
-H "Content-Type: application/json" \
-d '{"qr_payload":"0041000600000101030040220014…","customer_ref":"member-1001","expected_amount":"300.00"}'// Node.js 18+ (nothing to install)
const res = await fetch("https://api.tungkao.com/v1/deposits/slip", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.TUNGKAO_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({
"qr_payload": "0041000600000101030040220014…",
"customer_ref": "member-1001",
"expected_amount": "300.00"
}),
});
const data = await res.json();
console.log(data);<?php
$ch = curl_init("https://api.tungkao.com/v1/deposits/slip");
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([
"qr_payload" => "0041000600000101030040220014…",
"customer_ref" => "member-1001",
"expected_amount" => "300.00"
]),
]);
$data = json_decode(curl_exec($ch), true);
print_r($data);import os, requests # pip install requests
r = requests.post(
"https://api.tungkao.com/v1/deposits/slip",
headers={"Authorization": f"Bearer {os.environ['TUNGKAO_KEY']}"},
json={
"qr_payload": "0041000600000101030040220014…",
"customer_ref": "member-1001",
"expected_amount": "300.00"
},
timeout=30,
)
print(r.json())GET /v1/deposits/dep_xxx
curl Node.js PHP Python
ສຳເນົາ
curl -X GET https://api.tungkao.com/v1/deposits/dep_xxx \
-H "Authorization: Bearer $TUNGKAO_KEY"// Node.js 18+ (nothing to install)
const res = await fetch("https://api.tungkao.com/v1/deposits/dep_xxx", {
method: "GET",
headers: { Authorization: `Bearer ${process.env.TUNGKAO_KEY}` },
});
const data = await res.json();
console.log(data);<?php
$ch = curl_init("https://api.tungkao.com/v1/deposits/dep_xxx");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("TUNGKAO_KEY")],
]);
$data = json_decode(curl_exec($ch), true);
print_r($data);import os, requests # pip install requests
r = requests.get(
"https://api.tungkao.com/v1/deposits/dep_xxx",
headers={"Authorization": f"Bearer {os.environ['TUNGKAO_KEY']}"},
timeout=30,
)
print(r.json())
ກວດລາຍເຊັນ webhook ທຸກ webhook ມີ X-Tungkao-Signature: t=…,v1=… ຕ້ອງກວດກ່ອນເຊື່ອຂໍ້ມູນ (ຄີ webhook ສະແດງຕອນຕັ້ງ URL)
Node.js PHP Python
ສຳເນົາ
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]));
}<?php
function verify(string $raw, string $header, string $secret): bool {
if (!preg_match('/^t=(\d+),v1=([0-9a-f]{64})$/', $header, $m) || abs(time() - (int)$m[1]) > 300) return false;
return hash_equals(hash_hmac("sha256", $m[1] . "." . $raw, $secret), $m[2]);
}
$ok = verify(file_get_contents("php://input"), $_SERVER["HTTP_X_TUNGKAO_SIGNATURE"] ?? "", getenv("TUNGKAO_WEBHOOK_SECRET"));import hmac, hashlib, re, time
def verify(raw: bytes, header: str, secret: str) -> bool:
m = re.fullmatch(r"t=(\d+),v1=([0-9a-f]{64})", header or "")
if not m or abs(time.time() - int(m[1])) > 300:
return False
want = hmac.new(secret.encode(), m[1].encode() + b"." + raw, hashlib.sha256).hexdigest()
return hmac.compare_digest(want, m[2])📚 ຕົວຢ່າງການໃຊ້ງານ ຕົວຢ່າງທີ 1
Credit a member's deposit
ສະຖານະການ: Member member-1001 deposits 300 THB and attaches the slip
ສົ່ງຄຳຂໍ
POST /v1/deposits/slip
{
"image_base64": "<base64 of the slip image>",
"customer_ref": "member-1001",
"expected_amount": "300.00"
}ຕົວຢ່າງຜົນຕອບກັບ
{
"success": true,
"status": "VALID",
"data": {
"deposit_id": "dep_8f2c…",
"customer_ref": "member-1001",
"amount": "300.00"
}
}
➡️ Store deposit_id with the order and credit the member
ຕົວຢ່າງທີ 2
Attach your own data to the deposit
ສະຖານະການ: You want to know which promotion the deposit came from
ສົ່ງຄຳຂໍ
POST /v1/deposits/slip
{
"image_base64": "<base64 of the slip image>",
"customer_ref": "member-1001",
"metadata": {
"promo": "NEWYEAR",
"channel": "app"
}
}
➡️ metadata comes back in the webhook and when you fetch the deposit
ຕົວຢ່າງທີ 3
Receive the result by webhook
ສະຖານະການ: With a webhook URL on the key, the result is pushed to your site
➡️ Verify the webhook signature before crediting and use deposit_id to avoid double credit
ຕົວຢ່າງທີ 4
Check a deposit later
ສະຖານະການ: Your site missed the webhook or wants to re-check
ສົ່ງຄຳຂໍ
GET /v1/deposits/dep_8f2c…ຕົວຢ່າງຜົນຕອບກັບ
{
"success": true,
"data": {
"deposit_id": "dep_8f2c…",
"status": "succeeded"
}
}
➡️ succeeded = credit · failed = rejected · pending = wait
ຕົວຢ່າງທີ 5
Member resubmits the same slip
ສະຖານະການ: A member tries to deposit again with the same slip
ຕົວຢ່າງຜົນຕອບກັບ
{
"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.
ຂັ້ນຕອນ ສ້າງ key ຂອງຄ່າຍທີ່ຕ້ອງການ ແລ້ວໄປໜ້າ 'ສະມາຊິກເຂົ້າສູ່ລະບົບ' ຕັ້ງຊື່ເວັບ ແລະ ລິ້ງກັບ (https ກົງທຸກຕົວອັກສອນ) ປຸ່ມເຂົ້າສູ່ລະບົບພາຜູ້ໃຊ້ໄປ /oauth/authorize ພ້ອມ client_id (id ຂອງ key), redirect_uri ແລະ state (ຄ່າສຸ່ມໃໝ່ທຸກຄັ້ງ ເກັບໃນ session) ຜູ້ໃຊ້ກັບມາ redirect_uri?code=…&state=… → ກວດ state → ເຊີບເວີເອີ້ນ POST /v1/login/token ພາຍໃນ 2 ນາທີ ໃຊ້ data.user (ເຊັ່ນ 7F3K9QX2-yourshopcom) ເປັນລະຫັດສະມາຊິກ ຄົນເດີມໄດ້ລະຫັດເດີມສະເໝີ
POST /v1/login/token
curl Node.js PHP Python
ສຳເນົາ
curl -X POST https://api.tungkao.com/v1/login/token \
-H "Authorization: Bearer $TUNGKAO_KEY" \
-H "Content-Type: application/json" \
-d '{"code":"from the redirect","redirect_uri":"https://yourshop.com/auth/callback"}'// Node.js 18+ (nothing to install)
const res = await fetch("https://api.tungkao.com/v1/login/token", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.TUNGKAO_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({
"code": "from the redirect",
"redirect_uri": "https://yourshop.com/auth/callback"
}),
});
const data = await res.json();
console.log(data);<?php
$ch = curl_init("https://api.tungkao.com/v1/login/token");
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([
"code" => "from the redirect",
"redirect_uri" => "https://yourshop.com/auth/callback"
]),
]);
$data = json_decode(curl_exec($ch), true);
print_r($data);import os, requests # pip install requests
r = requests.post(
"https://api.tungkao.com/v1/login/token",
headers={"Authorization": f"Bearer {os.environ['TUNGKAO_KEY']}"},
json={
"code": "from the redirect",
"redirect_uri": "https://yourshop.com/auth/callback"
},
timeout=30,
)
print(r.json())GET /v1/login/users?limit=50
curl Node.js PHP Python
ສຳເນົາ
curl -X GET https://api.tungkao.com/v1/login/users?limit=50 \
-H "Authorization: Bearer $TUNGKAO_KEY"// Node.js 18+ (nothing to install)
const res = await fetch("https://api.tungkao.com/v1/login/users?limit=50", {
method: "GET",
headers: { Authorization: `Bearer ${process.env.TUNGKAO_KEY}` },
});
const data = await res.json();
console.log(data);<?php
$ch = curl_init("https://api.tungkao.com/v1/login/users?limit=50");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("TUNGKAO_KEY")],
]);
$data = json_decode(curl_exec($ch), true);
print_r($data);import os, requests # pip install requests
r = requests.get(
"https://api.tungkao.com/v1/login/users?limit=50",
headers={"Authorization": f"Bearer {os.environ['TUNGKAO_KEY']}"},
timeout=30,
)
print(r.json())
📖 Summary: using sign-in keys on several sites ກໍລະນີ ຕັ້ງຄ່າ key (ໜ້າ API Keys) ຜົນ 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.
ຕົວຢ່າງຄົບລະບົບ (ປຸ່ມ + ຮັບກັບ + ແລກ code) Node.js (Express) PHP Python (Flask)
ສຳເນົາ
// 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("/")
ຄ່າຍ ບໍລິການ ໄດ້ຂໍ້ມູນ
Googlegoogle_loginຊື່ ອີເມວ (ຢືນຢັນແລ້ວ) ຮູບ
LINEline_loginຊື່ ຮູບ ອີເມວ (ຖ້າຍິນຍອມ)
Facebookfacebook_loginຊື່ ຮູບ ອີເມວ
TikToktiktok_loginຊື່ທີ່ສະແດງ ຮູບ (ບໍ່ມີອີເມວ)
Discorddiscord_loginຊື່ ຮູບ ອີເມວ
Telegramtelegram_loginname, username, photo
X (Twitter)x_loginname, username, photo
Microsoftmicrosoft_loginname, email (Hotmail/Outlook)
GitHubgithub_loginname, email, avatar
Appleapple_loginpermanent member ID (no name or email in this mode)
Steamsteam_loginname, avatar and SteamID (no email)
Twitchtwitch_loginname, email, avatar
LinkedInlinkedin_loginname, email, photo
Kakaokakao_loginname, photo (email once Kakao approves it)
NAVERnaver_loginname, email, photo
Zalozalo_loginname, photo (no email)
Spotifyspotify_loginname, email, photo
Redditreddit_loginusername, avatar (no email)
GitLabgitlab_loginname, email, avatar
Robloxroblox_loginname, avatar (no email)
Epic Gamesepicgames_logindisplay name (no email)
Yahooyahoo_loginname, email, photo
Slackslack_loginname, email, photo
Amazonamazon_loginname, email
📚 ຕົວຢ່າງການໃຊ້ງານ ຕົວຢ່າງທີ 1
A “Sign in with Google” button on your site
ສະຖານະການ: A visitor taps Sign in with Google on your site
ສົ່ງຄຳຂໍ
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
ຕົວຢ່າງທີ 2
Exchange the code for the user (server side)
ສະຖານະການ: Your server receives the code on the callback page (exchange within 2 minutes)
ສົ່ງຄຳຂໍ
POST /v1/login/token
{
"code": "<code from the callback>",
"redirect_uri": "https://yourshop.com/auth/callback"
}ຕົວຢ່າງຜົນຕອບກັບ
{
"success": true,
"data": {
"user": "7F3K9QX2-yourshopcom",
"provider": "google",
"name": "Somchai",
"is_new_user": true
}
}
➡️ Use user as the member id in your database (stable per person)
ຕົວຢ່າງທີ 3
A returning user signs in
ສະຖານະການ: The same person signs in with Google again
ຕົວຢ່າງຜົນຕອບກັບ
{
"success": true,
"data": {
"user": "7F3K9QX2-yourshopcom",
"is_new_user": false,
"login_count": 5
}
}
➡️ Same user every time → look up the member and sign them in
ຕົວຢ່າງທີ 4
One site, two Google keys (website + app)
ສະຖານະການ: 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
ຕົວຢ່າງທີ 5
List members who signed in
ສະຖານະການ: You want to browse or search members of this key
ສົ່ງຄຳຂໍ
GET /v1/login/users?q=somchai&limit=50
➡️ Returns members with last sign-in time and count
ຕົວຢ່າງທີ 6
The user cancels during sign-in
ສະຖານະການ: 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. ຄິດເຄຣດິດທຸກຄັ້ງທີ່ເຂົ້າສູ່ລະບົບສຳເລັດ ແລະ ອີກຄັ້ງຕໍ່ສະມາຊິກໃໝ່ — ເບິ່ງລາຄາໃນກາດບໍລິການ key ໂໝດ test ໃຊ້ລິ້ງກັບ http://localhost ໄດ້ ແລະ ບໍ່ຄິດເຄຣດິດ ຫ້າມໃສ່ API key ໃນລິ້ງ ຫຼື ໜ້າເວັບ — /oauth/authorize ໃຊ້ແຕ່ client_id (id ຂອງ key) ທີ່ເປີດເຜີຍໄດ້
ສົ່ງຂໍ້ຄວາມຫາສະມາຊິກທາງ Telegram ຜ່ານບອດກາງຂອງ TUNGKAO ບໍ່ຕ້ອງສ້າງບອດເອງ ເຊັ່ນ ແຈ້ງຍອດເຂົ້າ ສະຖານະອໍເດີ OTP
ຂັ້ນຕອນ 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/link
curl Node.js PHP Python
ສຳເນົາ
curl -X POST https://api.tungkao.com/v1/telegram/link \
-H "Authorization: Bearer $TUNGKAO_KEY" \
-H "Content-Type: application/json" \
-d '{"ref":"member-1001"}'// Node.js 18+ (nothing to install)
const res = await fetch("https://api.tungkao.com/v1/telegram/link", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.TUNGKAO_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({
"ref": "member-1001"
}),
});
const data = await res.json();
console.log(data);<?php
$ch = curl_init("https://api.tungkao.com/v1/telegram/link");
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([
"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/telegram/link",
headers={"Authorization": f"Bearer {os.environ['TUNGKAO_KEY']}"},
json={
"ref": "member-1001"
},
timeout=30,
)
print(r.json())POST /v1/telegram/send
curl Node.js PHP Python
ສຳເນົາ
curl -X POST https://api.tungkao.com/v1/telegram/send \
-H "Authorization: Bearer $TUNGKAO_KEY" \
-H "Content-Type: application/json" \
-d '{"ref":"member-1001","text":"<b>Payment received</b> 500 THB","parse_mode":"HTML","button":{"text":"View order","url":"https://yourshop.com/orders/1"}}'// Node.js 18+ (nothing to install)
const res = await fetch("https://api.tungkao.com/v1/telegram/send", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.TUNGKAO_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({
"ref": "member-1001",
"text": "<b>Payment received</b> 500 THB",
"parse_mode": "HTML",
"button": {
"text": "View order",
"url": "https://yourshop.com/orders/1"
}
}),
});
const data = await res.json();
console.log(data);<?php
$ch = curl_init("https://api.tungkao.com/v1/telegram/send");
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([
"ref" => "member-1001",
"text" => "<b>Payment received</b> 500 THB",
"parse_mode" => "HTML",
"button" => [
"text" => "View order",
"url" => "https://yourshop.com/orders/1"
]
]),
]);
$data = json_decode(curl_exec($ch), true);
print_r($data);import os, requests # pip install requests
r = requests.post(
"https://api.tungkao.com/v1/telegram/send",
headers={"Authorization": f"Bearer {os.environ['TUNGKAO_KEY']}"},
json={
"ref": "member-1001",
"text": "<b>Payment received</b> 500 THB",
"parse_mode": "HTML",
"button": {
"text": "View order",
"url": "https://yourshop.com/orders/1"
}
},
timeout=30,
)
print(r.json())GET /v1/telegram/messages
curl Node.js PHP Python
ສຳເນົາ
curl -X GET https://api.tungkao.com/v1/telegram/messages \
-H "Authorization: Bearer $TUNGKAO_KEY"// Node.js 18+ (nothing to install)
const res = await fetch("https://api.tungkao.com/v1/telegram/messages", {
method: "GET",
headers: { Authorization: `Bearer ${process.env.TUNGKAO_KEY}` },
});
const data = await res.json();
console.log(data);<?php
$ch = curl_init("https://api.tungkao.com/v1/telegram/messages");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("TUNGKAO_KEY")],
]);
$data = json_decode(curl_exec($ch), true);
print_r($data);import os, requests # pip install requests
r = requests.get(
"https://api.tungkao.com/v1/telegram/messages",
headers={"Authorization": f"Bearer {os.environ['TUNGKAO_KEY']}"},
timeout=30,
)
print(r.json())
📚 ຕົວຢ່າງການໃຊ້ງານ ຕົວຢ່າງທີ 1
Let a member connect Telegram
ສະຖານະການ: Member member-1001 wants notifications on Telegram
ສົ່ງຄຳຂໍ
POST /v1/telegram/link
{
"ref": "member-1001"
}ຕົວຢ່າງຜົນຕອບກັບ
{
"success": true,
"data": {
"url": "https://t.me/…?start=…"
}
}
➡️ Give the member the link to tap (valid 30 minutes, once)
ຕົວຢ່າງທີ 2
Notify a payment
ສະຖານະການ: 500 THB arrived and you want to notify the member
ສົ່ງຄຳຂໍ
POST /v1/telegram/send
{
"ref": "member-1001",
"text": "<b>Payment received</b> 500 THB",
"parse_mode": "HTML"
}
➡️ The member gets the message in Telegram right away
ຕົວຢ່າງທີ 3
Message with a link button
ສະຖານະການ: You want a button to open the order
ສົ່ງຄຳຂໍ
POST /v1/telegram/send
{
"ref": "member-1001",
"text": "Order #1001 shipped",
"button": {
"text": "View order",
"url": "https://yourshop.com/orders/1001"
}
}
➡️ A button under the message opens the link
ຕົວຢ່າງທີ 4
Notify several members at once
ສະຖານະການ: Announce a promotion to three members
ສົ່ງຄຳຂໍ
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
ຕົວຢ່າງທີ 5
A member stops notifications
ສະຖານະການ: The member asks to disconnect
ສົ່ງຄຳຂໍ
DELETE /v1/telegram/recipients/member-1001
➡️ The link is removed; no more messages are sent
ຄິດເຄຣດິດສະເພາະຂໍ້ຄວາມທີ່ສົ່ງເຖິງ — ສົ່ງບໍ່ໄດ້ (ເຊັ່ນ ບລັອກບອດ) ຄືນເຄຣດິດ ແລະ ພັກຜູ້ຮັບນັ້ນ
ສົ່ງຂໍ້ຄວາມເຂົ້າຫ້ອງ Discord ຂອງທ່ານ ຫຼື ລູກຄ້າ ເຊັ່ນ ແຈ້ງອໍເດີໃໝ່ໃຫ້ທີມ
ຂັ້ນຕອນ 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.
POST /v1/discord/webhooks
curl Node.js PHP Python
ສຳເນົາ
curl -X POST https://api.tungkao.com/v1/discord/webhooks \
-H "Authorization: Bearer $TUNGKAO_KEY" \
-H "Content-Type: application/json" \
-d '{"ref":"orders-room","url":"https://discord.com/api/webhooks/123/abc…"}'// Node.js 18+ (nothing to install)
const res = await fetch("https://api.tungkao.com/v1/discord/webhooks", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.TUNGKAO_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({
"ref": "orders-room",
"url": "https://discord.com/api/webhooks/123/abc…"
}),
});
const data = await res.json();
console.log(data);<?php
$ch = curl_init("https://api.tungkao.com/v1/discord/webhooks");
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([
"ref" => "orders-room",
"url" => "https://discord.com/api/webhooks/123/abc…"
]),
]);
$data = json_decode(curl_exec($ch), true);
print_r($data);import os, requests # pip install requests
r = requests.post(
"https://api.tungkao.com/v1/discord/webhooks",
headers={"Authorization": f"Bearer {os.environ['TUNGKAO_KEY']}"},
json={
"ref": "orders-room",
"url": "https://discord.com/api/webhooks/123/abc…"
},
timeout=30,
)
print(r.json())POST /v1/discord/send
curl Node.js PHP Python
ສຳເນົາ
curl -X POST https://api.tungkao.com/v1/discord/send \
-H "Authorization: Bearer $TUNGKAO_KEY" \
-H "Content-Type: application/json" \
-d '{"ref":"orders-room","text":"🛒 New order #1001 — 590 THB"}'// Node.js 18+ (nothing to install)
const res = await fetch("https://api.tungkao.com/v1/discord/send", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.TUNGKAO_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({
"ref": "orders-room",
"text": "🛒 New order #1001 — 590 THB"
}),
});
const data = await res.json();
console.log(data);<?php
$ch = curl_init("https://api.tungkao.com/v1/discord/send");
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([
"ref" => "orders-room",
"text" => "🛒 New order #1001 — 590 THB"
]),
]);
$data = json_decode(curl_exec($ch), true);
print_r($data);import os, requests # pip install requests
r = requests.post(
"https://api.tungkao.com/v1/discord/send",
headers={"Authorization": f"Bearer {os.environ['TUNGKAO_KEY']}"},
json={
"ref": "orders-room",
"text": "🛒 New order #1001 — 590 THB"
},
timeout=30,
)
print(r.json())
📚 ຕົວຢ່າງການໃຊ້ງານ ຕົວຢ່າງທີ 1
Register a Discord channel
ສະຖານະການ: You want new orders posted in #orders
ສົ່ງຄຳຂໍ
POST /v1/discord/webhooks
{
"ref": "orders-room",
"url": "https://discord.com/api/webhooks/123/abc…"
}
➡️ Name it once with ref and use it forever
ຕົວຢ່າງທີ 2
Post a new order
ສະຖານະການ: Order #1001 for 590 THB comes in
ສົ່ງຄຳຂໍ
POST /v1/discord/send
{
"ref": "orders-room",
"text": "🛒 New order #1001 — 590 THB"
}
➡️ The message appears in the channel right away
ຕົວຢ່າງທີ 3
Custom sender name
ສະຖານະການ: You want the sender to show as “Shop Bot”
ສົ່ງຄຳຂໍ
POST /v1/discord/send
{
"ref": "orders-room",
"text": "Daily sales: 12,400 THB",
"username": "Shop Bot"
}
➡️ The message shows Shop Bot as the sender
ຕົວຢ່າງທີ 4
Post to several channels
ສະຖານະການ: Notify both the admin and the stock channels
ສົ່ງຄຳຂໍ
POST /v1/discord/send
{
"refs": [
"admin-room",
"stock-room"
],
"text": "Stock low: T-shirt size M"
}
➡️ Posted to every listed channel
ຕົວຢ່າງທີ 5
Check sending history
ສະຖານະການ: You want to see which messages failed
ສົ່ງຄຳຂໍ
GET /v1/discord/messages
➡️ Returns each message with its status
ສົ່ງອີເມວຈາກເວັບທ່ານຜ່ານ API ຫຼື SMTP (ໃຊ້ກັບ WordPress ໄດ້) ພ້ອມ OTP ທາງອີເມວ — ສະຫຼັບຄ່າຍສົ່ງອີເມວອັດຕະໂນມັດ
ຂັ້ນຕອນ ສ້າງ key ອີເມວ (key ທົດສອບສົ່ງໄດ້ສະເພາະອີເມວຂອງທ່ານ 50 ສະບັບ/ວັນ) SMTP: host smtp.tungkao.com ພອດ 587 (STARTTLS) ຫຼື 465 (SSL) ຊື່ຜູ້ໃຊ້ຫຍັງກໍໄດ້ ລະຫັດຜ່ານ = API key API: ສົ່ງອີເມວ ຫຼື ຂໍ OTP ແລ້ວກວດດ້ວຍ otp_id (5 ຄັ້ງ ໃຊ້ໄດ້ຄັ້ງດຽວ)
POST /v1/email/send
curl Node.js PHP Python
ສຳເນົາ
curl -X POST https://api.tungkao.com/v1/email/send \
-H "Authorization: Bearer $TUNGKAO_KEY" \
-H "Content-Type: application/json" \
-d '{"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] "}'// Node.js 18+ (nothing to install)
const res = await fetch("https://api.tungkao.com/v1/email/send", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.TUNGKAO_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({
"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] "
}),
});
const data = await res.json();
console.log(data);<?php
$ch = curl_init("https://api.tungkao.com/v1/email/send");
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([
"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] "
]),
]);
$data = json_decode(curl_exec($ch), true);
print_r($data);import os, requests # pip install requests
r = requests.post(
"https://api.tungkao.com/v1/email/send",
headers={"Authorization": f"Bearer {os.environ['TUNGKAO_KEY']}"},
json={
"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] "
},
timeout=30,
)
print(r.json())POST /v1/email/otp/send
curl Node.js PHP Python
ສຳເນົາ
curl -X POST https://api.tungkao.com/v1/email/otp/send \
-H "Authorization: Bearer $TUNGKAO_KEY" \
-H "Content-Type: application/json" \
-d '{"to":"[email protected] ","brand":"My Shop","lang":"th","length":6,"ttl_seconds":300}'// Node.js 18+ (nothing to install)
const res = await fetch("https://api.tungkao.com/v1/email/otp/send", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.TUNGKAO_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({
"to": "[email protected] ",
"brand": "My Shop",
"lang": "th",
"length": 6,
"ttl_seconds": 300
}),
});
const data = await res.json();
console.log(data);<?php
$ch = curl_init("https://api.tungkao.com/v1/email/otp/send");
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([
"to" => "[email protected] ",
"brand" => "My Shop",
"lang" => "th",
"length" => 6,
"ttl_seconds" => 300
]),
]);
$data = json_decode(curl_exec($ch), true);
print_r($data);import os, requests # pip install requests
r = requests.post(
"https://api.tungkao.com/v1/email/otp/send",
headers={"Authorization": f"Bearer {os.environ['TUNGKAO_KEY']}"},
json={
"to": "[email protected] ",
"brand": "My Shop",
"lang": "th",
"length": 6,
"ttl_seconds": 300
},
timeout=30,
)
print(r.json())POST /v1/email/otp/verify
curl Node.js PHP Python
ສຳເນົາ
curl -X POST https://api.tungkao.com/v1/email/otp/verify \
-H "Authorization: Bearer $TUNGKAO_KEY" \
-H "Content-Type: application/json" \
-d '{"otp_id":"8f6c2a1e-…","code":"123456"}'// Node.js 18+ (nothing to install)
const res = await fetch("https://api.tungkao.com/v1/email/otp/verify", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.TUNGKAO_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({
"otp_id": "8f6c2a1e-…",
"code": "123456"
}),
});
const data = await res.json();
console.log(data);<?php
$ch = curl_init("https://api.tungkao.com/v1/email/otp/verify");
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([
"otp_id" => "8f6c2a1e-…",
"code" => "123456"
]),
]);
$data = json_decode(curl_exec($ch), true);
print_r($data);import os, requests # pip install requests
r = requests.post(
"https://api.tungkao.com/v1/email/otp/verify",
headers={"Authorization": f"Bearer {os.environ['TUNGKAO_KEY']}"},
json={
"otp_id": "8f6c2a1e-…",
"code": "123456"
},
timeout=30,
)
print(r.json())
📚 ຕົວຢ່າງການໃຊ້ງານ ຕົວຢ່າງທີ 1
Order confirmation email
ສະຖານະການ: A customer completes an order
ສົ່ງຄຳຂໍ
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
ຕົວຢ່າງທີ 2
Send an email OTP
ສະຖານະການ: A new sign-up must confirm their email
ສົ່ງຄຳຂໍ
POST /v1/email/otp/send
{
"to": "[email protected] ",
"brand": "My Shop",
"lang": "th",
"length": 6,
"ttl_seconds": 300
}ຕົວຢ່າງຜົນຕອບກັບ
{
"success": true,
"data": {
"otp_id": "8f6c2a1e-…"
}
}
➡️ Keep otp_id; the code expires in 5 minutes
ຕົວຢ່າງທີ 3
Check the OTP
ສະຖານະການ: The user types the 6-digit code
ສົ່ງຄຳຂໍ
POST /v1/email/otp/verify
{
"otp_id": "8f6c2a1e-…",
"code": "123456"
}
➡️ Correct = email confirmed · too many wrong tries = code locked, send a new one
ຕົວຢ່າງທີ 4
Send to several people
ສະຖານະການ: Tell three staff about a large order
ສົ່ງຄຳຂໍ
POST /v1/email/send
{
"to": [
"[email protected] ",
"[email protected] ",
"[email protected] "
],
"subject": "Large order #1002",
"text": "Order #1002: 25,000 THB"
}
➡️ Everyone listed receives the email
ຕົວຢ່າງທີ 5
Review sent emails
ສະຖານະການ: A customer says the email never arrived
ສົ່ງຄຳຂໍ
GET /v1/email/messages
➡️ Check the delivery status of each email
ສົ່ງຈາກອີເມວຂອງ TUNGKAO ຊື່ຜູ້ສົ່ງ (from_name) ແລະ reply_to ເປັນຂອງທ່ານ ສົ່ງບໍ່ໄດ້ທຸກຄ່າຍ = ຄືນເຄຣດິດອັດຕະໂນມັດ · ໄຟລ໌ແນບຜ່ານ SMTP ບໍ່ຖືກສົ່ງຕໍ່
ໃຫ້ສະມາຊິກແຕ່ລະຄົນມີທີ່ຢູ່ BTC / USDT / USDC ຂອງຕົນເອງ (TRON, Ethereum, BNB Chain, Polygon, Arbitrum, Base, Optimism, Avalanche) ເງິນເຂົ້າແລ້ວແຈ້ງທາງ webhook — ກຳລັງເປີດໃຫ້ບໍລິການ
ຂັ້ນຕອນ ຂໍທີ່ຢູ່ໃຫ້ສະມາຊິກ ສະມາຊິກໂອນເຂົ້າ ເຕີມເງິນເມື່ອໄດ້ crypto.deposit.confirmed
POST /v1/crypto/addresses
curl Node.js PHP Python
ສຳເນົາ
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"}'// 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())
📚 ຕົວຢ່າງການໃຊ້ງານ ຕົວຢ່າງທີ 1
Get a deposit address for a customer
ສະຖານະການ: 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
ຕົວຢ່າງທີ 2
List supported coins and networks
ສະຖານະການ: You want minimums and confirmations per coin
ສົ່ງຄຳຂໍ
GET /v1/crypto/assets
➡️ Returns min_deposit and confirmations_required per asset
ຕົວຢ່າງທີ 3
Check incoming deposits
ສະຖານະການ: 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
ຕົວຢ່າງທີ 4
Withdraw coins
ສະຖານະການ: 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
💸 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).
🚦 ສະຖານະລະບົບ (GET /status) ກວດໄດ້ຕະຫຼອດວ່າ API ປົກກະຕິບໍ່ ບໍ່ຕ້ອງໃຊ້ key
GET https://api.tungkao.com/status
🟢 ok = ປົກກະຕິ 🟠 busy = ຜູ້ໃຊ້ຫຼາຍ 🔴 slow = ຊ້າເລັກນ້ອຍ ວັດຈາກຄຳຂໍຈິງ 5 ນາທີລ່າສຸດ ແຍກທຸກບໍລິການ (services[]) — ກວດສະລິບວັດຈາກທຸກຄ່າຍສຳຮອງ ພ້ອມສະຖານະແຕ່ລະເສັ້ນທາງໃນ routes[] ບໍ່ຕ້ອງໃຊ້ key ເອີ້ນຈາກບຣາວເຊີໄດ້ ແຄຊ 15 ວິນາທີ ຖ້າ busy/slow ໃຫ້ເພີ່ມ timeout ເປັນ 15–20 ວິນາທີ ແລະລອງໃໝ່ດ້ວຍ Idempotency-Key ເດີມ ເບິ່ງໄດ້ທີ່ມຸມຂວາເທິງຂອງ tungkao.com
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"
}
}
🛡️ ສັນຍາຄວາມໝັ້ນຄົງ: ຂຽນເທື່ອດຽວ ໃຊ້ໄດ້ຕະຫຼອດ API /v1 ຖືກລັອກຖາວອນ: ບໍ່ລຶບ ບໍ່ປ່ຽນຊື່ ບໍ່ປ່ຽນຊະນິດຂໍ້ມູນ — ມີແຕ່ເພີ່ມ ລະບົບທົດສອບອັດຕະໂນມັດບໍ່ຍອມໃຫ້ຂຶ້ນລະບົບຖ້າເຮັດໃຫ້ໂຄດເດີມພັງ ເມື່ອຄ່າຍຕ່າງໆ (ທະນາຄານ, LINE, Google, Facebook, TikTok, Discord, Telegram, ບລັອກເຊນ) ປ່ຽນລະບົບ ພວກເຮົາແກ້ທີ່ເຊີບເວີເອງ ໂຄດຂອງທ່ານຄືເກົ່າ — ກວດສລິບສະຫຼັບສຳຮອງ 3 ຄ່າຍອັດຕະໂນມັດ ຂຽນໂຄດໃຫ້ທົນອະນາຄົດ: ຂ້າມຊ່ອງທີ່ບໍ່ຮູ້ຈັກ ຕັດສິນຈາກ error.code ຖ້າພົບ status ໃໝ່ໃຫ້ຖືວ່າ 'ບໍ່ຜ່ານ/ລໍກວດ' ຖ້າຕ້ອງເລີກໃຊ້ອັນໃດແທ້ ຈະແຈ້ງລ່ວງໜ້າຢ່າງໜ້ອຍ 12 ເດືອນ ຜ່ານ header Deprecation / Sunset ອີເມວ ແລະ webhook — ຂອງເດີມເຮັດວຽກຈົນຮອດມື້ນັ້ນ ທຸກຄຳຕອບມີ header X-Tungkao-Api-Version ບອກເວີຊັນ ແລະ ວັນທີອັບເດດລ່າສຸດ ເບິ່ງປະຫວັດທັງໝົດທີ່ /changelog.json
🏷️ ເງື່ອນໄຂການໃສ່ເຄຣດິດ TUNGKAO ທຸກໜ້າທີ່ໃຊ້ບໍລິການ TUNGKAO ຕ້ອງມີຂໍ້ຄວາມ “Powered by TUNGKAO” ຫຼື “Secured by TUNGKAO” ທີ່ເບິ່ງເຫັນ ແລະ ລິ້ງໄປ https://tungkao.com ວາງໃກ້ສ່ວນທີ່ໃຊ້ບໍລິການ ຫ້າມເຊື່ອງ ປຸ່ມຈາກເມນູ “ປຸ່ມລັອກອິນ” ໃສ່ເຄຣດິດໃຫ້ອັດຕະໂນມັດ ຕົວຢ່າງ: <a href="https://tungkao.com">Powered by TUNGKAO</a> ຕ້ອງການເຊື່ອງເຄຣດິດ ຕິດຕໍ່ທີມງານກ່ອນ
Powered by TUNGKAO