Journals serve to categorize transactions that are directly entered in the General Ledger and the transactions that are posted from subledgers such as Accounts Payable. For more information see What journals do you need?
Returns up to 100 journals from the collection with a key, ID, and link for each journal. This operation is mostly for use in testing; use the query service to find journals that meet certain criteria and to specify the properties that you want in the response.
Subscription | General Ledger |
---|---|
User type | Business, Employee, Approver, Project Manager, and Warehouse |
Permissions | List, View Journals |
OK
Bad Request
{- "ia::result": [
- {
- "key": "1",
- "id": "AR",
- "href": "/objects/general-ledger/journal/1"
}, - {
- "key": "2",
- "id": "AP",
- "href": "/objects/general-ledger/journal/2"
}, - {
- "key": "14",
- "id": "ADJ",
- "href": "/objects/general-ledger/journal/14"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}
Creates a new journal object. New journals are immediately available for users to enter journal entries through the General Ledger. They are also available to be used in the configuration of other applications. For example, you might create a Labor Cost journal to be used by the Projects application.
Journal to create
id required | string An abbreviation (symbol) for this journal, for example, AP. In most places in Sage Intacct, the symbol appears along with the title of the journal, as in "AP--Accounts Payable." Example: "EJ" |
name required | string The full name of the journal, as it should appear in reports. Example: "Expense Journal" |
isBillable | boolean Default: false Set to Example: true |
status | string Default: "active" Object status. Active objects are fully functional. Inactive objects are essentially hidden and cannot be used or referenced. Example: "active" |
isAdjustment | boolean Default: false Set to Example: false |
bookType | string Default: "accrual" A book type could be Accrual, Cash, Cash and Accrual or Consolidation. For most companies, the reporting book is accrual. If the company is set up for dual-method reporting, the choices are accrual, cash, or accrual and cash. Example: "accrual" |
Created
Bad Request
{- "id": "EJ",
- "name": "Expense Journal",
- "bookType": "accrual"
}
{- "ia::result": {
- "key": "3",
- "id": "EJ",
- "href": "/objects/general-ledger/journal/3"
}, - "ia::meta": {
- "totalCount": 1
}
}
Returns detailed information for a specified journal.
Subscription | General Ledger |
---|---|
User type | Business, Employee, Approver, Project Manager, and Warehouse |
Permissions | List, View Journals |
key required | string System-assigned key for the journal. Example: 411 |
OK
Bad Request
{- "ia::result": {
- "key": "3",
- "id": "EJ",
- "status": "active",
- "name": "Expense Journal",
- "isAdjustment": true,
- "bookId": "Accrual",
- "bookType": "accrual",
- "audit": {
- "createdDateTime": "2023-01-20T10:25:30Z",
- "modifiedDateTime": "2023-11-02T08:30:22Z",
- "createdBy": "68",
- "modifiedBy": "72"
}, - "isBillable": false,
- "href": "/objects/general-ledger/journal/3"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Updates an existing journal by setting field values. Any fields not provided remain unchanged.
Subscription | General Ledger |
---|---|
User type | Business user with admin privileges |
Permissions | Edit Journals |
key required | string System-assigned key for the journal. Example: 411 |
id | string An abbreviation (symbol) for this journal, for example, AP. In most places in Sage Intacct, the symbol appears along with the title of the journal, as in "AP--Accounts Payable." Example: "EJ" |
name | string The full name of the journal, as it should appear in reports. Example: "Expense Journal" |
isBillable | boolean Default: false Set to Example: true |
status | string Default: "active" Object status. Active objects are fully functional. Inactive objects are essentially hidden and cannot be used or referenced. Example: "active" |
isAdjustment | boolean Default: false Set to Example: false |
bookType | string Default: "accrual" A book type could be Accrual, Cash, Cash and Accrual or Consolidation. For most companies, the reporting book is accrual. If the company is set up for dual-method reporting, the choices are accrual, cash, or accrual and cash. Example: "accrual" |
OK
Bad Request
{- "name": "Expense Journal",
- "isBillable": true
}
{- "ia::result": {
- "key": "3",
- "id": "EJ",
- "href": "/objects/general-ledger/journal/3"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Deletes a journal. You can only delete a journal if it does not have any transactions in it. Deleted journals cannot be recovered.
Subscription | General Ledger |
---|---|
User type | Business user with admin privileges |
Permissions | Delete Journals |
key required | string System-assigned key for the journal. Example: 411 |
OK
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/journal" | ||||||||
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/journal",
- "filters": [
- {
- "$eq": {
- "bookId": "Accrual"
}
}
], - "fields": [
- "key",
- "id",
- "name",
- "status",
- "href"
], - "orderBy": [
- {
- "id": "asc"
}
]
}
{- "ia::result": [
- {
- "key": "14",
- "id": "ADJ",
- "name": "Adjustment journal",
- "status": "active",
- "href": "/objects/general-ledger/journal/14"
}, - {
- "key": "2",
- "id": "AP",
- "name": "Accounts Payable",
- "status": "active",
- "href": "/objects/general-ledger/journal/2"
}, - {
- "key": "1",
- "id": "AR",
- "name": "Accounts Receivable",
- "status": "active",
- "href": "/objects/general-ledger/journal/1"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}