Skip to content

Wallet Balance

This endpoint is used to fetch the wallet balance in real time.

Endpoint

GET https://api.lipila.dev/api/v1/merchants/balance

Headers

The following headers are accepted.

HeaderTypeDescriptionRequired
acceptapplication/jsonExpected response formatYes
x-api-keystringWallet API authentication keyYes

Example Request

js

curl -X 'GET' \
  'https://api.lipila.dev/api/v1/merchants/balance' \
  -H 'accept: application/json' \
  -H 'x-api-key: your_secret_key'

Example Successful Response

Below is an example successful response.

js

{
  "success": true,
  "message": "Wallet balance retrieved successfully.",
  "data": {
    "balance": 80.771
  }
}
HTTP Status CodeError CodeDescription
200SUCCESSFULRequest successful
401UNAUTHORIZEDMissing or invalid API key
403FORBIDDENAPI key is inactive or revoked
429TOO MANY REQUESTSRate limit exceeded, slow down requests

Released under the MIT License.