Storno
[POST] .../v1/pos/chequepaymentoperation/storno
Creates a storno operation for a POS cheque payment. Use this method to create a reversing payment operation for a POS cheque payment row while the cheque is still in Paying status. The request requires uuid and document_uuid, locks the cheque by document_uuid, checks the current request user, requires payment row storno permission and returns new_uuid for the reversing payment row. The method expects the selected payment row to exist, not already be reversed, not be a reversing row and not be a change row; missing fields, denied permission, invalid cheque state, duplicate storno, payment-system reversal restrictions 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 payment 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 | Insert_uuid | Created UUID record result. |
Response Example
{
"ok": true,
"result": {
"new_uuid": "00000000-0000-0000-0000-000000000000"
}
}