Skip to main content

Get Ledger Accounts

Retrieve all ledger accounts for the merchant. This is an alias for ledger balances with a semantic focus on account listing.

GEThttps://api.zenpayz.com/merchant/api/v1/ledger/accounts
Bearer · API key

Request

Headers

HeaderDescription
Authorization
REQUIRED
Bearer {api_key}
X-Signature
REQUIRED
HMAC-SHA256 signature
X-Timestamp
REQUIRED
ISO 8601 timestamp
X-Secret-Salt
REQUIRED
Secret salt for HMAC validation

Query Parameters

ParameterTypeDescription
currency
OPTIONAL
string-Filter by currency code (e.g., INR, USD)

Response

Success (200 OK)

{
"success": true,
"data": [
{
"accountCategory": "MERCHANT_AVAILABLE",
"currency": "INR",
"balance": 10000
},
{
"accountCategory": "MERCHANT_PENDING",
"currency": "INR",
"balance": 2500
},
{
"accountCategory": "MERCHANT_BLOCKED",
"currency": "INR",
"balance": 500
},
{
"accountCategory": "RESERVE_PAYOUT",
"currency": "INR",
"balance": 1000
},
{
"accountCategory": "RESERVE_RISK",
"currency": "INR",
"balance": 250
}
],
"message": "Ledger accounts retrieved successfully"
}

Account Categories

CategoryDescription
MERCHANT_AVAILABLEFunds available for withdrawal/payout
MERCHANT_PENDINGFunds being processed (incoming payments not yet settled)
MERCHANT_BLOCKEDFunds blocked for pending operations (payouts, settlements)
COLLECTION_POOLPool for collecting incoming payments
ADMIN_WALLETAdministrative wallet for platform operations
RESERVE_PAYOUTReserved funds for pending payout operations
RESERVE_RISKRisk reserve allocation based on merchant risk profile
RESERVE_CHARGEBACKFunds reserved for potential chargebacks
TSP_PAYABLEAmounts payable to third-party service providers
SYSTEM_SUSPENSESuspense account for unreconciled transactions

Examples

curl -X GET "https://api.zenpays.com/merchant/api/v1/ledger/accounts?currency=INR" \
-H "Authorization: Bearer zp_test_xxxxx" \
-H "X-Timestamp: 2024-01-15T10:30:00.000Z" \
-H "X-Signature: a1b2c3d4e5f6..." \
-H "X-Secret-Salt: your_secret_salt"