💰 Ví — xem số dư
- Gửi action
balancekèm identifier + secret. - Đọc số dư trong response.
{
"action": "balance",
"identifier": "YOUR_IDENTIFIER",
"secret": "YOUR_SECRET"
}
Gọi API bằng identifier + secret (API key tài khoản) tới
https://api-khachhang.gizadata.vn/api.
Tích hợp trực tiếp từ script, ứng dụng hoặc Postman — không cần đăng nhập website.
identifier và secret.
Mọi request bảo vệ gửi kèm identifier và secret:
{
"action": "balance",
"identifier": "YOUR_IDENTIFIER",
"secret": "YOUR_SECRET"
}
Tùy chọn: frontend_source (domain hoặc tên app của bạn).
curl -s -X POST 'https://api-khachhang.gizadata.vn/api' \
-H 'Content-Type: application/json' \
-d '{
"action": "balance",
"identifier": "YOUR_IDENTIFIER",
"secret": "YOUR_SECRET"
}'
Bảng tóm tắt — xem phần Hướng dẫn bên dưới để biết cách gọi từng nhóm.
| Nhóm | action | Mô tả |
|---|---|---|
| Ví | balance | Số dư ví |
| Ví | deposit_sepay, get_sepay_order, check_sepay_payment | Nạp tiền Sepay |
| Ví | transactions | Lịch sử giao dịch |
| Catalog | list_plans, hosting_list_plans, email_list_plans, key_list_products | Danh sách gói (public / GET) |
| Mua DV | create_vps, create_hosting, create_email | Tạo dịch vụ (trừ ví) |
| Mua DV | key_buy, license_buy, bantaikhoan_create_order | Proxy, license, bán TK |
| Quản lý | list_vps, list_vps_with_node, list_hosting, list_email | Danh sách dịch vụ |
| VPS | vps_action, vps_status, vps_vnc | Bật/tắt, trạng thái, VNC |
| VPS | vps_change_rootpass, change_vps_hostname, vps_reinstall_os | Đổi pass, hostname, cài lại OS |
| Hosting/Email | get_hosting_login_info, get_email_login_info | Thông tin đăng nhập panel |
| Gia hạn | renew_service_price_matrix, renew_service, key_renewal | Báo giá & gia hạn |
| Hóa đơn | hoadon, pay_invoice | Hóa đơn & thanh toán |
| Hồ sơ | user_profile, update_user_profile | Thông tin tài khoản |
| Ticket | ticket_create, ticket_list, ticket_get, ticket_reply | Hỗ trợ / ticket |
{"status":"success", ...}{"status":"error","message":"..."}error_code: RATE_LIMIT_EXCEEDEDsecret vào frontend public.POST https://api-khachhang.gizadata.vn/api (hoặc GET cho catalog).GET https://api-khachhang.gizadata.vn/api?action=list_plans — không bắt buộc secret.Mỗi ví dụ bên dưới là JSON gửi POST https://api-khachhang.gizadata.vn/api. Click khối code để copy.
balance kèm identifier + secret.{
"action": "balance",
"identifier": "YOUR_IDENTIFIER",
"secret": "YOUR_SECRET"
}
deposit_sepay với số tiền (amount).get_sepay_order hoặc check_sepay_payment đến khi thành công.{
"action": "deposit_sepay",
"identifier": "YOUR_IDENTIFIER",
"secret": "YOUR_SECRET",
"amount": 500000
}
{
"action": "check_sepay_payment",
"identifier": "YOUR_IDENTIFIER",
"secret": "YOUR_SECRET",
"order_id": "ORDER_ID_TU_BUOC_1"
}
transactions để lấy danh sách biến động ví.{
"action": "transactions",
"identifier": "YOUR_IDENTIFIER",
"secret": "YOUR_SECRET"
}
GET không cần secret.GET https://api-khachhang.gizadata.vn/api?action=list_plans
{
"action": "hosting_list_plans",
"identifier": "YOUR_IDENTIFIER",
"secret": "YOUR_SECRET"
}
planid từ list_plans.create_vps — tiền trừ từ ví.create_hosting, create_email cho hosting/email.{
"action": "create_vps",
"identifier": "YOUR_IDENTIFIER",
"secret": "YOUR_SECRET",
"planid": 26,
"hostname": "api-vps-01",
"password": "StrongPass@123",
"os": "ubuntu-22.04",
"billingcycle": "monthly"
}
list_vps / list_hosting / list_email để lấy ID dịch vụ.{
"action": "list_vps",
"identifier": "YOUR_IDENTIFIER",
"secret": "YOUR_SECRET"
}
vpsid từ list_vps.vps_action với vps_action: start, stop, reboot…{
"action": "vps_action",
"identifier": "YOUR_IDENTIFIER",
"secret": "YOUR_SECRET",
"vpsid": 12345,
"vps_action": "start"
}
{
"action": "vps_status",
"identifier": "YOUR_IDENTIFIER",
"secret": "YOUR_SECRET",
"vpsid": 12345
}
renew_service_price_matrix — xem giá gia hạn.renew_service — thực hiện gia hạn.{
"action": "renew_service",
"identifier": "YOUR_IDENTIFIER",
"secret": "YOUR_SECRET",
"serviceid": 12345,
"type": "vps"
}
ticket_list — danh sách ticket (có phân trang page, limit, lọc status).ticket_get — chi tiết + lịch sử trả lời theo ticket_id.ticket_create — tạo ticket mới (subject, message).ticket_reply — trả lời ticket đã có.{
"action": "ticket_list",
"identifier": "YOUR_IDENTIFIER",
"secret": "YOUR_SECRET",
"page": 1,
"limit": 20,
"status": ""
}
{
"action": "ticket_get",
"identifier": "YOUR_IDENTIFIER",
"secret": "YOUR_SECRET",
"ticket_id": 123
}
{
"action": "ticket_create",
"identifier": "YOUR_IDENTIFIER",
"secret": "YOUR_SECRET",
"subject": "VPS không ping được",
"message": "Mô tả chi tiết lỗi...",
"attachment_urls": []
}
{
"action": "ticket_reply",
"identifier": "YOUR_IDENTIFIER",
"secret": "YOUR_SECRET",
"ticket_id": 123,
"message": "Nội dung trả lời...",
"attachment_urls": []
}
user_profile xem thông tin · update_user_profile cập nhật.{
"action": "user_profile",
"identifier": "YOUR_IDENTIFIER",
"secret": "YOUR_SECRET"
}