System integration documents
API VPS TaiVPS giúp developers lấy catalog, mua và quản lý VPS bằng token. Tài liệu mô tả endpoint v19, tham số, trạng thái đồng bộ và ví dụ request/response. Dùng action=listvps cùng refresh=1 khi cần cập nhật trạng thái provider trước khi hiển thị cho khách hàng.
API Access Token
Sử dụng trong body request: auth_token={token}
30 Endpoints (v19)
List of services
Get a list of available VPS services.
Endpoint
https://taivps.net/en/api/v19
Parameter
| Parameter | Obligatory | Describe |
|---|---|---|
auth_token |
Có | User authentication token |
action |
Có | Price trị: loaivps |
Sample JSON response
[
{
"type": "vps-gold",
"name": "VPS Gold"
},
{
"type": "vps-platinum",
"name": "VPS Platinum"
},
{
"type": "vps-vip",
"name": "VPS VIP"
}
]
Sample error response
{
"status": "error",
"message": "Loại Vps Không Có"
}
Waiting...Danh sách gói vps
Get a list of available VPS plans.
Endpoint
https://taivps.net/en/api/v19
Parameter
| Parameter | Obligatory | Describe |
|---|---|---|
auth_token |
Có | Authentication tokens |
action |
Có | Price trị: services |
type |
Có | Price trị: vps-platinum |
Sample JSON response
{
"status": "success",
"message": "Danh sách gói VPS khả dụng",
"data": [
{
"id": "1",
"name": "Plan 1-1-20 | Giờ",
"price": {
"hourly": {
"amount": 1000
},
"monthly": {
"amount": null
},
"quarterly": {
"amount": null
},
"semi_annually": {
"amount": null
},
"yearly": {
"amount": null
}
},
"renew_price": {
"hourly": {
"amount": 1858
},
"monthly": {
"amount": null
},
"quarterly": {
"amount": null
},
"semi_annually": {
"amount": null
},
"yearly": {
"amount": null
}
},
"specs": {
"cpu": 1,
"ram": 1,
"ram_raw": 1024,
"disk": 20,
"bandwidth": "Không giới hạn",
"network_speed": 0,
"network_speed_text": "",
"upload_speed": 50,
"upload_speed_text": "50 Mbps",
"ipv4": 1,
"ipv6": 0,
"ipv6_subnet": 0,
"cpu_model": "",
"ram_type": "",
"disk_type": "SSD NVMe",
"backup_policy": "",
"virtualization": "KVM",
"display_network": "Download 10Gbps\/Upload 50Mbps",
"display_feature": "Ảo hóa KVM"
},
"is_hourly": true
},
{
"id": "11",
"name": "1-1-CTV",
"price": {
"hourly": {
"amount": 0
},
"monthly": {
"amount": 28000
},
"quarterly": {
"amount": 84000
},
"semi_annually": {
"amount": 168000
},
"yearly": {
"amount": 336000
}
},
"renew_price": {
"hourly": {
"amount": 0
},
"monthly": {
"amount": 52000
},
"quarterly": {
"amount": 156000
},
"semi_annually": {
"amount": 312000
},
"yearly": {
"amount": 624000
}
},
"specs": {
"cpu": 1,
"ram": 1,
"ram_raw": 1024,
"disk": 20,
"bandwidth": "Không giới hạn",
"network_speed": 0,
"network_speed_text": "",
"upload_speed": 244,
"upload_speed_text": "244 Mbps",
"ipv4": 1,
"ipv6": 0,
"ipv6_subnet": 0,
"cpu_model": "",
"ram_type": "",
"disk_type": "SSD NVMe",
"backup_policy": "Backup 2 ngày\/ lần",
"virtualization": "KVM",
"display_network": "Upload 244Mbps",
"display_feature": "Backup 2 ngày\/ lần"
},
"is_hourly": false
}
]
}
Sample error response
{
"status": "error",
"message": "Cloud Vps Không Có"
}
Waiting...List of operating systems
Get the list of available operating systems.
Endpoint
https://taivps.net/en/api/v19
Parameter
| Parameter | Obligatory | Describe |
|---|---|---|
auth_token |
Có | Authentication tokens |
action |
Có | Price trị: os |
provider |
No | Mã nguồn image do hệ thống trả về; bỏ trống để dùng image mặc định |
Sample JSON response
[
{
"id": 100141,
"name": "windows-2012r2"
},
{
"id": 100150,
"name": "windows-2019"
},
{
"id": 100151,
"name": "windows-2022"
},
{
"id": 100152,
"name": "almalinux-8.4-x86_64"
}
]
Sample error response
{
"status": "error",
"message": "auth_token không hợp lệ"
}
Waiting...Danh sách Addons
Get the list of available VPS addons.
Endpoint
https://taivps.net/en/api/v19
Parameter
| Parameter | Obligatory | Describe |
|---|---|---|
auth_token |
Có | Authentication tokens |
action |
Có | Price trị: addons |
type |
Có | Price trị: vps-platinum |
Sample JSON response
{
"status": "success",
"data": [
{
"id": "16",
"name": "Mua thêm CPU",
"type_addon": "addon_cpu"
}
]
}
Sample error response
{
"status": "error",
"message": "Không có addon VPS nào"
}
Waiting...id là ID đơn hàng nội bộ dùng cho param; vps_id là ID tại nhà cung cấp. Trạng thái chuẩn: pending, active, stopped, rebuilding, reinstalling, expired, cancelled, suspended, locked. Mặc định API có thể trả snapshot trong cache tối đa 15 giây; gửi refresh=1 để đồng bộ ngay. Với VPS quốc tế, API hỗ trợ tạo theo chu kỳ 1, 12, 24 month; gia hạn chưa hỗ trợ vì loại dịch vụ này không có endpoint gia hạn, còn hủy là hủy cuối kỳ nên không đổi trạng thái ngay.VPS của bạn
Lấy VPS của tài khoản và đồng bộ trạng thái gần nhất.
Endpoint
https://taivps.net/en/api/v19
Parameter
| Parameter | Obligatory | Describe |
|---|---|---|
auth_token |
Có | Authentication tokens |
action |
Có | Price trị: listvps |
type |
Có | Price trị: vps-platinum |
refresh |
No | Gửi 1 hoặc true để bỏ cache 15 giây và đồng bộ provider ngay |
Sample JSON response
{
"status": "success",
"message": "Danh sách VPS của bạn",
"status_sync": {
"performed": true,
"cached": false,
"synced": 1,
"errors": []
},
"data": [
{
"id": "123",
"vps_id": "instance-example",
"status": "active",
"provider": "cloud",
"price": 28000,
"paid_price": 28000,
"shop_price": 28000,
"renew_price": 52000,
"ip": "203.0.113.10",
"username": "root",
"password": "ExampleOnly-ChangeMe!",
"os": "ubuntu-22.04",
"billingcycle": 1,
"provider_cycle_id": "monthly",
"product_name": "VPS Example",
"last_provider_sync_at": "2026-01-01 00:00:00",
"created_at": "2026-01-01 00:00:00",
"expired_at": "2026-02-01 00:00:00"
}
]
}
Sample error response
{
"status": "error",
"message": "Bạn chưa có VPS nào"
}
Waiting...Mua VPS
Buy a new VPS package.
Endpoint
https://taivps.net/en/api/v19
Parameter
| Parameter | Obligatory | Describe |
|---|---|---|
auth_token |
Có | Token |
action |
Có | Price trị: buy |
type |
Có | Price trị: vps_vn hoặc vps_nn |
vpsId |
Có | ID gói VPS lấy từ action=services |
osid |
Có | ID hệ điều hành lấy từ action=os; với VPS quốc tế đây là image ID chuỗi |
billingcycle |
Có | Gửi đúng chu kỳ mà gói trả về từ action=services; VPS quốc tế chỉ nhận 1, 12, 24 |
hostname |
No | Hostname VPS, ví dụ: server01 |
location_id |
No | Mã location được trả về khi chọn gói VPS quốc tế; hỗ trợ EU, US-central, US-east, US-west, SIN, UK, AUS, JPN, IND |
Sample JSON response
{
"status": "success",
"msg": "Mua VPS thành công",
"vps_id": 123,
"idvps": "123",
"ip": "203.0.113.10",
"username": "root",
"password": "ExampleOnly-ChangeMe!",
"data": {
"vps_id": 123,
"idvps": "123",
"provider_vps_id": "instance-example",
"ip": "203.0.113.10",
"username": "root",
"password": "ExampleOnly-ChangeMe!",
"user": "root",
"pass": "ExampleOnly-ChangeMe!",
"os": "ubuntu-22.04",
"price": 28000,
"billingcycle": 1,
"expired_at": "2026-02-01 00:00:00",
"expired": "2026-02-01 00:00:00"
}
}
Sample error response
{
"status": "error",
"message": "Chu kỳ thanh toán không hợp lệ. Gói theo giờ chỉ nhận billingcycle=0\/hour. Gói theo tháng chỉ nhận 1, 3, 6, 12, 24, 36.",
"field": "billingcycle",
"received": "2",
"allowed": [
"0",
"hour",
"0\/hour",
"1",
"3",
"6",
"12",
"24",
"36"
],
"examples": {
"hour": {
"vpsId": 1,
"billingcycle": "0\/hour"
},
"monthly": {
"vpsId": 11,
"billingcycle": "1"
},
"quarterly": {
"vpsId": 11,
"billingcycle": "3"
},
"yearly": {
"vpsId": 11,
"billingcycle": "12"
}
}
}
Waiting...Start VPS
Start a VPS.
Endpoint
https://taivps.net/en/api/v19
Parameter
| Parameter | Obligatory | Describe |
|---|---|---|
auth_token |
Có | Token |
action |
Có | Price trị: start |
type |
Có | VPS type |
param |
Có | ID VPS |
Sample JSON response
{
"status": "success",
"message": "Khởi động VPS thành công"
}
Sample error response
{
"status": "error",
"message": "VPS đã hết hạn"
}
Waiting...Turn off VPS
Shut down a VPS.
Endpoint
https://taivps.net/en/api/v19
Parameter
| Parameter | Obligatory | Describe |
|---|---|---|
auth_token |
Có | Token |
action |
Có | Price trị: stop |
type |
Có | VPS type |
param |
Có | ID VPS |
Sample JSON response
{
"status": "success",
"message": "Tắt VPS thành công"
}
Sample error response
{
"status": "error",
"message": "VPS đã hết hạn"
}
Waiting...Restart the VPS
Restart a VPS.
Endpoint
https://taivps.net/en/api/v19
Parameter
| Parameter | Obligatory | Describe |
|---|---|---|
auth_token |
Có | Token |
action |
Có | Price trị: restart |
type |
Có | VPS type |
param |
Có | ID VPS |
Sample JSON response
{
"status": "success",
"message": "Khởi động lại VPS thành công"
}
Sample error response
{
"status": "error",
"message": "VPS đã hết hạn"
}
Waiting...Reinstall VPS
Reinstall the operating system.
Endpoint
https://taivps.net/en/api/v19
Parameter
| Parameter | Obligatory | Describe |
|---|---|---|
auth_token |
Có | Token |
action |
Có | Price trị: rebuild |
type |
Có | VPS type |
param |
Có | ID VPS |
os |
Có | ID trả về từ action=os. Ví dụ Windows Server 2019 dùng đúng id API trả về |
Sample JSON response
{
"status": "success",
"message": "Cài lại HĐH thành công, chờ ít phút thông tin sẽ gửi về"
}
Sample error response
{
"status": "error",
"message": "OS hoặc VPS không hợp lệ",
"valid_os_ids": [
{
"id": 100150,
"name": "windows-2019"
}
]
}
Waiting...Renew VPS
Gia hạn VPS đã mua. No dùng action=buy để gia hạn vì action=buy sẽ tạo VPS mới. Tiền gia hạn tính theo giá gói hiện tại cộng addon CPU/RAM/Disk đang có trên VPS.
Endpoint
https://taivps.net/en/api/v19
Parameter
| Parameter | Obligatory | Describe |
|---|---|---|
auth_token |
Có | Token |
action |
Có | Price trị: extend |
type |
Có | VPS type |
param |
Có | ID VPS đã mua, lấy trường id từ action=listvps. Đây không phải ID gói vpsId trong action=services. |
billingcycle |
No | Chỉ nhập một giá trị: 0/hour nếu VPS theo hour; hoặc 1, 3, 6, 12, 24, 36 nếu VPS theo month. Bỏ trống thì dùng chu kỳ hiện tại của VPS. |
Sample JSON response
{
"status": "success",
"message": "Gia hạn VPS thành công",
"id": 229,
"amount": 100000,
"expired_at": "2026-10-07 12:00:00"
}
Sample error response
{
"status": "error",
"message": "Chu kỳ thanh toán không hợp lệ. billingcycle chỉ nhận một trong các giá trị: 0, hour hoặc 0\/hour cho gói theo giờ; 1, 3, 6, 12, 24, 36 cho gói theo tháng.",
"field": "billingcycle",
"received": "2",
"allowed": [
"0",
"hour",
"0\/hour",
"1",
"3",
"6",
"12",
"24",
"36"
]
}
Waiting...Transfer VPS rights
Transfer VPS to another user.
Endpoint
https://taivps.net/en/api/v19
Parameter
| Parameter | Obligatory | Describe |
|---|---|---|
auth_token |
Có | Token |
action |
Có | Price trị: transfer |
type |
Có | VPS type |
param |
Có | ID VPS |
email |
Có | Email received |
Sample JSON response
{
"status": "success",
"message": "Chuyển quyền thành công"
}
Sample error response
{
"status": "error",
"message": "Email không hợp lệ"
}
Waiting...Upgrade VPS
Upgrade CPU, RAM, Disk.
Endpoint
https://taivps.net/en/api/v19
Parameter
| Parameter | Obligatory | Describe |
|---|---|---|
auth_token |
Có | Token |
action |
Có | Price trị: upgrade |
type |
Có | VPS type |
param |
Có | ID VPS |
cpu |
No | Số core cộng thêm |
ram |
No | Số GB RAM cộng thêm, ví dụ 1 = +1GB |
disk |
No | Số GB disk cộng thêm, phải theo block 10GB |
Sample JSON response
{
"status": "success",
"message": "Nâng cấp VPS thành công"
}
Sample error response
{
"status": "error",
"message": "Số dư không đủ"
}
Waiting...Thông tin Profile
Get account information.
Endpoint
https://taivps.net/en/api/v19
Parameter
| Parameter | Obligatory | Describe |
|---|---|---|
auth_token |
Có | Token |
action |
Có | Price trị: profile |
Sample JSON response
{
"status": "success",
"data": {
"money": "800",
"username": "admin",
"email": "[email protected]"
}
}
Sample error response
{
"status": "error",
"message": "Token không hợp lệ"
}
Waiting...Poweroff VPS
Tắt nguồn VPS.
Endpoint
https://taivps.net/en/api/v19
Parameter
| Parameter | Obligatory | Describe |
|---|---|---|
auth_token |
Có | Token |
action |
Có | Price trị: poweroff |
type |
Có | VPS type |
param |
Có | ID VPS |
Sample JSON response
{
"status": "success",
"message": "Lệnh poweroff thao tác máy chủ thành công"
}
Sample error response
{
"status": "error",
"message": "VPS không hợp lệ"
}
Waiting...Đổi mật khẩu VPS
Đổi mật khẩu VPS.
Endpoint
https://taivps.net/en/api/v19
Parameter
| Parameter | Obligatory | Describe |
|---|---|---|
auth_token |
Có | Token |
action |
Có | Price trị: change_password |
type |
Có | VPS type |
param |
Có | ID VPS |
password |
Có | Mật khẩu mới, tối thiểu 8 ký tự |
Sample JSON response
{
"status": "success",
"message": "Đổi mật khẩu VPS thành công"
}
Sample error response
{
"status": "error",
"message": "Mật khẩu tối thiểu 8 ký tự"
}
Waiting...Đổi hostname VPS
Đổi hostname VPS.
Endpoint
https://taivps.net/en/api/v19
Parameter
| Parameter | Obligatory | Describe |
|---|---|---|
auth_token |
Có | Token |
action |
Có | Price trị: change_hostname |
type |
Có | VPS type |
param |
Có | ID VPS |
hostname |
Có | Hostname mới |
Sample JSON response
{
"status": "success",
"message": "Đổi hostname VPS thành công"
}
Sample error response
{
"status": "error",
"message": "Hostname không hợp lệ"
}
Waiting...Bật/tắt auto renew VPS
Bật hoặc tắt tự động gia hạn VPS. Bắt buộc truyền enabled, VPS theo hour không hỗ trợ bật auto renew.
Endpoint
https://taivps.net/en/api/v19
Parameter
| Parameter | Obligatory | Describe |
|---|---|---|
auth_token |
Có | Token |
action |
Có | Price trị: auto_renew |
type |
Có | VPS type |
param |
Có | ID VPS |
enabled |
Có | 1/true/on để bật, 0/false/off để tắt |
Sample JSON response
{
"status": "success",
"message": "Cập nhật auto renew thành công"
}
Sample error response
{
"status": "error",
"message": "VPS theo giờ không hỗ trợ bật auto_renew"
}
Waiting...Hủy VPS
Gửi lệnh hủy VPS và cập nhật local.
Endpoint
https://taivps.net/en/api/v19
Parameter
| Parameter | Obligatory | Describe |
|---|---|---|
auth_token |
Có | Token |
action |
Có | Price trị: cancel |
type |
Có | VPS type |
param |
Có | ID VPS |
Sample JSON response
{
"status": "success",
"message": "Hủy VPS thành công"
}
Sample error response
{
"status": "error",
"message": "Không hủy được VPS"
}
Waiting...Danh sách gói Reseller Hosting
Lấy danh sách gói Reseller Hosting đang bán cho khách tạo hosting con qua WHM/cPanel.
Endpoint
https://taivps.net/en/api/v19
Parameter
| Parameter | Obligatory | Describe |
|---|---|---|
auth_token |
Có | Token |
action |
Có | Price trị: reseller_packages |
Sample JSON response
{
"status": "success",
"message": "Danh sách gói reseller hosting",
"data": [
{
"id": 1,
"name": "Reseller 10GB",
"price": 28000
}
]
}
Sample error response
{
"status": "error",
"message": "Thông tin xác thực không hợp lệ"
}
Waiting...Danh sách server cấp Reseller
Lấy trạng thái máy chủ dùng để cấp tài khoản WHM Reseller.
Endpoint
https://taivps.net/en/api/v19
Parameter
| Parameter | Obligatory | Describe |
|---|---|---|
auth_token |
Có | Token |
action |
Có | Price trị: reseller_servers |
check_whm |
No | 1 để kiểm tra WHM realtime |
Sample JSON response
{
"status": "success",
"message": "Danh sách server cấp Reseller Hosting",
"data": [
{
"id": 1,
"server_name": "WHM-1",
"health": {
"status": "online"
}
}
]
}
Sample error response
{
"status": "error",
"message": "Thông tin xác thực không hợp lệ"
}
Waiting...Danh sách đơn Reseller Hosting
Lấy danh sách gói Reseller Hosting của tài khoản API.
Endpoint
https://taivps.net/en/api/v19
Parameter
| Parameter | Obligatory | Describe |
|---|---|---|
auth_token |
Có | Token |
action |
Có | Price trị: reseller_orders |
Sample JSON response
{
"status": "success",
"message": "Danh sách đơn Reseller Hosting",
"data": [
{
"id": 1,
"domain": "example.com",
"username": "example",
"status": "active"
}
]
}
Sample error response
{
"status": "error",
"message": "Thông tin xác thực không hợp lệ"
}
Waiting...Chi tiết đơn Reseller Hosting
Lấy chi tiết một đơn Reseller Hosting.
Endpoint
https://taivps.net/en/api/v19
Parameter
| Parameter | Obligatory | Describe |
|---|---|---|
auth_token |
Có | Token |
action |
Có | Price trị: reseller_detail |
order_id |
Có | ID đơn Reseller Hosting |
Sample JSON response
{
"status": "success",
"message": "Chi tiết đơn Reseller Hosting",
"data": {
"id": 1,
"domain": "example.com",
"username": "example"
}
}
Sample error response
{
"status": "error",
"message": "Không tìm thấy đơn Reseller Hosting"
}
Waiting...Mua Reseller Hosting
Tạo tài khoản WHM Reseller để khách tự tạo và bán hosting con.
Endpoint
https://taivps.net/en/api/v19
Parameter
| Parameter | Obligatory | Describe |
|---|---|---|
auth_token |
Có | Token |
action |
Có | Price trị: reseller_buy |
product_id |
Có | ID gói Reseller Hosting |
domain |
Có | Domain chính của tài khoản reseller |
username |
Có | User WHM Reseller 1-16 ký tự |
password |
Có | Mật khẩu WHM Reseller |
billing_cycle |
No | Số month: 1, 3, 6, 12 |
server_id |
No | Chỉ định server cấp reseller |
Sample JSON response
{
"status": "success",
"message": "Tạo Reseller Hosting thành công",
"data": {
"order_id": 1,
"domain": "example.com",
"username": "example"
}
}
Sample error response
{
"status": "error",
"message": "Số dư không đủ"
}
Waiting...SSO WHM/cPanel
Tạo link đăng nhập nhanh vào WHM/cPanel của gói Reseller Hosting.
Endpoint
https://taivps.net/en/api/v19
Parameter
| Parameter | Obligatory | Describe |
|---|---|---|
auth_token |
Có | Token |
action |
Có | Price trị: reseller_sso |
order_id |
Có | ID đơn Reseller Hosting |
app |
No | filemanager, mysql, email, wordpress |
Sample JSON response
{
"status": "success",
"message": "Tạo phiên SSO thành công",
"data": {
"url": "https:\/\/..."
}
}
Sample error response
{
"status": "error",
"message": "Không tạo được phiên SSO"
}
Waiting...Đổi mật khẩu Reseller
Đổi mật khẩu tài khoản WHM Reseller.
Endpoint
https://taivps.net/en/api/v19
Parameter
| Parameter | Obligatory | Describe |
|---|---|---|
auth_token |
Có | Token |
action |
Có | Price trị: reseller_change_password |
order_id |
Có | ID đơn Reseller Hosting |
password |
Có | New password |
Sample JSON response
{
"status": "success",
"message": "Đổi mật khẩu Reseller Hosting thành công"
}
Sample error response
{
"status": "error",
"message": "Mật khẩu tối thiểu 8 ký tự"
}
Waiting...Đổi domain Reseller
Đổi domain chính của tài khoản WHM Reseller.
Endpoint
https://taivps.net/en/api/v19
Parameter
| Parameter | Obligatory | Describe |
|---|---|---|
auth_token |
Có | Token |
action |
Có | Price trị: reseller_change_domain |
order_id |
Có | ID đơn Reseller Hosting |
domain |
Có | Domain mới |
Sample JSON response
{
"status": "success",
"message": "Đổi domain chính thành công"
}
Sample error response
{
"status": "error",
"message": "Domain không hợp lệ"
}
Waiting...Khóa/mở Reseller
Suspend hoặc unsuspend tài khoản WHM Reseller.
Endpoint
https://taivps.net/en/api/v19
Parameter
| Parameter | Obligatory | Describe |
|---|---|---|
auth_token |
Có | Token |
action |
Có | Price trị: reseller_suspend |
order_id |
Có | ID đơn Reseller Hosting |
Sample JSON response
{
"status": "success",
"message": "Suspend Reseller Hosting thành công"
}
Sample error response
{
"status": "error",
"message": "Không suspend được Reseller Hosting"
}
Waiting...Mở khóa Reseller
Mở khóa tài khoản WHM Reseller bị suspend.
Endpoint
https://taivps.net/en/api/v19
Parameter
| Parameter | Obligatory | Describe |
|---|---|---|
auth_token |
Có | Token |
action |
Có | Price trị: reseller_unsuspend |
order_id |
Có | ID đơn Reseller Hosting |
Sample JSON response
{
"status": "success",
"message": "Mở khóa Reseller Hosting thành công"
}
Sample error response
{
"status": "error",
"message": "Không mở khóa được Reseller Hosting"
}
Waiting...Xóa Reseller
Terminate tài khoản WHM Reseller trên server cấp dịch vụ.
Endpoint
https://taivps.net/en/api/v19
Parameter
| Parameter | Obligatory | Describe |
|---|---|---|
auth_token |
Có | Token |
action |
Có | Price trị: reseller_terminate |
order_id |
Có | ID đơn Reseller Hosting |
Sample JSON response
{
"status": "success",
"message": "Xóa Reseller Hosting thành công"
}
Sample error response
{
"status": "error",
"message": "Không xóa được Reseller Hosting"
}
Waiting...Thống kê Reseller
Lấy disk/quota/accountsummary của tài khoản WHM Reseller.
Endpoint
https://taivps.net/en/api/v19
Parameter
| Parameter | Obligatory | Describe |
|---|---|---|
auth_token |
Có | Token |
action |
Có | Price trị: reseller_stats |
order_id |
Có | ID đơn Reseller Hosting |
Sample JSON response
{
"status": "success",
"message": "Thống kê Reseller Hosting",
"data": {
"disk_used": "0M",
"disk_limit": "10240M"
}
}
Sample error response
{
"status": "error",
"message": "Không lấy được thống kê Reseller Hosting"
}
Waiting...Endpoints (v1)
Get the list of VPS Plans POST
Get service package information.
Endpoint
https://taivps.net/en/api/get-products.php
Body parameter
| Key | Type | Request | Describe |
|---|---|---|---|
token |
String | Obligatory | Token API |
Waiting...Get the OS list POST
Get the list of operating systems.
Endpoint
https://taivps.net/en/api/get-os.php
Body parameter
| Key | Type | Request | Describe |
|---|---|---|---|
token |
String | Obligatory | Token API |
Waiting...Buy New VPS POST
Create a VPS purchase order.
Endpoint
https://taivps.net/en/api/buy-vps.php
Body parameter
| Key | Type | Request | Describe |
|---|---|---|---|
token |
String | Obligatory | Token API |
product_id |
Int | Obligatory | ID gói từ get-products.php |
os_id |
Int | Obligatory | ID OS |
billing_cycle |
String | Obligatory | Gói hour dùng 0 hoặc 0/hour; gói month dùng 1,3,6,12,24,36 |
quantity |
Int | Options | Quantity |
Waiting...Thao tác VPS POST
Enable/Disable/Restart/Renew.
Endpoint
https://taivps.net/en/api/vps-action.php
Body parameter
| Key | Type | Request | Describe |
|---|---|---|---|
token |
String | Obligatory | Token API |
vps_id |
Int | Obligatory | Order ID |
action |
String | Obligatory | on|off|restart|renew |
cycle |
Int | Options | Số month |
Waiting...Upgrade VPS POST
Mua thêm tài nguyên.
Endpoint
https://taivps.net/en/api/upgrade-vps.php
Body parameter
| Key | Type | Request | Describe |
|---|---|---|---|
token |
String | Obligatory | Token API |
vps_id |
Int | Obligatory | ID VPS |
cpu |
Int | Options | Core thêm |
ram |
Int | Options | RAM thêm |
disk |
Int | Options | Disk thêm |
Waiting...Reinstall OS POST
Newly install the operating system.
Endpoint
https://taivps.net/en/api/reinstall-vps.php
Body parameter
| Key | Type | Request | Describe |
|---|---|---|---|
token |
String | Obligatory | Token API |
vps_id |
Int | Obligatory | ID VPS |
os_id |
Int | Obligatory | New OS ID |
Waiting...Thông tin User POST
Get account balance.
Endpoint
https://taivps.net/en/api/get-user-info.php
Body parameter
| Key | Type | Request | Describe |
|---|---|---|---|
token |
String | Obligatory | Token API |
Waiting...