Get Balance

Get the current balance of merchant.

URL : /balance

Method : POST

Data constraints

{
   "merchant_id" : "[Merchant id]",
   "token" : "[Auth Token]",
   "time" : "[Time Stamp]"
}

Data example

{
  "merchant_id": "AA12345678",
  "token": "testtokentesttokentesttokentesttokentesttoken",
  "time": 1656272222
}

Success Response

Code : 200 OK

Content example

{
    "success": 200,
    "data": {
        "balance": "10000.0000",
        "freeze_balance": "0.0000",
        "unsettle_balance": "0.0000"
    }
}

Error Response

Condition : If invalid merchant id, token, or singature

Code : 403 BAD REQUEST

Content :

{
    "error": {
        "code": 403,
        "message": "authentication failed"
    }
}