Get a budget

Prev Next
Get
/api/v1/finance/budgets

Get an existing budget. Either reference or externalIdentifier must have a value. If both are given, both are used for retrieving the budget.

Description

This endpoint retrieves an existing budget based on its reference or externalIdentifier. Either reference or externalIdentifier must have a value. Please note that if both identifiers are given, both must match; otherwise, an error message will be generated. It is recommended that the user utilizes only one identifier, with a preference for the reference.

Use Case

Through this operation the user can display a specific budget and its details. For example the user wants to display all the information of the budget to see which data points need to be adjusted. This endpoint can also be used to retrieve the reference, in case the value is not known to the user.

Request fields

The request contains the following fields:

FieldDescription
referenceThe unique identifier for this specific budget created by Bloxs.
externalIdentifierThe unique identifier for this specific budget not created by Bloxs.

Response fields

In addition to the request, the 200 response contains the fields in the table below. For the GET operation it gives a up-to-date insight in the data that is currently registered in Bloxs.

FieldDescription
budgetTypeRefers to the budget type: 1 = Operating Budget, 2 = Investment Budget.
calendarYearThe calendar year to which the budget applies.
ownerReference

The reference of the relation that owns the budget. This refers to the reference created by Bloxs, not to be confused with the externalIdentifier.

lastModified

Timestamp of the last modification within Bloxs (determined by Bloxs).

ledgerAccountCodeThe code of the ledger account.
realEstateObjectReferenceThis is the reference of the realestate object associated with the budget. This refers to the reference created by Bloxs, not to be confused with the externalIdentifier.
month Indicates the month to which the budget applies. 1 = January, 2 = February, and so on. The 'Month' field is not required for Investment Budgets and only applies to Operating Budgets.
amountThe budgeted amount.
Security
HTTP
Type Bearer

Please enter a valid token

Query parameters
reference
string

The internal identifier of the model (i.e. Reference, Code, Name, depends on model).

externalIdentifier
string

The external API identifier of the model.

Responses
200

OK

Expand All
object
reference
string | null
Min length0
Max length100
externalIdentifier
string | null
Min length0
Max length100
budgetType
integer (int32)
Valid values[ 1, 2 ]
calendarYear
integer (int32)
ownerReference
string
Min length0
Max length100
lastModified
string (date-time)
lines
Array of object (BudgetLine) | null
object
ledgerAccountCode
string
Min length0
Max length12
realEstateObjectReference
string | null
Min length0
Max length100
month
integer (int32)
Minimum0
Maximum12
amount
number (double)
404

The requested budget was not found.