Produk

Kami menyediakan API untuk mendapatkan informasi produk dan harga produk.

POST/produk

Daftar Produk

Berikut adalah endpoint API untuk mendapatkan daftar produk.

Params

ParamTypeDescription
member_codestringMember Code Anda.

Request

POST
/produk
$curl_data = [
    "member_code" => "Member Code anda",
];

$ch = curl_init();
    curl_setopt_array($ch, array(
    CURLOPT_URL => "https://api.gotopup.id/v1/produk",
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HEADER => false,
    CURLOPT_POSTFIELDS => $curl_data,
    CURLOPT_IPRESOLVE	    => CURL_IPRESOLVE_V4,
));
$result = curl_exec($ch);
curl_close($ch);

echo $result;
{
    "status": true,
    "message": "Data produk ditemukan",
    "data": [
        {
            "product": "10 Diamonds (9 + 1 Bonus)",
            "games": "Mobile Legends",
            "price": "1500",
            "sku": "ML10",
            "status": "On"
        },
        {
            "product": "28 Diamonds (25 + 3 Bonus)",
            "games": "Mobile Legends",
            "price": "3000",
            "sku": "ML28",
            "status": "On"
        },
    ]
}

Was this page helpful?