TUNGKAO API 문서
버튼을 누르고 대상에서 “PDF로 저장”을 선택하세요

TUNGKAO API

TrueMoney Wallet 이체 영수증 확인

API v1 · 최근 업데이트: 태국 시간 (UTC+07:00)

https://tungkao.com · https://api.tungkao.com/docs

이용 약관에 따라 서비스를 사용하는 페이지에 https://tungkao.com 링크가 있는 “Powered by TUNGKAO”(로그인/결제는 “Secured by TUNGKAO”)를 표시해야 합니다

API · truewallet_verify

TrueMoney Wallet 이체 영수증 확인

TrueMoney Wallet 이체 영수증이 진짜인지, 금액이 맞는지, 내 전자지갑 번호로 들어왔는지, 이미 사용되지 않았는지 확인합니다.

🕒 최근 업데이트: 태국 시간 (UTC+07:00) · ✅ 기존 코드 그대로 작동

🤖 AI에게 연동 코드 맡기기

이 링크를 AI에게 주거나(전체 API Markdown) 버튼을 누르세요. 프롬프트가 복사되고 AI가 열립니다

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

이 링크는 이 API의 업데이트를 JSON으로 돌려줍니다 (key 불필요, 모든 출처 허용). 관리자 페이지에 “업데이트 공지” 상자로 보여 주고 last_updated가 바뀌면 “새 글”로 표시하세요

ChatGPT ↗Claude ↗Gemini ↗Grok ↗

복사 후 열기: AI 버튼을 누르면 프롬프트가 자동 복사됩니다. 입력창이 비어 있으면 붙여넣기 하세요

🔑 사용할 키

판매자 포털(API key)에서 truewallet_verify 키를 만들고 모든 요청에 이 header를 보내세요 — 다른 서비스의 키는 여기서 작동하지 않습니다

Authorization: Bearer $TUNGKAO_KEY

📋 진행 방법

  1. 받는 지갑을 한 번 설정하세요 (PUT /v1/truewallet/profile 또는 포털의 key 카드): 지갑 휴대폰 번호 또는 e-Wallet ID, 태국어/영어 이름, 받는 QR 이미지.
  2. 고객에게 QR 이미지(qr_image_url)를 보여 결제하게 한 뒤 영수증 이미지를 올리게 하세요.
  3. 영수증 이미지(image_base64)와 예상 금액을 API로 보내세요. 번호와 이름은 저장된 프로필에서 가져옵니다 (또는 요청에 wallet_number / ewallet_id 전송).
  4. status가 VALID일 때만 주문을 승인하세요.

📡 API 호출 + 코드 예제

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

📖 요약: 여러 사이트에서 key를 쓸 때 결과

경우key 설정 (API Keys 페이지)결과
2개 사이트(aaa.com, bbb.com)가 같은 계좌로 받음두 key 모두: A 그룹 (또는 계정 전체)aaa.com에서 통과한 영수증은 bbb.com에서 DUPLICATE — 한 사이트에서만 사용 ✅
2개 사이트가 같은 계좌지만 key는 분리 (기본값)두 key 모두: 이 key만영수증 하나가 두 사이트에서 모두 통과 ⚠️ 고객이 두 번 충전할 수 있음 — key를 연결하세요
2개 사이트의 받는 계좌가 다름이 key만 (기본값)한 사이트의 영수증은 다른 사이트에서 이미 RECEIVER_MISMATCH ✅
2개 사이트가 다른 tungkao 계정(소유자 다름)이지만 받는 계좌는 같음tungkao 계정 간에는 key를 연결할 수 없음영수증 하나가 양쪽에서 통과 ⚠️ — 한 tungkao 계정에서 key 두 개를 사서 연결하세요
한 사이트에서 key 2개 사용 (예: 웹사이트 + 앱)두 key 모두: 같은 그룹웹사이트든 앱이든 영수증은 한 번만 사용 가능 ✅

DUPLICATE는 QR의 참조 번호로 즉시 감지합니다. API Keys 페이지의 “key 간 중복 영수증 방지” 카드에서 설정하세요 (새 key 기본값: 이 key만).

📚 사용 예시

예시 1

받는 지갑을 한 번 설정

상황: 가게가 TrueMoney 081-234-5678 (Somchai)로 받고 받는 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

저장된 지갑으로 확인

상황: 고객이 TrueMoney 지갑으로 300바트를 보내고 영수증을 첨부

요청
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로만 받기

상황: 고객은 15자리 e-Wallet ID로 결제하고, 전화번호는 공개하지 않습니다

요청
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 = 금액 불일치. 두 경우 모두 크레딧을 주지 마세요

💡 더 보기

📜 이 API의 업데이트 기록

  1. 개선 태국 시간 (UTC+07:00)
    📘 The TrueMoney Wallet docs page is now fully translated into all 10 languages (steps, examples, case table, notes)
  2. 추가 태국 시간 (UTC+07:00)
    📄 TrueMoney Wallet API landing page in 10 languages (tungkao.com/en/truemoney-wallet-api)
  3. 추가 태국 시간 (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. 개선 태국 시간 (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. 추가 태국 시간 (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. 개선 태국 시간 (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. 출시 태국 시간 (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. 추가 태국 시간 (UTC+07:00)
    API update announcements by webhook: new api.update event (opt in per key on the key card; off by default)
  9. 추가 태국 시간 (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. 추가 태국 시간 (UTC+07:00)
    GET /status: 서비스별 API 상태 (키 불필요)
  11. 추가 태국 시간 (UTC+07:00)
    키 켜기/끄기 스위치와 상태 변경 시각 + 웹사이트당 서비스별 키 1개
  12. 개선 태국 시간 (UTC+07:00)
    API v1 영구 고정(추가만 가능) + X-Tungkao-Api-Version header + 12개월 사전 지원 종료 알림
  13. 문서 태국 시간 (UTC+07:00)
    API별 문서 페이지와 AI 링크 (10개 언어)
  14. 보안 태국 시간 (UTC+07:00)
    API 키별 도메인 인증 (키 1개 = 사이트 1개) — 기존 키는 그대로 작동
  15. 추가 태국 시간 (UTC+07:00)
    선택형 HMAC 요청 서명 — 켜지 않으면 변화 없음
  16. 추가 태국 시간 (UTC+07:00)
    API 키 기간·만료 알림·갱신 — 키 문자열은 그대로
  17. 추가 태국 시간 (UTC+07:00)
    모든 서비스에 test 모드 키 (모의, 무료)

✅ 기존 코드 그대로 작동

🛡️ 안정성 약속: 한 번 연동하면 계속 작동

🚦 시스템 상태 (GET /status)

API 정상 여부를 언제든 확인 — 키 불필요

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 표기 요구 사항

Powered by TUNGKAO