Endpoint: https://voucherapi.ink/api
API นี้รองรับการส่งข้อมูลผ่าน POST JSON ไปยัง Endpoint ด้านบน โดยต้องระบุค่า chanel เป็น "api" พร้อมข้อมูลต่อไปนี้:
{
"chanel": "api",
"website": "ชื่อเว็บไซต์ของคุณ (ตัวอย่าง: pggrand.com)",
"mobile": "เบอร์ผู้รับเงิน (เช่น 0840180485)",
"mobile_member": "เบอร์ผู้ส่งเงิน (หรือเบอร์สมาชิกของเว็บคุณ)",
"wallet_url": "https://gift.truemoney.com/campaign/?v=xxxxxxx"
}
curl -X POST https://voucherapi.fit/api \
-H "Content-Type: application/json" \
-d '{
"chanel": "api",
"website": "pggrand.com",
"mobile": "0840180485",
"mobile_member": "0829986600",
"wallet_url": "https://gift.truemoney.com/campaign/?v=019a37a6b340704726ab597202cdeb17dez"
}'
{
"code": 200,
"status": "success",
"message": "เบอร์ 0840180485 รับเงินจำนวน 12.00 บาท เข้า นนทวิทย์ *** สำเร็จ",
"mobile": "0840180485",
"amount": "12.00",
"full_name": "นนทวิทย์ ***"
}
{
"code": 400,
"status": "error",
"message": "ข้อมูลไม่ครบถ้วน api"
}