Create budget
Param name | Description |
---|---|
budget
required |
Budget parameters. Validations:
|
budget[name]
required |
Budget name. Validations:
|
budget[description]
optional |
Budget description. Maximum length: 1500 characters. Validations:
|
budget[start_date]
required |
Budget’s start date, e.g. 2024-12-01. Must be in the future. Cannot overlap with existing budgets with the same user & expense account combination. Validations:
|
budget[end_date]
required |
Budget’s end date, e.g. 2024-12-31. Must be in the future. Cannot overlap with existing budgets with the same user & expense account combination. Validations:
|
budget[cost_center_ids]
optional |
Cost center IDs. No more than one cost center ID per dimension. Validations:
|
budget[user_id]
optional |
User ID. Current user ID by default. Only managers can create budgets on behalf of other users. Validations:
|
budget[approver_id]
optional |
ID of user who is to approve the budget. By default, user’s first approver will be used. If there is no approval cycle behind the user, company’s default approver will be used. Validations:
|
budget[lines_attributes]
required |
Budget lines’ parameters. At least one line must be present. Validations:
|
budget[lines_attributes][amount]
required |
Line amount as a decimal number, e.g. “123.55”. Validations:
|
budget[lines_attributes][amount_currency]
optional |
Amount currency, e.g. “EUR”. Set to company currency by default. Validations:
|
budget[lines_attributes][expense_account_id]
required |
Expense account (aka purchase type) for the budget line. Validations:
|