> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tunimobile.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get the balance

> Read the shop's current balance.

Requires login. Call this after each printed voucher to refresh the displayed balance.

## Body

**action** `string` *required*

`get_credit`

## Response

**credit** `number`

Shop balance in TND.

**gradeStar** `integer | null`

Shop grade (number of stars), `null` if none.

```bash cURL theme={null}
curl -b cookies.txt -c cookies.txt \
  -H "Content-Type: application/json" \
  -d '{"action":"get_credit"}' \
  https://apitest.tunimobile.com/v1/user/do_action
```

```json 200 theme={null}
{
  "status": "success",
  "code": 200,
  "message": "OK",
  "data": { "credit": 152.35, "gradeStar": 3 }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.