Delete

[POST] .../v1/retailreturnreason/delete

Deletes return reason. Delete a retail return reason that should no longer be available for POS return workflows or selectors. It requires a positive id and returns row_affected after the method checks whether removal is allowed. The caller must have retail return reason delete permission; missing body, invalid id, denied access, related return restrictions, missing records and storage errors are returned as HTTP 200 ErrorResult.

Request Parameters

Name Type Required Description
id Int64 Required Return reason ID.

Request Example

{
  "id": 6
}

Response Parameters

Name Type Description
ok Boolean Indicates whether the request completed successfully.
result Update Update operation result.

Response Example

{
  "ok": true,
  "result": {
    "row_affected": 1
  }
}