---
title: "Get user balance"
method: GET
path: "/groups/{groupId}/balances/{userId}"
tags: ["balances"]
---

# Get user balance

`GET /groups/{groupId}/balances/{userId}`

## Request

- Base URL: `http://localhost:3001`
- URL: `http://localhost:3001/groups/{groupId}/balances/{userId}`
- Auth: HTTP bearer

Get the user's balance in the group, one entry per currency used

## Path parameters

- `groupId` string, required
- `userId` string, required

## Response `200`

User balances retrieved successfully

- object
  - `data` UserBalanceResponseDto[]
    - `id` string, required
    - `email` string, required
    - `displayName` string, required
    - `avatarUrl` string
    - `balance` number, required: Positive = owed money, negative = owes money
    - `currency` string, required
  - `success` boolean
  - `message` string

## Other responses

- `400`: Bad Request - Invalid input or validation failed
- `401`: Unauthorized - Authentication required or invalid token
- `403`: Forbidden - Insufficient permissions to access this resource
- `404`: Not Found - The requested resource does not exist
- `500`: Internal Server Error - An unexpected error occurred

---

[API](https://skmtc.dev/spliteo/apis/spliteo-api.md) · [All operations](https://skmtc.dev/spliteo/apis/spliteo-api/llms.txt) · [OpenAPI document](https://skmtc.dev/spliteo/apis/spliteo-api/revisions/bd9b84f4e407?raw)
