otpsa.site - Tài liệu kết nối API
Đăng nhập
Trang chủ
Nạp tiền
Ngân Hàng
Lịch sử
Lịch sử mua số
Biến động số dư
Tài liệu API
Trang chủ
Nạp tiền
Đơn hàng
Thông tin
Tài liệu API
TÀI LIỆU TÍCH HỢP API
TOKEN:
Vui lòng đăng nhập để lấy API Token!
Lấy số dư tài khoản
GET
Copy
Response:
{ "status": "success", "msg": "Lấy dữ liệu thành công!", "data": { "username": "administrator", "balance": "5884848" } }
Lấy danh sách dịch vụ
GET
Copy
Response:
{ "status": "success", "msg": "Lấy dữ liệu thành công!", "data": { { "id_service": 26, "name": "Yotta", "status": "on", "rate": 400 }, { "id_service": 27, "name": "Sideline \/ Index", "status": "on", "rate": 400 }, { "id_service": 28, "name": "Nielsen", "status": "on", "rate": 400 } } }
Mua hàng
GET
Copy
Response:
{ "status": "success", "message": "Thuê sim thành công!", "data": { "id": 5, "order_code": "_3752224", "service_name": "Hotmail (US +1)", "phone_number": "9363382720", "total_price": "690", "status": "pending", "created_at": "2025-02-24T03:20:19.000000Z" } }
Lấy lịch sử đơn hàng
GET
Copy
Response:
{ "status": "success", "msg": "Lấy dữ liệu thành công!", "data": [ { "id": 5, "phone_number": "9363382720", "content": "6857 là mã xác minh tài khoản Microsoft của bạn", "otp": null, "status": "completed", "rate": "690", "created_at": "2025-02-24 10:20:19", "updated_at": "2025-02-24 10:25:31" }, { "id": 4, "phone_number": "8706013102", "content": "", "otp": null, "status": "canceled", "rate": "690", "created_at": "2025-02-24 10:18:16", "updated_at": "2025-02-24 10:25:30" }, { "id": 3, "phone_number": "9094171881", "content": "", "otp": null, "status": "canceled", "rate": "920", "created_at": "2025-02-24 09:33:31", "updated_at": "2025-02-24 10:25:30" }, { "id": 2, "phone_number": "8175461767", "content": "", "otp": null, "status": "canceled", "rate": "575", "created_at": "2025-02-23 20:25:59", "updated_at": "2025-02-23 20:40:34" }, { "id": 1, "phone_number": "9377644294", "content": "", "otp": null, "status": "canceled", "rate": "575", "created_at": "2025-02-23 20:25:21", "updated_at": "2025-02-23 20:40:34" } ] } #TRẠNG THÁI { status = 'pending': đang chờ, status = 'completed': hoàn tất, status = 'canceled': đơn lỗi, hoàn tiền, }
Lấy lịch sử đơn hàng theo ID
GET
Copy
Response:
{ "status": "success", "msg": "Lấy dữ liệu thành công!", "data": [ { "id": 5, "phone_number": "9363382720", "content": "6857 là mã xác minh tài khoản Microsoft của bạn", "otp": null, "status": "completed", "rate": "690", "created_at": "2025-02-24 10:20:19", "updated_at": "2025-02-24 10:25:31" }, ] } #TRẠNG THÁI { status = 'pending': đang chờ, status = 'completed': hoàn tất, status = 'canceled': đơn lỗi, hoàn tiền, }