Discard

[POST] .../v1/operatingcash/discard

Releases a retail cash register Use this method to release a retail cash register when the current request user finishes working with it for POS operations. It returns an empty object result; when operating_cash_id is omitted or less than one, the method uses the current user's accepted cash register. Missing body, missing accepted cash register context, invalid operating_cash_id, current-user state conflicts and persistent errors are returned as HTTP 200 ErrorResult business errors.

Request Parameters

Name Type Required Description
description String Optional Additional description. Maximum length is 500 characters.
operating_cash_id Int64 Optional Operating cash ID. Optional; when omitted or less than one, the current user's accepted operating cash is used.

Request Example

{
  "description": "Shift handover completed"
}

Response Parameters

Name Type Description
ok Boolean Indicates whether the request completed successfully.
result Object Result object.

Response Example

{
  "ok": true,
  "result": null
}