Endpoint
POST
https://verify.ju4n.dev/api/slip
Request Body
{
"img": "base64_encoded_image_string"
}
Code Examples
const axios = require('axios');
async function verifySlip(base64Image) {
try {
const response = await axios.post('https://verify.ju4n.dev/api/slip', {
img: base64Image
});
return response.data;
} catch (error) {
console.error('Error:', error.message);
throw error;
}
}
Response
Success Response
{
"status": {
"code": "SUCCESS",
"description": "ทำรายการสำเร็จ"
},
"data": {
"transactionRef": "015042183608APP08757",
"transactionDate": "2024-02-11T18:36:00.000Z",
"sender": {
"bank": {
"code": "004",
"shortName": "KBANK",
"fullName": "ธนาคารกสิกรไทย"
},
"name": "Mr. John Doe",
"accountNumber": "xxx-x-x5719-x"
},
"receiver": {
"bank": {
"code": "006",
"shortName": "KTB",
"fullName": "ธนาคารกรุงไทย"
},
"name": "Mrs. Jane Doe",
"accountNumber": "xxx-xxx-8416"
},
"amount": 300,
"amountText": "300.00 บาท"
}
}
Error Response
{
"status": {
"code": "ERROR",
"description": "ข้อความแสดงข้อผิดพลาด กรุณาติดต่อที่ discord.gg/ju4ndev"
}
}
Support
หากต้องการความช่วยเหลือเพิ่มเติม กรุณาติดต่อที่ discord.gg/ju4ndev