Storno

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

Reverses an item line in a POS cheque. Reverse a line by uuid and document_uuid; returns row_affected. Requires an accepted cash register and row storno permission. The line must not already be reversed or be a reversal itself. Recalculates automatic promotions. Business errors return HTTP 200 ErrorResult.

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