Profil partner
GET /v1/profile
Informasi akun pemilik key: nama usaha, level, saldo sesuai environment key, serta batas order harian dan pemakaiannya hari ini (khusus key live).
Parameter
Endpoint ini tidak memiliki parameter; cukup kirim header Authorization.
Contoh request
curl -X GET "https://api.bebastopup.com/v1/profile" \ -H "Accept: application/json" \ -H "Authorization: Bearer $API_KEY"
Isi $API_KEY dengan secret key Anda.
Contoh respons
{
"success": true,
"code": "OK",
"message": "OK",
"data": {
"business_name": "Toko Game Jaya",
"level": "Gold",
"environment": "live",
"balance": "250000.00",
"currency": "IDR",
"daily_limit": {
"amount": "5000000.00",
"count": 500,
"used_amount": "125000.00",
"used_count": 12
}
}
}
{
"success": false,
"code": "INVALID_API_KEY",
"message": "The API key is missing, invalid, or revoked.",
"data": null
}