Budget

Create or update company budget

Changed on

Set or update the company's monthly spend budget. Requires CompanyAdmin role. Creates the budget on first call; updates it on subsequent calls.

put/api/v3/billing/budget

Request

  • Base URL
    https://api.lighton.ai
  • URL
    https://api.lighton.ai/api/v3/billing/budget
  • Auth
    HTTP bearer

Request body

is_enabledboolean

Whether the budget is actively enforced.

amount_eurstring required

Monthly budget cap in EUR (max 999,999,999.99).

Response

is_enabledboolean required

Whether this budget is actively enforced.

amount_eurstring required

Monthly budget cap in EUR.

currencystring

ISO 4217 currency code.

current_cycle_startstring required

First day of the current billing cycle (ISO date).

next_cycle_startstring required

First day of the next billing cycle (ISO date).

monthly_spend_eurstring required

Current month's spend in EUR.

available_eurstring required

Remaining budget for the current cycle in EUR.

Changes