ตรวจสอบยอดเงิน
ดึงยอดคงเหลือปัจจุบันของร้านค้า
URL : /balance
Method : POST
ข้อกำหนดข้อมูล
{
"merchant_id" : "[Merchant id]",
"token" : "[Auth Token]",
"time" : "[Time Stamp]"
}
ตัวอย่างข้อมูล
{
"merchant_id": "AA12345678",
"token": "testtokentesttokentesttokentesttokentesttoken",
"time": 1656272222
}
Response สำเร็จ
Code : 200 OK
ตัวอย่างข้อมูล
{
"success": 200,
"data": {
"balance": "10000.0000",
"freeze_balance": "0.0000",
"unsettle_balance": "0.0000"
}
}
Response ข้อผิดพลาด
เงื่อนไข : กรณี merchant id, token หรือ signature ไม่ถูกต้อง
Code : 403 BAD REQUEST
ข้อมูล :
{
"error": {
"code": 403,
"message": "authentication failed"
}
}