Pay

[POST] .../v1/pos/doccheque/pay

Sets the cheque status to Paying Use this method to move an opened POS cheque from operations entry to payment mode before adding payment operations. The request requires uuid, locks the cheque by uuid, checks the current request user and accepted cashier context and returns row_affected after the status transition. Business errors such as missing uuid, missing accepted cash register, cheque not found, invalid cheque state, unpaid or inconsistent positions and storage errors are returned as HTTP 200 ErrorResult business errors.

Request Parameters

Name Type Required Description
uuid String Required Cheque UUID.

Request Example

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