A customer group categorizes customer dimension records, mainly for the purpose of structuring financial reporting.
Returns a collection with a key, ID, and link for each customer 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": "Active Customers",
- "href": "/objects/accounts-receivable/customer-group/1"
}, - {
- "key": "2",
- "id": "Inactive Customers",
- "href": "/objects/accounts-receivable/customer-group/2"
}, - {
- "key": "3",
- "id": "Customers Balance",
- "href": "/objects/accounts-receivable/customer-group/3"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 100
}
}
Creates a new customer group.
Creates a new customer group.
id required | string Unique ID for the customer group. Example: "CustomerGrp4" | ||||||||||||||||||
name required | string Name of the customer group. Example: "Active JC Customers" | ||||||||||||||||||
description | string Description of the customer group. Example: "Charity service customers" | ||||||||||||||||||
groupType | string Default: "all" Specifies the group membership type. The group type and related fields determine which customers are included in the group.
Example: "all" | ||||||||||||||||||
object One or more filters to select the customers to include in the customer group. Can be used in addition to the | |||||||||||||||||||
| |||||||||||||||||||
Array of objects Members of the customer group and their sort order. Only applicable when the | |||||||||||||||||||
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": "CustGroup4",
- "name": "Customer Group 4",
- "description": "Charity service customers",
- "groupType": "all",
- "memberFilter": {
- "object": "accounts-receivable/customer",
- "filterExpression": "and",
- "filters": [
- {
- "$contains": {
- "id": "Cust"
}
}
], - "orderBy": [
- {
- "id": "asc"
}
]
}
}
{- "ia::result": {
- "id": "CustGroup4"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Returns detailed information for a specified customer group.
key required | string System-assigned unique key for the customer group. Example: 25 |
OK
Bad Request
{- "ia::result": {
- "key": "15",
- "id": "CustGroup8",
- "name": "Customer Group 8",
- "description": "JV service customers",
- "groupType": "specific",
- "memberFilter": {
- "object": "accounts-receivable/customer",
- "filterExpression": "and",
- "orderBy": [
- {
- "id": "asc"
}
]
}, - "audit": {
- "createdDateTime": "2025-03-16T13:26:56Z",
- "modifiedDateTime": "2025-03-16T13:26:56Z",
- "createdByUser": {
- "key": "1",
- "id": "Admin",
- "href": "/objects/company-config/user/1"
}, - "createdBy": "1",
- "modifiedByUser": {
- "key": "1",
- "id": "Admin",
- "href": "/objects/company-config/user/1"
}, - "modifiedBy": "1"
}, - "entity": {
- "key": null,
- "id": null,
- "name": null
}, - "groupMembers": [
- {
- "key": "6",
- "id": "MR12",
- "sortOrder": "0",
- "href": "/objects/accounts-receivable/customer/6"
}, - {
- "key": "10",
- "id": "ITEC",
- "sortOrder": "1",
- "href": "/objects/accounts-receivable/customer/10"
}
], - "isDimensionStructure": true,
- "href": "/objects/accounts-receivable/customer-group/15"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Updates an existing customer group by setting field values. Any fields not provided remain unchanged. Providing a new value for the groupMembers
array replaces the entire array.
key required | string System-assigned unique key for the customer group. Example: 25 |
name | string Name of the customer group. Example: "Active JC Customers" | ||||||||||||||||||
description | string Description of the customer group. Example: "Charity service customers" | ||||||||||||||||||
groupType | string Default: "all" Specifies the group membership type. The group type and related fields determine which customers are included in the group.
Example: "all" | ||||||||||||||||||
object One or more filters to select the customers to include in the customer group. Can be used in addition to the | |||||||||||||||||||
| |||||||||||||||||||
Array of objects Members of the customer group and their sort order. Only applicable when the | |||||||||||||||||||
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": "Revised JV service customers",
- "groupMembers": [
- {
- "id": "1"
}, - {
- "id": "2"
}
]
}
{- "ia::result": {
- "key": "6",
- "id": "CustGroup4",
- "href": "/objects/accounts-receivable/customer-group/6"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Deletes a customer group.
key required | string System-assigned unique key for the customer group. Example: 25 |
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
}
}