Lấy thông tin số dư và profile user theo token.
Endpoint
GET: https://cloudre1s.com/api/profile.php?token={token}
Tham số
JSON mẫu
{
"status": "success",
"message": "Thành công",
"data": {
"username": "dichvuright",
"coin": "100000",
"email": "[email protected]",
"ck": "50"
}
}
Lấy danh sách server và giá/giới hạn.
Endpoint
GET: https://cloudre1s.com/api/server.php?token={token}
Tham số
JSON mẫu
{
"status": "success",
"message": "Thành công",
"data": [
{"id":"1","name":"Server 1","price":10000,"quantity":89,"limit_second":"1"},
{"id":"2","name":"Server 2","price":10000,"quantity":0,"limit_second":"5"}
]
}
Tạo đơn hàng cron mới.
Endpoint
POST: https://cloudre1s.com/api/create.php
Form Data
JSON mẫu
{
"status": "success",
"msg": "Thanh toán đơn hàng thành công",
"data": {
"trans_id": "TLOH1707060491",
"url": "https://cloudre1s.com",
"second": "5",
"price": 50000,
"status": "hoatdong",
"created_at": "2024/02/04 22:28:12",
"expired_date": "2024/07/03 22:28:12",
"expired_timestamp": 1720020492
}
}
Cập nhật URL/giây chạy cho cron theo trans_id.
Endpoint
POST: https://cloudre1s.com/api/action.php
Form Data
action=edit
url=link cron
second=số giây chạy
trans_id=mã đơn hàng
token=token user
JSON mẫu
{
"status": "success",
"msg": "Cập nhật thành công"
}
Thực tế chạy/dừng tuỳ hệ thống, hiện demo theo mẫu bạn gửi.
Endpoint
POST: https://cloudre1s.com/api/action.php
Form Data (ví dụ)
action=run
trans_id=mã đơn hàng
token=token user
Ghi chú
Phần “chạy cron” trong file cũ bạn đang copy nhầm nội dung giống “edit”.
Nếu bạn gửi đúng form/response của “run”, mình sẽ cập nhật đúng vào tab này.
Dừng cron theo trans_id.
Endpoint
POST: https://cloudre1s.com/api/action.php
Form Data
action=stop
trans_id=mã đơn hàng
token=token user
JSON mẫu
{
"status": "success",
"msg": "Đã dừng cron thành công"
}
Gia hạn theo số tháng cho trans_id.
Endpoint
POST: https://cloudre1s.com/api/action.php
Form Data
action=giahan
month=số tháng
trans_id=mã đơn hàng
token=token user
JSON mẫu
{
"status": "success",
"msg": "Gia hạn thành công",
"expired_date": "2024/11/30 22:28:11",
"expired_timestamp": 1732980491
}
Lấy danh sách lịch sử (có thể limit).
Endpoint
GET: https://cloudre1s.com/api/history.php?token={token}&limit={limit}
JSON mẫu
{
"status": "success",
"message": "Thành công",
"data": [
{
"trans_id": "FJH01707142352",
"url": "https://dichvuright.com/lebao/dz.php",
"server": "1",
"second": "10",
"status": "hoatdong",
"response": null,
"created_at": "2024/02/05 21:12:32",
"expired_date": "2024/03/06 21:12:32",
"expired_timestamp": "1709734352"
}
]
}
Lấy chi tiết một cron theo trans_id.
Endpoint
GET: https://cloudre1s.com/api/checkhistory.php?token={token}&trans_id={trans_id}
JSON mẫu
{
"status": "success",
"message": "Thành công",
"data": {
"trans_id": "FJH01707142352",
"url": "https://dichvuright.com/dichvuright/dz.php",
"server": "1",
"second": "10",
"status": "hoatdong",
"response": null,
"created_at": "2024/02/05 21:12:32",
"expired_date": "2024/03/06 21:12:32",
"expired_timestamp": "1709734352"
}
}