---
title: "Get a budget by ID"
method: GET
path: "/enterprises/{enterprise}/settings/billing/budgets/{budget_id}"
tags: ["billing"]
---

# Get a budget by ID

`GET /enterprises/{enterprise}/settings/billing/budgets/{budget_id}`

Gets a budget by ID. The authenticated user must be an enterprise admin or billing manager.

## Path parameters

- `enterprise` string, required
- `budget_id` string, required

## Response `200`

Response when updating a budget

- GetBudget
  - `id` string, required — ID of the budget.
  - `budget_scope` 'enterprise' | 'organization' | 'repository' | 'cost_center' | 'multi_user_customer' | 'multi_user_cost_center' | 'user', required — The type of scope for the budget
  - `budget_entity_name` string, required — The name of the entity to apply the budget to
  - `user` string — The user login when the budget is scoped to a single user (`user` scope).
  - `budget_amount` integer, required — The budget amount in whole dollars. For license-based products, this represents the number of licenses.
  - `prevent_further_usage` boolean, required — Whether to prevent additional spending once the budget is exceeded
  - `budget_product_sku` string, required — A single product or sku to apply the budget to.
  - `budget_type` union, required — The type of pricing for the budget
    - 'ProductPricing'
    - 'SkuPricing'
  - `budget_alerting` object, required
    - `will_alert` boolean — Whether alerts are enabled for this budget
    - `alert_recipients` string[] — Array of user login names who will receive alerts

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `404` — Resource not found
- `500` — Internal Error
- `503` — Service unavailable

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-3.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-3/versions/dc0584ac4e13/schema)
