💠 API เชื่อมต่อ Wallet อั่งเปา

Endpoint: https://voucherapi.ink/api

🔧 วิธีการส่งข้อมูล (POST JSON)

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

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"

}'

✅ ตัวอย่าง Response เมื่อสำเร็จ

{

    "code": 200,

    "status": "success",

    "message": "เบอร์ 0840180485 รับเงินจำนวน 12.00 บาท เข้า นนทวิทย์ *** สำเร็จ",

    "mobile": "0840180485",

    "amount": "12.00",

    "full_name": "นนทวิทย์ ***"

}

❌ ตัวอย่าง Response เมื่อผิดพลาด

{

    "code": 400,

    "status": "error",

    "message": "ข้อมูลไม่ครบถ้วน api"

}
⬅ กลับหน้าหลัก