Edit

[POST] .../v1/operatingcash/edit

Edits retail cash register. Use this method to update a retail cash register's stock, key, price type, description, custom fields or auto-close settings without changing historical POS data. It returns row_affected and requires a positive id before the persistent layer applies optional field changes. The caller must have operating cash edit permission; missing body, invalid id or field values, denied access, missing records, related-data restrictions and storage errors are returned as HTTP 200 ErrorResult business errors.

Request Parameters

Name Type Required Description
auto_close Boolean Optional Automatically closes the shift when the maximum number of cheques per shift is reached.
description String Optional Additional description. Maximum length is 500 characters.
fields Array of FieldValueEdit Optional Custom field values.
id Int64 Required Cash register ID.
key String Optional Retail cash register security key. Maximum length is 32 characters.
max_cheque_quantity_in_session Int32 Optional Maximum number of cheques per shift.
price_type_id Int64 Optional Price type ID.
stock_id Int64 Optional ID of the stock that the cash register belongs to.

Request Example

{
  "id": 12,
  "stock_id": 8,
  "key": "POS-MAIN-01",
  "price_type_id": 4,
  "description": "Main checkout terminal",
  "auto_close": true,
  "max_cheque_quantity_in_session": 1000,
  "fields": []
}

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