Delete

[POST] .../v1/retailcustomer/delete

Deletes customer. Deletion available, if customer marked for deletion deleted_mark = true, for marking on deletion used method DeleteMark. Use this destructive method to physically delete a retail customer record after it has already been marked with DeleteMark. The request requires id and only deletes an active customer whose deleted_mark is true; the method returns row_affected for the deleted customer. The method checks the current request user and requires retail customer delete permission; missing body, missing id, denied permission, customer not marked for deletion, missing active customer and storage errors are returned as HTTP 200 ErrorResult business errors.

Request Parameters

Name Type Required Description
id Int64 Required Customer 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
  }
}