Storno

[POST] .../v1/pos/chequeitemoperation/storno

Adds reversal cash register cheque position. Use this method to create a reversal operation for a POS cheque item position when a cashier needs to storno a row. The request requires uuid and document_uuid, locks the cheque by document_uuid, checks the current request user, requires row storno permission and returns row_affected after the reversal is written. The method expects a valid accepted cash register and a position that has not already been reversed and is not itself a reversal; missing fields, denied permission, invalid cheque state, duplicate storno and storage errors are returned as HTTP 200 ErrorResult business errors.

Request Parameters

Name Type Required Description
document_uuid String Required Cash register cheque UUID.
uuid String Required UUID of the cash receipt line item to reverse.

Request Example

{
  "document_uuid": "00000000-0000-0000-0000-000000000000",
  "uuid": "00000000-0000-0000-0000-000000000000"
}

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