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

TUNGKAO API

Complete API reference

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

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

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

TUNGKAO 연동하기

모든 서비스에 같은 API 스타일 — Base URL: https://api.tungkao.com

🕒 채널별 최근 API 업데이트

플랫폼 전체 최근 업데이트: 태국 시간 (UTC+07:00) — 📘 The TrueMoney Wallet docs page is now fully translated into all 10 languages (steps, examples, case table, notes)

✅ 기존 코드 그대로 작동 · /changelog.json (기계 판독용)

Paste it into the AI that maintains your site's code (ChatGPT / Claude / Gemini); it checks and changes only what is needed
🧾은행 영수증 확인 태국 시간 (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 accountTrueMoney Wallet 이체 영수증 확인 태국 시간 (UTC+07:00)📘 The TrueMoney Wallet docs page is now fully translated into all 10 languages (steps, examples, case table, notes)🏦영수증 입금 태국 시간 (UTC+07:00)영수증 입금과 webhook 출시₿암호화폐 결제 태국 시간 (UTC+07:00)Ethereum, Polygon, Arbitrum, Base, Optimism, Avalanche 네트워크와 USDC 추가Telegram 알림 태국 시간 (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 알림 태국 시간 (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 태국 시간 (UTC+07:00)이메일 서비스 출시: API + SMTP + 이메일 OTPGoogle로 로그인 태국 시간 (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로 로그인 태국 시간 (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로 로그인 태국 시간 (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로 로그인 태국 시간 (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로 로그인 태국 시간 (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로 로그인 태국 시간 (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)로 로그인 태국 시간 (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로 로그인 태국 시간 (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 groupGitHub로 로그인 태국 시간 (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 groupApple로 로그인 태국 시간 (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 groupSteam로 로그인 태국 시간 (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 groupTwitch로 로그인 태국 시간 (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로 로그인 태국 시간 (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로 로그인 태국 시간 (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로 로그인 태국 시간 (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로 로그인 태국 시간 (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로 로그인 태국 시간 (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로 로그인 태국 시간 (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로 로그인 태국 시간 (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 groupRoblox로 로그인 태국 시간 (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로 로그인 태국 시간 (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 groupYahoo로 로그인 태국 시간 (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 groupSlack로 로그인 태국 시간 (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 groupAmazon로 로그인 태국 시간 (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 키를 만들고(서비스당 키 1개) 모든 요청의 Authorization header에 보냅니다.

진행 방법

  1. app.tungkao.com에 Gmail로 로그인하고 크레딧을 충전하세요 (1바트 = 100크레딧).
  2. API key → 서비스 카드 선택 → 키 기간 선택 → 생성 → 키 복사 (한 번만 표시).
  3. 키는 서버에 보관하세요 (환경 변수 TUNGKAO_KEY). 웹페이지나 모바일 앱에 넣지 마세요.
  4. test 키(tk_test_…)로 시작하면 크레딧이 차감되지 않습니다. 그다음 live로 전환하세요.
GET/v1/account — 키 테스트: 남은 크레딧
curl -X GET https://api.tungkao.com/v1/account \
  -H "Authorization: Bearer $TUNGKAO_KEY"

요청 서명 (켰을 때)

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"));
  • 모든 응답은 success와 request_id가 있는 JSON입니다. 오류 시 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.
  • 키는 선택한 기간(1–24개월 또는 무기한)에 만료됩니다. 30/7/1일 전에 api_key.expiring webhook으로 알립니다. 포털에서 갱신하면 키 문자열은 그대로입니다.
  • 도메인 인증: live 키마다 웹사이트 하나에 연결됩니다. API key → '도메인 인증' → 도메인 입력, tungkao-verify-….html을 https://내도메인/에 업로드(또는 DNS TXT _tungkao-verify.내도메인 추가) 후 인증. 미인증 키는 DOMAIN_NOT_VERIFIED, 인증된 도메인은 변경 불가이며 다른 계정이 사용할 수 없습니다.
  • 비밀 키 유출? '즉시 교체'를 누르세요 — 무제한, 기존 키는 바로 중지. 키는 자기 서비스에서만 작동합니다 (아니면 WRONG_PRODUCT).
  • 고급(선택): 키에서 '요청 서명'을 켜면 tksign_… 비밀 값을 받고, 모든 요청에 X-Tungkao-Timestamp와 X-Tungkao-Signature = HMAC-SHA256(비밀, ts.METHOD.path.sha256(body))가 필요합니다. 키만 유출돼서는 쓸 수 없습니다.
  • 🧪 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)를 보내 메시지 언어를 선택하세요.
🧾

은행 영수증 확인

slip_verify

영수증이 진짜인지, 금액이 맞는지, 내 계좌로 입금됐는지, 사용된 적 없는지 확인 — 고객이 영수증을 첨부하는 가게에 적합.

진행 방법

  1. 고객이 영수증을 업로드하면 사이트가 QR 텍스트(0041…로 시작)를 읽습니다.
  2. qr_payload, 예상 금액, 입금 계좌를 API로 보냅니다.
  3. 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"}]}'

📖 요약: 여러 사이트에서 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

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

  • Idempotency-Key header(예: 주문 번호)를 보내면 재시도해도 두 번 과금되지 않습니다.
  • 영수증은 키당 한 번만 VALID입니다 (두 번째는 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 이체 영수증 확인

truewallet_verify

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

진행 방법

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

  • 받는 사람은 둘 중 하나 또는 둘 다로 지정: wallet_number (10자리 휴대폰 번호) 또는 ewallet_id (15자리 e-Wallet ID). 하나라도 맞으면 통과합니다.
  • receive_by로 받는 방식을 선택: wallet_number (번호만), ewallet_id (e-Wallet ID만) 또는 any (기본값, 둘 중 하나). 선택한 식별자로 영수증을 확인합니다.
  • 받는 사람 이름: name_th, name_en 또는 둘 다 (확인 요청에서는 wallet_name_th / wallet_name_en). 설정하면 그중 하나와 맞아야 하고, 없으면 이름을 확인하지 않습니다.
  • 받는 QR 이미지: QR을 읽을 수 있는 1 MB 이하 JPG/PNG. 결제 페이지용 qr_image_url을 받으며, 새 이미지를 올리면 새 링크가 생깁니다.
  • wallet_number는 받는 지갑의 10자리 휴대폰 번호입니다. wallet_numbers로 여러 개 (최대 10개) 보내거나 포털의 key에 저장하세요.
  • 응답과 상태는 /v1/slip/verify와 같습니다. 영수증은 key마다 한 번만 VALID입니다 (두 번째는 DUPLICATE).
  • Idempotency-Key header(예: 주문 번호)를 보내면 재시도해도 두 번 과금되지 않습니다.
🏦

영수증 입금

slip_deposit

사용자 충전: 영수증을 확인하고 해당 사용자의 입금을 기록한 뒤 webhook으로 사이트에 알립니다.

진행 방법

  1. 포털에서 키에 입금 계좌와 webhook URL을 설정하세요.
  2. customer_ref(내 사용자 ID)와 함께 영수증을 보냅니다.
  3. deposit.succeeded webhook을 받으면(서명 확인 후) 사용자에게 적립하세요.
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"

webhook 서명 확인

모든 webhook에는 X-Tungkao-Signature: t=…,v1=…가 있습니다. 데이터를 믿기 전에 확인하세요 (URL 설정 시 webhook 비밀 값 표시).

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]));
}

📚 사용 예시

예시 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.

진행 방법

  1. 제공자 키를 만든 뒤 '로그인 회원'에서 사이트 이름과 돌아갈 주소(https, 정확히 일치)를 설정하세요.
  2. 로그인 버튼은 사용자를 client_id(키 ID), redirect_uri, state(매번 새 무작위 값, 세션에 저장)와 함께 /oauth/authorize로 보냅니다.
  3. 사용자가 redirect_uri?code=…&state=…로 돌아오면 state 확인 → 서버가 2분 안에 POST /v1/login/token 호출.
  4. data.user(예: 7F3K9QX2-yourshopcom)를 회원 ID로 쓰세요 — 같은 사람은 항상 같은 ID.
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

경우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 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.

전체 예제 (버튼 + 콜백 + 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);
제공자서비스제공 정보
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.
  • 로그인 성공 시마다, 그리고 신규 회원당 한 번 크레딧이 차감됩니다 — 현재 가격은 서비스 카드 참고.
  • test 모드 키는 http://localhost 리디렉션을 허용하며 무료입니다.
  • API 키를 링크나 페이지에 넣지 마세요 — /oauth/authorize에는 공개 가능한 client_id(키 ID)만 필요합니다.
✈️

Telegram 알림

telegram_notify

TUNGKAO 봇으로 사용자에게 Telegram 메시지를 보냅니다 — 봇을 직접 만들 필요 없음. 예: 입금 확인, 주문 상태, OTP.

진행 방법

  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"

📚 사용 예시

예시 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 알림

discord_notify

내 또는 고객의 Discord 채널에 메시지를 보냅니다 — 예: 팀에 새 주문 알림.

진행 방법

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

📚 사용 예시

예시 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

📧

이메일 발송 + OTP + SMTP

email

API 또는 SMTP로 사이트에서 이메일을 보내고(WordPress 지원), 이메일 OTP 발송과 확인까지 — 이메일 제공자 간 자동 전환.

진행 방법

  1. 이메일 키를 만드세요 (테스트 키는 내 주소로만, 하루 50통).
  2. SMTP: 호스트 smtp.tungkao.com, 포트 587(STARTTLS) 또는 465(SSL), 사용자 이름 아무거나, 비밀번호 = API 키.
  3. API: 이메일을 보내거나 OTP를 요청하고 받은 otp_id로 확인 (5회, 1회용).
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"}'

📚 사용 예시

예시 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 첨부 파일은 전달되지 않습니다.
₿

암호화폐 결제 (곧 출시)

crypto

사용자마다 전용 BTC / USDT / USDC 주소(TRON, Ethereum, BNB Chain, Polygon, Arbitrum, Base, Optimism, Avalanche)를 주고 webhook으로 알립니다 — 곧 출시.

진행 방법

  1. 사용자용 주소 요청
  2. 사용자가 송금
  3. 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"}'

📚 사용 예시

예시 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 정상 여부를 언제든 확인 — 키 불필요

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

  • 🟢 ok = 정상
  • 🟠 busy = 이용자 많음
  • 🔴 slow = 약간 지연
  • 최근 5분 실제 요청 기준, 서비스별(services[]) 측정. 영수증 확인/입금은 모든 백업 제공자를 합산하며 경로별 상태는 routes[]
  • API 키 불필요, 브라우저에서 호출 가능(CORS 허용), 15초 캐시 — 1분에 한 번 이하로 조회 권장
  • busy/slow일 때 타임아웃을 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개월 전에 모든 응답의 Deprecation / Sunset header, 이메일, webhook으로 알립니다 — 그때까지 기존 동작은 유지됩니다.
  • 모든 응답에 버전과 최신 개정일이 담긴 X-Tungkao-Api-Version header가 있습니다. 전체 기록: /changelog.json

🏷️ TUNGKAO 표기 요구 사항

  • TUNGKAO 서비스를 사용하는 모든 페이지에 “Powered by TUNGKAO” 또는 “Secured by TUNGKAO”를 보이게 표시하고 https://tungkao.com으로 연결하세요
  • 기능 가까이에 배치 — 숨기거나 배경색과 같게 하거나 너무 작게 하지 마세요
  • “로그인 버튼” 페이지의 버튼에는 자동으로 포함되며, TUNGKAO 로그인 페이지에도 표시됩니다
  • 예: <a href="https://tungkao.com" target="_blank" rel="noopener">Powered by TUNGKAO</a>
  • 표기를 없애려면(화이트 라벨) 먼저 승인을 받으세요

Powered by TUNGKAO