# creditBalance

```graphql
query CreditBalance {
  creditBalance {
    accountId
    tier
    purchased
    total
    tierLimit
    creditPriceEur
  }
}
```

Read how many credits an account has left in its monthly and purchased pools, with its monthly allocation and top-up price; returns the balance. Requires account.billing.read.

## Responses

| Status | Description                               |
| ------ | ----------------------------------------- |
| 200    | The CreditBalance! in data.creditBalance. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "query CreditBalance {\n  creditBalance {\n    accountId\n    tier\n    purchased\n    total\n    tierLimit\n    creditPriceEur\n  }\n}"
}'
```

## Example response

```json
{
  "data": {
    "creditBalance": {
      "accountId": "string",
      "tier": 0,
      "purchased": 0,
      "total": 0,
      "tierLimit": 0,
      "creditPriceEur": 0
    }
  }
}
```
