Pay

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

Sets the cheque status to Paying. 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. 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.

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