AddByBarcode
[POST] .../v1/pos/chequeitemoperation/addbybarcode
Adds positions items to cash register cheque by barcode. Use this method to add an item position to an opened POS cheque by scanning or passing a barcode. The request requires document_uuid and barcode, locks the cheque by document_uuid, resolves the item using the current accepted cash register context and returns new_uuid for the created cheque position. The method checks the current request user and accepted cashier context; missing fields, unknown barcode, invalid cheque state, item or stock validation failures, position limits and storage errors are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| barcode | String | Required | Item barcode. |
| document_uuid | String | Required | Cash register cheque UUID. |
Request Example
{
"barcode": "string",
"document_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"
}
}