Journal entry lines represent individual debit or credit line items within a journal-entry. You can create or update line items by modifying the journal entry.
When adding a line item to the journal entry, you can post it immediately or save it as a draft, which can be edited and posted later.
Returns a collection of journal entry lines with a key, ID, and link for each entry line. This operation is mostly for use in testing; use the query service to find journal entry lines that meet certain criteria and to specify the properties that are returned.
Subscription | General Ledger |
---|---|
User type | Business user, Employee, Payment Approver |
Permissions | List, View Journal Entries |
OK
Bad Request
{- "ia::result": [
- {
- "key": "18",
- "id": "18",
- "href": "/objects/general-ledger/journal-entry-line/18"
}, - {
- "key": "21",
- "id": "21",
- "href": "/objects/general-ledger/journal-entry-line/21"
}, - {
- "key": "41",
- "id": "41",
- "href": "/objects/general-ledger/journal-entry-line/41"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}
Returns detailed information for a specified journal entry line.
Subscription | General Ledger |
---|---|
User type | Business user, Employee, Payment Approver |
Permissions | List, View Journal Entries |
key required | string System-assigned unique key for the journal entry line. Example: 132 |
OK
Bad Request
{- "ia::result": {
- "id": "18",
- "key": "18",
- "journalEntry": {
- "id": "132",
- "key": "132",
- "href": "/objects/general-ledger/journal-entry/132"
}, - "lineNumber": 18,
- "txnType": "credit",
- "entryDate": "2024-01-14",
- "baseAmount": "49.31",
- "txnAmount": "80.00",
- "glAccount": {
- "key": "194",
- "id": "40238561",
- "name": "Sales",
- "href": "/objects/general-ledger/account/194"
}, - "dimensions": {
- "department": {
- "key": "15",
- "id": "SEE",
- "name": "Security Engineering",
- "href": "/objects/company-config/department/15"
}, - "location": {
- "key": "26",
- "id": "CRD",
- "name": "Croydon",
- "href": "/objects/company-config/location/26"
}, - "customer": {
- "key": "9",
- "id": "JHC",
- "name": "Jones Hogan Company",
- "href": "/objects/accounts-receivable/customer/9"
}, - "vendor": {
- "key": "13",
- "id": "CAL",
- "name": "CALOIL Cor Corporation",
- "href": "/objects/accounts-payable/vendor/13"
}, - "employee": {
- "key": "29",
- "id": "234",
- "name": "John Smith",
- "href": "/objects/company-config/employee/29"
}, - "item": {
- "key": "8",
- "id": "MAS",
- "name": "Mobile Accessories",
- "href": "/objects/inventory-control/item/8"
}, - "contract": {
- "key": null,
- "id": null,
- "name": null
}, - "project": {
- "key": "15",
- "id": "STS",
- "name": "Staff Support - IT - Jones Hogan Company",
- "href": "/objects/projects/project/15"
}, - "class": {
- "key": "8",
- "id": "CON",
- "name": "Construction",
- "href": "/objects/company-config/class/8"
}
}, - "documentId": "CalOil_Credit_01-24",
- "description": "CalOil Credit entries January 2024",
- "numberOfUnits": 2,
- "currency": {
- "baseCurrency": "GBP",
- "txnCurrency": "USD",
- "exchangeRateDate": "2024-01-14",
- "exchangeRateTypeId": "Company Daily Rate",
- "exchangeRate": 0.6164
}, - "reconciliationGroup": {
- "cleared": "matched",
- "clearingDate": "2024-01-14",
- "reconciliationDate": "2024-01-14"
}, - "accountingPeriod": 1,
- "allocation": {
- "id": "21",
- "key": "FA_ALLOC",
- "href": "/objects/general-ledger/txn-allocation-template/21"
}, - "interEntityTxnType": "p",
- "parent": {
- "id": "40",
- "key": "40",
- "href": "/objects/general-ledger/journal-entry-line/40"
}, - "audit": {
- "createdDateTime": "2024-01-14T18:13:29Z",
- "modifiedDateTime": "2024-01-14T18:13:29Z",
- "createdByUser": {
- "key": "1",
- "href": "/objects/company-config/user/1"
}, - "createdBy": "1",
- "modifiedByUser": {
- "key": "1",
- "href": "/objects/company-config/user/1"
}, - "modifiedBy": "1"
}, - "state": "posted",
- "isBillable": false,
- "isBilled": false,
- "taxEntries": [ ],
- "href": "/objects/general-ledger/journal-entry-line/18"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Deletes a journal entry line.
Subscription | General Ledger |
---|---|
User type | Business user |
Permissions | Delete Journal Entries |
key required | string System-assigned unique key for the journal entry line. Example: 132 |
No Content
Bad Request
{- "ia::result": {
- "ia::error": {
- "code": "invalidRequest",
- "message": "A POST request requires a payload",
- "errorId": "REST-1028",
- "additionalInfo": {
- "messageId": "IA.REQUEST_REQUIRES_A_PAYLOAD",
- "placeholders": {
- "OPERATION": "POST"
}, - "propertySet": { }
}, - "supportId": "Kxi78%7EZuyXBDEGVHD2UmO1phYXDQAAAAo"
}
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 0,
- "totalError": 1
}
}
Queries an object for filtered data.
object | string Object type to query, in the form Example: "general-ledger/journal-entry-line" | ||||||||
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 has (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 result set, 4000 maximum. Example: 100 |
OK
Bad Request
{- "object": "general-ledger/journal-entry-line",
- "filters": [
- {
- "$eq": {
- "journalEntry.key": "18"
}
}
], - "fields": [
- "key",
- "id",
- "href",
- "transactionType"
], - "orderBy": [
- {
- "id": "asc"
}
]
}
{- "ia::result": [
- {
- "key": "99",
- "id": "99",
- "href": "/objects/general-ledger/journal-entry-line/99",
- "transactionType": "Credit"
}, - {
- "key": "100",
- "id": "100",
- "href": "/objects/general-ledger/journal-entry-line/100",
- "transactionType": "Debit"
}
], - "ia::meta": {
- "totalCount": 2,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}