A vendor group categorizes vendor dimension records, mainly for the purpose of structuring financial reports. For more information, see Vendor groups in the Sage Intacct Help Center.
Returns a collection with a key, ID, and link for each vendor 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": "1",
- "id": "Top Level Vendors",
- "href": "/objects/accounts-payable/vendor-group/1"
}, - {
- "key": "2",
- "id": "1st Level Vendors",
- "href": "/objects/accounts-payable/vendor-group/2"
}, - {
- "key": "3",
- "id": "2nd Level Vendors",
- "href": "/objects/accounts-payable/vendor-group/3"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}
Creates a new vendor group.
Creates a new Vendor group.
id required | string Vendor group ID. Example: "1" | ||||||||||||||||||
name required | string Name of the vendor group. Example: "Top level vendors" | ||||||||||||||||||
description | string Description of the vendor group. Example: "Top-level vendor group" | ||||||||||||||||||
groupType | string Default: "allMembers" Group membership type. The group type and related fields determine which vendors are included in the group. When creating reports that use vendors in rows or columns, these fields also determine the column headings and row headings that display, and the order in which they will be listed.
Example: "allMembers" | ||||||||||||||||||
object One or more filters to select the vendors to include in the vendor group. | |||||||||||||||||||
| |||||||||||||||||||
Array of objects List of vendors to include in the group when | |||||||||||||||||||
Array
| |||||||||||||||||||
isDimensionStructure | boolean Default: false Indicates whether a dimension structure is created from the group. If true, the group can be added to the rows or columns of a financial report. Example: false |
Created
Bad Request
{- "id": "1099 related vendors",
- "name": "1099 related vendor group",
- "description": "group of vendors who have 1099",
- "groupType": "allMembers",
- "isDimensionStructure": false,
- "memberFilter": {
- "object": "accounts-payable/vendor",
- "filterExpression": "and",
- "filters": [
- {
- "$contains": {
- "id": 1099
}
}
], - "orderBy": [
- {
- "id": "asc"
}
]
}
}
{- "ia::result": {
- "key": "13",
- "id": "1099 related vendors",
- "href": "/objects/accounts-payable/accounts-payable-vendor-group/13"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Returns detailed information for a specified vendor group.
key required | string System assigned unique key for the vendor group. Example: 16 |
OK
Bad Request
{- "ia::result": {
- "key": "3",
- "id": "2nd Level Vendors",
- "name": "Level 2 Vendors",
- "description": "Level 2 Vendors",
- "groupType": "specificMembers",
- "audit": {
- "createdDateTime": "2016-06-28T17:56:21Z",
- "modifiedDateTime": "2016-06-28T17:56:21Z",
- "createdBy": "11",
- "modifiedBy": "11"
}, - "entity": {
- "id": "3",
- "key": "3",
- "href": "/objects/company-config/entity/3"
}, - "groupMembers": [
- {
- "key": "12",
- "id": "AUT",
- "name": "Auto_Supplies Inc.",
- "status": "active",
- "sortOrder": "0",
- "href": "/objects/accounts-payable/vendor/12"
}, - {
- "key": "13",
- "id": "CAL",
- "name": "CALOIL Corporation",
- "status": "active",
- "sortOrder": "1",
- "href": "/objects/accounts-payable/vendor/13"
}
], - "isDimensionStructure": false,
- "memberFilter": {
- "object": "accounts-payable/vendor",
- "filterExpression": "and",
- "orderBy": [
- {
- "name": "asc"
}
]
}, - "href": "/objects/accounts-payable/vendor-group/3"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Updates an existing vendor group by setting field values. Any fields not provided remain unchanged.
key required | string System assigned unique key for the vendor group. Example: 16 |
name | string Name of the vendor group. Example: "Top level vendors" | ||||||||||||||||||
description | string Description of the vendor group. Example: "Top-level vendor group" | ||||||||||||||||||
groupType | string Default: "allMembers" Group membership type. The group type and related fields determine which vendors are included in the group. When creating reports that use vendors in rows or columns, these fields also determine the column headings and row headings that display, and the order in which they will be listed.
Example: "allMembers" | ||||||||||||||||||
object One or more filters to select the vendors to include in the vendor group. | |||||||||||||||||||
| |||||||||||||||||||
Array of objects List of vendors to include in the group when | |||||||||||||||||||
Array
| |||||||||||||||||||
isDimensionStructure | boolean Default: false Indicates whether a dimension structure is created from the group. If true, the group can be added to the rows or columns of a financial report. Example: false |
OK
Bad Request
{- "description": "Group of vendors who have enabled 1099"
}
{- "ia::result": {
- "key": "15",
- "id": "1099 related vendors",
- "href": "/objects/accounts-payable/vendor-group/15"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Deletes a vendor group. Vendor groups that are not being used for reporting can be deleted.
key required | string System assigned unique key for the vendor group. Example: 16 |
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
}
}