API DOCS

Profile

API ini digunakan untuk menampilkan informasi profil pelanggan yang terdaftar pada sistem.

URL Endpoint

Gunakan metode POST untuk mengakses endpoint berikut:

/account

Headers

Pastikan untuk menyertakan header berikut pada request:

KeyValue
Content-Typeapplication/x-www-form-urlencoded

Body Request

Masukkan parameter berikut pada body request:

FieldTypeWajibDeskripsi
keystringYaAPI Key yang digunakan untuk mengautentikasi permintaan.
signstringYaSignature MD5 dengan format md5(uid.key."account").

Contoh Request

<?php

$key = "YOUR_API_KEY";
$uid = "YOUR_UID";

$postdata = [
    "key" => $key,
    "sign" => md5($uid.$key."account")
];

$ch = curl_init();

curl_setopt_array($ch, [
    CURLOPT_URL => "https://yobistore.com/api/account",
    CURLOPT_POST => true,
    CURLOPT_POSTFIELDS => http_build_query($postdata),
    CURLOPT_RETURNTRANSFER => true
]);

$response = curl_exec($ch);

curl_close($ch);

echo $response;

Contoh Response

{
    "status": true,
    "message": "success",
    "data": {
        "user_name": "John Doe",
        "user_email": "johndoe@gmail.com",
        "user_phone": "081234567890",
        "user_balance": 50000,
        "user_role": "Member",
        "user_joined": "2026-06-23 19:30:00"
    }
}

Field Response

FieldTypeDeskripsi
user_namestringNama pelanggan.
user_emailstringEmail pelanggan.
user_phonestringNomor telepon pelanggan.
user_balanceintegerSaldo pelanggan.
user_rolestringRole akun pelanggan.
user_joinedstringTanggal akun dibuat.

Status Response

StatusDeskripsi
truePermintaan berhasil diproses.
falsePermintaan gagal diproses.

[!TIP]

Nilai sign wajib menggunakan format:

md5(uid.key."account")

On this page