Delete

[POST] .../v1/barcode/delete

Deletes barcode. Use this destructive method to delete a barcode that should no longer identify an item in catalog or POS workflows. It requires a positive id and returns row_affected after removal; the controller currently checks barcode edit permission for this action. Missing body, invalid id, denied access, missing records, related-data restrictions and storage errors are returned as HTTP 200 ErrorResult business errors.

Request Parameters

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