Skip to main content

Get Daily Ledger Summary

Retrieve the daily ledger summary for a specific date. This provides a comprehensive snapshot of all financial activity for that day, including opening/closing balances and transaction counts.

GEThttps://api.zenpayz.com/merchant/api/v1/ledger/summary/daily
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
date
REQUIRED
string-Date in YYYY-MM-DD format
currency
OPTIONAL
string-Filter by currency code (e.g., INR, USD)

Response

Success (200 OK)

{
"success": true,
"data": {
"summaryId": "sum_20240115_mer_xyz789",
"summaryDate": "2024-01-15",
"merchantId": "mer_xyz789",
"currency": "INR",
"openingAvailableBalance": 100000,
"closingAvailableBalance": 125000,
"openingPendingBalance": 5000,
"closingPendingBalance": 7500,
"openingBlockedBalance": 2000,
"closingBlockedBalance": 3000,
"totalDepositsGross": 35000,
"totalDepositsNet": 33250,
"depositCount": 15,
"totalDepositFees": 1750,
"totalPayouts": 8000,
"payoutCount": 3,
"totalPayoutFees": 250,
"totalRefunds": 1500,
"refundCount": 2,
"totalChargebacks": 500,
"chargebackCount": 1,
"totalSettlements": 0,
"settlementCount": 0,
"totalFeesCollected": 2000,
"totalTransactionCount": 21,
"grossTransactionValue": 45000,
"netMovement": 25000,
"generatedAt": "2024-01-16T00:05:00.000Z",
"isFinalized": true
},
"message": "Daily summary retrieved successfully"
}

Response Fields

ParameterTypeDescription
summaryId
OPTIONAL
stringUnique identifier for the summary
summaryDate
OPTIONAL
stringDate of the summary (YYYY-MM-DD)
merchantId
OPTIONAL
stringMerchant identifier
currency
OPTIONAL
stringCurrency code
openingAvailableBalance
OPTIONAL
numberAvailable balance at start of day
closingAvailableBalance
OPTIONAL
numberAvailable balance at end of day
openingPendingBalance
OPTIONAL
numberPending balance at start of day
closingPendingBalance
OPTIONAL
numberPending balance at end of day
openingBlockedBalance
OPTIONAL
numberBlocked balance at start of day
closingBlockedBalance
OPTIONAL
numberBlocked balance at end of day
totalDepositsGross
OPTIONAL
numberTotal deposits before fees
totalDepositsNet
OPTIONAL
numberTotal deposits after fees
depositCount
OPTIONAL
numberNumber of deposit transactions
totalDepositFees
OPTIONAL
numberTotal fees charged on deposits
totalPayouts
OPTIONAL
numberTotal payout amount
payoutCount
OPTIONAL
numberNumber of payout transactions
totalPayoutFees
OPTIONAL
numberTotal fees charged on payouts
totalRefunds
OPTIONAL
numberTotal refund amount
refundCount
OPTIONAL
numberNumber of refund transactions
totalChargebacks
OPTIONAL
numberTotal chargeback amount
chargebackCount
OPTIONAL
numberNumber of chargeback transactions
totalSettlements
OPTIONAL
numberTotal settlement amount
settlementCount
OPTIONAL
numberNumber of settlements
totalFeesCollected
OPTIONAL
numberTotal fees collected (all types)
totalTransactionCount
OPTIONAL
numberTotal number of transactions
grossTransactionValue
OPTIONAL
numberGross value of all transactions
netMovement
OPTIONAL
numberNet change in merchant balance
generatedAt
OPTIONAL
stringWhen the summary was generated
isFinalized
OPTIONAL
booleanWhether the day is closed and summary is final

Examples

# Get daily summary for specific date
curl -X GET "https://api.zenpays.com/merchant/api/v1/ledger/summary/daily?date=2024-01-15&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"