/organizations/{org_id}/billing/spending_limitSet organization spending limitSets the monthly spending limit for the specified organization. To remove a previously configured limit, send a DELETE request to this endpoint. When a limit is configured, email notifications are sent at 80% and 100% of the limit. Computes are not suspended when the limit is reached. Available to organization admins on Launch and Scale plans only.
Parameters
org_idstringpathrequiredThe Neon organization ID
Request body
requiredapplication/json
spending_limit_centsinteger · int64requiredMonthly spending cap in cents. Must be positive. To remove a previously configured limit, send a DELETE request to the spending_limit endpoint — `0` and `null` are rejected here. The cap is alert-only: notifications fire at 80% and 100%, but computes are not suspended. Setting a cap below the period's already-accrued spend is permitted and will trigger the over-limit notification on the next worker run.
{
"spending_limit_cents": 0
}Responses
spending_limit_centsinteger | null · int64requiredMonthly spending cap in cents. `null` indicates that no limit is currently configured.
{
"spending_limit_cents": 0
}codestringrequiredmessagestringrequiredError message
request_idstringUnique identifier for the request, useful for debugging. You can set this value manually by including an `X-Request-ID` header in the request. If not provided, the value will be generated automatically.
{
"code": "",
"message": "string",
"request_id": "string"
}