Saldo

Kami menyediakan API untuk mendapatkan informasi akun dan pengecekan saldo akun Anda.

GET/member

Cek Saldo

Berikut adalah endpoint API untuk mendapatkan informasi saldo akun Anda.

Params

ParamTypeDescription
member_codestringMember Code Anda.

Request

GET
/member
$curl_data = [
  "member_code" => "Member Code anda",
];

$ch = curl_init();
  curl_setopt_array($ch, array(
  CURLOPT_URL => "https://api.gotopup.id/v1/member",
  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;

Response

{
    "status": true,
    "message": "Detail member",
    "data": {
    "saldo": "10000",
        "nama": "Gotopup",
        "member_code": "YNOQ-HKQO-IPKA-LPJQ-JOAU"
    }
}

Was this page helpful?