Add budget line

POST/api/v1/budgets/{budget_id}/lines

Add a budget line item for a ledger account.

Operation ID: add_budget_line_api_v1_budgets__budget_id__lines_post·View as markdown·OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Parameters

Path

budget_idstringrequired

Request body

ledger_idstringrequired

Ledger account UUID for this budget line.

jan_amountinteger

January budget amount in cents.

feb_amountinteger

February budget amount in cents.

mar_amountinteger

March budget amount in cents.

apr_amountinteger

April budget amount in cents.

may_amountinteger

May budget amount in cents.

jun_amountinteger

June budget amount in cents.

jul_amountinteger

July budget amount in cents.

aug_amountinteger

August budget amount in cents.

sep_amountinteger

September budget amount in cents.

oct_amountinteger

October budget amount in cents.

nov_amountinteger

November budget amount in cents.

dec_amountinteger

December budget amount in cents.

notesstring

Optional notes for this line.

Responses

201Successful Response

successboolean
messagestring
codestring
dataBudgetLineResponse

400Bad Request - Invalid input

401Unauthorized - Authentication required

403Forbidden - Insufficient permissions

404Not Found - Resource does not exist

422Validation Error

detailarray · ValidationErrorValidationError
5 fields
locarray · string | integerrequired
msgstringrequired
typestringrequired
inputobject
ctxobject