# Check all budgets for a session.

Source: <https://everruns.com/docs/api/operations/check_session_budgets/>

GET

/v1/sessions/{session\_id}/budget-check

Select code samplecURL (shell:curl)

```js
const url = 'https://app.everruns.com/api/v1/sessions/example/budget-check';
const options = {method: 'GET'};


try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```sh
curl --request GET \
  --url https://app.everruns.com/api/v1/sessions/example/budget-check
```

* Production APIapp.everruns.com/api/v1/sessions/{session\_id}/budget-check

## Parameters

### Path Parameters

**session\_id**

required

string

Prefixed public identifier

## Responses

### 200

Success

Media typeapplication/json

Result of checking all budgets for a session.

object

**action**

required

Most restrictive action across all budgets.

string

**balance**

Remaining balance on the most restrictive budget.

number | null format: double

**budget\_id**

Budget that triggered the action.

string | null

**currency**

Currency of the most restrictive budget.

string | null

**error\_code**

Stable error code for user-facing budget failures.

string | null

**error\_fields**

Structured interpolation fields for localized error rendering.

object | null

**message**

Human-readable message (set when action != “continue”).

string | null

##### Examplegenerated

```json
{
  "action": "example",
  "balance": 1,
  "budget_id": "example",
  "currency": "example",
  "error_code": "example",
  "error_fields": "example",
  "message": "example"
}
```