Item GL groups are used to organize transaction definitions for posting to the general ledger.
Returns up to 100 object references from the collection with a key, ID, and link for each item GL group. This operation is mostly for use in testing; use query to find objects that meet certain criteria and to specify properties that are returned.
Subscription | Inventory Control |
---|---|
User ype | Business, Project Manager, Employee, Warehouse |
Permissions | List, View Item GL groups |
OK
Bad Request
{- "ia::result": [
- {
- "key": "2",
- "id": "OS GL Group",
- "href": "/objects/inventory-control/item-gl-group/2"
}, - {
- "key": "3",
- "id": "Auto GL Group",
- "href": "/objects/inventory-control/item-gl-group/3"
}
], - "ia::meta": {
- "totalCount": 2,
- "start": 1,
- "pageSize": 100,
- "next": 101,
- "previous": null
}
}
Creates a new item GL group.
Subscription | Inventory Control |
---|---|
User ype | Business, Project Manager, Employee, Warehouse |
Permissions | Add, Edit Item GL groups |
id required | string Name or other unique identifier for the item GL group. Example: "Stockable Kit" | ||||
object GL account to which to defer revenue for items belonging to this GL group. | |||||
| |||||
object Default revenue recognition template to use for deferred revenue for items belonging to this GL group. | |||||
|
Created
Bad Request
{- "id": "Stockable Kit",
- "deferredRevenueGLAccount": {
- "key": "411",
- "id": "1501.04",
- "name": "Expense Account"
}, - "defaultRevenueRecognitionTemplate": {
- "key": "1",
- "id": "100"
}
}
{- "ia::result": {
- "key": "13",
- "id": "Stockable Kit",
- "href": "/objects/inventory-control/item-gl-group/13"
}, - "ia::meta": {
- "totalCount": 1
}
}
Returns detailed information for a specified item GL group.
Subscription | Inventory Control |
---|---|
User ype | Business, Project Manager, Employee, Warehouse |
Permissions | List, View Item GL groups |
key required | string System-assigned key for the item GL group. Example: 13 |
OK
Bad Request
{- "key": "13",
- "id": "Stockable Kit",
- "deferredRevenueGLAccount": {
- "key": "411",
- "id": "1501.04",
- "name": "Expense Account",
- "href": "/objects/general-ledger/account/411"
}, - "defaultRevenueRecognitionTemplate": {
- "key": "1",
- "id": "100",
- "href": "/objects/accounts-receivable/revenue-recognition-template/1"
}, - "isSystemGenerated": false,
- "href": "/objects/inventory-control/item-gl-group/13",
- "audit": {
- "createdDateTime": "2022-04-20T16:20:00Z",
- "modifiedDateTime": "2022-04-20T16:20:00Z",
- "createdBy": "1",
- "modifiedBy": "95"
}
}
Updates an existing item GL group by setting field values. Any fields not provided remain unchanged.
Subscription | Inventory Control |
---|---|
User ype | Business, Project Manager, Employee, Warehouse |
Permissions | Add, Edit Item GL groups |
key required | string System-assigned key for the item GL group. Example: 13 |
object GL account to which to defer revenue for items belonging to this GL group. | |||||
| |||||
object Default revenue recognition template to use for deferred revenue for items belonging to this GL group. | |||||
|
OK
Bad Request
{- "id": "13",
- "deferredRevenueGLAccount": {
- "key": "411",
- "id": "1501.04",
- "name": "Expense Account"
}
}
{- "ia::result": {
- "key": "13",
- "id": "Stockable Kit",
- "href": "/objects/inventory-control/item-gl-group/13"
}, - "ia::meta": {
- "totalCount": 1
}
}
Deletes a item GL group. An item GL group can be deleted if it has not been used by any transactions or assigned to any items.
Subscription | Inventory Control |
---|---|
User ype | Business, Project Manager, Employee, Warehouse |
Permissions | Delete Item GL groups |
key required | string System-assigned key for the item GL group. Example: 13 |
No Content
Bad Request
{- "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: "inventory-control/item-gl-group" | ||||||||
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": "inventory-control/item-gl-group",
- "filters": [
- {
- "$eq": {
- "isSystemGenerated": true
}
}
], - "fields": [
- "key",
- "id",
- "deferredRevenueGLAccount.name",
- "deferredRevenueGLAccount.id"
], - "orderBy": [
- {
- "id": "asc"
}
]
}
{- "ia::result": [
- {
- "key": "11",
- "id": "Consulting",
- "deferredRevenueGLAccount.name": "Deferred Revenue Recognition Account",
- "deferredRevenueGLAccount.id": "2998"
}, - {
- "key": "1",
- "id": "License",
- "deferredRevenueGLAccount.name": "Deferred Revenue Licensing",
- "deferredRevenueGLAccount.id": "2990"
}, - {
- "key": "59",
- "id": "Licensing",
- "deferredRevenueGLAccount.name": "Deferred Revenue Licensing",
- "deferredRevenueGLAccount.id": "2990"
}, - {
- "key": "3",
- "id": "Maintenance",
- "deferredRevenueGLAccount.name": "Deferred Revenue Maintenance",
- "deferredRevenueGLAccount.id": "2995"
}, - {
- "key": "5",
- "id": "Other Revenue",
- "deferredRevenueGLAccount.name": "Deferred Revenue Recognition Account",
- "deferredRevenueGLAccount.id": "2998"
}, - {
- "key": "10",
- "id": "Products",
- "deferredRevenueGLAccount.name": "Deferred Revenue Recognition Account",
- "deferredRevenueGLAccount.id": "2998"
}, - {
- "key": "8",
- "id": "Service",
- "deferredRevenueGLAccount.name": "Deferred Revenue Account",
- "deferredRevenueGLAccount.id": "4045"
}, - {
- "key": "4",
- "id": "Services and Training",
- "deferredRevenueGLAccount.name": "Deferred Revenue Services and Training",
- "deferredRevenueGLAccount.id": "2996"
}, - {
- "key": "2",
- "id": "Software",
- "deferredRevenueGLAccount.name": "Deferred Revenue Licensing",
- "deferredRevenueGLAccount.id": "2990"
}, - {
- "key": "7",
- "id": "ARevRec",
- "deferredRevenueGLAccount.name": "Deferred Revenue Licensing",
- "deferredRevenueGLAccount.id": "2990"
}
], - "ia::meta": {
- "totalCount": 10,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}