Open 24/7 - Proses otomatis tanpa khawatir

Dokumentasi Api

Method : POST
URL : https://topupboy.com/api/v1/{endpoint}
Response : JSON

Api ini digunakan untuk mendapatkan list games

Request
Method : POST
URL : https://topupboy.com/api/v1/games
Header :
{
    "Content-Type": "application/json",
    "Authorization": "Bearer {api_key}"
}
Payload :
{}
Keterangan Payload
Parameter Keterangan
Tidak ada data
Response
{
    "status": true,
    "message": "Data games berhasil didapatkan",
    "data": [
        {
            "id": "27",
            "games": " Arena Breakout",
            "sub_title": "Level Infinite"
        },
        {
            "id": "117",
            "games": " Naruto Shippuden",
            "sub_title": "HONG KONG YOYOO TECHNOLOGY CO., LIMITED"
        }
    ]
}
{
    "status": false,
    "message": "Authorization Not Found",
    "data": []
}

Api ini digunakan untuk mendapatkan list produk

Request
Method : POST
URL : https://topupboy.com/api/v1/product
Header :
{
    "Content-Type": "application/json",
    "Authorization": "Bearer {api_key}"
}
Payload :
{
    "games_id": 1
}
Keterangan Payload
Parameter Keterangan
games_id ID game yang didapatkan dari API list games
Response
{
    "status": true,
    "message": "Data produk berhasil didapatkan",
    "data": {
        "games": {
            "id": "12",
            "games": "League of Legends: PC",
            "sub_title": "Riot Games"
        },
        "product": [
            {
                "id": "2161",
                "product": "League of Legends 575 RP",
                "category": "RP",
                "price": "55917",
                "status": "Tersedia"
            },
            {
                "id": "2158",
                "product": "League of Legends 1.380 RP",
                "category": "RP",
                "price": "130440",
                "status": "Tersedia"
            }
        ]
    }
}
{
    "status": false,
    "message": "Authorization Not Found",
    "data": []
}

Api ini digunakan untuk melakukan transaksi

Request
Method : POST
URL : https://topupboy.com/api/v1/transaction
Header :
{
    "Content-Type": "application/json",
    "Authorization": "Bearer {api_key}"
}
Payload :
{
    "product_id": 12,
    "ref_id": "TB123",
    "target": 1234567890
}
Keterangan Payload
Parameter Keterangan
product_id ID produk yang didapatkan dari API list produk
ref_id ID referensi transaksi dari sisi merchant
target Nomor target untuk transaksi, pisahkan dengan koma jika lebih dari satu
Response
{
    "status": true,
    "message": "Transaksi berhasil dibuat",
    "data": {
        "order_id": "TB123",
    }
}
{
    "status": false,
    "message": "Authorization Not Found",
    "data": []
}

Api ini digunakan untuk mendapatkan detail transaksi

Request
Method : POST
URL : https://topupboy.com/api/v1/check
Header :
{
    "Content-Type": "application/json",
    "Authorization": "Bearer {api_key}"
}
Payload :
{
    "order_id": "TB123"
    // "ref_id" : "TB123"
}
Gunakan salah satu parameter order_id atau ref_id untuk mendapatkan detail transaksi
Keterangan Payload
Parameter Keterangan
order_id ID pesanan yang didapatkan dari API list pesanan
ref_id ID referensi transaksi dari sisi merchant
Response
{
    "status": true,
    "message": "Data transaksi berhasil didapatkan",
    "data": {
        "order_id": "TB123",
        "ref_id": "TB123",
        "games": "Mobile Legends: Bang Bang",
        "product": "86 Diamonds",
        "target": "123456789,1234",
        "price": 8600,
        "status": "Success", // Pending, Processing, Success, Canceled
        "note": "SN : 1234567890",
        "created": "2026-03-25 12:00:00",
    }
}
{
    "status": false,
    "message": "Authorization Not Found",
    "data": []
}