post
https://api.cardda.com/v1/budget_requests//approve
Approves a pending request, optionally changing the amount (and, for a new budget,
the budget to create). Only admin / budgets_manage users, who can approve their own
requests too.
Effects
more_fundson afunded("Con saldo") budget, without periods or with
period_scope: current_period: tops the budget up from the company's free balance,
likePOST /v1/budgets/{id}/top_up. If the balance doesn't cover it, it fails like
the top-up (budgets/insufficient_company_fundswithunreserved_cents) and the
request stayspending.more_fundswithperiod_scope: next_periods: raises the budget's
base_amount_centsfrom the next renewal on. It moves no balance today, so it never
fails for lack of funds;next_period_shortfall_centsover 0 warns that the
company's free balance wouldn't cover renewing it with the new base today.more_fundson atracking("Solo control") budget: raises its
allocated_amount_cents(or itsbase_amount_centswithnext_periods). No
balance moves.new_budget: creates the budget likePOST /v1/budgets, with the request as
default (funded, the requester as Encargado, the amount asked for) andbudget
overriding it. The request'sbudget_idpoints to it from then on.
Any failure leaves the request pending.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
401Unauthorized - missing or invalid authentication token, or a caller without budgets_manage.
404Request not found (or outside the caller's scope).
