Check Balance

ใช้งานได้
POST{base}/api/balance

ดึงยอดคงเหลือล่าสุด

ตอบ HTTP 200 เสมอแม้เป็น business error

Headers

ฟิลด์ชนิดจำเป็นคำอธิบาย
X-Api-Keystringใช่API key ที่ best-system ออกให้ (ตรวจว่าตรงกับของคุณ)
X-Signaturestringใช่hex(HMAC-SHA256(secret, raw body)) — verify จาก raw bytes ห้าม re-serialize · ไม่ตรง → ตอบ code 30002

Request bodyapplication/json

ฟิลด์ชนิดจำเป็นคำอธิบาย
request_idstringใช่id ของ request นี้
player_usernamestringใช่username ผู้เล่นในระบบของคุณ
currencystringใช่สกุลเงินของผู้เล่น ตาม ISO 4217 เช่น THB
product_codestring—รหัสค่ายเกม (เช่น PGSOFT)
timestampnumberใช่เวลาที่ส่ง (unix ms)
ตัวอย่าง request
{
  "request_id": "9b6ad1a2-5a3f-4d0e-8c7b-1f2e3d4c5b6a",
  "player_username": "foobar",
  "currency": "THB",
  "timestamp": 1783236600000
}

Expected Response

ฟิลด์ใน data

ฟิลด์ชนิดจำเป็นคำอธิบาย
codenumberใช่0 = สำเร็จ
request_idstringใช่echo จาก request
usernamestringใช่player_username
currencystringใช่echo จาก request
balancenumberใช่ยอดคงเหลือปัจจุบัน
timestampnumberใช่เวลาที่คุณตอบ (unix ms)
ตัวอย่าง response
{
  "code": 0,
  "request_id": "9b6ad1a2-5a3f-4d0e-8c7b-1f2e3d4c5b6a",
  "username": "foobar",
  "currency": "THB",
  "balance": 1000,
  "timestamp": 1783236600120
}

Error codes ที่พบได้

codeชื่อHTTPข้อความ
10001SEAMLESS_USER_NOT_FOUND200ไม่พบผู้เล่นในระบบของ agent
30002SEAMLESS_INVALID_SIGNATURE401X-Signature ไม่ถูกต้อง
40003SEAMLESS_FORBIDDEN200ปฏิเสธการเข้าถึง (api-key/IP)
50001SEAMLESS_INTERNAL_ERROR200ข้อผิดพลาดภายในระบบของ agent