Checks a slip is genuine, the amount matches, it was paid to you and hasn't been used — for shops where customers attach a slip.
🕒 Last updated: Thailand time (UTC+07:00) · ✅ Your existing code keeps working
🤖 Let an AI write the integration
Copy this link for an AI to read (the whole API as Markdown), or press a button: the prompt is copied and the AI opens — paste it and tell it your language/framework
This link returns this API's updates as JSON (no key, any origin). Have your admin page show it as an “Update announcements” box and flag “New” when last_updated changes
2 sites (aaa.com, bbb.com) receive into the same account
Both keys: Group A (or Whole account)
A slip that passed on aaa.com returns DUPLICATE on bbb.com — usable on one site only ✅
2 sites share an account but the keys stay separate (default)
Both keys: This key only
One slip passes on both sites ⚠️ customers could top up twice — link the keys
2 sites with different receiving accounts
This key only (default)
A slip for one site already returns RECEIVER_MISMATCH on the other ✅
2 sites on different tungkao accounts (different owners) but the same receiving account
Keys can't be linked across tungkao accounts
One slip passes on both ⚠️ — buy both keys from one tungkao account and link them
One site using 2 keys (e.g. website + app)
Both keys: the same group
A slip is usable once whether sent from the website or the app ✅
DUPLICATE is detected from the reference in the QR right away. Set it on the “Duplicate-slip protection between keys” card on the API Keys page (new keys default: this key only).
📚 Usage examples
Example 1
Customer tops up with a matching slip (passes)
Situation: A customer transfers 500 THB to your account and uploads the slip on your top-up page
Request
POST /v1/slip/verify
{
"image_base64": "<base64 of the slip image>",
"expected_amount": "500.00"
}
➡️ HTTP 503 and nothing is charged. Ask the customer to retry later, or queue it for manual review
💡 More
Send an Idempotency-Key header (e.g. your order id): retries are never charged twice.
A slip is VALID once per key (the second time returns DUPLICATE).
Several sites receiving into the same account? Put their keys in the same group under “Duplicate-slip protection between keys” on the API Keys page. A slip that passed on one key then returns DUPLICATE on every key in the group (default: this key only).
📜 Update history of this API
AddedThailand time (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
AddedThailand time (UTC+07:00)
API update announcements by webhook: new api.update event (opt in per key on the key card; off by default)
AddedThailand time (UTC+07:00)
error.user_message: ready-to-show text for end users on outages, no credits or key problems (white-label keys omit tungkao.com)
AddedThailand time (UTC+07:00)
GET /status: per-service API status 🟢 normal / 🟠 high traffic / 🔴 minor delays (no key needed)
AddedThailand time (UTC+07:00)
Key on/off switch with status-change time + one key per service per website
Per-API docs pages with AI links (ChatGPT / Claude / Gemini / Grok) in 10 languages
SecurityThailand time (UTC+07:00)
Domain verification per API key (1 key = 1 site) — existing keys keep working
AddedThailand time (UTC+07:00)
Optional HMAC request signing — nothing changes unless you turn it on
AddedThailand time (UTC+07:00)
API key lifetimes, expiry warnings and renewal — the key string never changes
AddedThailand time (UTC+07:00)
Test-mode keys (simulated, free) for every service
NewThailand time (UTC+07:00)
Launched API v1 slip verification (automatic failover across 3 providers)
✅ Your existing code keeps working
🛡️ Stability promise: integrate once, keep working
API /v1 is frozen: nothing is removed, renamed or retyped — only new fields or endpoints are added. Automated contract tests block any deploy that would break existing code.
When providers (banks, LINE, Google, Facebook, TikTok, Discord, Telegram, blockchains) change, we adapt on our servers — your code stays the same. Slip checks fail over across 3 providers automatically.
Write future-proof code: ignore unknown fields, branch on error.code (not message text), and treat an unknown new status as “not passed / pending”.
If something ever must be retired, we announce it at least 12 months ahead via Deprecation / Sunset headers on every response, email and webhook — the old behaviour keeps working until then.
Every response carries an X-Tungkao-Api-Version header with the version and latest revision date. Full history: /changelog.json
🚦 System status (GET /status)
Check any time whether the API is healthy — no key needed
GET https://api.tungkao.com/status
🟢 ok = normal
🟠 busy = high traffic
🔴 slow = minor delays
Measured from real requests over the last 5 minutes, per service (services[]). Slip verification and slip deposits are measured across every backup provider, with each route's state in routes[]
No API key; callable from browsers (CORS open); cached 15 s — poll at most once a minute
On busy/slow, raise your timeout to 15–20 s and retry with the same Idempotency-Key — you are never charged twice
paused[] lists service codes TUNGKAO has switched off for now (e.g. line_login) — grey that button out and show “System temporarily unavailable” (API calls return 503 SERVICE_PAUSED, nothing charged)
Every page or screen that uses a TUNGKAO service (slip check, deposits, crypto, login, notifications) must show visible “Powered by TUNGKAO” or “Secured by TUNGKAO” text linking to https://tungkao.com
Place it near the feature — under the sign-in button, under the slip upload, or on the payment page. Do not hide it, blend it into the background or make it unreadably small
Buttons from the “Login buttons” page include the credit automatically, and the hosted TUNGKAO sign-in page shows it itself
Example: <a href="https://tungkao.com" target="_blank" rel="noopener">Powered by TUNGKAO</a>
To remove the credit, buy the White-label add-on for that key on the API keys page in the portal (30 days at a time)