Delete

[POST] .../v1/retailcardgroup/delete

Deletes customer card groups. Delete an unused customer card group from the loyalty card 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 customer card group delete permission and missing body, missing id, denied permission, not found, dependency and storage errors are returned as HTTP 200 ErrorResult.

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
  }
}