A budget is a plan to help estimate revenue and expenses for operations. The budget
object is essentially a header that contains an array of budget-detail
objects.\n\nBefore you can create or import a budget, several items in Sage Intacct must be set up:
Returns up to 100 budgets from the collection with a key, ID, and link for each budget. This operation is mostly for use in testing; use the query service to find budgets that meet specific criteria and to specify the properties that you want in the response.
Subscription | General Ledger |
---|---|
User type | Business, Employee, Approver |
Permissions | List, View Budgets |
OK
Bad Request
{- "ia::result": [
- {
- "key": "1",
- "id": "Std_Budget",
- "href": "/objects/general-ledger/budget/1"
}, - {
- "key": "2",
- "id": "KPI Budgets",
- "href": "/objects/general-ledger/budget/2"
}
], - "ia::meta": {
- "totalCount": 2,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}
Creates a new budget.
Subscription | General Ledger |
---|---|
User type | Business User |
Permissions | Add Budgets |
Budget to create
id required | string Budget name or ID. Best practice is to give the budget an ID that doesn't reference a particular fiscal year or date. This allows appending new time periods to an existing budget. Example: "Employee Expense Budget" | ||||||||||||||
description required | string Description of the budget. Example: "Budget for project costs" | ||||||||||||||
isDefault | boolean Default: false Set to Example: false | ||||||||||||||
status | string Default: "active" Object status. Active objects are fully functional. Inactive objects are essentially hidden and cannot be used or referenced. Example: "active" | ||||||||||||||
consolidateAmounts | boolean Default: false For companies using consolidation, set this field to Example: false | ||||||||||||||
currency | string Consolidation currency code. Required if Example: "USD" | ||||||||||||||
postProjectEstimate | boolean Default: false Set to Example: false | ||||||||||||||
Array of objects Array of budget details for each reporting period. | |||||||||||||||
Array
|
Created
Bad Request
{- "id": "Budget1",
- "description": "First budget",
- "isDefault": true,
- "status": "active",
- "consolidateAmounts": false,
- "currency": null,
- "postProjectEstimate": false,
- "lines": [
- {
- "glAccount": {
- "id": "1000"
}, - "dimensions": {
- "location": {
- "id": "1"
}
}, - "reportingPeriod": {
- "id": "Month ended January 2022"
}, - "amount": "100",
- "budgetGrowth": {
- "basedOn": "budget",
- "growBy": null,
- "perPeriod": "percentage"
}
}, - {
- "glAccount": {
- "id": "1000"
}, - "dimensions": {
- "location": {
- "id": "1"
}
}, - "reportingPeriod": {
- "id": "Month ended February 2022"
}, - "amount": "150",
- "budgetGrowth": {
- "basedOn": "budget",
- "growBy": null,
- "perPeriod": "percentage"
}
}, - {
- "glAccount": {
- "id": "1000"
}, - "dimensions": {
- "location": {
- "id": "1"
}
}, - "reportingPeriod": {
- "id": "Month ended March 2022"
}, - "amount": "100",
- "budgetGrowth": {
- "basedOn": "budget",
- "growBy": null,
- "perPeriod": "percentage"
}
}
]
}
{- "ia::result": {
- "key": "41",
- "id": "Budget1",
- "href": "/objects/general-ledger/budget/41"
}, - "ia::meta": {
- "totalCount": 1
}
}
Returns detailed information for a specified budget.
Subscription | General Ledger |
---|---|
User type | Business, Employee, Approver |
Permissions | List, View Budgets |
key required | string System-assigned key for the budget. Example: 291 |
OK
Bad Request
{- "ia::result": {
- "key": "5",
- "id": "Employee Expense Budget",
- "description": "Employee Expense Budget",
- "isDefault": false,
- "userName": "Admin",
- "status": "active",
- "audit": {
- "createdDateTime": "2022-02-16T05:13:36Z",
- "modifiedDateTime": "2022-02-16T05:13:36Z",
- "createdBy": "1",
- "modifiedBy": "1"
}, - "consolidateAmounts": false,
- "currency": "USD",
- "postProjectEstimate": false,
- "lines": [
- {
- "id": "291",
- "key": "291",
- "budget": {
- "key": "5",
- "id": "Employee Expense Budget",
- "href": "/objects/general-ledger/budget/291"
}, - "currency": {
- "txnCurrency": "USD"
}, - "reportingPeriod": {
- "key": "79",
- "id": "Month Ended January 2022",
- "name": "Month Ended January 2022",
- "href": "/objects/reportingperiod/79"
}, - "glAccount": {
- "key": "9",
- "id": "4000",
- "name": "Revenue",
- "href": "/objects/general-ledger/account/9"
}, - "dimensions": {
- "department": {
- "key": "9",
- "id": "11",
- "name": "Sales",
- "href": "/objects/company-config/department/9"
}, - "location": {
- "key": "1",
- "id": "1",
- "name": "United States of America",
- "href": "/objects/company-config/location/1"
}, - "employee": {
- "key": "1",
- "id": "1",
- "name": "Joe Smith",
- "href": "/objects/company-config/employee/10"
}, - "item": {
- "key": "101",
- "id": "101",
- "name": "Widgets",
- "href": "/objects/inventory-control/item/101"
}, - "class": {
- "key": "2",
- "id": "2",
- "name": "Mid Market",
- "href": "/objects/company-config/class/2"
}, - "warehouse": {
- "key": "1",
- "id": "1",
- "name": "Main",
- "href": "/objects/inventory-control/warehouse/1"
}, - "customer": {
- "key": "1",
- "id": "1",
- "name": "Big Buyer",
- "href": "/objects/accounts-receivable/customer/1"
}, - "vendor": {
- "key": "1",
- "id": "1",
- "name": "Widget Wholesales",
- "href": "/objects/accounts-payable/vendor/1"
}
}, - "amount": "100",
- "budgetGrowth": {
- "basedOn": "budget",
- "growBy": null,
- "perPeriod": "percentage"
}, - "notes": "Projection for 2021",
- "href": "/objects/general-ledger/budget-detail/291"
}
], - "href": "/objects/general-ledger/budget/5"
}, - "ia::meta": {
- "totalCount": 1
}
}
Updates an existing budget and its budget details by setting field values. Any fields not provided remain unchanged.
key
value. key
value.DELETE /objects/general-ledger/budget-detail/{key}
request.Subscription | General Ledger |
---|---|
User type | Business User |
Permissions | Edit Budgets |
key required | string System-assigned key for the budget. Example: 291 |
description | string Description of the budget. Example: "Budget for project costs" | ||||||||||||||
isDefault | boolean Default: false Set to Example: false | ||||||||||||||
status | string Default: "active" Object status. Active objects are fully functional. Inactive objects are essentially hidden and cannot be used or referenced. Example: "active" | ||||||||||||||
consolidateAmounts | boolean Default: false For companies using consolidation, set this field to Example: false | ||||||||||||||
currency | string Consolidation currency code. Required if Example: "USD" | ||||||||||||||
postProjectEstimate | boolean Default: false Set to Example: false | ||||||||||||||
Array of objects Array of budget details for each reporting period. | |||||||||||||||
Array
|
OK
Bad Request
{- "status": "inactive"
}
{- "ia::result": {
- "key": "21",
- "id": "Std_Budget",
- "href": "/objects/general-ledger/budget/21"
}, - "ia::meta": {
- "totalCount": 1
}
}
Deletes a budget. You cannot delete the default budget or any budget that is being used by a financial report.
Carefully consider the implications before you delete a budget. After you delete a budget, you will no longer be able to use its data to create future budgets and it can no longer be used in financial reports.
Subscription | General Ledger |
---|---|
User type | Business User |
Permissions | Delete Budgets |
key required | string System-assigned key for the budget. Example: 291 |
No Content
Bad Request
{- "ia::result": {
- "ia::error": {
- "code": "invalidRequest",
- "message": "Payload contains errors",
- "supportId": "sQrM9%7EYdh5oDEWVb80mrn9xuHjoAAAABBQ",
- "errorId": "REST-1064",
- "additionalInfo": {
- "messageId": "IA.PAYLOAD_CONTAINS_ERRORS",
- "placeholders": { },
- "propertySet": { }
}, - "details": [
- {
- "code": "invalidRequest",
- "message": "/testDate is not a valid field",
- "errorId": "REST-1043",
- "target": "/testDate",
- "additionalInfo": {
- "messageId": "IA.NOT_A_VALID_FIELD",
- "placeholders": {
- "FIELD": "/testDate"
}, - "propertySet": { }
}
}
]
}, - "ia::meta": {
- "totalCount": 3,
- "totalSuccess": 2,
- "totalError": 1
}
}, - "ia::error": {
- "code": "invalidRequest",
- "message": "Malformed URL",
- "supportId": "sQrM9%7EYdh5oDEWVb80mrn9xuHjoAAAABBQ",
- "details": [
- {
- "code": "invalidRequest",
- "message": "The content type is not valid",
- "correction": "TODO"
}
]
}
}
Queries an object for filtered data.
object | string Object type to query, in the form Example: "general-ledger/budget" | ||||||||
fields | Array of strings List of fields to include in the response. Can be any combination of these:
Example: ["key","id","max:vendor.creditLimit"] | ||||||||
Array of equal (object) or not equal (object) or less than (object) or (less than or equal (object)) or greater than (object) or (greater than or equal (object)) or in (object) or not in (object) or between (object) or not between (object) or contains (object) or does not contain (object) or starts with (object) or does not start with (object) or ends with (object) or does not end with (object) Filter conditions to select the objects to return based on their field values. You use operators and conditions to build your filter, such as Example: [{"$eq":{"status":"active"}},{"$gt":{"totalDue":"1000"}},{"$contains":{"name":"Acme"}}] | |||||||||
Array Any of: Field value must be equal to this specified value. For date fields, you can use these macro values that are relative to the current date or the
These are most useful for queries that you want to save and use repeatedly, such as for views or reports. Just change the For example,
| |||||||||
filterExpression | string Default: "and" Logical operators to apply when there are multiple filter conditions. The conditions in the Shortcuts:
Example: "(1 and 2) or 3" | ||||||||
| |||||||||
Array of objects Set the order of the results by specifying field names to sort by and whether they should be in ascending or descending order. Example: [{"totalDue":"asc"},{"lastPaymentMadeDate":"desc"}] | |||||||||
Array
| |||||||||
start | integer First record of the result set to include in the response. Example: 1 | ||||||||
size | integer Number of records to include in the response. Example: 100 |
OK
Bad Request
{- "object": "general-ledger/budget",
- "filters": [
- {
- "$eq": {
- "isDefault": true
}
}
], - "fields": [
- "key",
- "id",
- "description",
- "isDefault"
], - "orderBy": [
- {
- "id": "asc"
}
]
}
{- "ia::result": [
- {
- "key": "5",
- "id": "Budget1",
- "description": "First budget",
- "isDefault": true
}
], - "ia::meta": {
- "totalCount": 1,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}