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 the query service to find objects that meet certain criteria and to specify properties that are returned.
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.
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.
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.
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.
key required | string System-assigned key for the item GL group. Example: 13 |
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
}
}