[POST] .../v1/retailcustomergroup/delete
Deletes group customers. Use this destructive method to delete an unused retail customer group from the customer segmentation hierarchy. The request requires id and returns row_affected after the group is marked deleted. Deletion is rejected when active customers or child groups still reference the group; the method checks the current request user and requires retail customer group delete permission and missing body, missing id, denied permission, not found, dependency and storage errors are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | System group ID. |
Request Example
{
"id": 1
}
Response Parameters
| Name | Type | Description |
|---|---|---|
| ok | Boolean | Indicates whether the request completed successfully. |
| result | Update | Update operation result. |
Response Example
{
"ok": true,
"result": {
"ids": [
null
],
"row_affected": 1
}
}