TUNGKAO Dokumentasi API

Integrasi dengan TUNGKAO

Satu gaya API untuk semua layanan — Base URL: https://api.tungkao.com

🕒 Pembaruan API terbaru per kanal

Seluruh platform terakhir diperbarui: Waktu Thailand (UTC+07:00) — 📘 The TrueMoney Wallet docs page is now fully translated into all 10 languages (steps, examples, case table, notes)

✅ Kode lama tetap berjalan · /changelog.json (Untuk mesin)

Paste it into the AI that maintains your site's code (ChatGPT / Claude / Gemini); it checks and changes only what is needed
🧾Verifikasi bukti transfer bank Waktu Thailand (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 accountVerifikasi bukti TrueMoney Wallet Waktu Thailand (UTC+07:00)📘 The TrueMoney Wallet docs page is now fully translated into all 10 languages (steps, examples, case table, notes)🏦Deposit bukti transfer Waktu Thailand (UTC+07:00)Meluncurkan deposit bukti transfer dengan webhook₿Pembayaran kripto Waktu Thailand (UTC+07:00)Menambah jaringan Ethereum, Polygon, Arbitrum, Base, Optimism, Avalanche dan USDCNotifikasi Telegram Waktu Thailand (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)Notifikasi Discord Waktu Thailand (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)📧Kirim email + OTP + SMTP Waktu Thailand (UTC+07:00)Layanan email diluncurkan: API + SMTP + OTP emailMasuk dengan Google Waktu Thailand (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.Masuk dengan LINE Waktu Thailand (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.Masuk dengan Facebook Waktu Thailand (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.Masuk dengan TikTok Waktu Thailand (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.Masuk dengan Discord Waktu Thailand (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.Masuk dengan Telegram Waktu Thailand (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.Masuk dengan X (Twitter) Waktu Thailand (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.Masuk dengan Microsoft Waktu Thailand (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 groupMasuk dengan GitHub Waktu Thailand (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 groupMasuk dengan Apple Waktu Thailand (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 groupMasuk dengan Steam Waktu Thailand (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 groupMasuk dengan Twitch Waktu Thailand (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.Masuk dengan LinkedIn Waktu Thailand (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.Masuk dengan Kakao Waktu Thailand (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.Masuk dengan NAVER Waktu Thailand (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.Masuk dengan Zalo Waktu Thailand (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.Masuk dengan Spotify Waktu Thailand (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.Masuk dengan Reddit Waktu Thailand (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.Masuk dengan GitLab Waktu Thailand (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 groupMasuk dengan Roblox Waktu Thailand (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.Masuk dengan Epic Games Waktu Thailand (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 groupMasuk dengan Yahoo Waktu Thailand (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 groupMasuk dengan Slack Waktu Thailand (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 groupMasuk dengan Amazon Waktu Thailand (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
🚀

Memulai

Semua layanan bekerja sama: buat API key di portal merchant (satu key per layanan) dan kirim di header Authorization setiap request.

Cara kerja

  1. Masuk ke app.tungkao.com dengan Gmail dan isi kredit (1 baht = 100 kredit).
  2. API key → pilih kartu layanan → pilih masa berlaku key → Buat → salin key (hanya tampil sekali).
  3. Simpan key di server Anda (env var TUNGKAO_KEY). Jangan pernah taruh di halaman web atau aplikasi seluler.
  4. Mulai dengan key test (tk_test_…) — tanpa potongan kredit — lalu beralih ke live.
GET/v1/account — Uji key Anda: sisa kredit
curl -X GET https://api.tungkao.com/v1/account \
  -H "Authorization: Bearer $TUNGKAO_KEY"

Tanda tangan request (jika aktif)

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"));
  • Setiap respons berupa JSON dengan success dan request_id. Error membawa error.code (mis. KEY_EXPIRED, INSUFFICIENT_CREDITS) — lihat /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 kedaluwarsa sesuai pilihan (1–24 bulan atau tidak pernah). Kami mengingatkan 30/7/1 hari sebelumnya lewat webhook api_key.expiring. Perpanjang di portal — string key tetap sama.
  • Verifikasi domain: setiap key live terikat ke satu situs. API key → 'Verifikasi domain' → masukkan domain, unggah tungkao-verify-….html ke https://domain-anda/ (atau tambah DNS TXT _tungkao-verify.domain-anda) lalu tekan Verifikasi. Key belum terverifikasi mendapat DOMAIN_NOT_VERIFIED; domain terverifikasi tak bisa diubah dan akun lain tak bisa memakainya.
  • Secret bocor? Tekan 'Ganti sekarang' — tanpa batas, key lama langsung berhenti. Key hanya berfungsi untuk layanannya sendiri (selain itu WRONG_PRODUCT).
  • Lanjutan (opsional): aktifkan 'Tanda tangan request' pada key untuk mendapat tksign_…; setiap request lalu butuh X-Tungkao-Timestamp dan X-Tungkao-Signature = HMAC-SHA256(secret, ts.METHOD.path.sha256(body)). Key yang bocor saja jadi tak berguna.
  • 🧪 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.
  • Kirim Accept-Language (th, en, lo, my, zh-CN, ko, ja, vi, km, id) untuk memilih bahasa pesan.
🧾

Verifikasi bukti transfer bank

slip_verify

Memeriksa bukti asli, jumlahnya cocok, dibayar ke Anda, dan belum dipakai — untuk toko yang pelanggannya melampirkan bukti.

Cara kerja

  1. Pelanggan mengunggah bukti; situs Anda membaca teks QR-nya (diawali 0041…).
  2. Kirim qr_payload, jumlah yang diharapkan, dan rekening penerima ke API.
  3. Terima pesanan hanya jika status VALID.
POST/v1/slip/verify
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"}]}'

📖 Ringkasan: memakai key di beberapa situs

KasusPengaturan key (halaman API Keys)Hasil
2 situs (aaa.com, bbb.com) menerima ke rekening yang samaKedua key: Grup A (atau Seluruh akun)Bukti yang lolos di aaa.com mengembalikan DUPLICATE di bbb.com — hanya bisa dipakai di satu situs ✅
2 situs berbagi rekening tetapi key terpisah (default)Kedua key: Hanya key iniSatu bukti lolos di kedua situs ⚠️ pelanggan bisa top-up dua kali — tautkan key
2 situs dengan rekening penerima berbedaHanya key ini (default)Bukti untuk satu situs sudah mengembalikan RECEIVER_MISMATCH di situs lain ✅
2 situs di akun tungkao berbeda (pemilik berbeda) tetapi rekening penerima samaKey tidak bisa ditautkan antar akun tungkaoSatu bukti lolos di keduanya ⚠️ — beli kedua key dari satu akun tungkao lalu tautkan
Satu situs memakai 2 key (mis. situs web + aplikasi)Kedua key: grup yang samaBukti hanya bisa dipakai sekali, dari situs web maupun aplikasi ✅

DUPLICATE terdeteksi langsung dari nomor referensi di QR. Atur di kartu “Perlindungan bukti ganda antar key” pada halaman API Keys (default key baru: hanya key ini).

📚 Contoh penggunaan

Contoh 1

Customer tops up with a matching slip (passes)

Situasi: A customer transfers 500 THB to your account and uploads the slip on your top-up page

Permintaan
POST /v1/slip/verify
{
  "image_base64": "<base64 of the slip image>",
  "expected_amount": "500.00"
}
Contoh respons
{
  "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

Contoh 2

Send the QR text instead of the image (faster)

Situasi: Your app reads the QR on the slip itself and sends only the QR text

Permintaan
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

Contoh 3

The customer sends the same slip again

Situasi: The customer attaches the same 500 THB slip again to top up twice

Permintaan
POST /v1/slip/verify
{
  "image_base64": "<base64 of the slip image>",
  "expected_amount": "500.00"
}
Contoh respons
{
  "success": false,
  "status": "DUPLICATE",
  "message": "This slip has already been used"
}

➡️ DUPLICATE → do not credit; tell the customer the slip was already used

Contoh 4

Wrong amount or wrong account

Situasi: The customer paid 300 THB for a 500 THB order, or paid another account

Permintaan
POST /v1/slip/verify
{
  "image_base64": "<base64 of the slip image>",
  "expected_amount": "500.00",
  "receivers": [
    {
      "bank": "KBANK",
      "account_number": "123-4-56789-0"
    }
  ]
}
Contoh respons
{
  "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

Contoh 5

Slip is too old

Situasi: You only accept slips paid within the last 30 minutes

Permintaan
POST /v1/slip/verify
{
  "image_base64": "<base64 of the slip image>",
  "expected_amount": "500.00",
  "max_age_minutes": 30
}
Contoh respons
{
  "success": false,
  "status": "DATE_MISMATCH"
}

➡️ DATE_MISMATCH when the slip is older than allowed

Contoh 6

Two sites, one receiving account

Situasi: 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

Contoh 7

Every verifier is down

Situasi: All upstream verifiers fail at once (rare; backups are tried first)

Contoh respons
{
  "success": false,
  "status": "SERVICE_UNAVAILABLE"
}

➡️ HTTP 503 and nothing is charged. Ask the customer to retry later, or queue it for manual review

  • Kirim header Idempotency-Key (mis. nomor pesanan): pengulangan tidak pernah ditagih dua kali.
  • Satu bukti hanya VALID sekali per key (kedua kalinya 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).

Verifikasi bukti TrueMoney Wallet

truewallet_verify

Mengecek bukti transfer TrueMoney Wallet asli, nominalnya sesuai, masuk ke nomor e-wallet Anda dan belum pernah dipakai.

Cara kerja

  1. Simpan dompet penerima sekali (PUT /v1/truewallet/profile, atau di kartu key pada portal): nomor HP dompet atau e-Wallet ID, nama Thai/Inggris dan gambar QR penerima.
  2. Tampilkan gambar QR (qr_image_url) agar pelanggan membayar, lalu minta pelanggan mengunggah gambar bukti.
  3. Kirim gambar bukti (image_base64) dan nominal yang diharapkan ke API. Nomor dan nama diambil dari profil tersimpan (atau kirim wallet_number / ewallet_id di permintaan).
  4. Terima pesanan hanya jika status VALID.
PUT/v1/truewallet/profile
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>"}'
GET/v1/truewallet/profile
curl -X GET https://api.tungkao.com/v1/truewallet/profile \
  -H "Authorization: Bearer $TUNGKAO_KEY"
POST/v1/truewallet/verify
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"}'

📖 Ringkasan: memakai key di beberapa situs

KasusPengaturan key (halaman API Keys)Hasil
2 situs (aaa.com, bbb.com) menerima ke rekening yang samaKedua key: Grup A (atau Seluruh akun)Bukti yang lolos di aaa.com mengembalikan DUPLICATE di bbb.com — hanya bisa dipakai di satu situs ✅
2 situs berbagi rekening tetapi key terpisah (default)Kedua key: Hanya key iniSatu bukti lolos di kedua situs ⚠️ pelanggan bisa top-up dua kali — tautkan key
2 situs dengan rekening penerima berbedaHanya key ini (default)Bukti untuk satu situs sudah mengembalikan RECEIVER_MISMATCH di situs lain ✅
2 situs di akun tungkao berbeda (pemilik berbeda) tetapi rekening penerima samaKey tidak bisa ditautkan antar akun tungkaoSatu bukti lolos di keduanya ⚠️ — beli kedua key dari satu akun tungkao lalu tautkan
Satu situs memakai 2 key (mis. situs web + aplikasi)Kedua key: grup yang samaBukti hanya bisa dipakai sekali, dari situs web maupun aplikasi ✅

DUPLICATE terdeteksi langsung dari nomor referensi di QR. Atur di kartu “Perlindungan bukti ganda antar key” pada halaman API Keys (default key baru: hanya key ini).

📚 Contoh penggunaan

Contoh 1

Simpan dompet penerima sekali

Situasi: Toko Anda menerima ke TrueMoney 081-234-5678 (Somchai) dan punya QR penerima

Permintaan
PUT /v1/truewallet/profile
{
  "receive_by": "wallet_number",
  "wallet_number": "0812345678",
  "name_en": "Somchai Jaidee",
  "qr_image_base64": "<base64 of the QR image>"
}
Contoh respons
{
  "success": true,
  "data": {
    "receive_by": "wallet_number",
    "wallet_number": "0812345678",
    "qr_image_url": "https://api.tungkao.com/v1/truewallet/qr/…"
  }
}

➡️ Tampilkan qr_image_url di halaman pembayaran agar pelanggan memindai

Contoh 2

Verifikasi dengan dompet tersimpan

Situasi: Pelanggan membayar 300 baht ke dompet TrueMoney Anda dan melampirkan bukti

Permintaan
POST /v1/truewallet/verify
{
  "image_base64": "<base64 of the slip image>",
  "expected_amount": "300.00"
}
Contoh respons
{
  "success": true,
  "status": "VALID",
  "data": {
    "amount": "300.00",
    "currency": "THB"
  }
}

➡️ Tidak perlu mengirim nomor lagi; dompet yang tersimpan di key dipakai

Contoh 3

Terima hanya dengan e-Wallet ID

Situasi: Pelanggan membayar lewat e-Wallet ID 15 digit; Anda tidak perlu membagikan nomor HP

Permintaan
PUT /v1/truewallet/profile
{
  "receive_by": "ewallet_id",
  "ewallet_id": "140000812345678"
}

➡️ Bukti ke nomor HP mengembalikan RECEIVER_MISMATCH; hanya e-Wallet ID yang diterima

Contoh 4

Kirim penerima di permintaan (beberapa dompet)

Situasi: Anda bergantian memakai beberapa dompet per cabang

Permintaan
POST /v1/truewallet/verify
{
  "image_base64": "<base64 of the slip image>",
  "expected_amount": "300.00",
  "wallet_numbers": [
    "0812345678",
    "0898765432"
  ],
  "wallet_name_en": "Somchai Jaidee"
}

➡️ Lolos jika bukti masuk ke salah satu dompet di daftar dan namanya cocok

Contoh 5

Penyedia utama gangguan, cadangan mengambil alih

Situasi: Pemeriksa utama gagal saat pelanggan mengirim

Permintaan
POST /v1/truewallet/verify
{
  "image_base64": "<base64 of the slip image>",
  "expected_amount": "300.00"
}

➡️ Cadangan memverifikasi dalam permintaan yang sama. Kirim image_base64: cadangan memverifikasi dari gambar

Contoh 6

Bukti ganda atau nominal salah

Situasi: Pelanggan mengirim ulang bukti atau membayar kurang

Contoh respons
{
  "success": false,
  "status": "DUPLICATE"
}

➡️ DUPLICATE = sudah dipakai · AMOUNT_MISMATCH = nominal salah. Jangan tambahkan kredit pada kedua kasus

  • Tentukan penerima dengan salah satu atau keduanya: wallet_number (nomor HP 10 digit) atau ewallet_id (e-Wallet ID 15 digit). Bukti yang cocok dengan salah satunya lolos.
  • Pilih cara menerima lewat receive_by: wallet_number (hanya nomor), ewallet_id (hanya e-Wallet ID) atau any (default, salah satu). Bukti dicek terhadap identitas yang dipilih.
  • Nama penerima: name_th, name_en atau keduanya (wallet_name_th / wallet_name_en di permintaan verifikasi). Jika diatur, bukti harus cocok dengan salah satunya; jika tidak, nama tidak dicek.
  • Gambar QR penerima: JPG/PNG maks 1 MB dengan QR yang terbaca. Anda mendapat qr_image_url untuk halaman pembayaran; mengunggah gambar baru membuat tautan baru.
  • wallet_number adalah nomor HP 10 digit dompet penerima. Kirim beberapa dengan wallet_numbers (maks 10), atau simpan di key pada portal.
  • Respons dan status sama dengan /v1/slip/verify. Satu bukti hanya VALID sekali per key (kedua kalinya DUPLICATE).
  • Kirim header Idempotency-Key (mis. nomor pesanan): pengulangan tidak pernah ditagih dua kali.
🏦

Deposit bukti transfer

slip_deposit

Isi saldo pengguna: memeriksa bukti, mencatat deposit pengguna itu, dan memberi tahu situs lewat webhook.

Cara kerja

  1. Atur rekening penerima dan URL webhook pada key di portal.
  2. Kirim bukti dengan customer_ref (ID pengguna Anda).
  3. Saat webhook deposit.succeeded (verifikasi tanda tangannya) tambahkan saldo pengguna.
POST/v1/deposits/slip
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"}'
GET/v1/deposits/dep_xxx
curl -X GET https://api.tungkao.com/v1/deposits/dep_xxx \
  -H "Authorization: Bearer $TUNGKAO_KEY"

Verifikasi tanda tangan webhook

Setiap webhook membawa X-Tungkao-Signature: t=…,v1=…. Verifikasi sebelum memercayai data (secret webhook tampil saat Anda mengatur 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]));
}

📚 Contoh penggunaan

Contoh 1

Credit a member's deposit

Situasi: Member member-1001 deposits 300 THB and attaches the slip

Permintaan
POST /v1/deposits/slip
{
  "image_base64": "<base64 of the slip image>",
  "customer_ref": "member-1001",
  "expected_amount": "300.00"
}
Contoh respons
{
  "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

Contoh 2

Attach your own data to the deposit

Situasi: You want to know which promotion the deposit came from

Permintaan
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

Contoh 3

Receive the result by webhook

Situasi: 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

Contoh 4

Check a deposit later

Situasi: Your site missed the webhook or wants to re-check

Permintaan
GET /v1/deposits/dep_8f2c…
Contoh respons
{
  "success": true,
  "data": {
    "deposit_id": "dep_8f2c…",
    "status": "succeeded"
  }
}

➡️ succeeded = credit · failed = rejected · pending = wait

Contoh 5

Member resubmits the same slip

Situasi: A member tries to deposit again with the same slip

Contoh respons
{
  "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.

Cara kerja

  1. Buat key untuk penyedia, lalu di 'Member login' atur nama situs dan redirect URI (https, sama persis).
  2. Tombol login mengarahkan pengguna ke /oauth/authorize dengan client_id (ID key), redirect_uri, dan state (acak baru, disimpan di session).
  3. Pengguna kembali ke redirect_uri?code=…&state=… → cek state → server memanggil POST /v1/login/token dalam 2 menit.
  4. Gunakan data.user (mis. 7F3K9QX2-yourshopcom) sebagai ID member — orang yang sama selalu mendapat ID yang sama.
POST/v1/login/token
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"}'
GET/v1/login/users?limit=50
curl -X GET https://api.tungkao.com/v1/login/users?limit=50 \
  -H "Authorization: Bearer $TUNGKAO_KEY"

📖 Summary: using sign-in keys on several sites

KasusPengaturan key (halaman API Keys)Hasil
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 accountsBoth keys: SeparateThe same person gets a different user ID on each key
2 sister sites sharing membersBoth keys: Group AA member has the same user ID on both sites ✅
2 unrelated sites that must not link membersBoth keys: SeparateDifferent user IDs, so the sites can't link their members ✅
A Google key and a LINE key (different providers)Any settingAlways different user IDs — they are different provider accounts
A key that already has sign-ins needs a different groupNot 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.

Contoh lengkap (tombol + callback + tukar code)

// 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);
PenyediaLayananYang Anda dapat
Googlegoogle_loginnama, email terverifikasi, foto
LINEline_loginnama, foto, email jika pengguna setuju
Facebookfacebook_loginnama, foto, email
TikToktiktok_loginnama tampilan, avatar (tanpa email)
Discorddiscord_loginnama, avatar, email
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

📚 Contoh penggunaan

Contoh 1

A “Sign in with Google” button on your site

Situasi: A visitor taps Sign in with Google on your site

Permintaan
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

Contoh 2

Exchange the code for the user (server side)

Situasi: Your server receives the code on the callback page (exchange within 2 minutes)

Permintaan
POST /v1/login/token
{
  "code": "<code from the callback>",
  "redirect_uri": "https://yourshop.com/auth/callback"
}
Contoh respons
{
  "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)

Contoh 3

A returning user signs in

Situasi: The same person signs in with Google again

Contoh respons
{
  "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

Contoh 4

One site, two Google keys (website + app)

Situasi: 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

Contoh 5

List members who signed in

Situasi: You want to browse or search members of this key

Permintaan
GET /v1/login/users?q=somchai&limit=50

➡️ Returns members with last sign-in time and count

Contoh 6

The user cancels during sign-in

Situasi: 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.
  • Kredit dipotong setiap login berhasil dan sekali per member baru — lihat harga terkini di kartu layanan.
  • Key mode test mengizinkan redirect http://localhost dan gratis.
  • Jangan pernah taruh API key di tautan atau halaman — /oauth/authorize hanya butuh client_id (ID key) yang publik.
✈️

Notifikasi Telegram

telegram_notify

Kirim pesan Telegram ke pengguna lewat bot TUNGKAO — tanpa bot sendiri. Mis. dana masuk, status pesanan, OTP.

Cara kerja

  1. 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.
  2. 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).
  3. 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).
  4. Check the connection: GET /v1/telegram/recipients (status = active) — use it to switch your button to “Connected ✓”.
  5. 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.
  6. 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.
  7. 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 -X POST https://api.tungkao.com/v1/telegram/link \
  -H "Authorization: Bearer $TUNGKAO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ref":"member-1001"}'
POST/v1/telegram/send
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"}}'
GET/v1/telegram/messages
curl -X GET https://api.tungkao.com/v1/telegram/messages \
  -H "Authorization: Bearer $TUNGKAO_KEY"

📚 Contoh penggunaan

Contoh 1

Let a member connect Telegram

Situasi: Member member-1001 wants notifications on Telegram

Permintaan
POST /v1/telegram/link
{
  "ref": "member-1001"
}
Contoh respons
{
  "success": true,
  "data": {
    "url": "https://t.me/…?start=…"
  }
}

➡️ Give the member the link to tap (valid 30 minutes, once)

Contoh 2

Notify a payment

Situasi: 500 THB arrived and you want to notify the member

Permintaan
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

Contoh 3

Message with a link button

Situasi: You want a button to open the order

Permintaan
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

Contoh 4

Notify several members at once

Situasi: Announce a promotion to three members

Permintaan
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

Contoh 5

A member stops notifications

Situasi: The member asks to disconnect

Permintaan
DELETE /v1/telegram/recipients/member-1001

➡️ The link is removed; no more messages are sent

  • Hanya pesan terkirim yang ditagih — kegagalan (mis. pengguna memblokir bot) dikembalikan dan penerima itu dijeda.
🔔

Notifikasi Discord

discord_notify

Kirim pesan ke kanal Discord Anda atau pelanggan — mis. pesanan baru untuk tim.

Cara kerja

  1. 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).
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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 -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…"}'
POST/v1/discord/send
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"}'

📚 Contoh penggunaan

Contoh 1

Register a Discord channel

Situasi: You want new orders posted in #orders

Permintaan
POST /v1/discord/webhooks
{
  "ref": "orders-room",
  "url": "https://discord.com/api/webhooks/123/abc…"
}

➡️ Name it once with ref and use it forever

Contoh 2

Post a new order

Situasi: Order #1001 for 590 THB comes in

Permintaan
POST /v1/discord/send
{
  "ref": "orders-room",
  "text": "🛒 New order #1001 — 590 THB"
}

➡️ The message appears in the channel right away

Contoh 3

Custom sender name

Situasi: You want the sender to show as “Shop Bot”

Permintaan
POST /v1/discord/send
{
  "ref": "orders-room",
  "text": "Daily sales: 12,400 THB",
  "username": "Shop Bot"
}

➡️ The message shows Shop Bot as the sender

Contoh 4

Post to several channels

Situasi: Notify both the admin and the stock channels

Permintaan
POST /v1/discord/send
{
  "refs": [
    "admin-room",
    "stock-room"
  ],
  "text": "Stock low: T-shirt size M"
}

➡️ Posted to every listed channel

Contoh 5

Check sending history

Situasi: You want to see which messages failed

Permintaan
GET /v1/discord/messages

➡️ Returns each message with its status

📧

Kirim email + OTP + SMTP

email

Kirim email dari situs lewat API atau SMTP (WordPress bisa), plus kode OTP email beserta verifikasi — otomatis berpindah antar penyedia email.

Cara kerja

  1. Buat key email (key uji hanya ke alamat Anda sendiri, 50 per hari).
  2. SMTP: host smtp.tungkao.com, port 587 (STARTTLS) atau 465 (SSL), username bebas, password = API key Anda.
  3. API: kirim email, atau minta OTP lalu verifikasi dengan otp_id yang diterima (5 percobaan, sekali pakai).
POST/v1/email/send
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]"}'
POST/v1/email/otp/send
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}'
POST/v1/email/otp/verify
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"}'

📚 Contoh penggunaan

Contoh 1

Order confirmation email

Situasi: A customer completes an order

Permintaan
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

Contoh 2

Send an email OTP

Situasi: A new sign-up must confirm their email

Permintaan
POST /v1/email/otp/send
{
  "to": "[email protected]",
  "brand": "My Shop",
  "lang": "th",
  "length": 6,
  "ttl_seconds": 300
}
Contoh respons
{
  "success": true,
  "data": {
    "otp_id": "8f6c2a1e-…"
  }
}

➡️ Keep otp_id; the code expires in 5 minutes

Contoh 3

Check the OTP

Situasi: The user types the 6-digit code

Permintaan
POST /v1/email/otp/verify
{
  "otp_id": "8f6c2a1e-…",
  "code": "123456"
}

➡️ Correct = email confirmed · too many wrong tries = code locked, send a new one

Contoh 4

Send to several people

Situasi: Tell three staff about a large order

Permintaan
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

Contoh 5

Review sent emails

Situasi: A customer says the email never arrived

Permintaan
GET /v1/email/messages

➡️ Check the delivery status of each email

  • Email dikirim dari alamat TUNGKAO; nama pengirim (from_name) dan reply_to milik Anda.
  • Jika semua penyedia gagal, kredit dikembalikan otomatis · lampiran via SMTP tidak diteruskan.
₿

Pembayaran kripto (segera hadir)

crypto

Setiap pengguna mendapat alamat BTC / USDT / USDC sendiri (TRON, Ethereum, BNB Chain, Polygon, Arbitrum, Base, Optimism, Avalanche) dan Anda diberi tahu lewat webhook — segera hadir.

Cara kerja

  1. Minta alamat untuk pengguna
  2. Pengguna mengirim dana
  3. Tambahkan saldo saat crypto.deposit.confirmed
POST/v1/crypto/addresses
curl -X POST https://api.tungkao.com/v1/crypto/addresses \
  -H "Authorization: Bearer $TUNGKAO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"asset":"USDT-TRC20","customer_ref":"member-1001"}'

📚 Contoh penggunaan

Contoh 1

Get a deposit address for a customer

Situasi: member-1001 will pay in USDT on TRC20

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

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

Contoh 2

List supported coins and networks

Situasi: You want minimums and confirmations per coin

Permintaan
GET /v1/crypto/assets

➡️ Returns min_deposit and confirmations_required per asset

Contoh 3

Check incoming deposits

Situasi: Waiting for the customer's payment

Permintaan
GET /v1/crypto/deposits
Contoh respons
{
  "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

Contoh 4

Withdraw coins

Situasi: Withdraw USDT to your own wallet

Permintaan
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).

🚦 Status sistem (GET /status)

Cek kapan saja apakah API normal — tanpa key

GET https://api.tungkao.com/status

  • 🟢 ok = normal
  • 🟠 busy = lalu lintas tinggi
  • 🔴 slow = sedikit tertunda
  • Diukur dari permintaan nyata 5 menit terakhir per layanan (services[]). Verifikasi/deposit bukti transfer diukur dari semua penyedia cadangan, status tiap jalur di routes[]
  • Tanpa API key, bisa dipanggil dari browser (CORS terbuka), cache 15 detik — cek paling sering 1 kali/menit
  • Saat busy/slow, naikkan timeout ke 15–20 detik dan ulangi dengan Idempotency-Key yang sama — tidak ditagih dua kali
  • Juga tampil di kanan atas 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"
  }
}

🛡️ Janji stabilitas: integrasi sekali, terus berjalan

  • API /v1 dibekukan permanen: tidak ada yang dihapus, diganti nama, atau diubah tipenya — hanya penambahan field atau endpoint baru. Tes kontrak otomatis memblokir deploy yang merusak kode lama.
  • Saat penyedia (bank, LINE, Google, Facebook, TikTok, Discord, Telegram, blockchain) berubah, kami menyesuaikan di server kami — kode Anda tetap sama. Cek bukti otomatis berpindah antara 3 penyedia.
  • Tulis kode tahan masa depan: abaikan field yang tak dikenal, bercabang berdasarkan error.code (bukan teks pesan), dan anggap status baru yang tak dikenal sebagai “tidak lolos / menunggu”.
  • Jika suatu saat sesuatu harus dihentikan, kami umumkan minimal 12 bulan sebelumnya lewat header Deprecation / Sunset di setiap respons, email, dan webhook — perilaku lama tetap berjalan sampai saat itu.
  • Setiap respons membawa header X-Tungkao-Api-Version berisi versi dan tanggal revisi terbaru. Riwayat lengkap: /changelog.json

🏷️ Ketentuan mencantumkan kredit TUNGKAO

  • Setiap halaman yang memakai layanan TUNGKAO wajib menampilkan teks “Powered by TUNGKAO” atau “Secured by TUNGKAO” yang terlihat dan tertaut ke https://tungkao.com
  • Letakkan dekat fiturnya; jangan disembunyikan, disamarkan, atau terlalu kecil
  • Tombol dari halaman “Tombol login” sudah otomatis menyertakan kredit; halaman login TUNGKAO juga menampilkannya
  • Contoh: <a href="https://tungkao.com" target="_blank" rel="noopener">Powered by TUNGKAO</a>
  • Untuk menghapus kredit (white-label), minta persetujuan terlebih dahulu

Powered by TUNGKAO