<!-- ZenPays documentation · https://docs.zenpays.com/docs/rest-api/endpoints/wallet/wallet-summary -->

# Get Wallet Summary

Get a summary of wallet activity and balances. Additional endpoints are available for monthly analytics and a simplified balance view.

## Wallet Summary

<EndpointHeader verb="GET" path="/merchant/api/v1/wallet/summary" />

### Headers

<ParamTable
  label="Header"
  rows={[
    { name: "Authorization", required: true, desc: "`Bearer {api_key}`" },
    { name: "X-Signature", required: true, desc: "HMAC-SHA256 signature" },
    { name: "X-Timestamp", required: true, desc: "ISO 8601 timestamp" },
    { name: "X-Secret-Salt", required: true, desc: "Secret salt for HMAC validation" },
  ]}
/>

### Response (200 OK)

```json
{
  "success": true,
  "data": {
    "totalBalance": {
      "USD": 270000,
      "INR": 5350000,
      "EUR": 80000
    },
    "todayActivity": {
      "credits": 25000,
      "debits": 10000,
      "netChange": 15000
    },
    "thisMonth": {
      "totalCredits": 500000,
      "totalDebits": 350000,
      "netChange": 150000
    },
    "pendingSettlements": 2,
    "pendingPayouts": 5,
    "lastActivity": "2024-01-15T10:30:00.000Z"
  }
}
```

---

## Monthly Analytics

<EndpointHeader verb="GET" path="/merchant/api/v1/wallet/analytics/monthly" />

Retrieve monthly wallet analytics and trends.

### Headers

<ParamTable
  label="Header"
  rows={[
    { name: "Authorization", required: true, desc: "`Bearer {api_key}`" },
    { name: "X-Signature", required: true, desc: "HMAC-SHA256 signature" },
    { name: "X-Timestamp", required: true, desc: "ISO 8601 timestamp" },
    { name: "X-Secret-Salt", required: true, desc: "Secret salt for HMAC validation" },
  ]}
/>

---

## Simple Balance

<EndpointHeader verb="GET" path="/merchant/api/v1/wallet/balance/simple" />

Retrieve a simplified view of wallet balances.

### Headers

<ParamTable
  label="Header"
  rows={[
    { name: "Authorization", required: true, desc: "`Bearer {api_key}`" },
    { name: "X-Signature", required: true, desc: "HMAC-SHA256 signature" },
    { name: "X-Timestamp", required: true, desc: "ISO 8601 timestamp" },
    { name: "X-Secret-Salt", required: true, desc: "Secret salt for HMAC validation" },
  ]}
/>

<CodeRail>

## Examples

<Tabs groupId="language">
  <TabItem value="curl" label="cURL" default>

```bash
# Get wallet summary
curl -X GET "https://api.zenpays.com/merchant/api/v1/wallet/summary" \
  -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"

# Get monthly analytics
curl -X GET "https://api.zenpays.com/merchant/api/v1/wallet/analytics/monthly" \
  -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"

# Get simple balance
curl -X GET "https://api.zenpays.com/merchant/api/v1/wallet/balance/simple" \
  -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"
```

  </TabItem>
  <TabItem value="sdk" label="SDK">

```javascript
const summary = await zenpays.wallet.getSummary();
console.log(`Today's net: ${summary.todayActivity.netChange}`);

const analytics = await zenpays.wallet.getMonthlyAnalytics();

const simpleBalance = await zenpays.wallet.getSimpleBalance();
```

  </TabItem>
</Tabs>

</CodeRail>
