Kết nối tài khoản ngân hàng, đọc lịch sử giao dịch, nhận webhook thời gian thực. Toàn bộ chạy trên hosting của bạn.
GET /api/v1/transactionscurl -H "Authorization: Bearer slk_live_..." \
"https://api.gdtguytin.xyz/api/v1/index.php?path=transactions&bank_id=1&limit=10"
{
"object": "list",
"data": [{
"transaction_code": "FT24092312345",
"amount": 500000,
"content": "DH12345 chuyen tien"
}]
}
Nhập STK + user + pass → OTP → liên kết. Hỗ trợ MBBank, TPBank, VCB, ACB.
REST API Bearer token. Lọc theo ngày, phân trang, JSON chuẩn.
POST JSON khi có giao dịch. HMAC-SHA256 chống giả mạo.
Mật khẩu bank mã hóa AES-256-GCM. Key ngoài public_html.
Retry 5 lần exponential backoff nếu endpoint lỗi.
Chạy trên hosting cPanel. Không qua trung gian.
| Method | Endpoint | Mô tả |
|---|---|---|
| GET | /api/v1/index.php?path=banks | Danh sách tài khoản |
| GET | /api/v1/index.php?path=transactions | Lịch sử giao dịch |
| GET | /api/v1/index.php?path=balance | Số dư hiện tại |
| GET | /api/v1/index.php?path=webhooks | Danh sách webhook |
| POST | /api/v1/index.php?path=webhooks | Đăng ký webhook |
Nhận POST khi có giao dịch mới:
POST https://your-app.com/hooksX-Webhook-Event: transaction.created
X-Webhook-Timestamp: 1727078400
X-Webhook-Signature: sha256=8f4a...
{ "event":"transaction.created", "data":{...} }
Verify: hash_hmac('sha256', timestamp . '.' . raw_body, secret)