Get

[POST] .../v1/chequeitemoperation/get

Returns retail sale document operations. Use this method after DocCheque/Get to retrieve item lines of a retail sale cheque for receipt details, stock checks or refund analysis. The response returns DocChequeOperation records ordered by operation order by default, supports filters and sort_orders and can be narrowed by doc_sale_uuid or by operation uuids. The request body is required and must provide doc_sale_uuid or uuids; uuids is limited to 250 items and returned operations are additionally limited by the current request user's allowed stocks. The current request user must have retail cheque operation select permission; business errors such as missing body, missing selector fields, oversized uuids, denied access, invalid filters or sort_orders, database failures or persistent lookup errors are returned as HTTP 200 ErrorResult.

Request Parameters

Name Type Required Description
filters Array of Filter Optional Optional filters by fields available for this API method.
sort_orders Array of DocChequeOperationSortOrder Optional Output parameter sorting.

Filterable Fields

Field Type Description
doc_sale_uuid string Retail sale document UUID.
uuid string

Sortable Fields

Field
document_id
item.articul
item.code
item.id
item.name
last_update
order
price
price2
promo_id
quantity
stock_id
uuid
vat_value

Request Example

{
  "doc_sale_uuid": "4a6ed673-ea97-4d3f-807e-e8a4ab2f454d",
  "sort_orders": [
    {
      "column": "order",
      "direction": "ASC"
    }
  ]
}

Response Parameters

Name Type Description
ok Boolean Indicates whether the request completed successfully.
result Array of DocChequeOperation Result array.

Response Example

{
  "ok": true,
  "result": [
    {
      "uuid": "006e9760-2d91-48b6-b7d9-954bf4c3b30b",
      "has_storno": false,
      "storno_uuid": null,
      "document": "4a6ed673-ea97-4d3f-807e-e8a4ab2f454d",
      "stock_id": 2,
      "item": {
        "id": 1001,
        "name": "Arabica Coffee 1 kg",
        "code": "ITM-001"
      },
      "order": 1,
      "quantity": 2,
      "price": 92500,
      "price2": 92500,
      "promo_id": -1,
      "vat_value": 12,
      "last_update": 1767227460
    }
  ]
}