ระบบ API สำหรับตรวจสอบและแลกของขวัญ TrueMoney พร้อมตรวจสอบสลิปการโอนเงิน
Base URL: http://localhost:3000
ตรวจสอบความถูกต้องของของขวัญ TrueMoney โดยจะไม่แลกอั่งเปา
| Parameter | Type | Status | Description |
|---|---|---|---|
| gift | string | Required | รหัสของขวัญหรือ URL |
| mobile | string | Required | เบอร์โทรศัพท์ 10 หลัก |
{
"success": true,
"message": "ตรวจสอบสำเร็จ สามารถแลกของขวัญได้",
"code": "SUCCESS",
"voucher": {
"code": "019acf013d917769798f084f6bfe416898E",
"amount": "10.00",
"status": "active",
"available": true,
"expire_date": "2025-12-31T23:59:59.000Z"
},
"owner": {
"name": "John ***"
}
}
แลกของขวัญและโอนเงินไปยังบัญชี TrueMoney
| Field | Type | Status | Description |
|---|---|---|---|
| gift | string | Required | รหัสของขวัญหรือ URL |
| mobile | string | Required | เบอร์โทรศัพท์ 10 หลัก |
{
"success": true,
"message": "แลกของขวัญสำเร็จ",
"code": "SUCCESS",
"voucher": {
"code": "019acf013d917769798f084f6bfe416898E",
"amount": "10.00",
"redeemed_amount": "10.00",
"status": "active"
},
"owner": {
"name": "John ***"
},
"redeemer": {
"mobile": "0999999999",
"name": "Jane ***",
"amount_received": "10.00",
"redeemed_at": "2024-01-01T12:00:00.000Z"
}
}
ตรวจสอบความถูกต้องของสลิปการโอนเงิน TrueMoney Wallet
| Field | Type | Status | Description |
|---|---|---|---|
| qrcode_data | string | Required | ข้อมูล QR Code จากสลิป |
| phone | string | Optional | เบอร์ปลายทาง (เทียบ 3 ตัวหน้า + 4 ตัวหลัง) |
| amount | string | Optional | จำนวนเงิน (เทียบกับยอดในสลิป) |
{
"success": true,
"message": "ตรวจสอบสลิปสำเร็จ",
"code": "SUCCESS",
"data": {
"sender_mobile": "089***2345",
"receiver_mobile": "092***4561",
"amount": "20025",
"message": "ค่าอาหาร",
"transaction_date": "2026-01-29 14:20"
}
}
TrueMoney API | Make By Hitori