API Documentation

ยินดีต้อนรับสู่ Slip Verify API บริการตรวจสอบสลิปโอนเงินธนาคารของประเทศไทย ที่รวดเร็ว ปลอดภัย และมีความแม่นยำสูง

ตรวจสอบทันที
ผลลัพธ์ภายในไม่กี่วินาที พร้อมข้อมูลครบถ้วน
ปลอดภัยสูง
เข้ารหัสทุกการเชื่อมต่อด้วย SSL/TLS
รองรับทุกธนาคาร
ครอบคลุมธนาคารหลักในประเทศไทย
ติดตามสถิติ
Dashboard แสดงการใช้งานแบบ real-time

Authentication

ทุก request ต้องส่ง API Key ผ่าน header X-API-Key

HeaderValueDescription
X-API-Keysk_live_xxxxxAPI Key จาก Dashboard
Content-Typeapplication/jsonRequest body format
สำคัญ!

อย่าเปิดเผย API Key ในที่สาธารณะหรือ commit ลง repository หากรั่วไหลให้ revoke ทันที

Base URL

https://api.slipverify.work.gd

Endpoints

POST/api/slips/verifyตรวจสอบสลิปด้วยรูปภาพ
POST/api/slips/verify/amountตรวจสอบพร้อมยืนยันจำนวนเงิน
GET/api/slips/healthตรวจสอบสถานะ API

POST /api/slips/verify

ตรวจสอบสลิปโอนเงินจากรูปภาพ Base64

Request Body

ParameterTypeRequiredDescription
imgstringRequiredรูปภาพ Base64 (JPEG/PNG)
amountnumberOptionalจำนวนเงินที่ต้องการตรวจสอบ

Response Format

Success Response

JSON
{
  "success": true,
  "transaction_id": "2025120778oTGTkIILaKuxfe5",
  "verified_at": "2025-12-08T06:47:29.715Z",
  "slip_data": {
    "reference_number": "2025120778oTGTkIILaKuxfe5",
    "transaction_date": "2025-12-07T15:09:00.000Z",
    "amount": 800,
    "currency": "THB",
    "sender": {
      "bank_code": "014",
      "bank_name": "Siam Commercial Bank",
      "account_name": "นาย ทดสอบ ระบบ",
      "account_number": "xxxx-xx261-3"
    },
    "receiver": {
      "bank_code": "004",
      "bank_name": "Kasikorn Bank",
      "account_name": "นาย รับเงิน ทดสอบ",
      "account_number": "0458604290"
    },
    "additional_info": {
      "ref1": "",
      "ref2": "",
      "ref3": ""
    }
  },
  "verification_method": "cached"
}

Error Response

JSON
{
  "success": false,
  "error": "Verification failed",
  "message": "Provider API error: 400 Invalid image data"
}

HTTP Status Codes

200
Success
400
Bad Request
401
Unauthorized
429
Rate Limited
500
Server Error

Rate Limits

60
Requests per minute
ค่าเริ่มต้นต่อ API Key

Code Examples

cURL

BASH
curl -X POST https://api.slipverify.work.gd/api/slips/verify \
  -H "Content-Type: application/json" \
  -H "X-API-Key: your_api_key_here" \
  -d '{
    "img": "data:image/png;base64,YOUR_BASE64_IMAGE_DATA"
  }'

JavaScript

JAVASCRIPT
// อ่านไฟล์รูปภาพและแปลงเป็น Data URL
const fileToDataUrl = (file) => {
  return new Promise((resolve) => {
    const reader = new FileReader();
    reader.onload = () => resolve(reader.result);
    reader.readAsDataURL(file);
  });
};

// ตัวอย่างการใช้งาน
const file = document.querySelector('input[type="file"]').files[0];
const dataUrl = await fileToDataUrl(file);
// dataUrl จะอยู่ในรูปแบบ "data:image/png;base64,xxxxx"

const response = await fetch('https://api.slipverify.work.gd/api/slips/verify', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'X-API-Key': 'your_api_key_here'
  },
  body: JSON.stringify({ img: dataUrl })
});

const result = await response.json();
console.log(result);

Python

PYTHON
import requests
import base64

# อ่านไฟล์รูปภาพและแปลงเป็น base64
with open('slip.png', 'rb') as f:
    img_data = base64.b64encode(f.read()).decode('utf-8')

# สำคัญ: ต้องใส่ Data URL prefix ก่อน base64 data
# ใช้ image/png สำหรับไฟล์ .png หรือ image/jpeg สำหรับไฟล์ .jpg
img_with_prefix = f"data:image/png;base64,{img_data}"

response = requests.post(
    'https://api.slipverify.work.gd/api/slips/verify',
    headers={
        'Content-Type': 'application/json',
        'X-API-Key': 'your_api_key_here'
    },
    json={'img': img_with_prefix}
)

print(response.json())