TUNGKAO API docs
API · truewallet_verify

TrueMoney Wallet slip verification

Checks a TrueMoney Wallet transfer slip is genuine, the amount matches, it was paid to your e-wallet number and has not been used before.

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

🤖 Let an AI write the integration

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

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

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

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

🔑 Key to use

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

Authorization: Bearer $TUNGKAO_KEY

📋 How it works

  1. Save your receiving wallet once (PUT /v1/truewallet/profile, or on the key card in the portal): wallet mobile number or e-Wallet ID, Thai/English name and the receiving QR image.
  2. Show the QR image (qr_image_url) for your customer to pay, then let them upload the slip image.
  3. Send the slip image (image_base64) and the expected amount to the API. The number and name come from the saved profile (or send wallet_number / ewallet_id in the request).
  4. Accept the order only when status is VALID.

📡 API calls + code examples

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

📖 Summary: using keys on several sites

CaseKey setting (API Keys page)Result
2 sites (aaa.com, bbb.com) receive into the same accountBoth 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 onlyOne slip passes on both sites ⚠️ customers could top up twice — link the keys
2 sites with different receiving accountsThis 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 accountKeys can't be linked across tungkao accountsOne 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 groupA slip is usable once whether sent from the website or the app ✅

DUPLICATE is detected from the reference in the QR right away. Set it on the “Duplicate-slip protection between keys” card on the API Keys page (new keys default: this key only).

📚 Usage examples

Example 1

Save your receiving wallet once

Situation: Your shop receives into TrueMoney 081-234-5678 (Somchai) and has a receiving QR

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

➡️ Show qr_image_url on your payment page for customers to scan

Example 2

Verify using the saved wallet

Situation: A customer pays 300 THB to your TrueMoney wallet and attaches the slip

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

➡️ No need to resend the number; the key's saved wallet is used

Example 3

Receive with the e-Wallet ID only

Situation: Customers pay via the 15-digit e-Wallet ID; you don't share your phone number

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

➡️ Slips paid to the phone number return RECEIVER_MISMATCH; only the e-Wallet ID is accepted

Example 4

Send the receiver in the request (several wallets)

Situation: You rotate between several wallets per branch

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

➡️ Passes if the slip went to any listed wallet and the name matches

Example 5

Primary provider down, backup takes over

Situation: The primary verifier fails while the customer submits

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

➡️ The backup verifies within the same request. Send image_base64: the backup verifies from the image

Example 6

Duplicate or wrong amount

Situation: The customer resubmits a slip or underpays

Sample response
{
  "success": false,
  "status": "DUPLICATE"
}

➡️ DUPLICATE = already used · AMOUNT_MISMATCH = wrong amount. Credit nothing in both cases

💡 More

📜 Update history of this API

  1. Improved Thailand time (UTC+07:00)
    📘 The TrueMoney Wallet docs page is now fully translated into all 10 languages (steps, examples, case table, notes)
  2. Added Thailand time (UTC+07:00)
    📄 TrueMoney Wallet API landing page in 10 languages (tungkao.com/en/truemoney-wallet-api)
  3. Added Thailand 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
  4. Improved Thailand time (UTC+07:00)
    TrueMoney Wallet slip verification: choose whether you receive with the mobile number or the e-Wallet ID (receive_by); the wallet identifier must always match — a matching name alone no longer passes
  5. Added Thailand time (UTC+07:00)
    TrueMoney Wallet slip verification: save your receiving wallet on the key (GET/PUT /v1/truewallet/profile) — wallet number or e-Wallet ID, Thai/English name and a receiving QR image with a link to show your customer
  6. Improved Thailand time (UTC+07:00)
    TrueMoney Wallet slip verification now fails over to a backup provider inside the same API call when the primary provider is down (requires the slip image)
  7. New Thailand time (UTC+07:00)
    New service: TrueMoney Wallet slip verification — POST /v1/truewallet/verify (a truewallet_verify key). The receiver is an e-wallet number; responses are identical to /v1/slip/verify
  8. Added Thailand time (UTC+07:00)
    API update announcements by webhook: new api.update event (opt in per key on the key card; off by default)
  9. Added Thailand time (UTC+07:00)
    error.user_message: ready-to-show text for end users on outages, no credits or key problems (white-label keys omit tungkao.com)
  10. Added Thailand time (UTC+07:00)
    GET /status: per-service API status 🟢 normal / 🟠 high traffic / 🔴 minor delays (no key needed)
  11. Added Thailand time (UTC+07:00)
    Key on/off switch with status-change time + one key per service per website
  12. Improved Thailand time (UTC+07:00)
    API v1 frozen (additive only) + X-Tungkao-Api-Version header + 12-month deprecation notices
  13. Docs Thailand time (UTC+07:00)
    Per-API docs pages with AI links (ChatGPT / Claude / Gemini / Grok) in 10 languages
  14. Security Thailand time (UTC+07:00)
    Domain verification per API key (1 key = 1 site) — existing keys keep working
  15. Added Thailand time (UTC+07:00)
    Optional HMAC request signing — nothing changes unless you turn it on
  16. Added Thailand time (UTC+07:00)
    API key lifetimes, expiry warnings and renewal — the key string never changes
  17. Added Thailand time (UTC+07:00)
    Test-mode keys (simulated, free) for every service

✅ Your existing code keeps working

🛡️ Stability promise: integrate once, keep working

🚦 System status (GET /status)

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

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

curl https://api.tungkao.com/status
{
  "success": true,
  "data": {
    "status": "ok",
    "services": [
      { "id": "slip_verify", "status": "ok", "routes": ["ok", "ok", "busy"] },
      { "id": "slip_deposit", "status": "ok", "routes": ["ok", "ok", "busy"] },
      { "id": "login", "status": "ok" },
      { "id": "telegram", "status": "ok" },
      { "id": "discord", "status": "ok" },
      { "id": "email", "status": "busy" },
      { "id": "crypto", "status": "ok" },
      { "id": "core", "status": "ok" }
    ],
    "paused": [],
    "updated_at": "2026-11-14T12:00:00.000Z"
  }
}

🏷️ TUNGKAO attribution requirement

Powered by TUNGKAO