Add
[POST] .../v1/pos/chequeitemoperation/add
Adds positions items to cash register cheque. Use this method to add an item position to an opened POS cheque when the cashier selects an item directly by item_id. The request requires document_uuid, item_id and quantity greater than zero, locks the cheque by document_uuid and returns new_uuid for the created cheque position. The method checks the current request user and accepted cashier context and the persistent workflow validates cheque state, item availability, price calculation, limits and stock rules; validation failures 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. |
| item_id | Int64 | Required | Item ID. |
| label | String | Optional | Labeling flag. |
| quantity | Decimal | Required | Number of line items in the cheque. |
Request Example
{
"document_uuid": "00000000-0000-0000-0000-000000000000",
"item_id": 1,
"label": "string",
"quantity": 1.0
}
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"
}
}