Chào mừng bạn đã đến với website của chúng tôi!

Partner API

Tài liệu API đối tác

1. Lấy số dư

GET/api/profile.php?api_key=YOUR_API_KEY

Response

{
    "status": "success",
    "msg": "Lấy số dư thành công.",
    "data": {
        "id": 1001,
        "username": "demo_partner",
        "email": "[email protected]",
        "balance": 1250000
    }
}

2. Lấy danh sách dịch vụ

GET/api/service.php?api_key=YOUR_API_KEY

Response

{
    "status": "success",
    "msg": "Lấy danh sách dịch vụ thành công.",
    "data": {
        "total": 1,
        "services": [
            {
                "id": 36,
                "name": "Extra 1s ( No Band ) ( Done 1s )",
                "type": "extravip_spin",
                "description": "Mô tả dịch vụ",
                "price": 2300,
                "min_amount": 1,
                "max_amount": 3
            }
        ]
    }
}

3. Tạo đơn chạy spin

POST/api/oders.php
Field Bắt buộc Ghi chú
actionLuôn gửi order_spin
api_keyAPI key tài khoản
idID dịch vụ trong API service
amountSố lượng cần mua, hiện nhận 1 đến 3
invite_codeMã mời trong game

Response

{
    "status": "success",
    "msg": "Tạo đơn hàng thành công.",
    "data": {
        "id": 27,
        "order": "order_6a298389bd7253.20687092_1208837",
        "amount": 1,
        "pay": 2300,
        "balance": 1247700,
        "status": "chuanhandon"
    }
}

4. Lấy chi tiết đơn

GET/api/getoders.php?api_key=YOUR_API_KEY&order=ORDER_CODE

Response

{
    "status": "success",
    "msg": "Lấy chi tiết đơn hàng thành công.",
    "data": {
        "id": 27,
        "order": "order_6a298389bd7253.20687092_1208837",
        "amount": 1,
        "processed_links": 0,
        "refunded_links": 0,
        "pay": 2300,
        "status": "chuanhandon",
        "created_at": "2026-06-10 22:32:25",
        "updated_at": "2026-06-10 22:32:25"
    }
}