Balance

Retrieving your current balance is essential for effective financial management and planning.

Below, you will find code examples demonstrating how to make an API request to fetch your balance using different programming languages. These examples can be used to seamlessly integrate balance retrieval into your system, regardless of your preferred development environment.

Get Balance

Balance Request

curl --location 'https://sandbox.paybin.io/v1/merchant/balances' \
--header 'X-Api-Key: {secretKey}' \
--header 'Content-Type: application/json' \
--data '{
    "PublicKey":"{publicKey}"
}'

Response

   {
      {
   "apiVersion": "1.0.0.0",
   "data": {
       "btcBalance": 0.01827139,
       "ltcBalance": 4.8155043,
       "bscusdBalance": 124.900335290627,
       "bnbBalance": 0.49766454477400346,
       "ethBalance": 0.2053466266382856,
       "usdtBalance": 0.391465,
       "trxBalance": 4.846484,
       "trxusdBalance": 0.314496,
       "optusdBalance": 0.188525,
       "optethBalance": 0.027137871507939223
   },
   "code": 200,
   "message": "OK",
}
   }

Exception

{
  "apiVersion": "1.0.0.0",
  "data": null,
  "code": 400,
  "message": "Z503"
}

Was this page helpful?